d0efb2ef0ceab45644ad6e6d464fef4dc7ddda0d
[gnulib.git] / ChangeLog
1 2011-11-27  Bruno Haible  <bruno@clisp.org>
2
3         getcwd: Fix bug from 2011-08-17.
4         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5         platforms that need it.
6         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7         code of 4 to be a failure, not a success. This ensures that
8         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9
10 2011-11-27  Bruno Haible  <bruno@clisp.org>
11
12         binary-io tests: Avoid test failure on mingw when libtool is used.
13         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
14         Don't verify the size of t-bin-out1.tmp here.
15         * tests/test-binary-io.sh: Verify it here.
16         Reported by Simon Josefsson.
17
18 2011-11-26  Bruno Haible  <bruno@clisp.org>
19
20         Fix conflict between two instantiations of module 'unistd'.
21         * gnulib-tool (func_emit_autoconf_snippet): Substitute
22         ${include_guard_prefix} also in the autoconf snippet.
23         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
24         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
25         GNULIB_UNISTD_H_GETOPT.
26         * modules/getopt-posix (configure.ac): Set the
27         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
28         * modules/getopt-gnu (configure.ac): Likewise.
29         * modules/unistd (Makefile.am): Change the substitution value of
30         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
31         Reported by Simon Josefsson.
32
33 2011-11-25  Bruno Haible  <bruno@clisp.org>
34
35         pagealign_alloc: Doc and comments.
36         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
37         module.
38         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
39
40 2011-11-25  Jim Meyering  <meyering@redhat.com>
41
42         test-update-copyright.sh: avoid false-positive failure
43         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44         around false positive failure on Cygwin/Windows.  The latter was
45         matching erroneously-created files with names like
46         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
47
48 2011-11-25  Simon Josefsson  <simon@josefsson.org>
49
50         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
51         * m4/valgrind-tests.m4: Check that the parameters that will be
52         used works, not just a subset of them.  Reported by Bruno Haible
53         <bruno@clisp.org>.
54
55 2011-11-24  Jim Meyering  <meyering@redhat.com>
56
57         test-stdalign.c: comment out long double tests
58         * tests/test-stdalign.c: Don't try to reduce alignment of long double
59         variables.  That provokes errors like this from gcc-4.7.0 20111124:
60         error: '_Alignas' specifiers cannot reduce alignment of \
61         'static_longdouble_alignas'.
62
63 2011-11-22  Jim Meyering  <meyering@redhat.com>
64
65         init.sh: make "compare /dev/null FILE" output more readable
66         * tests/init.sh (compare_): Document the preferred order of arguments.
67         (emit_diff_u_header_): New function.
68         (compare_dev_null_): Emit a simulated diff, rather than just the
69         contents of the unexpected file.  Suggestion from Bruno Haible.
70
71 2011-11-21  Jim Meyering  <meyering@redhat.com>
72             Eric Blake  <eblake@redhat.com>
73
74         init.sh: work around OSF/1 5.1's mishandling of /dev/null
75         * tests/init.sh: Make our compare function slightly more portable.
76         Reported by Bruno Haible in
77         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
78
79 2011-11-21  Simon Josefsson  <simon@josefsson.org>
80
81         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
82         before using it, in code that ends up in config.h.
83
84 2011-11-20  Bruno Haible  <bruno@clisp.org>
85
86         getcwd: Work around getcwd bug on AIX 5..7.
87         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
88         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
89         Use a different value for gl_cv_func_getcwd_path_max. Move the
90         definition of HAVE_PARTLY_WORKING_GETCWD from here...
91         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
92         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
93         Define HAVE_MINIMALLY_WORKING_GETCWD.
94         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
95         where it is not even minimally working, that is, on AIX.
96         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
97         m4/getcwd-path-max.m4.
98         (main): Update exit code computation.
99         * doc/posix-functions/getcwd.texi: Mention list of platforms where
100         getcwd does not handle long file names.
101
102 2011-11-20  Bruno Haible  <bruno@clisp.org>
103
104         getcwd: Fix bug from 2009-09-10.
105         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
106         like "no".
107
108 2011-11-20  Simon Josefsson  <simon@josefsson.org>
109
110         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
111
112 2011-11-20  Bruno Haible  <bruno@clisp.org>
113
114         fma tests: Avoid shadowing local variables.
115         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
116         expected.
117
118 2011-11-20  Bruno Haible  <bruno@clisp.org>
119
120         copysignf tests: Fix.
121         * tests/test-copysignf.c: Fix signature check.
122
123 2011-11-20  Bruno Haible  <bruno@clisp.org>
124
125         fma: Remove unused code.
126         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
127         unused macros.
128
129 2011-11-20  Bruno Haible  <bruno@clisp.org>
130
131         sethostname: Fix doc about AIX.
132         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
133         sethostname; it has it.
134
135         sethostname: Mention more portability problems.
136         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
137         problem.
138         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
139
140 2011-11-19  Bruno Haible  <bruno@clisp.org>
141
142         Depend on module fcntl-h when AT_FDCWD is used.
143         * modules/utimens (Depends-on): Add fcntl-h.
144         * modules/areadlinkat (Depends-on): Likewise.
145         * modules/areadlinkat-with-size (Depends-on): Likewise.
146         * modules/faccessat (Depends-on): Likewise.
147         * modules/fchmodat (Depends-on): Likewise.
148         * modules/fchownat (Depends-on): Likewise.
149         * modules/getcwd (Depends-on): Likewise.
150         * modules/mkdirat (Depends-on): Likewise.
151         * modules/mkfifoat (Depends-on): Likewise.
152         * modules/readlinkat (Depends-on): Likewise.
153         * modules/symlinkat (Depends-on): Likewise.
154         * modules/dup2-tests (Depends-on): Likewise.
155         * modules/fdutimensat-tests (Depends-on): Likewise.
156         * modules/futimens-tests (Depends-on): Likewise.
157
158 2011-11-19  Bruno Haible  <bruno@clisp.org>
159
160         euidaccess: Update a comment.
161         * lib/euidaccess.c: Update comment about platforms with faccessat.
162
163 2011-11-19  Bruno Haible  <bruno@clisp.org>
164
165         openat: Fix file list.
166         * modules/openat (Files): Remove lib/at-func.c.
167
168 2011-11-19  Bruno Haible  <bruno@clisp.org>
169
170         fstatat: Simplify.
171         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
172         gnulib should define rpl_fstatat, there is a
173         "#define fstatat rpl_fstatat" in <sys/stat.h>.
174
175 2011-11-19  Bruno Haible  <bruno@clisp.org>
176
177         Ensure 'inline' can be used in tests/test-utimens-common.h.
178         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
179         * modules/futimens-tests (configure.ac): Likewise.
180         * modules/utimens-tests (configure.ac): Likewise.
181         * modules/utimensat-tests (configure.ac): Likewise.
182
183 2011-11-19  Simon Josefsson  <simon@josefsson.org>
184
185         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
186         not hash_insert0.
187         (hash_insert_if_absent): Doc fix.
188
189 2011-11-19  Simon Josefsson  <simon@josefsson.org>
190
191         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
192
193 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
194
195         test-getcwd: disambiguate exit status
196         * tests/test-getcwd.c (test_long_name): Return 0..7.
197         (main): Exit with an unambiguous exit status.  The old
198         code yielded a mysterious mixture of two failure codes.
199
200         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
201         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
202         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
203         rpl_fstatat or fstatat.  This should fix the other problem
204         reported by Kai Habel in
205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
206         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
208         and I reproduced it on a Solaris 8 host we still have in production.
209
210 2011-11-18  Jim Meyering  <meyering@redhat.com>
211
212         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
213         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
214         Add a sentence to the comment.
215         (hash_insert0): New function that simply calls hash_insert_if_absent.
216         * lib/hash.h (hash_insert_if_absent): Declare it.
217         (hash_insert0): Add deprecation attribute.
218         (_GL_ATTRIBUTE_DEPRECATED): Define.
219         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
220         not hash_insert0.
221         * NEWS: Mention it, even though it's not really an incompatible change.
222
223 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
224
225         openat: avoid compilation failure due to lack of <errno.h> inclusion
226         * lib/openat.c: Include <errno.h>.
227
228 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
229
230         * modules/getcwd (Depends-on): Add fdopendir.
231         This fixes one of the two problems reported by Kai Habel in
232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
233
234         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
235         stdalign problem reported by Ian Beckwith in
236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
237         * modules/crypto/gc-arcfour (Depends-on):
238         Depend conditionally on crypto/arcfour.
239         * modules/crypto/gc-arctwo (Depends-on):
240         Depend conditionally on crypto/arctwo.
241         * modules/crypto/gc-des (Depends-on):
242         Depend conditionally on crypto/des.
243         * modules/crypto/gc-hmac-md5 (Depends-on):
244         Depend conditionally on crypto/hmac-md5.
245         * modules/crypto/gc-hmac-sha1 (Depends-on):
246         Depend conditionally on crypto/hmac-sha1.
247         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
248         * modules/crypto/gc-md4 (Depends-on):
249         Depend conditionally on crypto/md4.
250         * modules/crypto/gc-md5 (Depends-on):
251         Depend conditionally on crypto/md5.
252         * modules/crypto/gc-rijndael (Depends-on):
253         Depend conditionally on crypto/rijndael.
254         * modules/crypto/gc-sha1 (Depends-on):
255         Depend conditionally on crypto/sha1.
256         * modules/crypto/gc-arcfour:
257         * modules/crypto/gc-arctwo:
258         * modules/crypto/gc-des:
259         * modules/crypto/gc-hmac-md5:
260         * modules/crypto/gc-hmac-sha1:
261         * modules/crypto/gc-md2:
262         * modules/crypto/gc-md4:
263         * modules/crypto/gc-md5:
264         * modules/crypto/gc-rijndael:
265         * modules/crypto/gc-sha1:
266         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
267         now that the conditional dependencies do the work for us.
268
269 2011-11-17  Jim Meyering  <meyering@redhat.com>
270
271         tests: factor st_ctime-comparison out of two headers
272         * tests/test-utimens-common.h (ctime_compare): Define.
273         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
274         * tests/test-lutimens.h (test_lutimens): Likewise.
275         * tests/test-utimens.h (test_utimens): Likewise.
276
277         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
278         Invoke the test program via an init.sh-using wrapper.
279         * tests/test-getcwd.sh: New file.
280         * modules/getcwd-tests (Files): Add it.
281         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
282
283 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
284
285         gitlog-to-changelog: support multi-author commits.
286         The FSF cares about keeping track of all authors of patches to its
287         projects, but Git doesn't provide obvious support for multi-author
288         changesets. Consensus seems to be forming around the use of extra
289         Signed-off-by inspired lines in the log message formatted as
290         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
291         multi-author commits between version control systems.
292         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
293         log message and output in standard ChangeLog multi-author format.
294         Reported by Peter Rosin <peda@lysator.liu.se>
295
296 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
297             Bruno Haible  <bruno@clisp.org>
298
299         Fix some modules' file list.
300         * modules/fstatat (Files): Add m4/lstat.m4.
301         * modules/openat (Files): Likewise.
302         * modules/unlinkat (Files): Likewise.
303
304 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
305
306         maint.mk: fix tight-scope.mk generation in VPATH builds.
307         * top/maint.mk (tight-scope.mk): Make sure to prefix file
308         reference with $(srcdir) so that the file is found correctly even
309         when running `make syntax-check' in a VPATH build.
310
311 2011-11-13  Bruno Haible  <bruno@clisp.org>
312             Jim Meyering  <meyering@redhat.com>
313
314         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
315         * tests/init.sh (compare): Remove "No differences encountered" or
316         synonymous output from the 'diff' program.
317
318 2011-11-13  Bruno Haible  <bruno@clisp.org>
319
320         Makefile: Tweak indentation.
321         * Makefile: Use tab as first character in every line that contains rule
322         commands.
323
324 2011-11-13  Bruno Haible  <bruno@clisp.org>
325
326         Syntax check for copyright statements.
327         * check-copyright: New file.
328         * Makefile (sc_check_copyright): New rule.
329
330 2011-11-13  Simon Josefsson  <simon@josefsson.org>
331
332         * build-aux/git-version-gen: Add --prefix to configure the tag
333         match string.
334
335 2011-11-13  Simon Josefsson  <simon@josefsson.org>
336
337         * build-aux/git-version-gen: Add --help and --version.
338
339 2011-11-12  Jim Meyering  <meyering@redhat.com>
340
341         revamp the other test-exclude?.sh scripts to use init.sh, too
342         * tests/test-exclude1.sh: Use init.sh.
343         * tests/test-exclude2.sh: Likewise.
344         * tests/test-exclude3.sh: Likewise.
345         * tests/test-exclude4.sh: Likewise.
346         * tests/test-exclude5.sh: Likewise.
347         * tests/test-exclude6.sh: Likewise.
348         * tests/test-exclude7.sh: Likewise.
349         * tests/test-exclude8.sh: Likewise.
350         * modules/exclude-tests (Files): List init.sh.
351
352         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
353         These shell scripts ignored failure of the binary test-exclude,
354         so making the latter return 77 didn't cause them to be skipped.
355         * tests/test-exclude5.sh: Exit with test-exclude's error status
356         when that program fails.  Revamp to use init.sh.
357         * tests/test-exclude2.sh: Likewise.
358
359         test-exclude: fix a typo
360         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
361
362 2011-11-11  Bruno Haible  <bruno@clisp.org>
363
364         obstack: Fix compilation error on MSVC 9.
365         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
366
367 2011-11-11  Jim Meyering  <meyering@redhat.com>
368
369         test-exclude: skip tests rather than failing on deficient systems
370         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
371         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
372         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
373         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
374
375 2011-11-10  Bruno Haible  <bruno@clisp.org>
376
377         ptsname_r test: Avoid gcc warning on glibc systems.
378         * tests/test-ptsname_r.c (null_ptr): New function.
379         (test_errors): Use it.
380
381 2011-11-10  Bruno Haible  <bruno@clisp.org>
382
383         ptsname_r: Avoid compilation error on OSF/1 5.1.
384         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
386         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
387         function is not declared or incompatibly declared.
388         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
389         * modules/ptsname_r (Depends-on, configure.ac): Update.
390         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
391
392 2011-11-10  Bruno Haible  <bruno@clisp.org>
393
394         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
395         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
396         When cross-compiling, guess yes on all platforms except AIX.
397         Reported by Ludovic Courtès <ludo@gnu.org>.
398
399 2011-11-09  Bruno Haible  <bruno@clisp.org>
400
401         ptsname_r tests: Fix bugs.
402         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
403         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
404
405 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
406
407         fstatat: work with cross-compilation
408         Problem reported by Ludovic Courtès in
409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
410         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
411         "cross-compiling" and assume the bug is present.  Replace
412         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
413         an inverted sense, to be more conservative about our assumptions.
414         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
415
416 2011-11-09  Bruno Haible  <bruno@clisp.org>
417
418         Improve MODULES.html output.
419         * modules/mkfifoat (Description): Use the word "function".
420         * modules/readlinkat (Description): Likewise.
421         * modules/symlinkat (Description): Likewise.
422
423 2011-11-09  Eric Blake  <eblake@redhat.com>
424
425         ptsname_r-tests: new test module
426         * modules/ptsname_r-tests: New module.
427         * tests/test-ptsname_r.c: New file.
428
429         ptsname_r: new module
430         * modules/ptsname_r: New module.
431         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
432         * lib/ptsname.c (__ptsname_r): Split...
433         * lib/ptsname_r.c: ...into new file.
434         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
435         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
436         * modules/stdlib (Makefile.am): Substitute witnesses.
437         * lib/stdlib.in.h (ptsname_r): Declare it.
438         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
439         * MODULES.html.sh (Misc): Likewise.
440         * modules/ptsname (Depends-on): Alter dependency.
441         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
442
443 2011-11-09  Jim Meyering  <meyering@redhat.com>
444
445         announce-gen: be more concise when there's only one URL+tarball
446         * build-aux/announce-gen (get_tool_versions): When you distribute
447         only one type of tarball, combine the first two "Here are..."
448         sections and make the key-checking grammar independent of
449         how many tarballs there are.
450
451 2011-11-09  Eric Blake  <eblake@redhat.com>
452
453         openpty: provide a stub on mingw
454         * lib/pty.in.h (includes): Provide forward declarations.
455         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
456
457         raise: fix mingw handling of SIGPIPE
458         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
459
460 2011-11-08  Bruno Haible  <bruno@clisp.org>
461
462         More conditional dependencies.
463         * modules/faccessat (Depends-on): Add conditions.
464         * modules/fchmodat (Depends-on): Likewise.
465         * modules/fchownat (Depends-on): Likewise.
466         * modules/fstatat (Depends-on): Likewise.
467         * modules/mkfifoat (Depends-on): Likewise.
468         * modules/readlinkat (Depends-on): Likewise.
469         * modules/symlinkat (Depends-on): Likewise.
470         * modules/unlinkat (Depends-on): Likewise.
471         * modules/utimensat (Depends-on): Likewise.
472         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
473         * modules/linkat (Depends-on): Refine the conditions.
474         * modules/renameat (Depends-on): Likewise.
475
476 2011-11-08  Bruno Haible  <bruno@clisp.org>
477
478         faccessat: Move AC_LIBOBJ invocation to module description.
479         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
480         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
481         invocation from here...
482         * modules/faccessat (configure.ac): ... to here. Invoke
483         gl_PREREQ_FACCESSAT.
484
485 2011-11-08  Bruno Haible  <bruno@clisp.org>
486
487         faccessat: Simplify autoconf macro.
488         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
489         gl_FUNC_EUIDACCESS.
490
491 2011-11-08  Bruno Haible  <bruno@clisp.org>
492
493         renameat: Fix dependencies.
494         * modules/renameat (Depends-on): Add stdbool.
495
496 2011-11-08  Bruno Haible  <bruno@clisp.org>
497
498         mkfifoat: Fix module description.
499         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
500         not gl_UNISTD_MODULE_INDICATOR.
501
502 2011-11-08  Bruno Haible  <bruno@clisp.org>
503
504         fstatat: Remove unused dependency.
505         * modules/fstatat (Depends-on): Remove fstat.
506
507 2011-11-08  Simon Josefsson  <simon@josefsson.org>
508
509         GNUmakefile: behave when Makefile is missing.
510         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
511
512 2011-11-08  Bruno Haible  <bruno@clisp.org>
513
514         openat: Conditionalize dependencies.
515         * lib/openat.c: Reduce the scope of some #includes.
516         * modules/openat (Depends-on): Add conditions.
517
518 2011-11-07  Jim Meyering  <meyering@redhat.com>
519
520         maint.mk: extract GPG key ID without using a temporary file
521         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
522         without using a temporary file.  Based on a suggestion from Werner Koch
523         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
524
525 2011-11-07  Eric Blake  <eblake@redhat.com>
526
527         grantpt: fix typo
528         * lib/stdlib.in.h (grantpt): Check correct function.
529
530         maint.mk: silence new syntax check
531         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
532
533 2011-11-06  Bruno Haible  <bruno@clisp.org>
534
535         Doc about floating-point and math API.
536         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
537         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
538
539 2011-11-06  Bruno Haible  <bruno@clisp.org>
540
541         stdalign tests: Skip the test when compiled by Sun C.
542         * tests/test-stdalign.c (main): Skip the test on Sun C.
543
544 2011-11-06  Bruno Haible  <bruno@clisp.org>
545
546         ansi-c++-opt: Complete the 2011-06-05 change.
547         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
548         does not support namespaces, set the variable to "no", not to ":".
549
550 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
551
552         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
553
554 2011-11-06  Bruno Haible  <bruno@clisp.org>
555
556         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
557         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
558         (minus_zerol) [HP-UX]: New macro.
559         (unary_minus) [HP-UX]: New function.
560         (copysignl) [HP-UX]: Use unary_minus function.
561
562 2011-11-06  Bruno Haible  <bruno@clisp.org>
563
564         ldexp, ldexpf, ldexpl: Enhance tests.
565         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
566         and tests/test-ldexpl.c.
567         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
568         LDEXP, MIN_EXP, MAX_EXP): New macros.
569         Include test-ldexp.h.
570         (main): Just call test_function.
571         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
572         infinity.h, nan.h.
573         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
574         MAX_EXP): New macros.
575         Include test-ldexp.h.
576         (x, y): Remove variables.
577         (main): Just call test_function.
578         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
579         infinity.h, nan.h.
580         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
581         MAX_EXP): New macros.
582         Include test-ldexp.h.
583         (x, y): Remove variables.
584         (main): Just call test_function.
585         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
586         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
587         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
588         (Depends-on): Add isnand-nolibm, signbit, float.
589         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
590         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
591         (Depends-on): Add isnanf-nolibm, signbit, float.
592
593 2011-11-06  Bruno Haible  <bruno@clisp.org>
594
595         math tests: Cosmetics.
596         * tests/test-math-c++.cc: Reorder declarations.
597
598 2011-11-05  Bruno Haible  <bruno@clisp.org>
599
600         fma*: Simplify test.
601         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
602         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
603
604         Tests for module 'fmal'.
605         * modules/fmal-tests: New file.
606         * tests/test-fmal1.c: New file.
607         * tests/test-fmal2.c: New file.
608
609         New module 'fmal'.
610         * lib/math.in.h (fmal): New declaration.
611         * lib/fmal.c: New file.
612         * m4/fmal.m4: New file.
613         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
615         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
616         REPLACE_FMAL.
617         * modules/fmal: New file.
618         * doc/posix-functions/fmal.texi: Mention the new module and the various
619         bugs.
620
621         Tests for module 'fmaf'.
622         * modules/fmaf-tests: New file.
623         * tests/test-fmaf1.c: New file.
624         * tests/test-fmaf2.c: New file.
625
626         New module 'fmaf'.
627         * lib/math.in.h (fmaf): New declaration.
628         * lib/fmaf.c: New file.
629         * m4/fmaf.m4: New file.
630         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
632         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
633         REPLACE_FMAF.
634         * modules/fmaf: New file.
635         * doc/posix-functions/fmaf.texi: Mention the new module and the various
636         bugs.
637
638         Tests for module 'fma'.
639         * modules/fma-tests: New file.
640         * tests/test-fma1.c: New file.
641         * tests/test-fma1.h: New file.
642         * tests/test-fma2.c: New file.
643         * tests/test-fma2.h: New file.
644
645         New module 'fma'.
646         * lib/math.in.h (fma): New declaration.
647         * lib/fma.c: New file.
648         * m4/fma.m4: New file.
649         * m4/fegetround.m4: New file.
650         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
652         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
653         REPLACE_FMA.
654         * modules/fma: New file.
655         * doc/posix-functions/fma.texi: Mention the new module and the various
656         bugs.
657
658         Extend gl_MATHFUNC.
659         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
660         Support 'void' as argument type.
661         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
662
663 2011-11-05  Jim Meyering  <meyering@redhat.com>
664
665         maint.mk: also prohibit inclusion of dirent.h without use
666         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
667
668 2011-11-05  Bruno Haible  <bruno@clisp.org>
669
670         ldexpl tests: Avoid test failure on MSVC 9.
671         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
672         value. Needed in order to enforce the conversion from a value greater
673         than LDBL_MAX to Infinity.
674
675 2011-11-05  Bruno Haible  <bruno@clisp.org>
676
677         New modules 'at-internal', 'openat-h', split off from module 'openat'.
678         * modules/at-internal: New file, extracted from modules/openat.
679         * modules/openat-h: New file.
680         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
681         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
682         * modules/openat (Description): Add reference to POSIX function.
683         (Files): Remove lib/openat.h, lib/openat-proc.c.
684         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
685         intprops, unistd.
686         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
687         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
688         gl_FCNTL_MODULE_INDICATOR.
689         (Include): Remove unistd.h, openat.h.
690         * modules/areadlinkat (Files): Add lib/at-func.c.
691         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
692         openat-die, openat-h, save-cwd.
693         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
694         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
695         openat-die, openat-h, save-cwd, unistd.
696         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
697         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
698         openat-h, save-cwd. Remove fcntl-h, openat.
699         * modules/fchmodat (Files): Remove lib/openat.h.
700         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
701         openat, stdbool, unistd.
702         * modules/fchownat (Files): Remove lib/openat.h.
703         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
704         openat, stdbool, sys_stat.
705         * modules/fdopendir (Files): Remove lib/openat-priv.h,
706         lib/openat-proc.c.
707         (Depends-on): Add at-internal.
708         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
709         * modules/fstatat (Files): Remove lib/openat.h.
710         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
711         stdbool, unistd.
712         * modules/fts (Depends-on): Add openat-h.
713         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
714         openat.
715         * modules/mkdirat (Files): Remove lib/openat.h.
716         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
717         openat, stdbool, sys_stat.
718         * modules/mkfifoat (Files): Add lib/at-func.c.
719         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
720         openat-h, save-cwd. Remove fcntl-h, openat.
721         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
722         * modules/readlinkat (Files): Add lib/at-func.c.
723         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
724         openat-h, save-cwd. Remove fcntl-h, openat.
725         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
726         openat.
727         * modules/selinux-at (Files): Add lib/at-func.c.
728         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
729         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
730         * modules/symlinkat (Files): Add lib/at-func.c.
731         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
732         openat-h, save-cwd. Remove fcntl-h, openat.
733         * modules/unlinkat (Files): Remove lib/openat.h.
734         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
735         stdbool.
736         * modules/utimensat (Files): Add lib/at-func.c.
737         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
738         openat-die, openat-h, save-cwd.
739         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
740         * modules/fdutimensat-tests (Depends-on): Add openat.
741         * modules/fstatat-tests (Depends-on): Add openat-h.
742         * modules/readlinkat-tests (Depends-on): Add openat.
743         * modules/symlinkat-tests (Depends-on): Add openat.
744
745 2011-11-05  Bruno Haible  <bruno@clisp.org>
746
747         openat: Include <stdbool.h>.
748         * lib/openat.c: Include <stdbool.h>.
749
750 2011-11-04  Bruno Haible  <bruno@clisp.org>
751
752         fchownat, renameat, unlinkat: Fix dependencies.
753         * modules/fchownat (Depends-on): Add fstatat.
754         * modules/renameat (Depends-on): Likewise.
755         * modules/unlinkat (Depends-on): Likewise.
756
757 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
758
759         openat: remove direct dependency on dirent
760         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
761         and hasn't been needed ever since fdopendir was split into its own
762         module on 2009-08-31.
763         * modules/openat (Depends-on): Remove dirent.
764
765 2011-11-04  Bruno Haible  <bruno@clisp.org>
766
767         renameat: Optimize code size.
768         * modules/renameat (configure.ac): Don't compile at-func2.c if
769         REPLACE_RENAMEAT is 1.
770
771 2011-11-04  Bruno Haible  <bruno@clisp.org>
772
773         openat tests: Fix file list.
774         * modules/openat-tests (Files): Add tests/test-open.h.
775
776 2011-11-04  Bruno Haible  <bruno@clisp.org>
777
778         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
779         * modules/fchmodat (Depends-on): Add openat-die.
780         * modules/fchownat (Depends-on): Likewise.
781         * modules/linkat (Depends-on): Likewise.
782         * modules/renameat (Depends-on): Likewise.
783         * modules/openat (Depends-on): Add dirent.
784
785 2011-11-04  Jim Meyering  <meyering@redhat.com>
786
787         at-func*.c: fix comments
788         * lib/at-func2.c: Correct/improve first-line comment.
789         * lib/at-func.c: Correct grammar in first-line comment.
790
791 2011-11-04  Bruno Haible  <bruno@clisp.org>
792
793         New module 'mkdirat', split off from module 'openat'.
794         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
795         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
796         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
797         * modules/mkdirat: New file, extracted from modules/openat.
798         * modules/openat (Files): Remove lib/mkdirat.c.
799         (Depends-on): Remove mkdir.
800         (configure.ac): Remove AC_LIBOBJ of mkdirat.
801         (Include): Remove <sys/stat.h>.
802         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
803         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
804         tests/test-mkdir.h.
805         (Depends-on): Remove ignore-value.
806         (Makefile.am): Remove rules for test-mkdirat.
807         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
808         of module 'openat'.
809         * NEWS: Mention the change.
810
811 2011-11-04  Bruno Haible  <bruno@clisp.org>
812
813         closedir: Avoid warning on mingw.
814         * lib/closedir.c: Include <unistd.h>.
815
816 2011-11-04  Bruno Haible  <bruno@clisp.org>
817
818         New module 'fstatat', split off from module 'openat'.
819         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
820         defined.
821         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
822         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
823         gl_FUNC_FSTATAT.
824         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
825         * modules/fstatat: New file, extracted from modules/openat.
826         * modules/openat (Files): Remove lib/fstatat.c.
827         (Depends-on): Remove lstat.
828         (configure.ac): Remove AC_LIBOBJ of fstatat.
829         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
830         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
831         tests/test-lstat.h, tests/test-stat.h.
832         (Depends-on): Remove getcwd-lgpl.
833         (Makefile.am): Remove rules for test-fstatat.
834         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
835         of module 'openat'.
836         * NEWS: Mention the change.
837         * modules/getcwd (Depends-on): Add fstatat.
838         * modules/linkat (Depends-on): Likewise.
839         * modules/mkfifoat-tests (Depends-on): Likewise.
840         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
841
842 2011-11-03  Bruno Haible  <bruno@clisp.org>
843
844         New module 'unlinkat', split off from module 'openat'.
845         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
846         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
847         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
848         * modules/unlinkat: New file, extracted from modules/openat. Correct
849         the dependency conditions.
850         * modules/openat (Files): Remove lib/unlinkat.c.
851         (Depends-on): Remove rmdir, unlink.
852         (configure.ac): Remove AC_LIBOBJ of unlinkat.
853         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
854         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
855         tests/test-rmdir.h, tests/test-unlink.h.
856         (Depends-on): Remove unlinkdir.
857         (Makefile.am): Remove rules for test-unlinkat.
858         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
859         of module 'openat'.
860         * NEWS: Mention the change.
861         * modules/linkat-tests (Depends-on): Add unlinkat.
862         * modules/mkfifoat-tests (Depends-on): Likewise.
863         * modules/readlinkat-tests (Depends-on): Likewise.
864
865 2011-11-02  Bruno Haible  <bruno@clisp.org>
866
867         New module 'fchmodat', split off from module 'openat'.
868         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
869         defined.
870         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
872         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
873         * modules/fchmodat: New file, extracted from modules/openat.
874         * modules/openat (Files): Remove lib/fchmodat.c.
875         (configure.ac): Remove AC_LIBOBJ of fchmodat.
876         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
877         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
878         (Makefile.am): Remove rules for test-fchmodat.
879         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
880         of module 'openat'.
881         * NEWS: Mention the change.
882
883 2011-11-02  Jim Meyering  <meyering@redhat.com>
884
885         putenv: indent #definition of "environ" to placate cppi
886         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
887
888         gitlog-to-changelog: provide a ChangeLog-repair mechanism
889         Git logs are often treated as immutable, because editing them
890         changes the SHA1 checksums of all descendants.  Thus, errors in
891         git logs tend to stay there forever.  However, when we generate
892         a ChangeLog file -- typically for distribution -- from that git log,
893         we can actually make corrections in the generated file.  The key
894         lies in recording in machine-readable/applicable form the desired
895         corrections.  See --help for description and an example.
896         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
897         (usage): Describe it; alphabetize option descriptions.
898         (main): Honor the new option, carefully.
899
900 2011-11-01  Jim Meyering  <meyering@redhat.com>
901
902         gitlog-to-changelog: avoid an infloop
903         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
904         that ends up being empty.
905
906 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
907
908         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
909         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
910         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
911         contains (possibly-quoted) backslashes.  This should avoid
912         all-too-common shell bugs if COMPLICATED contains backslashes in
913         the "wrong" places.  Reported by David Evans in
914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
915         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
916         because we want ASCII ranges.  Is there some reason we don't use
917         the C locale everywhere in this script?
918         (func_module, top level): Avoid unwanted pathname expansion when
919         $repo_url_prefix or $repo_url_suffix_repl contain shell
920         metacharacters like '?' and '*'.
921
922 2011-11-01  Bruno Haible  <bruno@clisp.org>
923
924         fchownat: Improve description.
925         * modules/fchownat (Description): Add link to function.
926
927 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
928
929         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
930         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
932         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
933
934 2011-11-01  Bruno Haible  <bruno@clisp.org>
935
936         alignof: Avoid collision with stdalign module.
937         * lib/alignof.h (alignof): Remove macro.
938         * NEWS: Mention the change.
939         Reported by Paul Eggert.
940
941 2011-11-01  Bruno Haible  <bruno@clisp.org>
942
943         New module 'fchownat', split off from module 'openat'.
944         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
945         defined.
946         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
947         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
948         invoke gl_FUNC_FCHOWNAT.
949         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
950         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
951         * modules/fchownat: New file, extracted from modules/openat.
952         * modules/openat (Files): Remove lib/fchownat.c.
953         (Depends-on): Remove lchown.
954         (configure.ac): Remove AC_LIBOBJ of fchownat.
955         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
956         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
957         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
958         (Depends-on): Remove mgetgroups, usleep, stat-time.
959         (configure.ac): Remove test for getegid.
960         (Makefile.am): Remove rules for test-fchownat.
961         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
962         of module 'openat'.
963         * NEWS: Mention the change.
964
965 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
966
967         stdalign: port better to MSVC and to Sun C 5.11
968         This fixes some of the problems reported by Bruno Haible in
969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
970         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
971         shortcomings of MSVC and of Sun C 5.11.
972         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
973         around __declspec arg.
974         * modules/stdalign-tests (Files): Add tests/macros.h.
975         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
976         Include macros.h, for ASSERT.
977         (DECLARE_ALIGNED): Remove.
978         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
979         to catch bug), and to 1 if not (simplifies the rest of the code).
980         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
981         (CHECK_AUTO): Remove.
982         (CHECK_ALIGNED): Check only the alignment of the static vars,
983         since auto var alignment isn't supported by Sun C 5.11.
984         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
985         ASSERT failures are easier to diagnose.
986
987 2011-10-31  Bruno Haible  <bruno@clisp.org>
988
989         doc about some IRIX 5.3 problems.
990         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
991         on IRIX 5.3.
992         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
993         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
994         5.3.
995         * doc/posix-functions/grantpt.texi: Likewise.
996         * doc/posix-functions/unlockpt.texi: Likewise.
997         * doc/posix-functions/lgamma.texi: Likewise.
998         * doc/posix-functions/nextafter.texi: Likewise.
999         * doc/posix-functions/remainder.texi: Likewise.
1000         * doc/posix-functions/select.texi: Mention misplaced declaration on
1001         IRIX 5.3.
1002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1003
1004 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1005
1006         gitlog-to-changelog: fix git-log invocation.
1007         git-log mishandles date strings before 1970-01-01 UTC, and there is
1008         no use to specify --since=1970-01-01 by default anyway.
1009         * build-aux/gitlog-to-changelog: By default, when no --since option
1010         was given, do not specify explicit --since option to git-log.
1011
1012 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1013
1014         gitlog-to-changelog: new option --append-dot.
1015         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1016         first non-blank line of each commit message terminated with a dot.
1017
1018 2011-10-30  Bruno Haible  <bruno@clisp.org>
1019
1020         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1021         * lib/ffsl.h: Include <config.h>.
1022         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1023
1024 2011-10-30  Jim Meyering  <meyering@redhat.com>
1025
1026         GNUmakefile: reenable "make syntax-check" for most projects
1027         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1028         build-aux variable", "syntax-check" would do nothing but succeed with
1029         the "No version control files detected..." diagnostic (unless you
1030         happened to override _build-aux via cfg.mk).
1031         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1032         to precede inclusion of maint.mk.  Otherwise, these variables would
1033         be used undefined in any project that does not override the default.
1034
1035 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1036
1037         gitlog-to-changelog: treat a message with only blank lines as empty.
1038         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1039         trailing blank lines before the code that issues a warning about an
1040         empty commit message.
1041
1042 2011-10-30  Jim Meyering  <meyering@redhat.com>
1043
1044         test-parse-datetime.c: avoid new DST-related false positive test failure
1045         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1046         based on the time/date we'll convert, not the current time.
1047         Otherwise, the moment we cross a DST boundary like today's in
1048         Europe, (CEST to CET), that offset ends up being one hour off.
1049
1050 2011-10-27  Bruno Haible  <bruno@clisp.org>
1051
1052         fstat: Tweak documentation.
1053         * modules/fstat (Description): More precise description.
1054
1055 2011-10-27  Bruno Haible  <bruno@clisp.org>
1056
1057         Update documentation regarding 'largefile' module.
1058         * doc/posix-functions/fstat.texi: Tweak wording.
1059         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1060         problems with huge directories and/or small ino_t types.
1061         * doc/posix-functions/readdir.texi: Likewise.
1062         * doc/posix-functions/rewinddir.texi: Likewise.
1063
1064 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1065
1066         maint.mk: don't maintain a second build-aux variable.
1067         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1068         depends on GNUmakefile, which already maintains a cfg.mk
1069         overridable $(_build-aux) for projects with a non-standard
1070         build-aux directory location, although without the $(srcdir)
1071         prefix.  Use that variable consistently instead of introducing a
1072         second one.  Adjust all call sites.
1073
1074 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1075
1076         Add stdalign module and use it in other modules.
1077         This is based on a previous proposal by Bruno Haible
1078         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1079
1080         stdalign: new module
1081         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1082         * modules/stdalign: New files.
1083         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1084         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1085
1086         stdalign-tests: new module
1087         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1088
1089         argp: use stdalign
1090         * lib/argp-parse.c: Include <stdalign.h>.
1091         (alignof): Remove.
1092         * modules/argp (Depends-on): Add stdalign.
1093
1094         crypto libraries: use stdalign
1095         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1096         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1097         Do not include <stdlib.h> twice, in md4.c.
1098         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1099         because we are accessing a pointer's bit-pattern, not a size.
1100         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1101         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1102         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1103         * modules/crypto/sha512: Likewise.
1104
1105         sys_socket: use stdalign, not alignof
1106         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1107         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1108
1109 2011-10-27  Bruno Haible  <bruno@clisp.org>
1110
1111         raise test: Avoid a test failure on Linux/MIPS.
1112         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1113         because 99 is a valid signal on Linux/MIPS.
1114
1115 2011-10-27  Bruno Haible  <bruno@clisp.org>
1116
1117         nonblocking tests: Fix test failure on Linux/MIPS.
1118         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1119         Set to 270000.
1120
1121 2011-10-27  Bruno Haible  <bruno@clisp.org>
1122
1123         utimensat: Work around problem on Linux/hppa.
1124         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1125         values.
1126         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1127
1128 2011-10-25  Jim Meyering  <meyering@redhat.com>
1129
1130         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1131         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1132         after symbols like NULL, size_t, etc.
1133         Reported by Alfred M. Szmidt.
1134
1135         maint.mk: exempt ENODATA from a syntax-check rule
1136         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1137         from the sc_prohibit_always-defined_macros syntax-check rule.
1138         Add a comment.  See this for more details:
1139         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1140
1141 2011-10-23  Jim Meyering  <meyering@redhat.com>
1142
1143         fts: close parent dir FD before returning from post-traversal fts_read
1144         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1145         unlink A, even though an FD open on A remained.  This is suboptimal
1146         (holding a file descriptor open longer than needed), but otherwise not
1147         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1148         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1149         that represents a real problem: it causes the removal of A to fail
1150         with e.g., "rm: cannot remove `A': Device or resource busy"
1151
1152         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1153         directory file descriptors.  After completing the final, FTS_DP,
1154         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1155         cache, but then proceeded to add a new FD to it via the subsequent
1156         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1157         final file descriptor would be closed only via fts_close's call to
1158         fd_ring_clear.  Now, it is usually closed earlier, via the final
1159         FTS_DP-returning fts_read call.
1160         * lib/fts.c (restore_initial_cwd): New function, converted from
1161         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1162         Update callers.
1163         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1164         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1165
1166 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1167             Bruno Haible  <bruno@clisp.org>
1168             Jim Meyering  <jim@meyering.net>
1169
1170         readme-release: improve safety of release prep instructions.
1171         * README-release: Don't git pull all branches when only master
1172         is needed for the release process.
1173         Run make maintainer-clean before changing trees and merging.
1174         Don't try to run ./configure right after git pull in case files
1175         that influence the bootstrap process have changed, move the
1176         ./configure step to after running ./bootstrap.
1177         Don't bootstrap "one last time"... it's the first time!
1178
1179 2011-10-22  Bruno Haible  <bruno@clisp.org>
1180
1181         errno, strerror-override: Support for MSVC 10.
1182         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1183         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1184         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1185         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1186         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1187         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1188         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1189         Assign values compatible with MSVC 10.
1190         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1191         New macros.
1192         (GNULIB_defined_EWINSOCK): New macro.
1193         * lib/strerror-override.c (strerror_override): Update accordingly.
1194         * lib/strerror-override.h: Likewise.
1195         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1196         longer equal to the corresponding errno value.
1197         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1198
1199 2011-10-22  Bruno Haible  <bruno@clisp.org>
1200
1201         perror: Recognize when test program crashes.
1202         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1203         strerror, set gl_cv_func_perror_works to no.
1204         Reported by Daniel Richard G. <skunk@iskunk.org>.
1205
1206         perror: Fix indentation.
1207         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1208
1209 2011-10-22  Bruno Haible  <bruno@clisp.org>
1210
1211         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1212         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1213         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1214         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1215         functions, not as a macro.
1216         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1217         macros.
1218         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1219         absence of macro.
1220         Suggested by Eric Blake.
1221         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1222
1223 2011-10-21  Bruno Haible  <bruno@clisp.org>
1224
1225         relocatable-prog-wrapper: Don't leave object files behind.
1226         * build-aux/install-reloc: Re-synchronize list of .o files to be
1227         removed with list of compilation units.
1228
1229 2011-10-20  Bruno Haible  <bruno@clisp.org>
1230
1231         openpty, posix_openpt: Remove code duplication.
1232         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1233         * lib/openpty.c: Include <stdlib.h>.
1234         (openpty): Use posix_openpt on all platforms except IRIX.
1235         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1236
1237 2011-10-20  Bruno Haible  <bruno@clisp.org>
1238
1239         unlockpt: Detect invalid argument.
1240         * lib/unlockpt.c: Include <fcntl.h>.
1241         (unlockpt): Check whether fd is valid, using fcntl().
1242         * modules/unlockpt (Depends-on): Add fcntl-h.
1243
1244 2011-10-20  Bruno Haible  <bruno@clisp.org>
1245
1246         openpty: Avoid compilation error on AIX 6.1.
1247         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1248
1249 2011-10-20  Bruno Haible  <bruno@clisp.org>
1250
1251         posix_openpt: Support for OpenBSD.
1252         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1253         (posix_openpt) [OpenBSD]: New code.
1254         * lib/grantpt.c: Include <fcntl.h>.
1255         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1256         * modules/grantpt (Depends-on): Add fcntl-h.
1257
1258 2011-10-20  Bruno Haible  <bruno@clisp.org>
1259
1260         posix_openpt test: Coding style.
1261         * tests/test-posix_openpt.c: Use GNU coding style.
1262
1263 2011-10-20  Bruno Haible  <bruno@clisp.org>
1264
1265         grantpt: Support --avoid=pt_chown.
1266         * modules/grantpt (Files): Add lib/pty-private.h.
1267
1268 2011-10-20  Bruno Haible  <bruno@clisp.org>
1269
1270         posix_openpt: Fix autoconf macro.
1271         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1272         unneeded check for _getpty.
1273
1274 2011-10-20  Bruno Haible  <bruno@clisp.org>
1275
1276         openpty: Update comments.
1277         * lib/openpty.c: Add comments about Minix.
1278
1279 2011-10-19  Eric Blake  <eblake@redhat.com>
1280
1281         openpty: relax license
1282         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1283
1284         pt_chown: use configmake to simplify build
1285         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1286
1287         ptsname and others: relax license
1288         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1289         * modules/unlockpt (License): Likewise.
1290         * modules/pt_chown (License): Likewise.
1291         * modules/ptsname (License): Likewise.
1292         * modules/ttyname_r (License): Likewise.
1293
1294 2011-10-19  Jim Meyering  <meyering@redhat.com>
1295
1296         posix_openpt: remove spurious #endif
1297         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1298
1299 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1300
1301         maint.mk: Respect $(build_aux) in web-manual rule.
1302         * top/maint.mk (web-manual): Find gen-announce script in user's
1303         $(build_aux) directory instead of hard-coding 'build-aux'.
1304
1305 2011-10-19  Bruno Haible  <bruno@clisp.org>
1306
1307         posix_openpt: Fix compilation error.
1308         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1309         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1310         Mention the openpty module as an alternative.
1311
1312 2011-10-19  Bruno Haible  <bruno@clisp.org>
1313
1314         Support for old NeXTstep 3.3 frexp().
1315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1316         execution time of the test to 5 seconds.
1317         Reported by Daniel Richard G. <skunk@iskunk.org>.
1318
1319 2011-10-19  Bruno Haible  <bruno@clisp.org>
1320
1321         Support for old NeXTstep 3.3 sed.
1322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1323         part, use /.../, not \|...|. Escape periods in the header file name.
1324         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1325         Reported by Daniel Richard G. <skunk@iskunk.org>.
1326
1327 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1328
1329         Support for old NeXTstep 3.3 gcc.
1330         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1331         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1332         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1333         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1334         * lib/regex.h (_Restrict_arr_): Likewise.
1335         * lib/regex_internal.h (re_token_t): Likewise.
1336         * lib/regexec.c (check_node_accept_bytes): Likewise.
1337         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1338
1339 2011-10-18  Eric Blake  <eblake@redhat.com>
1340
1341         posix_openpt: new module
1342         * modules/posix_openpt: New module.
1343         * m4/posix_openpt.m4: New file.
1344         * lib/posix_openpt.c: Likewise.
1345         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1346         (gl_STDLIB_H_DEFAULTS): Set defaults.
1347         * modules/stdlib (Makefile.am): Substitute macros.
1348         * lib/stdlib.in.h (posix_openpt): Declare.
1349         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1350         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1351         * modules/posix_openpt-tests: New test module.
1352         * tests/test-posix_openpt.c: New test.
1353
1354 2011-10-15  Bruno Haible  <bruno@clisp.org>
1355
1356         xstrtoll: Fix compilation failure.
1357         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1358         from lib/strtol.c.
1359         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1360         some platforms.
1361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1362
1363 2011-10-15  Bruno Haible  <bruno@clisp.org>
1364
1365         vasnprintf: Optimize bit search operation.
1366         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1368         gl_DOUBLE_EXPONENT_LOCATION.
1369         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1370         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1371         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1372         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1373         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1374         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1375         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1376         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1377         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1378
1379 2011-10-15  Bruno Haible  <bruno@clisp.org>
1380
1381         vasnprintf: Fix comments.
1382         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1383
1384 2011-10-14  Bruno Haible  <bruno@clisp.org>
1385
1386         Tests for module 'integer_length_ll'.
1387         * modules/integer_length_ll-tests: New file.
1388         * tests/test-integer_length_ll.c: New file.
1389
1390         New module 'integer_length_ll'.
1391         * lib/integer_length_ll.c: New file.
1392         * modules/integer_length_ll: New file.
1393
1394 2011-10-14  Bruno Haible  <bruno@clisp.org>
1395
1396         Tests for module 'integer_length_l'.
1397         * modules/integer_length_l-tests: New file.
1398         * tests/test-integer_length_l.c: New file.
1399
1400         New module 'integer_length_l'.
1401         * lib/integer_length_l.c: New file.
1402         * modules/integer_length_l: New file.
1403
1404 2011-10-14  Bruno Haible  <bruno@clisp.org>
1405
1406         Tests for module 'integer_length'.
1407         * modules/integer_length-tests: New file.
1408         * tests/test-integer_length.c: New file.
1409
1410         New module 'integer_length'.
1411         * lib/integer_length.h: New file.
1412         * lib/integer_length.c: New file.
1413         * modules/integer_length: New file.
1414
1415 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1416
1417         popen: Fix dependency conditions.
1418         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1419
1420 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1421
1422         perror: Fix autoconf test.
1423         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1424         <stdlib.h> and <string.h>.
1425
1426 2011-10-14  Bruno Haible  <bruno@clisp.org>
1427
1428         ffsl: Optimize on 64-bit platforms.
1429         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1430         unrolling.
1431
1432 2011-10-13  Bruno Haible  <bruno@clisp.org>
1433
1434         ffsl: Optimize on 32-bit platforms.
1435         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1436         use ffs() without a loop.
1437
1438         ffsl, ffsll: Optimize for GCC.
1439         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1440         * lib/ffsl.c (GCC_BUILTIN): New macro.
1441         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1442
1443 2011-10-13  Bruno Haible  <bruno@clisp.org>
1444
1445         ffs, bcopy, memset: Support symbol renaming via config.h.
1446         * lib/ffs.c: Include <config.h>.
1447         * lib/bcopy.c: Likewise.
1448         * lib/memset.c: Likewise.
1449
1450 2011-10-10  Bruno Haible  <bruno@clisp.org>
1451
1452         atanl: Simplify for platforms where 'long double' == 'double'.
1453         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1454         alternative implementation.
1455         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1456         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1457         * modules/atanl (Depends-on): Add atan. Update conditions.
1458
1459 2011-10-10  Bruno Haible  <bruno@clisp.org>
1460
1461         acosl: Simplify for platforms where 'long double' == 'double'.
1462         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1463         alternative implementation.
1464         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1465         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1466         * modules/acosl (Depends-on): Add acos. Update conditions.
1467
1468 2011-10-10  Bruno Haible  <bruno@clisp.org>
1469
1470         asinl: Simplify for platforms where 'long double' == 'double'.
1471         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1472         alternative implementation.
1473         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1474         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1475         * modules/asinl (Depends-on): Add asin. Update conditions.
1476
1477 2011-10-10  Bruno Haible  <bruno@clisp.org>
1478
1479         tanl: Simplify for platforms where 'long double' == 'double'.
1480         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1481         implementation.
1482         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1483         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1484         * modules/tanl (Depends-on): Add tan. Update conditions.
1485         (configure.ac): Don't compile trigl.c if
1486         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1487
1488 2011-10-10  Bruno Haible  <bruno@clisp.org>
1489
1490         cosl: Simplify for platforms where 'long double' == 'double'.
1491         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1492         implementation.
1493         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1494         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1495         * modules/cosl (Depends-on): Add cos. Update conditions.
1496         (configure.ac): Don't compile sincosl.c and trigl.c if
1497         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1498
1499 2011-10-10  Bruno Haible  <bruno@clisp.org>
1500
1501         sinl: Simplify for platforms where 'long double' == 'double'.
1502         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1503         implementation.
1504         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1505         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1506         * modules/sinl (Depends-on): Add sin. Update conditions.
1507         (configure.ac): Don't compile sincosl.c and trigl.c if
1508         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1509
1510 2011-10-10  Bruno Haible  <bruno@clisp.org>
1511
1512         logl: Simplify for platforms where 'long double' == 'double'.
1513         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1514         implementation.
1515         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1516         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1517         * modules/logl (Depends-on): Add log. Update conditions.
1518
1519 2011-10-10  Bruno Haible  <bruno@clisp.org>
1520
1521         expl: Simplify for platforms where 'long double' == 'double'.
1522         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1523         implementation.
1524         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1525         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1526         * modules/expl (Depends-on): Add exp. Update conditions.
1527
1528 2011-10-10  Bruno Haible  <bruno@clisp.org>
1529
1530         sqrtl: Simplify for platforms where 'long double' == 'double'.
1531         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1532         alternative implementation.
1533         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1534         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1535         * modules/sqrtl (Depends-on): Update conditions.
1536
1537 2011-10-10  Bruno Haible  <bruno@clisp.org>
1538
1539         ldexpl: Simplify for platforms where 'long double' == 'double'.
1540         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1541         alternative implementation.
1542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1543         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1544         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1545
1546 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1547
1548         ffsll: set correct witness
1549         * modules/ffsll (configure.ac): Fix typo.
1550
1551 2011-10-10  Bruno Haible  <bruno@clisp.org>
1552
1553         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1554         * lib/printf-frexpl.c: Include <config.h>.
1555         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1556         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1557         second time.
1558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1559         gl_LONG_DOUBLE_VS_DOUBLE.
1560         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1561         conditions.
1562
1563 2011-10-10  Bruno Haible  <bruno@clisp.org>
1564
1565         frexpl: Simplify for platforms where 'long double' == 'double'.
1566         * lib/frexpl.c: Include <config.h>.
1567         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1568         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1569         time.
1570         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1571         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1572         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1573         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1574         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1575         conditions.
1576
1577 2011-10-10  Jim Meyering  <meyering@redhat.com>
1578
1579         test-renameat: don't leave behind a temporary file
1580         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1581           ERROR: files left in build directory after distclean:
1582           ./gltests/test-renameat.too
1583           make[1]: *** [distcleancheck] Error 1
1584         Reported by Tom G. Christensen.
1585
1586 2011-10-09  Bruno Haible  <bruno@clisp.org>
1587
1588         rint: Determine RINT_LIBM correctly on AIX 7.
1589         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1590         directly, not only through a function pointer. Also accept an optional
1591         4th argument with extra code.
1592         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1593         rintf() call by gcc when optimizing.
1594
1595         mathfunc.m4: Refactor.
1596         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1597         m4 variable.
1598
1599 2011-10-09  Bruno Haible  <bruno@clisp.org>
1600
1601         rintl: Simplify for platforms where 'long double' == 'double'.
1602         * lib/rintl.c: Include <config.h>.
1603         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1604         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1605         time.
1606         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1607         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1608         * modules/rintl (Depends-on): Add rint. Update conditions.
1609
1610 2011-10-09  Bruno Haible  <bruno@clisp.org>
1611
1612         roundl: Simplify for platforms where 'long double' == 'double'.
1613         * lib/roundl.c: Include <config.h>.
1614         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1615         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1616         time.
1617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1618         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1619         * modules/roundl (Depends-on): Add round. Update conditions.
1620
1621 2011-10-09  Bruno Haible  <bruno@clisp.org>
1622
1623         truncl: Simplify for platforms where 'long double' == 'double'.
1624         * lib/truncl.c: Include <config.h>.
1625         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1626         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1627         time.
1628         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1629         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1630         * modules/truncl (Depends-on): Add trunc. Update conditions.
1631
1632 2011-10-09  Bruno Haible  <bruno@clisp.org>
1633
1634         ceill: Simplify for platforms where 'long double' == 'double'.
1635         * lib/ceill.c: Include <config.h>.
1636         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1637         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1638         time.
1639         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1640         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1641         * modules/ceill (Depends-on): Add ceil. Update conditions.
1642
1643 2011-10-09  Bruno Haible  <bruno@clisp.org>
1644
1645         floorl: Simplify for platforms where 'long double' == 'double'.
1646         * lib/floorl.c: Include <config.h>.
1647         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1648         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1649         time.
1650         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1651         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1652         * modules/floorl (Depends-on): Add floor. Update conditions.
1653
1654 2011-10-09  Bruno Haible  <bruno@clisp.org>
1655
1656         rint: Fix ordering constraints.
1657         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1658         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1659         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1660
1661 2011-10-09  Bruno Haible  <bruno@clisp.org>
1662
1663         copysignl: Simplify for platforms where 'long double' == 'double'.
1664         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1665         alternative.
1666         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1667         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1668         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1669
1670 2011-10-09  Bruno Haible  <bruno@clisp.org>
1671
1672         Tests for module 'rintl'.
1673         * modules/rintl-tests: New file.
1674         * tests/test-rintl.c: New file.
1675
1676         New module 'rintl'.
1677         * lib/math.in.h (rintl): New declaration.
1678         * lib/rintl.c: New file.
1679         * m4/rintl.m4: New file.
1680         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1682         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1683         * modules/rintl: New file.
1684         * tests/test-math-c++.cc: Check the declaration of rintl.
1685         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1686         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1687         * doc/posix-functions/rintl.texi: Mention the new module.
1688
1689 2011-10-09  Bruno Haible  <bruno@clisp.org>
1690
1691         Tests for module 'rintf'.
1692         * modules/rintf-tests: New file.
1693         * tests/test-rintf.c: New file.
1694
1695         New module 'rintf'.
1696         * lib/math.in.h (rintf): New declaration.
1697         * lib/rintf.c: New file.
1698         * m4/rintf.m4: New file.
1699         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1701         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1702         * modules/rintf: New file.
1703         * tests/test-math-c++.cc: Check the declaration of rintf.
1704         * doc/posix-functions/rintf.texi: Mention the new module.
1705
1706 2011-10-09  Bruno Haible  <bruno@clisp.org>
1707
1708         rint: Support for MSVC.
1709         * lib/math.in.h (rint): New declaration.
1710         * lib/rint.c: New file.
1711         * m4/rint.m4: New file.
1712         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1714         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1715         * modules/rint (Description): Fix.
1716         (Files): Add lib/rint.c, m4/rint.m4.
1717         (Depends-on): Add math.
1718         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1719         gl_MATH_MODULE_INDICATOR.
1720         * tests/test-math-c++.cc: Check the declaration of rint.
1721         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1722         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1723         * doc/posix-functions/rint.texi: Mention the replacement provided by
1724         the module.
1725
1726         rint tests: More tests.
1727         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1728         minus-zero.h, infinity.h, nan.h.
1729         (main): Skip the test if the current rounding mode is not standard. Add
1730         tests for negative numbers, minus zero, infinity, NaN.
1731         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1732         tests/nan.h.
1733         (Depends-on): Add isnand-nolibm.
1734
1735 2011-10-09  Bruno Haible  <bruno@clisp.org>
1736
1737         Tests for module 'copysignl'.
1738         * modules/copysignl-tests: New file.
1739         * tests/test-copysignl.c: New file.
1740
1741         New module 'copysignl'.
1742         * lib/math.in.h (copysignl): New declaration.
1743         * lib/copysignl.c: New file.
1744         * m4/copysignl.m4: New file.
1745         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1747         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1748         HAVE_COPYSIGNL.
1749         * modules/copysignl: New file.
1750         * tests/test-math-c++.cc: Check the declaration of copysignl.
1751         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1752         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1753         * doc/posix-functions/copysignl.texi: Mention the new module.
1754
1755 2011-10-09  Bruno Haible  <bruno@clisp.org>
1756
1757         Tests for module 'copysignf'.
1758         * modules/copysignf-tests: New file.
1759         * tests/test-copysignf.c: New file.
1760
1761         New module 'copysignf'.
1762         * lib/math.in.h (copysignf): New declaration.
1763         * lib/copysignf.c: New file.
1764         * m4/copysignf.m4: New file.
1765         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1767         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1768         HAVE_COPYSIGNF.
1769         * modules/copysignf: New file.
1770         * tests/test-math-c++.cc: Check the declaration of copysignf.
1771         * doc/posix-functions/copysignf.texi: Mention the new module.
1772
1773 2011-10-09  Bruno Haible  <bruno@clisp.org>
1774
1775         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1776         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1777         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1778         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1779         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1780         gl_SIGNAL_H_DEFAULTS.
1781
1782 2011-10-09  Bruno Haible  <bruno@clisp.org>
1783
1784         poll: Make macro safer.
1785         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1786         ac_cv_header_poll_h is not set.
1787
1788 2011-10-09  Bruno Haible  <bruno@clisp.org>
1789
1790         copysign: Provide replacement.
1791         * lib/math.in.h (copysign): New declaration.
1792         * lib/copysign.c: New file.
1793         * m4/copysign.m4: New file.
1794         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1796         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1797         HAVE_COPYSIGN.
1798         * modules/copysign (Description): Clarify.
1799         (Files): Add lib/copysign.c, m4/copysign.m4.
1800         (Depends-on): Add math, signbit.
1801         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1802         gl_MATH_MODULE_INDICATOR.
1803         * tests/test-math-c++.cc: Check the declaration of copysign.
1804         * doc/posix-functions/copysign.texi: Mention the effects of the module
1805         on Minix and MSVC.
1806
1807 2011-10-09  Bruno Haible  <bruno@clisp.org>
1808
1809         isinf: Ensure macro on AIX 5.1.
1810         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1811         macro.
1812         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1813
1814 2011-10-09  Bruno Haible  <bruno@clisp.org>
1815
1816         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1817         * modules/snprintf-posix-tests (configure.ac): Require
1818         gl_LONG_DOUBLE_VS_DOUBLE.
1819         * modules/sprintf-posix-tests (configure.ac): Likewise.
1820         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1821         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1822         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1823         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1824         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1825         tests on platforms where 'long double' is the same as 'double'.
1826         * tests/test-sprintf-posix.h (test_function): Likewise.
1827         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1828         * tests/test-vasprintf-posix.c (test_function): Likewise.
1829
1830         *printf: Fix for platforms where 'long double' == 'double'.
1831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1832         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1833         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1834         * modules/fprintf-posix (Files): Likewise.
1835         * modules/obstack-printf-posix (Files): Likewise.
1836         * modules/snprintf-posix (Files): Likewise.
1837         * modules/sprintf-posix (Files): Likewise.
1838         * modules/vasnprintf (Files): Likewise.
1839         * modules/vasnprintf-posix (Files): Likewise.
1840         * modules/vasprintf-posix (Files): Likewise.
1841         * modules/vdprintf-posix (Files): Likewise.
1842         * modules/vfprintf-posix (Files): Likewise.
1843         * modules/vsnprintf-posix (Files): Likewise.
1844         * modules/vsprintf-posix (Files): Likewise.
1845         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1846         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1847         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1848         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1849         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1850         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1851         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1852
1853         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1854         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1855         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1856         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1857         'long double'.
1858         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1859
1860         isinf: Fix for platforms where 'long double' == 'double'.
1861         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1862         Don't blindly assume 80-bit 'long double'.
1863
1864         isfinite: Fix for platforms where 'long double' == 'double'.
1865         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1866         Don't blindly assume 80-bit 'long double'.
1867
1868         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1869         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1870         * modules/isfinite-tests (configure.ac): Require
1871         gl_LONG_DOUBLE_VS_DOUBLE.
1872         * modules/isinf-tests (configure.ac): Likewise.
1873         * modules/isnan-tests (configure.ac): Likewise.
1874         * modules/isnanl-tests (configure.ac): Likewise.
1875         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1876         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1877         tests on platforms where 'long double' is the same as 'double'.
1878         * tests/test-isinf.c (test_isinfl): Likewise.
1879         * tests/test-isnan.c (test_long_double): Likewise.
1880         * tests/test-isnanl.h (main): Likewise.
1881
1882 2011-10-08  Bruno Haible  <bruno@clisp.org>
1883
1884         Tests for module 'tanhf'.
1885         * modules/tanhf-tests: New file.
1886         * tests/test-tanhf.c: New file.
1887
1888         New module 'tanhf'.
1889         * lib/math.in.h (tanhf): New declaration.
1890         * lib/tanhf.c: New file.
1891         * m4/tanhf.m4: New file.
1892         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1894         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1895         * modules/tanhf: New file.
1896         * tests/test-math-c++.cc: Check the declaration of tanhf.
1897         * doc/posix-functions/tanhf.texi: Mention the new module.
1898
1899         tanh: Use a .m4 file.
1900         * m4/tanh.m4: New file.
1901         * modules/tanh (Files): Add it.
1902         (configure.ac): Just invoke gl_FUNC_TANH.
1903
1904 2011-10-08  Bruno Haible  <bruno@clisp.org>
1905
1906         Tests for module 'coshf'.
1907         * modules/coshf-tests: New file.
1908         * tests/test-coshf.c: New file.
1909
1910         New module 'coshf'.
1911         * lib/math.in.h (coshf): New declaration.
1912         * lib/coshf.c: New file.
1913         * m4/coshf.m4: New file.
1914         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1916         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1917         * modules/coshf: New file.
1918         * tests/test-math-c++.cc: Check the declaration of coshf.
1919         * doc/posix-functions/coshf.texi: Mention the new module.
1920
1921         cosh: Use a .m4 file.
1922         * m4/cosh.m4: New file.
1923         * modules/cosh (Files): Add it.
1924         (configure.ac): Just invoke gl_FUNC_COSH.
1925
1926 2011-10-08  Bruno Haible  <bruno@clisp.org>
1927
1928         Tests for module 'sinhf'.
1929         * modules/sinhf-tests: New file.
1930         * tests/test-sinhf.c: New file.
1931
1932         New module 'sinhf'.
1933         * lib/math.in.h (sinhf): New declaration.
1934         * lib/sinhf.c: New file.
1935         * m4/sinhf.m4: New file.
1936         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1938         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1939         * modules/sinhf: New file.
1940         * tests/test-math-c++.cc: Check the declaration of sinhf.
1941         * doc/posix-functions/sinhf.texi: Mention the new module.
1942
1943         sinh: Use a .m4 file.
1944         * m4/sinh.m4: New file.
1945         * modules/sinh (Files): Add it.
1946         (configure.ac): Just invoke gl_FUNC_SINH.
1947
1948 2011-10-08  Bruno Haible  <bruno@clisp.org>
1949
1950         Tests for module 'atan2f'.
1951         * modules/atan2f-tests: New file.
1952         * tests/test-atan2f.c: New file.
1953
1954         New module 'atan2f'.
1955         * lib/math.in.h (atan2f): New declaration.
1956         * lib/atan2f.c: New file.
1957         * m4/atan2f.m4: New file.
1958         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1960         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1961         * modules/atan2f: New file.
1962         * tests/test-math-c++.cc: Check the declaration of atan2f.
1963         * doc/posix-functions/atan2f.texi: Mention the new module.
1964
1965         atan2: Use a .m4 file.
1966         * m4/atan2.m4: New file.
1967         * modules/atan2 (Files): Add it.
1968         (configure.ac): Just invoke gl_FUNC_ATAN2.
1969
1970 2011-10-08  Bruno Haible  <bruno@clisp.org>
1971
1972         Tests for module 'atanf'.
1973         * modules/atanf-tests: New file.
1974         * tests/test-atanf.c: New file.
1975
1976         New module 'atanf'.
1977         * lib/math.in.h (atanf): New declaration.
1978         * lib/atanf.c: New file.
1979         * m4/atanf.m4: New file.
1980         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1982         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1983         * modules/atanf: New file.
1984         * tests/test-math-c++.cc: Check the declaration of atanf.
1985         * doc/posix-functions/atanf.texi: Mention the new module.
1986
1987         atan: Use a .m4 file.
1988         * m4/atan.m4: New file.
1989         * modules/atan (Files): Add it.
1990         (configure.ac): Just invoke gl_FUNC_ATAN.
1991
1992 2011-10-08  Bruno Haible  <bruno@clisp.org>
1993
1994         Tests for module 'acosf'.
1995         * modules/acosf-tests: New file.
1996         * tests/test-acosf.c: New file.
1997
1998         New module 'acosf'.
1999         * lib/math.in.h (acosf): New declaration.
2000         * lib/acosf.c: New file.
2001         * m4/acosf.m4: New file.
2002         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2004         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2005         * modules/acosf: New file.
2006         * tests/test-math-c++.cc: Check the declaration of acosf.
2007         * doc/posix-functions/acosf.texi: Mention the new module.
2008
2009         acos: Use a .m4 file.
2010         * m4/acos.m4: New file.
2011         * modules/acos (Files): Add it.
2012         (configure.ac): Just invoke gl_FUNC_ACOS.
2013
2014 2011-10-08  Bruno Haible  <bruno@clisp.org>
2015
2016         Tests for module 'asinf'.
2017         * modules/asinf-tests: New file.
2018         * tests/test-asinf.c: New file.
2019
2020         New module 'asinf'.
2021         * lib/math.in.h (asinf): New declaration.
2022         * lib/asinf.c: New file.
2023         * m4/asinf.m4: New file.
2024         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2026         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2027         * modules/asinf: New file.
2028         * tests/test-math-c++.cc: Check the declaration of asinf.
2029         * doc/posix-functions/asinf.texi: Mention the new module.
2030
2031         asin: Use a .m4 file.
2032         * m4/asin.m4: New file.
2033         * modules/asin (Files): Add it.
2034         (configure.ac): Just invoke gl_FUNC_ASIN.
2035
2036 2011-10-08  Bruno Haible  <bruno@clisp.org>
2037
2038         Tests for module 'tanf'.
2039         * modules/tanf-tests: New file.
2040         * tests/test-tanf.c: New file.
2041
2042         New module 'tanf'.
2043         * lib/math.in.h (tanf): New declaration.
2044         * lib/tanf.c: New file.
2045         * m4/tanf.m4: New file.
2046         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2048         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2049         * modules/tanf: New file.
2050         * tests/test-math-c++.cc: Check the declaration of tanf.
2051         * doc/posix-functions/tanf.texi: Mention the new module.
2052
2053         tan: Use a .m4 file.
2054         * m4/tan.m4: New file.
2055         * modules/tan (Files): Add it.
2056         (configure.ac): Just invoke gl_FUNC_TAN.
2057
2058 2011-10-08  Bruno Haible  <bruno@clisp.org>
2059
2060         Tests for module 'cosf'.
2061         * modules/cosf-tests: New file.
2062         * tests/test-cosf.c: New file.
2063
2064         New module 'cosf'.
2065         * lib/math.in.h (cosf): New declaration.
2066         * lib/cosf.c: New file.
2067         * m4/cosf.m4: New file.
2068         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2070         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2071         * modules/cosf: New file.
2072         * tests/test-math-c++.cc: Check the declaration of cosf.
2073         * doc/posix-functions/cosf.texi: Mention the new module.
2074
2075         cos: Use a .m4 file.
2076         * m4/cos.m4: New file.
2077         * modules/cos (Files): Add it.
2078         (configure.ac): Just invoke gl_FUNC_COS.
2079
2080 2011-10-08  Bruno Haible  <bruno@clisp.org>
2081
2082         Tests for module 'sinf'.
2083         * modules/sinf-tests: New file.
2084         * tests/test-sinf.c: New file.
2085
2086         New module 'sinf'.
2087         * lib/math.in.h (sinf): New declaration.
2088         * lib/sinf.c: New file.
2089         * m4/sinf.m4: New file.
2090         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2092         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2093         * modules/sinf: New file.
2094         * tests/test-math-c++.cc: Check the declaration of sinf.
2095         * doc/posix-functions/sinf.texi: Mention the new module.
2096
2097         sin: Use a .m4 file.
2098         * m4/sin.m4: New file.
2099         * modules/sin (Files): Add it.
2100         (configure.ac): Just invoke gl_FUNC_SIN.
2101
2102 2011-10-08  Bruno Haible  <bruno@clisp.org>
2103
2104         Tests for module 'powf'.
2105         * modules/powf-tests: New file.
2106         * tests/test-powf.c: New file.
2107
2108         New module 'powf'.
2109         * lib/math.in.h (powf): New declaration.
2110         * lib/powf.c: New file.
2111         * m4/powf.m4: New file.
2112         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2114         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2115         * modules/powf: New file.
2116         * tests/test-math-c++.cc: Check the declaration of powf.
2117         * doc/posix-functions/powf.texi: Mention the new module.
2118
2119         pow: Use a .m4 file.
2120         * m4/pow.m4: New file.
2121         * modules/pow (Files): Add it.
2122         (configure.ac): Just invoke gl_FUNC_POW.
2123
2124 2011-10-08  Bruno Haible  <bruno@clisp.org>
2125
2126         Tests for module 'log10f'.
2127         * modules/log10f-tests: New file.
2128         * tests/test-log10f.c: New file.
2129
2130         New module 'log10f'.
2131         * lib/math.in.h (log10f): New declaration.
2132         * lib/log10f.c: New file.
2133         * m4/log10f.m4: New file.
2134         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2136         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2137         * modules/log10f: New file.
2138         * tests/test-math-c++.cc: Check the declaration of log10f.
2139         * doc/posix-functions/log10f.texi: Mention the new module.
2140
2141         log10: Use a .m4 file.
2142         * m4/log10.m4: New file.
2143         * modules/log10 (Files): Add it.
2144         (configure.ac): Just invoke gl_FUNC_LOG10.
2145
2146 2011-10-08  Bruno Haible  <bruno@clisp.org>
2147
2148         Tests for module 'logf'.
2149         * modules/logf-tests: New file.
2150         * tests/test-logf.c: New file.
2151
2152         New module 'logf'.
2153         * lib/math.in.h (logf): New declaration.
2154         * lib/logf.c: New file.
2155         * m4/logf.m4: New file.
2156         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2158         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2159         * modules/logf: New file.
2160         * tests/test-math-c++.cc: Check the declaration of logf.
2161         * doc/posix-functions/logf.texi: Mention the new module.
2162
2163         log: Use a .m4 file.
2164         * m4/log.m4: New file.
2165         * modules/log (Files): Add it.
2166         (configure.ac): Just invoke gl_FUNC_LOG.
2167
2168 2011-10-08  Bruno Haible  <bruno@clisp.org>
2169
2170         Tests for module 'expf'.
2171         * modules/expf-tests: New file.
2172         * tests/test-expf.c: New file.
2173
2174         New module 'expf'.
2175         * lib/math.in.h (expf): New declaration.
2176         * lib/expf.c: New file.
2177         * m4/expf.m4: New file.
2178         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2180         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2181         * modules/expf: New file.
2182         * tests/test-math-c++.cc: Check the declaration of expf.
2183         * doc/posix-functions/expf.texi: Mention the new module.
2184
2185         exp: Use a .m4 file.
2186         * m4/exp.m4: New file.
2187         * modules/exp (Files): Add it.
2188         (configure.ac): Just invoke gl_FUNC_EXP.
2189
2190 2011-10-08  Bruno Haible  <bruno@clisp.org>
2191
2192         Tests for module 'sqrtf'.
2193         * modules/sqrtf-tests: New file.
2194         * tests/test-sqrtf.c: New file.
2195
2196         New module 'sqrtf'.
2197         * lib/math.in.h (sqrtf): New declaration.
2198         * lib/sqrtf.c: New file.
2199         * m4/sqrtf.m4: New file.
2200         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2202         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2203         * modules/sqrtf: New file.
2204         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2205         * doc/posix-functions/sqrtf.texi: Mention the new module.
2206
2207 2011-10-08  Bruno Haible  <bruno@clisp.org>
2208
2209         Tests: Avoid link failures w.r.t. libintl.
2210         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2211         $(LIBINTL).
2212         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2213         $(LIBINTL).
2214         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2215         against $(LIBINTL).
2216         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2217         $(LIBINTL).
2218         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2219         $(LIBINTL).
2220         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2221
2222 2011-10-08  Bruno Haible  <bruno@clisp.org>
2223
2224         pow tests: Defeat compiler optimizations.
2225         * tests/test-pow.c (main): Assign arguments to x and y before use.
2226
2227 2011-10-08  Bruno Haible  <bruno@clisp.org>
2228
2229         gnulib-tool: Improve last commit.
2230         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2231         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2232         ignore dependencies that are not among the modules list.
2233
2234 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2235
2236         gnulib-tool: don't follow dependencies to avoided modules
2237         This fixes a bug that is related to the previous one.
2238         * gnulib-tool (func_modules_transitive_closure)
2239         (func_emit_autoconf_snippets):
2240         Check whether a dependency is acceptable before using it.
2241         (--extract-dependencies): Report an error if --avoid is also used,
2242         since this combination of options is not yet supported.
2243
2244         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2245         Problem reported by Peter Dyballa in
2246         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2247         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2248         when echoing "$condition".
2249
2250 2011-10-07  Bruno Haible  <bruno@clisp.org>
2251
2252         Fix documentation about math functions on MacOS X.
2253         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2254         MacOS X 10.5.
2255         * doc/posix-functions/fdim.texi: Likewise.
2256         * doc/posix-functions/feclearexcept.texi: Likewise.
2257         * doc/posix-functions/fegetenv.texi: Likewise.
2258         * doc/posix-functions/fegetround.texi: Likewise.
2259         * doc/posix-functions/feholdexcept.texi: Likewise.
2260         * doc/posix-functions/feraiseexcept.texi: Likewise.
2261         * doc/posix-functions/fesetenv.texi: Likewise.
2262         * doc/posix-functions/fesetround.texi: Likewise.
2263         * doc/posix-functions/fetestexcept.texi: Likewise.
2264         * doc/posix-functions/feupdateenv.texi: Likewise.
2265         * doc/posix-functions/fmax.texi: Likewise.
2266         * doc/posix-functions/fmin.texi: Likewise.
2267         * doc/posix-functions/log2.texi: Likewise.
2268         * doc/posix-functions/modff.texi: Likewise.
2269         * doc/posix-functions/nan.texi: Likewise.
2270         * doc/posix-functions/nanf.texi: Likewise.
2271         * doc/posix-functions/nextafterf.texi: Likewise.
2272         * doc/posix-functions/remquo.texi: Likewise.
2273
2274 2011-10-07  Bruno Haible  <bruno@clisp.org>
2275
2276         modff: Drop assumption about library that defines modff.
2277         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2278         AC_CHECK_FUNCS.
2279         * modules/modff (Files): Add m4/mathfunc.m4.
2280
2281 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2282
2283         raise tests: Avoid a GCC warning.
2284         * tests/test-raise.c (handler): Use _Noreturn.
2285
2286 2011-10-07  Bruno Haible  <bruno@clisp.org>
2287
2288         Tests for module 'ldexpf'.
2289         * modules/ldexpf-tests: New file.
2290         * tests/test-ldexpf.c: New file.
2291
2292         New module 'ldexpf'.
2293         * lib/math.in.h (ldexpf): New declaration.
2294         * lib/ldexpf.c: New file.
2295         * m4/ldexpf.m4: New file.
2296         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2298         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2299         * modules/ldexpf: New file.
2300         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2301         * doc/posix-functions/ldexpf.texi: Mention the new module.
2302
2303 2011-10-06  Bruno Haible  <bruno@clisp.org>
2304
2305         frexpf: Work around problems on IRIX and mingw.
2306         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2308         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2309         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2310         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2311         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2312         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2313
2314 2011-10-06  Bruno Haible  <bruno@clisp.org>
2315
2316         fabsf: Drop assumption about library that defines fabsf.
2317         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2318         AC_CHECK_FUNCS.
2319         * modules/fabsf (Files): Add m4/mathfunc.m4.
2320
2321 2011-10-06  Bruno Haible  <bruno@clisp.org>
2322
2323         frexpf: Drop assumption about library that defines frexpf.
2324         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2325         'int *', 'float *', 'long double *', 'float', 'long double'.
2326         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2327         AC_CHECK_FUNCS.
2328         * modules/frexpf (Files): Add m4/mathfunc.m4.
2329
2330         Tests for module 'frexpf'.
2331         * modules/frexpf-tests: New file.
2332         * tests/test-frexpf.c: New file.
2333
2334         New module 'frexpf'.
2335         * lib/math.in.h (frexpf): New declaration.
2336         * lib/frexpf.c: New file.
2337         * m4/frexpf.m4: New file.
2338         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2340         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2341         * modules/frexpf: New file.
2342         * tests/test-math-c++.cc: Check the declaration of frexpf.
2343         * doc/posix-functions/frexpf.texi: Mention the new module.
2344
2345 2011-10-06  Bruno Haible  <bruno@clisp.org>
2346
2347         math: Sort function declarations of math.in.h.
2348         * lib/math.in.h (frexp, logb): Move declarations.
2349
2350 2011-10-05  Bruno Haible  <bruno@clisp.org>
2351
2352         Tests for module 'modff'.
2353         * modules/modff-tests: New file.
2354         * tests/test-modff.c: New file.
2355
2356         New module 'modff'.
2357         * lib/math.in.h (modff): New declaration.
2358         * lib/modff.c: New file.
2359         * m4/modff.m4: New file.
2360         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2362         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2363         * modules/modff: New file.
2364         * tests/test-math-c++.cc: Check the declaration of modff.
2365         * doc/posix-functions/modff.texi: Mention the new module.
2366
2367         modf tests: Make test sharper.
2368         * tests/test-modf.c (main): Strengthen upper bound.
2369
2370         modf: Use a .m4 file.
2371         * m4/modf.m4: New file.
2372         * modules/modf (Files): Add it.
2373         (configure.ac): Just invoke gl_FUNC_MODF.
2374
2375 2011-10-05  Bruno Haible  <bruno@clisp.org>
2376
2377         Tests for module 'fmodf'.
2378         * modules/fmodf-tests: New file.
2379         * tests/test-fmodf.c: New file.
2380
2381         New module 'fmodf'.
2382         * lib/math.in.h (fmodf): New declaration.
2383         * lib/fmodf.c: New file.
2384         * m4/fmodf.m4: New file.
2385         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2387         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2388         * modules/fmodf: New file.
2389         * tests/test-math-c++.cc: Check the declaration of fmodf.
2390         * doc/posix-functions/fmodf.texi: Mention the new module.
2391
2392         fmod: Use a .m4 file.
2393         * m4/fmod.m4: New file.
2394         * modules/fmod (Files): Add it.
2395         (configure.ac): Just invoke gl_FUNC_FMOD.
2396
2397 2011-10-05  Bruno Haible  <bruno@clisp.org>
2398
2399         Tests for module 'fabsf'.
2400         * modules/fabsf-tests: New file.
2401         * tests/test-fabsf.c: New file.
2402
2403         New module 'fabsf'.
2404         * lib/math.in.h (fabsf): New declaration.
2405         * lib/fabsf.c: New file.
2406         * m4/fabsf.m4: New file.
2407         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2409         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2410         * modules/fabsf: New file.
2411         * tests/test-math-c++.cc: Check the declaration of fabsf.
2412         * doc/posix-functions/fabsf.texi: Mention the new module.
2413
2414         fabs: Use a .m4 file.
2415         * m4/fabs.m4: New file.
2416         * modules/fabs (Files): Add it.
2417         (configure.ac): Just invoke gl_FUNC_FABS.
2418
2419 2011-10-05  Jim Meyering  <meyering@redhat.com>
2420
2421         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2422         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2423         ls -lL regression introduced in coreutils-8.12, it does so at the
2424         cost of an additional stat call in the common case.  Besides, now
2425         that the kernel change that prompted commit 95f7c57f has been reverted
2426         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2427         we have no use for commit 95f7c57f, "file-has-acl: use
2428         acl_extended_file_nofollow if available".
2429
2430 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2431
2432         file-has-acl: revert unintended change in behavior of ls -L
2433         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2434         derived from...
2435         (file_has_acl): ...code here.  Call it.
2436         This problem was introduced with 2011-07-22 commit 95f7c57f,
2437         "file-has-acl: use acl_extended_file_nofollow if available".
2438         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2439
2440 2011-10-03  Bruno Haible  <bruno@clisp.org>
2441
2442         poll: Avoid link errors on MSVC.
2443         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2444         * modules/poll (Depends-on): Add sockets.
2445         (Link): New section.
2446         * NEWS: Mention the change.
2447         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2448         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2449         $(LIB_POLL) instead of $(LIBSOCKET).
2450
2451 2011-10-03  Bruno Haible  <bruno@clisp.org>
2452
2453         sys_select tests: Fix link error on MSVC 9.
2454         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2455         with $(LIB_SELECT) instead of $(LIBSOCKET).
2456
2457 2011-10-03  Bruno Haible  <bruno@clisp.org>
2458
2459         sys_select: Fix compilation error on mingw.
2460         * lib/sys_select.in.h: On native Windows, include <io.h>.
2461
2462 2011-10-03  Bruno Haible  <bruno@clisp.org>
2463
2464         wmemset: Support for MSVC.
2465         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2466         whether wmemset() exists.
2467
2468 2011-10-03  Bruno Haible  <bruno@clisp.org>
2469
2470         wmemmove: Support for MSVC.
2471         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2472         whether wmemmove() exists.
2473
2474 2011-10-03  Bruno Haible  <bruno@clisp.org>
2475
2476         wmemcpy: Support for MSVC.
2477         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2478         whether wmemcpy() exists.
2479
2480 2011-10-03  Bruno Haible  <bruno@clisp.org>
2481
2482         wmemcmp: Support for MSVC.
2483         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2484         whether wmemcmp() exists.
2485
2486 2011-10-03  Bruno Haible  <bruno@clisp.org>
2487
2488         wmemchr: Support for MSVC.
2489         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2490         whether wmemchr() exists.
2491
2492 2011-10-03  Bruno Haible  <bruno@clisp.org>
2493
2494         glthread/*, strsignal: Support for MSVC.
2495         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2496         including <winsock.h> on MSVC 9.
2497         * lib/glthread/lock.h: Likewise.
2498         * lib/glthread/thread.h: Likewise.
2499         * lib/glthread/tls.h: Likewise.
2500         * lib/glthread/yield.h: Likewise.
2501         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2502         if HAVE_UNISTD_H is false.
2503         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2504
2505 2011-10-03  Bruno Haible  <bruno@clisp.org>
2506
2507         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2508         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2509         Set to 100000.
2510
2511 2011-10-03  Bruno Haible  <bruno@clisp.org>
2512
2513         acl: Fix specification.
2514         * lib/file-has-acl.c (file_has_acl): Fix specification.
2515
2516 2011-10-03  Bruno Haible  <bruno@clisp.org>
2517
2518         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2519         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2520         (compute_curr_prefix, shared_library_fullname,
2521         find_shared_library_fullname, get_shared_library_fullname, relocate):
2522         Use it together with PIC && INSTALLDIR.
2523         Reported by <jojelino@gmail.com>
2524         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2525
2526 2011-10-01  Jim Meyering  <meyering@redhat.com>
2527
2528         maint.mk: adjust a release-related rule not to require use of gzip
2529         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2530         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2531         projects that build only .tar.xz files.  Also fix an erroneous test.
2532
2533         test-linkat: don't leave behind a temporary file
2534         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2535         Otherwise, coreutils' "make distcheck" would fail with this:
2536           Only in /c/cu/tests/torture/coreutils/test/\
2537             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2538           make[2]: *** [my-distcheck] Error 1
2539
2540         float, math: add omitted file
2541         * lib/itold.c: Add file, required for yesterday's float change.
2542
2543 2011-10-01  Bruno Haible  <bruno@clisp.org>
2544
2545         isinf: Fix for OpenBSD/x86.
2546         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2547         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2548         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2549
2550 2011-10-01  Bruno Haible  <bruno@clisp.org>
2551
2552         isfinite: Fix syntax error in configure test.
2553         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2554
2555         isfinite: Fix typo.
2556         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2557         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2558
2559 2011-10-01  Bruno Haible  <bruno@clisp.org>
2560
2561         nonblocking tests: Fix test failure on Linux/IA-64.
2562         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2563         Set to 270000.
2564
2565 2011-10-01  Bruno Haible  <bruno@clisp.org>
2566
2567         mkfifoat tests: Fix a test failure on mingw.
2568         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2569         with error ENOSYS.
2570
2571 2011-09-30  Bruno Haible  <bruno@clisp.org>
2572
2573         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2574         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2575         'long double'. Set REPLACE_ITOLD.
2576         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2577         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2578         * lib/itold.c: New file.
2579         * modules/float (Files): Add lib/itold.c.
2580         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2581         (Makefile.am): Substitute REPLACE_ITOLD.
2582         * modules/math (Depends-on): Add float.
2583         (Makefile.am): Substitute REPLACE_ITOLD.
2584         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2585         * doc/posix-headers/math.texi: Likewise.
2586         * doc/posix-functions/logl.texi: Likewise.
2587
2588 2011-09-30  Bruno Haible  <bruno@clisp.org>
2589
2590         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2591         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2592         Set to 140000.
2593
2594 2011-09-30  Bruno Haible  <bruno@clisp.org>
2595
2596         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2597         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2598         invocation, say "right after AC_PROG_CC_STDC", not "right after
2599         AC_PROG_CC".
2600         Reported by Gary V. Vaughan <gary@gnu.org>.
2601
2602 2011-09-30  Bruno Haible  <bruno@clisp.org>
2603
2604         Centralize C99 requirement.
2605         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2606         * modules/stdarg (configure.ac-early): Invoke it instead of
2607         AC_PROG_CC_STDC.
2608         Reported by Gary V. Vaughan and Paul Eggert.
2609
2610 2011-09-29  Bruno Haible  <bruno@clisp.org>
2611
2612         float: Fix LDBL_MAX value on Linux/PowerPC.
2613         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2614         on Linux/PowerPC.
2615         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2616         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2617         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2618         platform.
2619         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2620
2621 2011-09-29  Bruno Haible  <bruno@clisp.org>
2622
2623         doc: Improve doc about gl_EARLY.
2624         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2625         AC_PROG_CC_STDC invocation.
2626         Reported by Gary V. Vaughan <gary@gnu.org>.
2627
2628 2011-09-28  Bruno Haible  <bruno@clisp.org>
2629
2630         fgetc, fputc, fread, fwrite tests: Fix link error.
2631         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2632         on non-MSVC platforms.
2633         * tests/test-fputc.c (main): Likewise.
2634         * tests/test-fread.c (main): Likewise.
2635         * tests/test-fwrite.c (main): Likewise.
2636         Reported by Jim Meyering.
2637
2638 2011-09-27  Bruno Haible  <bruno@clisp.org>
2639
2640         fputc, fwrite tests: Avoid test failure on MSVC.
2641         * tests/test-fgetc.c: Include msvc-inval.h.
2642         (main): Invoke gl_msvc_inval_ensure_handler.
2643         * tests/test-fputc.c: Include msvc-inval.h.
2644         (main): Invoke gl_msvc_inval_ensure_handler.
2645         * tests/test-fread.c: Include msvc-inval.h.
2646         (main): Invoke gl_msvc_inval_ensure_handler.
2647         * tests/test-fwrite.c: Include msvc-inval.h.
2648         (main): Invoke gl_msvc_inval_ensure_handler.
2649         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2650         * modules/fputc-tests (Depends-on): Likewise.
2651         * modules/fread-tests (Depends-on): Likewise.
2652         * modules/fwrite-tests (Depends-on): Likewise.
2653
2654 2011-09-27  Bruno Haible  <bruno@clisp.org>
2655
2656         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2657         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2658         (raise): Remove older, duplicated declaration.
2659         (_gl_raise_SIGPIPE): New declaration.
2660         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2661         (rpl_raise): Remove function.
2662         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2663         a gnulib-defined SIGPIPE here.
2664         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2665         'sigprocmask' has detected missing signal-blocking and the module
2666         'sigpipe' is enabled.
2667         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2668
2669 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2670
2671         base64-tests: avoid memory leak
2672         * tests/test-base64.c (main): Plug memory leak.
2673
2674         base32: new module
2675         * modules/base32: New module.
2676         * lib/base32.c: New file.
2677         * lib/base32.h: Likewise.
2678         * m4/base32.m4: Likewise.
2679         * modules/base32-tests: New test.
2680         * tests/test-base32.c: Likewise.
2681         * MODULES.html.sh (Misc): Mention it.
2682
2683 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2684
2685         gnulib: use more-standard license notice wording
2686         * gnulib-tool (func_emit_copyright_notice): When emitting a
2687         license notice into a file, use the standard wording as suggested
2688         by the current information for GNU maintainers, except say "file"
2689         rather than "program".  The new wording gives a license version
2690         number, which addresses an issue raised by Glenn Morris in
2691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2692         * m4/onceonly.m4: Use that same wording here, too.
2693
2694         dup2: minor simplification
2695         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2696         as lib/dup2.c no longer uses 'inline'.
2697
2698 2011-09-25  Bruno Haible  <bruno@clisp.org>
2699
2700         strings: Fix compilation error on MSVC.
2701         * lib/strings.in.h: Include <stddef.h> for size_t.
2702
2703 2011-09-25  Bruno Haible  <bruno@clisp.org>
2704
2705         fflush et al.: Document limitation on MSVC.
2706         * doc/posix-functions/fflush.texi: Document possible crash in handling
2707         mode other than DEFAULT_HANDLING.
2708         * doc/posix-functions/fgetc.texi: Likewise.
2709         * doc/posix-functions/fputc.texi: Likewise.
2710         * doc/posix-functions/fread.texi: Likewise.
2711         * doc/posix-functions/fwrite.texi: Likewise.
2712
2713 2011-09-25  Bruno Haible  <bruno@clisp.org>
2714
2715         msvc-inval: Allow three invalid parameter handling modes.
2716         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2717         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2718         macros.
2719         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2720         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2721         SANE_LIBRARY_HANDLING as a no-op.
2722         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2723         <stdlib.h>.
2724         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2725
2726 2011-09-25  Bruno Haible  <bruno@clisp.org>
2727
2728         msvc-inval: Make handler multithread-safe.
2729         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2730         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2731         declarations.
2732         (gl_msvc_inval_current): New declaration.
2733         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2734         Operate on the structure returned by gl_msvc_inval_current().
2735         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2736         Remove varaiables.
2737         (tls_index, tls_initialized): New variables.
2738         (not_per_thread): New variable.
2739         (gl_msvc_inval_current): New function.
2740         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2741         returned by gl_msvc_inval_current().
2742
2743 2011-09-25  Bruno Haible  <bruno@clisp.org>
2744
2745         msvc-inval: Install handler globally.
2746         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2747         !_MSC_VER.
2748         (gl_msvc_invalid_parameter_handler): Remove declaration.
2749         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2750         declarations.
2751         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2752         Install the handler globally, don't uninstall it.
2753         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2754         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2755         currently valid, call RaiseException instead.
2756         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2757         for !_MSC_VER.
2758
2759 2011-09-25  Bruno Haible  <bruno@clisp.org>
2760
2761         strerror_r-posix: Fix for MSVC 9.
2762         * lib/strerror_r.c (local_snprintf): New function.
2763         (snprintf): Define to local_snprintf, not to _snprintf.
2764
2765 2011-09-25  Bruno Haible  <bruno@clisp.org>
2766
2767         ftruncate: Support for MSVC 9.
2768         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2769         (chsize_nothrow): New function.
2770         (chsize): Redefine as a macro.
2771         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2772         * modules/ftruncate (Depends-on): Add msvc-inval.
2773
2774 2011-09-25  Bruno Haible  <bruno@clisp.org>
2775
2776         New module 'fstat'.
2777         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2778         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2779         * lib/fchdir.c (rpl_fstat): Remove function.
2780         * m4/fstat.m4: New file.
2781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2783         declared.
2784         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2785         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2786         * modules/fstat: New file.
2787         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2788         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2789         is set.
2790         * doc/posix-functions/fstat.texi: Mention the new module and the
2791         problem on MSVC.
2792         * NEWS: Mention the change.
2793         * modules/acl (Depends-on): Add fstat.
2794         * modules/chdir-safer (Depends-on): Likewise.
2795         * modules/chown (Depends-on): Likewise.
2796         * modules/copy-file (Depends-on): Likewise.
2797         * modules/fchdir (Depends-on): Likewise.
2798         * modules/fdopendir (Depends-on): Likewise.
2799         * modules/fopen (Depends-on): Likewise.
2800         * modules/fts (Depends-on): Likewise.
2801         * modules/getcwd (Depends-on): Likewise.
2802         * modules/isapipe (Depends-on): Likewise.
2803         * modules/linkat (Depends-on): Likewise.
2804         * modules/lseek (Depends-on): Likewise.
2805         * modules/mkdir-p (Depends-on): Likewise.
2806         * modules/open (Depends-on): Likewise.
2807         * modules/openat (Depends-on): Likewise.
2808         * modules/read-file (Depends-on): Likewise.
2809         * modules/renameat (Depends-on): Likewise.
2810         * modules/utimens (Depends-on): Likewise.
2811
2812 2011-09-25  Bruno Haible  <bruno@clisp.org>
2813
2814         linkat: Fix compilation on MSVC 9.
2815         * lib/linkat.c: Don't include <stdint.h>.
2816
2817 2011-09-25  Bruno Haible  <bruno@clisp.org>
2818
2819         fclose: Support for MSVC 9.
2820         * lib/fclose.c: Include msvc-inval.h.
2821         (fclose_nothrow): New function.
2822         (rpl_fclose): Use it.
2823         * modules/fclose (Depends-on): Add msvc-inval.
2824         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2825
2826 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2827
2828         dup2: minor simplifications
2829         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2830         that it's a performance win.
2831         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2832         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2833
2834 2011-09-24  Jim Meyering  <meyering@redhat.com>
2835
2836         test-futimens: avoid a warning from gcc -Wshadow
2837         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2838         to avoid a shadowing warning.
2839
2840 2011-09-24  Bruno Haible  <bruno@clisp.org>
2841
2842         fdopen: Support for MSVC 9.
2843         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2844         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2845         * lib/fdopen.c: Include msvc-inval.h.
2846         (fdopen_nothrow): New function.
2847         (rpl_fdopen): Use it.
2848         * modules/fdopen (Depends-on): Add msvc-inval.
2849         * modules/fclose-tests (Depends-on): Add fdopen.
2850         * modules/fflush-tests (Depends-on): Likewise.
2851         * modules/fgetc-tests (Depends-on): Likewise.
2852         * modules/fputc-tests (Depends-on): Likewise.
2853         * modules/fread-tests (Depends-on): Likewise.
2854         * modules/freopen-tests (Depends-on): Likewise.
2855         * modules/fseeko-tests (Depends-on): Likewise.
2856         * modules/ftello-tests (Depends-on): Likewise.
2857         * modules/fwrite-tests  (Depends-on): Likewise.
2858         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2859
2860 2011-09-24  Bruno Haible  <bruno@clisp.org>
2861
2862         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2863         * modules/fgetc-tests (Depends-on): Add unistd.
2864         * modules/fputc-tests (Depends-on): Likewise.
2865         * modules/fread-tests (Depends-on): Likewise.
2866         * modules/fwrite-tests (Depends-on): Likewise.
2867
2868 2011-09-24  Bruno Haible  <bruno@clisp.org>
2869
2870         dup: Simplify autoconf test.
2871         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2872         on gl_MSVC_INVAL's result.
2873
2874 2011-09-24  Bruno Haible  <bruno@clisp.org>
2875
2876         Tests for function fwrite().
2877         * modules/fwrite-tests: New file.
2878         * tests/test-fwrite.c: New file.
2879         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2880
2881         Tests for function fread().
2882         * modules/fread-tests: New file.
2883         * tests/test-fread.c: New file.
2884         * modules/stdio-tests (Depends-on): Add fread-tests.
2885
2886         Activate fputc tests.
2887         * modules/stdio-tests (Depends-on): Add fputc-tests.
2888
2889         Enhance fgetc, fputc tests.
2890         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2891         * tests/test-fputc.c (main): Likewise.
2892
2893 2011-09-24  Bruno Haible  <bruno@clisp.org>
2894
2895         write: Support for MSVC 9.
2896         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2897         is not 1.
2898         * lib/write.c (write_nothrow): New function.
2899         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2900         not 1. Use write_nothrow.
2901         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2902         invalid parameter handler.
2903         (gl_PREREQ_WRITE): New macro.
2904         * modules/write (Depends-on): Add msvc-inval.
2905         (configure.ac): Invoke gl_PREREQ_WRITE.
2906         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2907
2908 2011-09-24  Bruno Haible  <bruno@clisp.org>
2909
2910         read: Fix last commit.
2911         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2912
2913 2011-09-24  Bruno Haible  <bruno@clisp.org>
2914
2915         dup2: Fix last commit.
2916         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2917         (rpl_dup2): Disable fcntl workaround on native Windows.
2918
2919         sigprocmask: Make code safer.
2920         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2921         section that changes macro definitions for this compilation unit.
2922
2923 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2924
2925         dup2: clarify by coalescing Windows-specific material
2926         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2927         "msvc-nothrow.h"' to the Windows-specific section, so that the
2928         Emacs source need not contain these include files.
2929         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2930         Windows-specific fixes into this function rather than just the
2931         nothrow fix, as this shortens and clarifies the code.  Always
2932         define as a function, as that's a bit cleaner than having it be
2933         sometimes a function and sometimes a macro.
2934         (rpl_dup2): Move the Windows-specific stuff out of here and into
2935         ms_windows_dup2.  Don't protect the Haiku-related fix with
2936         "#if !defined __linux__", as the same code also works around
2937         a Linux kernel bug, and it doesn't add any system calls on any
2938         platform.  Add comment about FreeBSD 6.1.
2939
2940         sigprocmask: move #include directive
2941         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2942         Windows-specific section, so that the Emacs source need not
2943         contain msvc-inval.h.
2944
2945 2011-09-23  Bruno Haible  <bruno@clisp.org>
2946
2947         read: Support for MSVC 9.
2948         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2949         is not 1.
2950         * lib/read.c (read_nothrow): New function.
2951         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2952         read_nothrow.
2953         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2954         invalid parameter handler.
2955         (gl_PREREQ_READ): New macro.
2956         * modules/read (Depends-on): Add msvc-inval.
2957         (configure.ac): Invoke gl_PREREQ_READ.
2958         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2959
2960 2011-09-23  Bruno Haible  <bruno@clisp.org>
2961
2962         close: Support for MSVC 9.
2963         * lib/close.c: Include <errno.h>, msvc-inval.h.
2964         (close_nothrow): New function.
2965         (rpl_close): Use it.
2966         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2967         invalid parameter handler.
2968         * modules/close (Depends-on): Add msvc-inval.
2969         * modules/dup2-tests (Depends-on): Add close.
2970         * modules/dup3-tests (Depends-on): Likewise.
2971         * modules/fcntl-tests (Depends-on): Likewise.
2972         * modules/spawn-pipe-tests (Depends-on): Likewise.
2973         * modules/unistd-safer-tests (Depends-on): Likewise.
2974         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2975
2976 2011-09-23  Bruno Haible  <bruno@clisp.org>
2977
2978         New module 'dup'.
2979         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2980         Allow replacement.
2981         * lib/dup.c: New file.
2982         * lib/fchdir.c (rpl_dup): Remove function.
2983         * m4/dup.m4: New file.
2984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2985         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2986         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2987         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2988         * modules/dup: New file.
2989         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2990         'dup' module is in use.
2991         * modules/fdopendir (Depends-on): Add dup.
2992         * modules/fdutimensat-tests (Depends-on): Likewise.
2993         * modules/fts (Depends-on): Likewise.
2994         * modules/futimens-tests (Depends-on): Likewise.
2995         * modules/posix_spawnp-tests (Depends-on): Likewise.
2996         * modules/unistd-safer-tests (Depends-on): Likewise.
2997         * modules/utimens-tests (Depends-on): Likewise.
2998         * doc/posix-functions/dup.texi: Mention the new module and the problem
2999         on MSVC.
3000
3001 2011-09-23  Bruno Haible  <bruno@clisp.org>
3002
3003         getdtablesize: Support for MSVC 9.
3004         * lib/getdtablesize.c: Include msvc-inval.h.
3005         (_setmaxstdio_nothrow): New function.
3006         (_setmaxstdio): Redefine it.
3007         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3008         * modules/getdtablesize (Depends-on): Add msvc-inval.
3009         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3010
3011 2011-09-23  Bruno Haible  <bruno@clisp.org>
3012
3013         signal-h: Rename from signal.
3014         * modules/signal-h: Renamed from modules/signal.
3015         * modules/pthread_sigmask (Depends-on): Update.
3016         * modules/raise (Depends-on): Likewise.
3017         * modules/sigaction (Depends-on): Likewise.
3018         * modules/sigpipe (Depends-on): Likewise.
3019         * modules/sigprocmask (Depends-on): Likewise.
3020         * modules/sys_select (Depends-on): Likewise.
3021         * modules/signal-h-tests: Renamed from modules/signal-tests.
3022         (Files, Depends-on, Makefile.am): Update.
3023         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3024         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3025         (Files, Makefile.am): Update.
3026         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3027         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3028         * modules/signal: New placeholder file.
3029         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3030         * doc/posix-headers/signal.texi: Update.
3031         * NEWS: Mention the change.
3032
3033 2011-09-23  Bruno Haible  <bruno@clisp.org>
3034
3035         sigprocmask: Avoid crashes through signal() on MSVC 9.
3036         * lib/sigprocmask.c: Include msvc-inval.h.
3037         (signal_nothrow): New function.
3038         (signal): Redefine it.
3039         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3040         * modules/sigprocmask (Depends-on): Add msvc-inval.
3041         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3042
3043 2011-09-23  Bruno Haible  <bruno@clisp.org>
3044
3045         Tests for module 'raise'.
3046         * modules/raise-tests: New file.
3047         * tests/test-raise.c: New file.
3048
3049         raise: Support for MSVC.
3050         * lib/signal.in.h (raise): New declaration.
3051         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3052         for native Windows platforms.
3053         * m4/raise.m4: New file.
3054         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3055         HAVE_RAISE, REPLACE_RAISE.
3056         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3057         REPLACE_RAISE.
3058         * modules/raise (Status, Notice): Remove fields.
3059         (Files): Add m4/raise.m4.
3060         (Depends-on): Add signal, msvc-inval.
3061         (configure.ac): Use the common idioms.
3062         (Maintainer): Add me.
3063         * tests/test-signal-c++.cc: Check the signature of raise.
3064         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3065
3066 2011-09-23  Bruno Haible  <bruno@clisp.org>
3067
3068         pipe2: Fix compilation on pre-C99 compilers.
3069         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3070
3071 2011-09-23  Bruno Haible  <bruno@clisp.org>
3072
3073         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3074         * lib/msvc-nothrow.h: New file.
3075         * lib/msvc-nothrow.c: New file.
3076         * m4/msvc-nothrow.m4: New file.
3077         * modules/msvc-nothrow: New file.
3078         * lib/dup2.c: Include msvc-nothrow.h.
3079         (rpl_dup2): No need to protect _get_osfhandle call here.
3080         * lib/accept4.c: Include msvc-nothrow.h.
3081         * lib/error.c: Likewise.
3082         * lib/fcntl.c: Likewise.
3083         * lib/lseek.c: Likewise.
3084         * lib/nonblocking.c: Likewise.
3085         * lib/poll.c: Likewise.
3086         * lib/read.c: Likewise.
3087         * lib/select.c: Likewise.
3088         * lib/sockets.h: Likewise.
3089         * lib/sockets.c: Likewise.
3090         * lib/stdio-read.c: Likewise.
3091         * lib/stdio-write.c: Likewise.
3092         * lib/write.c: Likewise.
3093         * lib/w32sock.h: Likewise.
3094         * lib/w32spawn.h: Likewise.
3095         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3096         * lib/fsync.c: Likewise.
3097         * lib/isapipe.c: Likewise.
3098         * modules/dup2 (Depends-on): Add msvc-nothrow.
3099         * modules/accept4 (Depends-on): Likewise.
3100         * modules/error (Depends-on): Likewise.
3101         * modules/fcntl (Depends-on): Likewise.
3102         * modules/lseek (Depends-on): Likewise.
3103         * modules/nonblocking (Depends-on): Likewise.
3104         * modules/poll (Depends-on): Likewise.
3105         * modules/read (Depends-on): Likewise.
3106         * modules/select (Depends-on): Likewise.
3107         * modules/sockets (Depends-on): Likewise.
3108         * modules/sigpipe (Depends-on): Likewise.
3109         * modules/write (Depends-on): Likewise.
3110         * modules/accept (Depends-on): Likewise.
3111         * modules/bind (Depends-on): Likewise.
3112         * modules/connect (Depends-on): Likewise.
3113         * modules/gethostname (Depends-on): Likewise.
3114         * modules/getpeername (Depends-on): Likewise.
3115         * modules/getsockname (Depends-on): Likewise.
3116         * modules/getsockopt (Depends-on): Likewise.
3117         * modules/ioctl (Depends-on): Likewise.
3118         * modules/listen (Depends-on): Likewise.
3119         * modules/recv (Depends-on): Likewise.
3120         * modules/recvfrom (Depends-on): Likewise.
3121         * modules/send (Depends-on): Likewise.
3122         * modules/sendto (Depends-on): Likewise.
3123         * modules/setsockopt (Depends-on): Likewise.
3124         * modules/shutdown (Depends-on): Likewise.
3125         * modules/socket (Depends-on): Likewise.
3126         * modules/execute (Depends-on): Likewise.
3127         * modules/spawn-pipe (Depends-on): Likewise.
3128         * modules/flock (Depends-on): Likewise.
3129         * modules/fsync (Depends-on): Likewise.
3130         * modules/isapipe (Depends-on): Likewise.
3131         * tests/test-cloexec.c: Include msvc-nothrow.h.
3132         * tests/test-dup-safer.c: Likewise.
3133         * tests/test-dup2.c: Likewise.
3134         * tests/test-dup3.c: Likewise.
3135         * tests/test-fcntl.c: Likewise.
3136         * tests/test-pipe.c: Likewise.
3137         * tests/test-pipe2.c: Likewise.
3138         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3139         * modules/unistd-safer-tests (Depends-on): Likewise.
3140         * modules/dup2-tests (Depends-on): Likewise.
3141         * modules/dup3-tests (Depends-on): Likewise.
3142         * modules/fcntl-tests (Depends-on): Likewise.
3143         * modules/pipe-posix-tests (Depends-on): Likewise.
3144         * modules/pipe2-tests (Depends-on): Likewise.
3145
3146 2011-09-23  Bruno Haible  <bruno@clisp.org>
3147
3148         dup2: Make code more maintainable.
3149         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3150         (rpl_dup2): Use it.
3151         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3152         * modules/dup2 (configure.ac): Invoke it.
3153         Reported by Paul Eggert.
3154
3155 2011-09-23  Bruno Haible  <bruno@clisp.org>
3156
3157         msvc-inval: Fix compilation error.
3158         * lib/msvc-inval.h: Include <excpt.h>.
3159
3160 2011-09-23  Bruno Haible  <bruno@clisp.org>
3161
3162         mkdir: Tweak for MSVC 9.
3163         * lib/sys_stat.in.h: Update comments.
3164         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3165
3166         Tests for module 'chdir'.
3167         * modules/chdir-tests: New file.
3168         * tests/test-chdir.c: New file.
3169
3170         New module 'chdir'.
3171         * modules/chdir: New file.
3172         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3173         (chdir): New declaration.
3174         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3175         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3176         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3177         * tests/test-unistd-c++.cc: Check signature of chdir.
3178         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3179         * modules/chdir-long (Depends-on): Add chdir.
3180         * modules/fchdir (Depends-on): Likewise.
3181         * modules/rename (Depends-on): Likewise.
3182         * modules/savewd (Depends-on): Likewise.
3183
3184         rmdir: Support for mingw, MSVC 9.
3185         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3186         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3187
3188         getcwd: Tweak for MSVC 9.
3189         * lib/unistd.in.h: Update comments.
3190         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3191
3192 2011-09-22  Bruno Haible  <bruno@clisp.org>
3193
3194         strerror_r-posix: Avoid a link error on MSVC.
3195         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3196         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3197
3198 2011-09-22  Bruno Haible  <bruno@clisp.org>
3199
3200         select: Avoid link errors on MSVC.
3201         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3202         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3203         * modules/pselect (Link): Likewise.
3204         * NEWS: Mention the change.
3205         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3206         test-select-stdin against $(LIB_SELECT).
3207         * modules/pselect-tests (Makefile.am): Link test-pselect against
3208         $(LIB_SELECT).
3209
3210 2011-09-22  Bruno Haible  <bruno@clisp.org>
3211
3212         select: Avoid compilation error on MSVC.
3213         * lib/select.c: Don't include <stdbool.h>.
3214
3215 2011-09-21  Bruno Haible  <bruno@clisp.org>
3216
3217         Consolidate all uses of PATH_MAX in *.m4 files.
3218         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3219         macros.
3220         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3221         and gl_PATHMAX_SNIPPET.
3222         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3223         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3224         * modules/chdir-long (Files): Add m4/pathmax.m4.
3225         * modules/getcwd (Files): Likewise.
3226
3227 2011-09-21  Bruno Haible  <bruno@clisp.org>
3228
3229         ftruncate: Un-deprecate, concentrate on Win32 support.
3230         * modules/ftruncate (Status, Notice): Remove sections.
3231         (Depends-on): Add largefile.
3232         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3233         non-mingw platforms.
3234         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3235         include <io.h>.
3236         * modules/perror-tests (Depends-on): Add ftruncate.
3237         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3238         'ftruncate' module.
3239
3240 2011-09-21  Bruno Haible  <bruno@clisp.org>
3241
3242         Add dependencies to new dirent related modules.
3243         * modules/opendir (Depends-on): Add closedir.
3244         * modules/getcwd (Depends-on): Add opendir, closedir.
3245         * modules/dirent-safer-tests (Depends-on): Likewise.
3246         * modules/fdopendir-tests (Depends-on): Likewise.
3247         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3248         * modules/renameat-tests (Depends-on): Likewise.
3249
3250 2011-09-21  Bruno Haible  <bruno@clisp.org>
3251
3252         opendir: Avoid compilation error on mingw.
3253         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3254         * modules/opendir (Depends-on): Add unistd.
3255
3256 2011-09-21  Bruno Haible  <bruno@clisp.org>
3257
3258         ftruncate tests: Avoid a test failure on mingw.
3259         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3260
3261 2011-09-21  Bruno Haible  <bruno@clisp.org>
3262
3263         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3264         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3265         native Windows.
3266
3267 2011-09-21  Bruno Haible  <bruno@clisp.org>
3268
3269         New module 'fdopen'.
3270         * lib/stdio.in.h (fdopen): New declaration.
3271         * lib/fdopen.c: New file.
3272         * m4/fdopen.m4: New file.
3273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3274         REPLACE_FDOPEN.
3275         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3276         REPLACE_FDOPEN.
3277         * modules/fdopen: New file.
3278         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3279         * tests/test-stdio-c++.cc: Check signature of fdopen.
3280         * doc/posix-functions/fdopen.texi: Mention the new module.
3281
3282 2011-09-21  Bruno Haible  <bruno@clisp.org>
3283
3284         unlockpt tests: Avoid test failure on NetBSD 5.1.
3285         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3286         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3287
3288 2011-09-21  Bruno Haible  <bruno@clisp.org>
3289
3290         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3291         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3292         * tests/test-getlogin_r.c (main): Likewise.
3293
3294 2011-09-20  Bruno Haible  <bruno@clisp.org>
3295
3296         time tests: Don't require pid_t.
3297         * doc/posix-headers/time.texi: Revert last change.
3298         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3299         * tests/test-time.c: Comment out the check for pid_t.
3300
3301 2011-09-20  Bruno Haible  <bruno@clisp.org>
3302
3303         fsync tests: Avoid a test failure on mingw.
3304         * tests/test-fsync.c (main): Allow a failure with EIO.
3305
3306 2011-09-20  Bruno Haible  <bruno@clisp.org>
3307
3308         euidaccess: Update comments.
3309         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3310
3311 2011-09-20  Bruno Haible  <bruno@clisp.org>
3312
3313         Ensure EBADF returns for socket functions on mingw.
3314         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3315         descriptor is invalid.
3316         * lib/bind.c (rpl_bind): Likewise.
3317         * lib/connect.c (rpl_connect): Likewise.
3318         * lib/getpeername.c (rpl_getpeername): Likewise.
3319         * lib/getsockname.c (rpl_getsockname): Likewise.
3320         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3321         * lib/listen.c (rpl_listen): Likewise.
3322         * lib/recv.c (rpl_recv): Likewise.
3323         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3324         * lib/send.c (rpl_send): Likewise.
3325         * lib/sendto.c (rpl_sendto): Likewise.
3326         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3327         * lib/shutdown.c (rpl_shutdown): Likewise.
3328
3329 2011-09-20  Bruno Haible  <bruno@clisp.org>
3330
3331         select tests: EBADF tests.
3332         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3333         test_bad_fd): New functions.
3334         (test_function): Invoke also test_bad_fd.
3335
3336 2011-09-20  Bruno Haible  <bruno@clisp.org>
3337
3338         Tests for module 'posix_spawn_file_actions_addopen.
3339         * modules/posix_spawn_file_actions_addopen-tests: New file.
3340         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3341
3342         Tests for module 'posix_spawn_file_actions_adddup2'.
3343         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3344         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3345
3346         Tests for module 'posix_spawn_file_actions_addclose'.
3347         * modules/posix_spawn_file_actions_addclose-tests: New file.
3348         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3349
3350 2011-09-20  Bruno Haible  <bruno@clisp.org>
3351
3352         Tests for module 'unlockpt'.
3353         * modules/unlockpt-tests: New file.
3354         * tests/test-unlockpt.c: New file.
3355         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3356
3357         Tests for module 'grantpt'.
3358         * modules/grantpt-tests: New file.
3359         * tests/test-grantpt.c: New file.
3360         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3361
3362 2011-09-20  Bruno Haible  <bruno@clisp.org>
3363
3364         freopen tests: EBADF tests.
3365         * tests/test-freopen.c: Include errno.h, unistd.h.
3366         (main): Add tests for EBADF, commented out for the moment.
3367
3368         fclose tests: EBADF tests.
3369         * tests/test-fclose.c (main): Add tests for EBADF.
3370
3371         fflush tests: EBADF tests.
3372         * tests/test-fflush.c: Include errno.h, macros.h.
3373         (main): Add tests for EBADF.
3374
3375         ftello tests: EBADF tests.
3376         * tests/test-ftello4.sh: New file.
3377         * tests/test-ftello4.c: New file.
3378         * modules/ftello-tests (Files): Add them.
3379         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3380
3381         fseeko tests: EBADF tests.
3382         * tests/test-fseeko4.sh: New file.
3383         * tests/test-fseeko4.c: New file.
3384         * modules/fseeko-tests (Files): Add them.
3385         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3386
3387         Tests for function fputc().
3388         * modules/fputc-tests: New file.
3389         * tests/test-fputc.c: New file.
3390         * modules/stdio-tests (Depends-on): Add fputc-tests.
3391
3392         Tests for function fgetc().
3393         * modules/fgetc-tests: New file.
3394         * tests/test-fgetc.c: New file.
3395         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3396
3397         Tests for function fdopen().
3398         * modules/fdopen-tests: New file.
3399         * tests/test-fdopen.c: New file.
3400         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3401
3402         Tests for module 'vdprintf'.
3403         * modules/vdprintf-tests: New file.
3404         * tests/test-vdprintf.c: New file.
3405
3406         Tests for module 'dprintf'.
3407         * modules/dprintf-tests: New file.
3408         * tests/test-dprintf.c: New file.
3409
3410 2011-09-20  Bruno Haible  <bruno@clisp.org>
3411
3412         Tests for module 'ioctl'.
3413         * modules/ioctl-tests: New file.
3414         * tests/test-ioctl.c: New file.
3415
3416 2011-09-20  Bruno Haible  <bruno@clisp.org>
3417
3418         fcntl tests: EBADF tests.
3419         * tests/test-fcntl.c (main): Add more tests for EBADF.
3420
3421 2011-09-20  Bruno Haible  <bruno@clisp.org>
3422
3423         utimensat tests: EBADF tests.
3424         * tests/test-utimensat.c (main): Add tests for EBADF.
3425
3426         renameat tests: EBADF tests.
3427         * tests/test-renameat.c (main): Add tests for EBADF.
3428
3429         mkfifoat tests: EBADF tests.
3430         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3431
3432         readlinkat tests: EBADF tests.
3433         * tests/test-readlinkat.c (main): Add tests for EBADF.
3434
3435         symlinkat tests: EBADF tests.
3436         * tests/test-symlinkat.c (main): Add tests for EBADF.
3437
3438         linkat tests: EBADF tests.
3439         * tests/test-linkat.c (main): Add tests for EBADF.
3440
3441         Tests for module 'faccessat'.
3442         * modules/faccessat-tests: New file.
3443         * tests/test-faccessat.c: New file.
3444
3445         fdopendir tests: EBADF tests.
3446         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3447
3448         openat tests: EBADF tests.
3449         * tests/test-fchownat.c (main): Add tests for EBADF.
3450         * tests/test-fstatat.c (main): Likewise.
3451         * tests/test-mkdirat.c (main): Likewise.
3452         * tests/test-openat.c (main): Likewise.
3453         * tests/test-unlinkat.c (main): Likewise.
3454         * tests/test-fchmodat.c: New file.
3455         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3456         (Makefile.am): Also run 'test-fchmodat'.
3457
3458 2011-09-20  Bruno Haible  <bruno@clisp.org>
3459
3460         utimens, futimens, fdutimensat tests: EBADF tests.
3461         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3462
3463         Tests for function fstat().
3464         * modules/fstat-tests: New file.
3465         * tests/test-fstat.c: New file.
3466         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3467
3468 2011-09-20  Bruno Haible  <bruno@clisp.org>
3469
3470         test-ttyname_r tests: EBADF tests.
3471         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3472
3473         Tests for module 'isatty'.
3474         * modules/isatty-tests: New file.
3475         * tests/test-isatty.c: New file.
3476
3477         Tests for module 'write'.
3478         * modules/write-tests: New file.
3479         * tests/test-write.c: New file.
3480
3481         Tests for module 'read'.
3482         * modules/read-tests: New file.
3483         * tests/test-read.c: New file.
3484
3485         pwrite tests: EBADF tests.
3486         * tests/test-pwrite.c (main): Add tests for EBADF.
3487
3488         pread tests: EBADF tests.
3489         * tests/test-pread.c (main): Add tests for EBADF.
3490
3491         lseek tests: EBADF tests.
3492         * tests/test-lseek.c (main): Add more tests for EBADF.
3493
3494         Tests for module 'ftruncate'.
3495         * modules/ftruncate-tests: New file.
3496         * tests/test-ftruncate.sh: New file.
3497         * tests/test-ftruncate.c: New file.
3498
3499         fsync tests: EBADF tests.
3500         * tests/test-fsync.c (main): Add more tests for EBADF.
3501
3502         fdatasync tests: EBADF tests.
3503         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3504
3505         Tests for module 'fchown'.
3506         * modules/fchown-tests: New file.
3507         * tests/test-fchown.c: New file.
3508
3509         Tests for module 'fchmod'.
3510         * modules/fchmod-tests: New file.
3511         * tests/test-fchmod.c: New file.
3512
3513         fchdir tests: EBADF tests.
3514         * tests/test-fchdir.c (main): Add more tests for EBADF.
3515
3516         dup2 tests: EBADF tests.
3517         * tests/test-dup2.c (main): Add more tests for EBADF.
3518
3519         Tests for module 'dup'.
3520         * modules/dup-tests: New file.
3521         * tests/test-dup.c: New file.
3522
3523         Tests for module 'close'.
3524         * modules/close-tests: New file.
3525         * tests/test-close.c: New file.
3526
3527 2011-09-20  Bruno Haible  <bruno@clisp.org>
3528
3529         Tests for module 'shutdown'.
3530         * modules/shutdown-tests: New file.
3531         * tests/test-shutdown.c: New file.
3532
3533         Tests for module 'setsockopt'.
3534         * modules/setsockopt-tests: New file.
3535         * tests/test-setsockopt.c: New file.
3536
3537         Tests for module 'sendto'.
3538         * modules/sendto-tests: New file.
3539         * tests/test-sendto.c: New file.
3540
3541         Tests for module 'send'.
3542         * modules/send-tests: New file.
3543         * tests/test-send.c: New file.
3544
3545         Tests for module 'recvfrom'.
3546         * modules/recvfrom-tests: New file.
3547         * tests/test-recvfrom.c: New file.
3548
3549         Tests for module 'recv'.
3550         * modules/recv-tests: New file.
3551         * tests/test-recv.c: New file.
3552
3553         Tests for module 'listen'.
3554         * modules/listen-tests: New file.
3555         * tests/test-listen.c: New file.
3556
3557         Tests for module 'getsockopt'.
3558         * modules/getsockopt-tests: New file.
3559         * tests/test-getsockopt.c: New file.
3560
3561         Tests for module 'getsockname'.
3562         * modules/getsockname-tests: New file.
3563         * tests/test-getsockname.c: New file.
3564
3565         Tests for module 'getpeername'.
3566         * modules/getpeername-tests: New file.
3567         * tests/test-getpeername.c: New file.
3568
3569         Tests for module 'connect'.
3570         * modules/connect-tests: New file.
3571         * tests/test-connect.c: New file.
3572
3573         Tests for module 'bind'.
3574         * modules/bind-tests: New file.
3575         * tests/test-bind.c: New file.
3576
3577         accept4 tests: Fix for native Windows.
3578         * tests/test-accept4.c: Include sockets.h.
3579         (main): Invoke gl_sockets_startup.
3580         * modules/accept4-tests (Depends-on): Add sockets.
3581
3582         accept tests: Fix for native Windows.
3583         * tests/test-accept.c: Include sockets.h.
3584         (main): Invoke gl_sockets_startup.
3585         * modules/accept-tests (Depends-on): Add sockets.
3586
3587 2011-09-19  Bruno Haible  <bruno@clisp.org>
3588
3589         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3590         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3591         do...while(0).
3592         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3593         Suggested by Paul Eggert.
3594
3595 2011-09-19  Bruno Haible  <bruno@clisp.org>
3596
3597         sched: Ensure pid_t is defined.
3598         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3599         not define pid_t.
3600         * lib/sched.in.h: Include <sys/types.h>.
3601         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3603
3604 2011-09-19  Bruno Haible  <bruno@clisp.org>
3605
3606         msvc-inval: Ensure the entire expansion is a single statement.
3607         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3608         of braces.
3609
3610 2011-09-19  Jim Meyering  <meyering@redhat.com>
3611
3612         tests: use printf, not echo in init.sh's warn_ function
3613         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3614         misbehave when given strings containing a backslash or starting
3615         with e.g., -n.  James Youngman suggested setting IFS.
3616
3617 2011-09-19  Eric Blake  <eblake@redhat.com>
3618
3619         futimens: enhance test
3620         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3621         closed non-negative fd.
3622
3623         date: accept 'hence' as opposite of 'ago'
3624         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3625         * tests/test-parse-datetime.c (main): Enhance test.
3626         Suggested by Jesse Wilson.
3627
3628 2011-09-19  Jim Meyering  <meyering@redhat.com>
3629
3630         getcwd: don't fail in a deep directory on a system without openat
3631         Before this change, getcwd would fail when called from a directory
3632         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3633         the non-openat implementation used "..", "../..", "../../..", etc.
3634         to access ancestor directories.  With too many, that string would
3635         be longer than PATH_MAX.
3636         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3637         using gnulib's openat replacement.
3638         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3639         we're using the replacement function.
3640
3641 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3642
3643         maint.mk: avoid warnings from perl about missing files
3644         * top/maint.mk (def_sym_regex): Ignore files listed in
3645         $(gl_other_headers_) that do not exist, say because a project
3646         does not use a corresponding module.
3647
3648 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         stat: use pathmax.h only if needed
3651         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3652         This is better for Emacs, which does not have a mingw port and
3653         therefore can avoid the pathmax module.
3654
3655         utimens: remove dependency on dup2
3656         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3657         to work around the Linux kernel bug.
3658         * modules/utimens (Depends-on): Remove dup2.
3659
3660 2011-09-18  Bruno Haible  <bruno@clisp.org>
3661
3662         inet_ntop, inet_pton: Look for it also in libresolv.
3663         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3664         libnsl, search for it in libresolv.
3665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3666         Needed on Solaris 7.
3667
3668 2011-09-18  Bruno Haible  <bruno@clisp.org>
3669
3670         accept, accept4 tests: Avoid link error on Solaris.
3671         * modules/accept-tests (Makefile.am): Link test-accept against
3672         $(LIBSOCKET).
3673         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3674         $(LIBSOCKET).
3675
3676         accept4: Avoid link error on Solaris.
3677         * modules/accept4 (Link): New section.
3678
3679         socket functions: Avoid link errors on Solaris.
3680         * modules/accept (Depends-on): Add socketlib.
3681         (Link): New section.
3682         * modules/bind (Depends-on): Add socketlib.
3683         (Link): New section.
3684         * modules/connect (Depends-on): Add socketlib.
3685         (Link): New section.
3686         * modules/getpeername (Depends-on): Add socketlib.
3687         (Link): New section.
3688         * modules/getsockname (Depends-on): Add socketlib.
3689         (Link): New section.
3690         * modules/getsockopt (Depends-on): Add socketlib.
3691         (Link): New section.
3692         * modules/listen (Depends-on): Add socketlib.
3693         (Link): New section.
3694         * modules/recv (Depends-on): Add socketlib.
3695         (Link): New section.
3696         * modules/recvfrom (Depends-on): Add socketlib.
3697         (Link): New section.
3698         * modules/send (Depends-on): Add socketlib.
3699         (Link): New section.
3700         * modules/sendto (Depends-on): Add socketlib.
3701         (Link): New section.
3702         * modules/setsockopt (Depends-on): Add socketlib.
3703         (Link): New section.
3704         * modules/shutdown (Depends-on): Add socketlib.
3705         (Link): New section.
3706         * modules/socket (Depends-on): Add socketlib.
3707         (Link): New section.
3708
3709 2011-09-18  Bruno Haible  <bruno@clisp.org>
3710
3711         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3712         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3713         than 5 seconds.
3714         * modules/ptsname-tests (configure.ac): Test for alarm.
3715
3716 2011-09-18  Bruno Haible  <bruno@clisp.org>
3717
3718         posix_spawn_file_actions_add*: Fix module dependencies.
3719         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3720         posix_spawn_file_actions_init.
3721         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3722         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3723
3724 2011-09-18  Bruno Haible  <bruno@clisp.org>
3725
3726         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3727         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3728         * tests/test-renameat.c (main): Likewise.
3729
3730 2011-09-18  Bruno Haible  <bruno@clisp.org>
3731
3732         Tests for module 'accept4'.
3733         * modules/accept4-tests: New file.
3734         * tests/test-accept4.c: New file.
3735
3736 2011-09-18  Bruno Haible  <bruno@clisp.org>
3737
3738         Tests for module 'accept'.
3739         * modules/accept-tests: New file.
3740         * tests/test-accept.c: New file.
3741
3742 2011-09-18  Bruno Haible  <bruno@clisp.org>
3743
3744         dup2: Support for MSVC.
3745         * lib/dup2.c: Include msvc-inval.h.
3746         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3747         _get_osfhandle calls.
3748         * modules/dup2 (Depends-on): Add msvc-inval.
3749         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3750
3751         New module 'msvc-inval'.
3752         * lib/msvc-inval.h: New file.
3753         * lib/msvc-inval.c: New file.
3754         * m4/msvc-inval.m4: New file.
3755         * modules/msvc-inval: New file.
3756
3757 2011-09-17  Bruno Haible  <bruno@clisp.org>
3758
3759         Tests for module 'pclose'.
3760         * modules/pclose-tests: New file.
3761
3762         New module 'pclose'.
3763         * lib/stdio.in.h (pclose): New declaration.
3764         * lib/pclose.c: New file.
3765         * m4/pclose.m4: New file.
3766         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3767         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3768         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3769         * modules/pclose: New file.
3770         * modules/popen-tests (Depends-on): Add pclose.
3771         * modules/popen-safer-tests (Depends-on): Likewise.
3772         * doc/posix-functions/pclose.texi: Mention the new module.
3773
3774 2011-09-17  Bruno Haible  <bruno@clisp.org>
3775
3776         popen: Support for MSVC.
3777         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3778         * lib/popen.c (popen): Provide alternate definition for native Windows.
3779         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3781         * modules/popen (Depends-on, configure.ac): Update condition.
3782         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3783         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3784         fixed.
3785
3786 2011-09-17  Bruno Haible  <bruno@clisp.org>
3787
3788         isnanl, isnand, isnanf: Work around MSVC bug.
3789         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3790
3791 2011-09-17  Bruno Haible  <bruno@clisp.org>
3792
3793         sys_socket tests: Fix recent mistake.
3794         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3795
3796 2011-09-17  Bruno Haible  <bruno@clisp.org>
3797
3798         putenv: Support for MSVC.
3799         * modules/putenv (Depends-on): Add environ.
3800         * lib/putenv.c (environ): Disable declaration.
3801         * lib/unistd.in.h: Update comment.
3802
3803 2011-09-17  Bruno Haible  <bruno@clisp.org>
3804
3805         math: Avoid macro redefinition warnings on MSVC.
3806         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3807         Undefine before redefining.
3808
3809 2011-09-17  Bruno Haible  <bruno@clisp.org>
3810
3811         doc: Mention functions which are declared as macros.
3812         * doc/posix-functions/*[fl].texi: Mention that some functions are
3813         defined as macros with arguments only.
3814
3815 2011-09-17  Bruno Haible  <bruno@clisp.org>
3816
3817         Add dependencies to new dirent related modules.
3818         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3819         * modules/fts (Depends-on): Likewise.
3820         * modules/glob (Depends-on): Likewise.
3821         * modules/savedir (Depends-on): Likewise.
3822         * modules/scandir (Depends-on): Likewise.
3823         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3824         * modules/fdopendir (Depends-on): Add opendir.
3825
3826 2011-09-17  Bruno Haible  <bruno@clisp.org>
3827
3828         inet_pton: Support for MSVC on Windows Vista or newer.
3829         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3830         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3831         HAVE_DECL_INET_PTON is defined.
3832         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3833         On platforms with <winsock2.h>, test whether inet_pton is declared in
3834         <ws2tcpip.h>. If so, arrange to replace it.
3835         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3836         REPLACE_INET_PTON.
3837         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3838         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3839         (Depends-on, configure.ac): Update condition.
3840         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3841
3842 2011-09-17  Bruno Haible  <bruno@clisp.org>
3843
3844         inet_ntop: Support for MSVC on Windows Vista or newer.
3845         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3846         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3847         HAVE_DECL_INET_NTOP is defined.
3848         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3849         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3850         <ws2tcpip.h>. If so, arrange to replace it.
3851         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3852         REPLACE_INET_NTOP.
3853         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3854         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3855         (Depends-on, configure.ac): Update condition.
3856         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3857
3858 2011-09-16  Eric Blake  <eblake@redhat.com>
3859
3860         test-fsync: yet another enhancement
3861         * tests/test-fsync.c (main): Also test behavior on read-only text
3862         file.
3863
3864 2011-09-16  Bruno Haible  <bruno@clisp.org>
3865
3866         Enhance fsync, fdatasync tests.
3867         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3868         * tests/test-fdatasync.c (main): Likewise.
3869
3870 2011-09-16  Bruno Haible  <bruno@clisp.org>
3871
3872         Support for MSVC compiler: Ensure mode_t gets defined.
3873         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3874         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3876         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3877         * tests/test-fcntl-h.c: Check that mode_t is defined.
3878         * tests/test-sys_stat.c: Likewise.
3879         * tests/test-sys_types.c: Likewise.
3880         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3881         * doc/posix-headers/sys_stat.texi: Likewise.
3882         * doc/posix-headers/sys_types.texi: Likewise.
3883
3884 2011-09-16  Bruno Haible  <bruno@clisp.org>
3885
3886         sys_stat: Support for MSVC.
3887         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3888         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3889         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3890         MSVC.
3891
3892 2011-09-16  Bruno Haible  <bruno@clisp.org>
3893
3894         Support for MSVC compiler: Ensure off_t gets defined.
3895         * lib/unistd.in.h: Include <sys/types.h>.
3896         * tests/test-fcntl-h.c: Check that off_t is defined.
3897         * tests/test-sys_stat.c: Likewise.
3898         * tests/test-sys_types.c: Likewise.
3899
3900 2011-09-16  Eric Blake  <eblake@redhat.com>
3901
3902         fdatasync: port to Solaris
3903         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3904         * modules/fdatasync (Link): Document it.
3905         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3906
3907         fdatasync: port to MacOS X 10.7
3908         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3909         declared.
3910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3911         * modules/unistd (Makefile.am): Substitute it.
3912         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3913         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3914
3915         fdatasync: minor improvements
3916         * modules/fdatasync (Depends-on): Add condition for fsync.
3917         * lib/fdatasync.c (fdatasync): Add comment.
3918         * tests/test-unistd-c++.cc: Test fdatasync.
3919
3920         unistd: update refs to newer POSIX
3921         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3922         Suggested by Bruno Haible.
3923
3924         fdatasync: new module
3925         * modules/fsync (Description): Document difference to fdatasync.
3926         * modules/fdatasync: New module.
3927         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3928         * lib/fdatasync.c (fdatasync): Likewise.
3929         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3930         defaults.
3931         * modules/unistd (Makefile.am): Set witnesses.
3932         * lib/unistd.in.h (fdatasync): Declare.
3933         * MODULES.html.sh: Document it.
3934         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3935         * modules/fdatasync-tests: New test.
3936         * tests/test-fdatasync.c: Likewise.
3937
3938 2011-09-16  Eric Blake  <eblake@redhat.com>
3939
3940         test-fsync: enhance tests
3941         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3942         * tests/test-fsync.c (main): Enhance test.
3943
3944 2011-09-15  Bruno Haible  <bruno@clisp.org>
3945
3946         Support for MSVC compiler: Ensure ssize_t gets defined.
3947         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3948         * doc/posix-headers/stdio.texi: Likewise.
3949         * modules/stdio (Depends-on): Add ssize_t.
3950         * modules/sys_socket (Depends-on): Likewise.
3951         * modules/sys_types (Depends-on): Likewise.
3952         * modules/sys_uio (Depends-on): Likewise.
3953         * modules/unistd (Depends-on): Likewise.
3954         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3955         * tests/test-sys_types.c: Check that ssize_t is defined.
3956
3957 2011-09-14  Bruno Haible  <bruno@clisp.org>
3958
3959         Avoid using #, the m4 comment starter character, near brackets.
3960         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3961         delimiter character in sed expressions.
3962         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3963         Suggested by Eric Blake.
3964
3965         Properly quote AC_CHECK_DECLS' 4th argument.
3966         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3967         argument.
3968         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3969         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3970         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3971         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3972         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3973         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3974         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3975         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3976         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3977         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3978         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3979         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3980         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3981         * m4/isinf.m4 (gl_ISINF): Likewise.
3982         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3983         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3985         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3987         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3988         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3989         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3990         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3991         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3992         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3995         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3997         Reported by Eric Blake.
3998
3999         Properly quote AC_CHECK_DECL's 4th argument.
4000         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4001         argument.
4002         * m4/argp.m4 (gl_ARGP): Likewise.
4003         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4004         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4005         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4006         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4007         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4008         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4010         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4012         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4013         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4014         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4015         Reported by Eric Blake.
4016
4017 2011-09-14  Eric Blake  <eblake@redhat.com>
4018
4019         opendir: avoid compile warning
4020         * lib/opendir.c (includes): Always include errno.h.
4021         Reported by Tatsuro MATSUOKA.
4022
4023 2011-09-14  Jim Meyering  <meyering@redhat.com>
4024
4025         maint.mk: sc_tight_scope: propagate failure from sub-make
4026         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4027         Reported by Martin von Gagern.
4028
4029 2011-09-13  Bruno Haible  <bruno@clisp.org>
4030
4031         tempname: Support for MSVC.
4032         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4033         MSVC.
4034         * modules/tempname (Depends-on): Add fcntl-h.
4035
4036 2011-09-13  Bruno Haible  <bruno@clisp.org>
4037
4038         sys_time: Support for MSVC.
4039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4040         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4041         include <winsock2.h>.
4042         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4043         function declarations that collide with POSIX.
4044         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4045         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4046
4047 2011-09-13  Bruno Haible  <bruno@clisp.org>
4048
4049         stat: Support for MSVC.
4050         * lib/stat.c: Include pathmax.h.
4051         * modules/stat (Depends-on): Add pathmax.
4052
4053         pathmax: Support for native Windows.
4054         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4055
4056 2011-09-12  Bruno Haible  <bruno@clisp.org>
4057
4058         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4059         * lib/dirent.in.h (struct dirent): New type.
4060         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4061         DT_WHT): New macros.
4062         (DIR): New type.
4063         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4064         (readdir, rewinddir): New declarations.
4065         * lib/dirent-private.h: New file.
4066         * lib/opendir.c: New file.
4067         * lib/readdir.c: New file.
4068         * lib/rewinddir.c: New file.
4069         * lib/closedir.c: New file.
4070         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4071         * m4/opendir.m4: New file.
4072         * m4/readdir.m4: New file.
4073         * m4/rewinddir.m4: New file.
4074         * m4/closedir.m4: New file.
4075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4076         REPLACE_CLOSEDIR here.
4077         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4078         readdir, rewinddir are declared.
4079         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4080         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4081         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4082         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4083         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4084         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4085         * modules/opendir: New file.
4086         * modules/readdir: New file.
4087         * modules/rewinddir: New file.
4088         * modules/closedir: New file.
4089         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4090         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4091         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4092         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4093         * NEWS: Mention the 'fchdir' change.
4094
4095 2011-09-11  Bruno Haible  <bruno@clisp.org>
4096
4097         asm-underscore.m4: Support for MSVC.
4098         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4099         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4100
4101 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4102
4103         Doc about crypt functions.
4104         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4105         needing for _GNU_SOURCE to get crypt.
4106         * doc/posix-functions/encrypt.texi: Likewise.
4107         * doc/posix-functions/setkey.texi: Likewise.
4108
4109 2011-09-11  Bruno Haible  <bruno@clisp.org>
4110
4111         doc: Update regarding MSVC 9.
4112         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4113         tested".
4114         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4115         * doc/posix-headers/*.texi: Likewise.
4116         * doc/pastposix-functions/*.texi: Likewise.
4117         * doc/glibc-functions/*.texi: Likewise.
4118         * doc/glibc-headers/*.texi: Likewise.
4119
4120 2011-09-11  Bruno Haible  <bruno@clisp.org>
4121
4122         unistd et al.: Don't assume <unistd.h> exists.
4123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4124         does not exist.
4125         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4126         exist. But include <stdlib.h>.
4127         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4128         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4129         symlink() does not exist.
4130         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4131         include <io.h> instead.
4132         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4133         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4134         include <direct.h> instead.
4135         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4136         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4137         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4138         <io.h> instead.
4139         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4140         correctly if the system does not have hard links.
4141         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4142         <direct.h> instead.
4143         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4144         it when looking for function declarations.
4145         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4146         <direct.h> and <io.h> instead.
4147         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4148
4149 2011-09-11  Bruno Haible  <bruno@clisp.org>
4150
4151         strcase: Support for MSVC.
4152         * modules/strcase (Status, Notice): Remove obsoletion mark.
4153         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4154         * doc/posix-functions/strncasecmp.texi: Likewise.
4155
4156         strings: Don't assume <strings.h> exists.
4157         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4158         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4159         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4160         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4161
4162 2011-09-11  Bruno Haible  <bruno@clisp.org>
4163
4164         dirent: Don't assume <dirent.h> exists.
4165         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4166         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4167         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4168         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4169
4170 2011-09-11  Bruno Haible  <bruno@clisp.org>
4171
4172         Fix wint_t on MSVC.
4173         * lib/wchar.in.h (wint_t): On MSVC, override it.
4174         * lib/wctype.in.h (wint_t): Likewise.
4175         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4176         MSVC.
4177         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4178         * doc/posix-headers/wctype.texi: Likewise.
4179
4180 2011-09-11  Bruno Haible  <bruno@clisp.org>
4181
4182         sys_types: Fix typo.
4183         * lib/sys_types.in.h: Fix typo in comment.
4184         Reported by Paul Eggert.
4185
4186         Support for MSVC compiler: Ensure size_t gets defined.
4187         * modules/strings (Depends-on): Add 'sys_types'.
4188         * modules/sys_uio (Depends-on): Likewise.
4189         * lib/sys_uio.in.h: Update comment.
4190
4191         C++ tests for module 'sys_types'.
4192         * modules/sys_types-c++-tests: New file.
4193         * tests/test-sys_types-c++.cc: New file.
4194
4195         Tests for module 'sys_types'.
4196         * modules/sys_types-tests: New file.
4197         * tests/test-sys_types.c: New file.
4198
4199         New module 'sys_types'.
4200         * lib/sys_types.in.h: New file.
4201         * m4/sys_types_h.m4: New file.
4202         * modules/sys_types: New file.
4203         * doc/posix-headers/sys_types.texi: Mention the new module and the
4204         size_t problem on MSVC 9.
4205
4206 2011-09-11  Bruno Haible  <bruno@clisp.org>
4207
4208         Support for MSVC compiler: Avoid division by a literal 0.
4209         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4211         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4212         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4213         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4214         * tests/infinity.h: New file.
4215         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4216         on MSVC.
4217         * tests/test-ceilf1.c: Include infinity.h.
4218         (main): Use Infinityf.
4219         * tests/test-ceil1.c: Include infinity.h.
4220         (main): Use Infinityd.
4221         * tests/test-ceill.c: Include infinity.h.
4222         (main): Use Infinityl.
4223         * tests/test-dprintf-posix.c: Include infinity.h.
4224         (test_function): Use Infinityd.
4225         * tests/test-floorf1.c: Include infinity.h.
4226         (main): Use Infinityf.
4227         * tests/test-floor1.c: Include infinity.h.
4228         (main): Use Infinityd.
4229         * tests/test-floorl.c: Include infinity.h.
4230         (main): Use Infinityl.
4231         * tests/test-fprintf-posix.c: Include infinity.h.
4232         (test_function): Use Infinityd.
4233         * tests/test-frexp.c: Include infinity.h.
4234         (main): Use Infinityd.
4235         * tests/test-frexpl.c: Include infinity.h.
4236         (main): Use Infinityl.
4237         * tests/test-isfinite.c: Include infinity.h.
4238         (test_isfinitef): Use Infinityf.
4239         (test_isfinited): Use Infinityd.
4240         (test_isfinitel): Use Infinityl.
4241         * tests/test-isinf.c: Include infinity.h.
4242         (test_isinff): Use Infinityf.
4243         (test_isinfd): Use Infinityd.
4244         (test_isinfl): Use Infinityl.
4245         * tests/test-isnan.c: Include infinity.h.
4246         (test_float): Use Infinityf.
4247         (test_double): Use Infinityd.
4248         (test_long_double): Use Infinityl.
4249         * tests/test-isnanf.h: Include infinity.h.
4250         (main): Use Infinityf.
4251         * tests/test-isnand.h: Include infinity.h.
4252         (main): Use Infinityd.
4253         * tests/test-isnanl.h: Include infinity.h.
4254         (main): Use Infinityl.
4255         * tests/test-ldexpl.c: Include infinity.h.
4256         (main): Use Infinityl.
4257         * tests/test-printf-posix.h: Include infinity.h.
4258         (test_function): Use Infinityd.
4259         * tests/test-roundf1.c: Include infinity.h.
4260         (main): Use Infinityf.
4261         * tests/test-round1.c: Include infinity.h.
4262         (main): Use Infinityd.
4263         * tests/test-roundl.c: Include infinity.h.
4264         (main): Use Infinityl.
4265         * tests/test-signbit.c: Include infinity.h.
4266         (test_signbitf): Use Infinityf.
4267         (test_signbitd): Use Infinityd.
4268         (test_signbitl): Use Infinityl.
4269         * tests/test-snprintf-posix.h: Include infinity.h.
4270         (test_function): Use Infinityd, Infinityl.
4271         * tests/test-sprintf-posix.h: Include infinity.h.
4272         (test_function): Use Infinityd, Infinityl.
4273         * tests/test-truncf1.c: Include infinity.h.
4274         (main): Use Infinityf.
4275         * tests/test-trunc1.c: Include infinity.h.
4276         (main): Use Infinityd.
4277         * tests/test-truncl.c: Include infinity.h.
4278         (main): Use Infinityl.
4279         * tests/test-vasnprintf-posix.c: Include infinity.h.
4280         (test_function): Use Infinityd, Infinityl.
4281         * tests/test-vasprintf-posix.c: Include infinity.h.
4282         (test_function): Use Infinityd, Infinityl.
4283         * modules/ceilf-tests (Files): Add tests/infinity.h.
4284         * modules/ceil-tests (Files): Likewise.
4285         * modules/ceill-tests (Files): Likewise.
4286         * modules/dprintf-posix-tests (Files): Likewise.
4287         * modules/floorf-tests (Files): Likewise.
4288         * modules/floor-tests (Files): Likewise.
4289         * modules/floorl-tests (Files): Likewise.
4290         * modules/fprintf-posix-tests (Files): Likewise.
4291         * modules/frexp-tests (Files): Likewise.
4292         * modules/frexp-nolibm-tests (Files): Likewise.
4293         * modules/frexpl-tests (Files): Likewise.
4294         * modules/frexpl-nolibm-tests (Files): Likewise.
4295         * modules/isfinite-tests (Files): Likewise.
4296         * modules/isinf-tests (Files): Likewise.
4297         * modules/isnan-tests (Files): Likewise.
4298         * modules/isnanf-tests (Files): Likewise.
4299         * modules/isnanf-nolibm-tests (Files): Likewise.
4300         * modules/isnand-tests (Files): Likewise.
4301         * modules/isnand-nolibm-tests (Files): Likewise.
4302         * modules/isnanl-tests (Files): Likewise.
4303         * modules/isnanl-nolibm-tests (Files): Likewise.
4304         * modules/ldexpl-tests (Files): Likewise.
4305         * modules/printf-posix-tests (Files): Likewise.
4306         * modules/roundf-tests (Files): Likewise.
4307         * modules/round-tests (Files): Likewise.
4308         * modules/roundl-tests (Files): Likewise.
4309         * modules/signbit-tests (Files): Likewise.
4310         * modules/snprintf-posix-tests (Files): Likewise.
4311         * modules/sprintf-posix-tests (Files): Likewise.
4312         * modules/truncf-tests (Files): Likewise.
4313         * modules/trunc-tests (Files): Likewise.
4314         * modules/truncl-tests (Files): Likewise.
4315         * modules/vasnprintf-posix-tests (Files): Likewise.
4316         * modules/vasprintf-posix-tests (Files): Likewise.
4317         * modules/vdprintf-posix-tests (Files): Likewise.
4318         * modules/vfprintf-posix-tests (Files): Likewise.
4319         * modules/vprintf-posix-tests (Files): Likewise.
4320         * modules/vsnprintf-posix-tests (Files): Likewise.
4321         * modules/vsprintf-posix-tests (Files): Likewise.
4322         * modules/xprintf-posix-tests (Files): Likewise.
4323
4324 2011-09-11  Bruno Haible  <bruno@clisp.org>
4325
4326         Ensure pid_t gets defined.
4327         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4328         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4329         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4330         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4331         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4332         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4333         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4334         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4335         * tests/test-fcntl-h.c: Check that pid_t is defined.
4336         * tests/test-sched.c: Likewise.
4337         * tests/test-termios.c: Likewise.
4338         * tests/test-time.c: Likewise.
4339         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4340         * doc/posix-headers/signal.texi: Likewise.
4341         * doc/posix-headers/sys_types.texi: Likewise.
4342         * doc/posix-headers/time.texi: Likewise.
4343
4344 2011-09-11  Bruno Haible  <bruno@clisp.org>
4345
4346         acl: Fix compilation on Solaris 10 (older version).
4347         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4348         of ACE_EVERYONE.
4349         * lib/set-mode-acl.c (qset_acl): Likewise.
4350         Reported by Christian Jullien <eligis@orange.fr>.
4351
4352 2011-09-10  Bruno Haible  <bruno@clisp.org>
4353
4354         iconv, unsetenv: Add support for MSVC compiler.
4355         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4356         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4357
4358 2011-09-10  Bruno Haible  <bruno@clisp.org>
4359
4360         *printf: Add support for MSVC compiler.
4361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4362         handles the exception caused by the %n directive. When cross-compiling,
4363         guess no on native Windows.
4364         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4365         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4366         emulate it through vsnprintf.
4367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4368         * doc/posix-functions/dprintf.texi: Update documentation regarding
4369         MSVC 9.
4370         * doc/posix-functions/fprintf.texi: Likewise.
4371         * doc/posix-functions/printf.texi: Likewise.
4372         * doc/posix-functions/snprintf.texi: Likewise.
4373         * doc/posix-functions/sprintf.texi: Likewise.
4374         * doc/posix-functions/swprintf.texi: Likewise.
4375         * doc/posix-functions/vdprintf.texi: Likewise.
4376         * doc/posix-functions/vfprintf.texi: Likewise.
4377         * doc/posix-functions/vprintf.texi: Likewise.
4378         * doc/posix-functions/vsnprintf.texi: Likewise.
4379         * doc/posix-functions/vsprintf.texi: Likewise.
4380         * doc/glibc-functions/asprintf.texi: Likewise.
4381         * doc/glibc-functions/obstack_printf.texi: Likewise.
4382         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4383         * doc/glibc-functions/vasprintf.texi: Likewise.
4384
4385 2011-09-10  Bruno Haible  <bruno@clisp.org>
4386
4387         nocrash: Add support for native Windows.
4388         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4389
4390 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4391             Bruno Haible  <bruno@clisp.org>
4392
4393         absolute-header, include-next: Add support for MSVC compiler.
4394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4395         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4396         directory separator in #line directives.
4397         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4398         recognize also backslash as directory separator in #line directives.
4399
4400 2011-09-08  Jim Meyering  <meyering@redhat.com>
4401
4402         maint.mk: mark the post-release commit log with "maint: " prefix
4403         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4404         one-line commit-log summary.
4405
4406 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4407             Bruno Haible  <bruno@clisp.org>
4408
4409         Doc about crypt functions.
4410         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4411         systems.
4412         * doc/posix-functions/encrypt.texi: Likewise.
4413         * doc/posix-functions/setkey.texi: Likewise.
4414
4415 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4416
4417         * lib/gc.h: Fix copyright header.
4418
4419 2011-09-07  Bruno Haible  <bruno@clisp.org>
4420
4421         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4422         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4423         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4424
4425 2011-09-07  Bruno Haible  <bruno@clisp.org>
4426
4427         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4428         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4429         * lib/freopen.c: Likewise.
4430         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4431         * lib/lstat.c: Likewise.
4432         * lib/stat.c: Likewise.
4433         * lib/open.c: Use different syntax for include of <fcntl.h>.
4434         * lib/openat.c: Include fcntl.h again, explicitly.
4435
4436 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4437
4438         parse-datetime: document the newly accepted format
4439         * doc/parse-datetime.texi (Combined date and time of day items):
4440         New section.
4441
4442 2011-09-06  Bruno Haible  <bruno@clisp.org>
4443
4444         acl: Fix a test failure on newer Solaris 10 with ZFS.
4445         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4446         ENOSYS as no ACL.
4447         Reported by Jim Meyering.
4448
4449 2011-09-06  Bruno Haible  <bruno@clisp.org>
4450
4451         acl: Update for AIX >= 5.3 with NFS.
4452         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4453         ENOSYS as no ACL.
4454
4455         acl: Fix a test failure on AIX >= 5.3 with NFS.
4456         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4457         as no ACL.
4458
4459 2011-09-06  Bruno Haible  <bruno@clisp.org>
4460
4461         acl: Fix a test failure on IRIX 6.5 with NFS.
4462         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4463         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4464         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4465         * lib/copy-acl.c (qcopy_acl): Likewise.
4466
4467 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4468
4469         openat: port to AIX 7.1 with large files
4470         AIX 7.1 does a "#define openat open64at" if large files are in use,
4471         so we can't simply #undef openat.  Use the orig_openat trick (similar
4472         to orig_open in lib/open.c) to work around the problem.  Problem
4473         reported by Kevin Brott for GNU tar, in the thread containing
4474         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4475         * lib/openat.c (__need_system_fcntl_h): Define first.
4476         Include <fcntl.h> and <sys/types.h> before undefining.
4477         (orig_openat) [HAVE_OPENAT]: New inline function.
4478         (openat) [HAVE_OPENAT]: Do not undef.
4479         (rpl_openat): Use orig_openat, not openat.
4480
4481 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4482             Bruno Haible  <bruno@clisp.org>
4483
4484         acl: Avoid errors on NonStop Kernel.
4485         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4486         ENOTSUP errors.
4487
4488 2011-09-05  Bruno Haible  <bruno@clisp.org>
4489
4490         acl: Clean up Solaris code.
4491         * lib/acl-internal.h: Remove no-op #if.
4492         * lib/file-has-acl.c: Likewise.
4493         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4494         * lib/copy-acl.c (qcopy_acl): Likewise.
4495
4496 2011-09-05  Bruno Haible  <bruno@clisp.org>
4497
4498         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4499         binaries built on the original Solaris 10.
4500         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4501         trivial.
4502
4503 2011-09-05  Bruno Haible  <bruno@clisp.org>
4504
4505         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4506         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4507         10.
4508         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4509         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4510         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4511         instead of acl_get, facl_get, acl_set, facl_set.
4512
4513 2011-09-05  Bruno Haible  <bruno@clisp.org>
4514
4515         copy-file: Try unit tests on more file systems.
4516         * tests/test-copy-file-1.sh: New file.
4517         * tests/test-copy-file-2.sh: New file.
4518         * modules/copy-file-tests (Files): Add them.
4519         (Makefile.am): Add them to TESTS.
4520
4521         acl: Try unit tests on more file systems.
4522         * tests/test-file-has-acl-1.sh: New file.
4523         * tests/test-file-has-acl-2.sh: New file.
4524         * tests/test-set-mode-acl-1.sh: New file.
4525         * tests/test-set-mode-acl-2.sh: New file.
4526         * tests/test-copy-acl-1.sh: New file.
4527         * tests/test-copy-acl-2.sh: New file.
4528         * modules/acl-tests (Files): Add them.
4529         (Makefile.am): Add them to TESTS.
4530
4531 2011-09-04  Bruno Haible  <bruno@clisp.org>
4532
4533         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4534         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4535         10.
4536         (OLD_ALLOW, OLD_DENY): New macros.
4537         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4538         ACE_ACCESS_ALLOWED_ACE_TYPE.
4539         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4540         ACE_ACCESS_DENIED_ACE_TYPE.
4541         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4542         (NEW_ACE_EXECUTE): Fix value.
4543         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4544         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4545         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4546         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4547         NEW_ACE_SYNCHRONIZE): New macros.
4548         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4549         instead of acl_fromtext, acl_set, facl_set.
4550         Fixes a coreutils/tests/cp/perm failure.
4551
4552 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4553
4554         openat: test for fstatat (..., 0) bug
4555         Further testing with tar suggests that fstatat (..., 0)
4556         does not work in general, on AIX 7.1; see
4557         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4558         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4559         replacement fstatat (which is what older AIX releases were using
4560         anyway).
4561         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4562         use is now changed to orig_fstatat.  This was probably the right
4563         thing to do anyway.
4564         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4565         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4566         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4567         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4568         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4569         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4570         if the bug is found.
4571
4572         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4573         This tests for another fstatat bug on AIX 7.1:
4574         fstatat (AT_FDCWD, ..., 0) does not work.  See
4575         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4576         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4577         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4578         (rpl_fstatat): Adjust so that it works around either (or both)
4579         bugs if present.
4580         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4581
4582 2011-09-03  Karl Berry  <karl@gnu.org>
4583
4584         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4585         in index entries.
4586
4587 2011-09-02  Bruno Haible  <bruno@clisp.org>
4588
4589         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4590         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4591         values of AR, ARFLAGS, RANLIB.
4592         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4593
4594 2011-09-02  Bruno Haible  <bruno@clisp.org>
4595
4596         Find 'ar' program that fits with --host argument.
4597         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4598
4599 2011-09-02  Bruno Haible  <bruno@clisp.org>
4600
4601         tests: init.sh: Support any non-GNU diff.
4602         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4603         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4604         Solaris 8.
4605
4606 2011-09-02  Bruno Haible  <bruno@clisp.org>
4607
4608         tests: init.sh: work also with any non-GNU diff that supports -u
4609         * tests/init.sh: Relax check for diff -u support.
4610         Rather than checking for GNU diff via --version, simply check
4611         for support for -u itself.  Useful at least on OpenBSD 4.9,
4612         AIX 7.1, IRIX 6.5, and Solaris 10.
4613
4614 2011-09-01  Bruno Haible  <bruno@clisp.org>
4615
4616         strtoimax, strtoumax: Document problem on HP-UX 11.
4617         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4618         * doc/posix-functions/strtoumax.texi: Likewise.
4619
4620 2011-09-01  Bruno Haible  <bruno@clisp.org>
4621
4622         strtoumax: Avoid link error on OSF/1 with DTK cc.
4623         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4624         defined as a function.
4625         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4626         strtoumax is defined, not whether it is declared.
4627
4628 2011-09-01  Bruno Haible  <bruno@clisp.org>
4629
4630         strtoimax: Avoid link error on OSF/1 with DTK cc.
4631         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4632         defined as a function.
4633         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4634         strtoimax is defined, not whether it is declared.
4635
4636 2011-09-01  Bruno Haible  <bruno@clisp.org>
4637
4638         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4639         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4640         as a function.
4641         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4642         whether it is declared.
4643
4644 2011-09-01  Bruno Haible  <bruno@clisp.org>
4645
4646         imaxabs: Avoid link error on OSF/1 with DTK cc.
4647         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4648         as a function.
4649         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4650         whether it is declared.
4651
4652 2011-09-01  Bruno Haible  <bruno@clisp.org>
4653
4654         Tests for module 'strtoumax'.
4655         * modules/strtoumax-tests: New file.
4656         * tests/test-strtoumax.c: New file.
4657
4658         Tests for module 'strtoimax'.
4659         * modules/strtoimax-tests: New file.
4660         * tests/test-strtoimax.c: New file.
4661
4662         Tests for module 'imaxdiv'.
4663         * modules/imaxdiv-tests: New file.
4664         * tests/test-imaxdiv.c: New file.
4665
4666         Tests for module 'imaxabs'.
4667         * modules/imaxabs-tests: New file.
4668         * tests/test-imaxabs.c: New file.
4669
4670 2011-09-01  Bruno Haible  <bruno@clisp.org>
4671
4672         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4673         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4674         pthread_create.
4675
4676 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4677
4678         openat: work around AIX 7.1 fstatat issue
4679         This should fix the problem that was not properly fixed
4680         in the previous change, dated 2011-08-30.
4681         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4682         __need_system_stat_h defined.
4683         (orig_fstatat) [HAVE_FSTATAT]: New function.
4684         (rpl_fstatat): Go back to the old way of doing things,
4685         except call orig_fstatat instead of fstatat.
4686         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4687         Remove unnecessary check whether fstatat fills in st_size etc.
4688
4689 2011-09-01  Bruno Haible  <bruno@clisp.org>
4690
4691         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4692         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4693         just include the system's header.
4694
4695 2011-08-31  Jim Meyering  <meyering@redhat.com>
4696
4697         tests: avoid spurious assertion failure in test-float.c on ppc64
4698         * tests/test-float.c (test_long_double): Comment out an assertion,
4699         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4700         with gcc-4.4.4.
4701
4702         maint: indent with spaces, not TABs
4703         I need to get in the habit of running gnulib's "make check".
4704         Both of these would have been caught.
4705         * m4/largefile.m4: Indent with spaces, not TABs.
4706         * lib/parse-datetime.y (iso_8601_time): Likewise.
4707         Spotted by Pádraig Brady.
4708
4709         test-parse-datetime.c: accommodate a relatively strict gcc warning
4710         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4711         to avoid a warning from gcc's -Werror=missing-declarations.
4712         Insert a few spaces-before-funcall-parenthesis.
4713
4714 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4715
4716         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4717         The parser now accepts ISO 8601 date-time strings with "T" as the
4718         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4719         with a space between the date and time strings.  Now it also parses
4720         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4721         variants like "2004-02-29T16:21:42.333-07:00"
4722         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4723         of day representation using the 'T' separator character.
4724         * doc/parse-datetime.texi (General date syntax): replace use of
4725         deprecated --iso-8601 option with --rfc-3339 in example of date
4726         command output formats that can be parsed.
4727         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4728         lib/parse-datetime.y.
4729         (gmt_offset): New function.
4730         (main): Add additional test cases to validate ISO8601 extended
4731         date and time of day parsing.
4732
4733 2011-08-31  Bruno Haible  <bruno@clisp.org>
4734
4735         freopen: Documentation.
4736         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4737         name.
4738         Reported by Claudio Bley <claudio.bley@gmail.com>.
4739
4740 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4741
4742         freopen: Don't crash if the filename argument is NULL.
4743         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4744         NULL.
4745
4746 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4747
4748         openat: work around AIX 7.1 fstatat bug
4749         Problem reported by Kevin Brott for GNU tar, in the thread containing
4750         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4751         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4752         FSTATAT_ST_SIZE_ETC_BROKEN.
4753         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4754         rpl_fstatat.
4755         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4756         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4757         AC_CHECK_FUNCS_ONCE for fstatat.
4758         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4759         fchmodat, mkdirat, openat and unlinkat.
4760
4761 2011-08-30  Bruno Haible  <bruno@clisp.org>
4762
4763         Avoid endless recursions if config.h includes some header files.
4764         * lib/fopen.c (__need_FILE): Define already before including config.h.
4765         * lib/freopen.c (__need_FILE): Likewise.
4766         * lib/open.c (__need_system_fcntl_h): Likewise.
4767         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4768         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4769         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4770
4771 2011-08-25  Karl Berry  <karl@gnu.org>
4772
4773         * config/srclist.txt (ylwrap): new try.
4774         * build-aux/ylwrap: new file.
4775
4776 2011-08-23  Bruno Haible  <bruno@clisp.org>
4777
4778         tmpdir: Use a good default directory on native Windows.
4779         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4780         (P_tmpdir): Default to _P_tmpdir on native Windows.
4781         (path_search): On native Windows, try the value returned by GetTempPath
4782         before trying P_tmpdir.
4783         * modules/tmpdir (Depends-on): Add pathmax.
4784         Suggested by John Darrington <john@darrington.wattle.id.au>.
4785
4786 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4787
4788         doc: fix typo in README-release
4789         * top/README-release: Capitalize first word of a sentence.
4790
4791 2011-08-19  Jim Meyering  <meyering@redhat.com>
4792
4793         fts: do not exhaust memory when processing million-entry directories
4794         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4795         directory would require about 256*N bytes of memory.  Thus, it was
4796         easy to construct a directory too large to be processed by any of
4797         those tools.  With this change, fts' maximum memory utilization is
4798         now limited to around 30MB.
4799         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4800         (fts_read): When we've processed the final entry (i.e., when
4801         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4802         using the parent entry to read any remaining entries.  Dispatch
4803         depending on what fts_build returns:
4804         - NULL+stop, aka failure: stop
4805         - NULL otherwise: move up in the dir hierarchy
4806         - non-NULL: handle this new entry
4807         (fts_build): Declare and use new local, continue_readdir.
4808         Prepare to be called from fts_read, when the entries
4809         from a partially-read directory have just been exhausted.
4810         In that case, we'll skip the opendir and instead use the parent's
4811         fts_dirp and derive dir_fd from that.
4812         Finally, in the readdir loop, if we read max_entries entries,
4813         exit the loop ensuring *not* to call closedir.  This is required
4814         so that fts_dirp can be reused on a subsequent call.
4815         Prompted by Ben England's report of memory exhaustion in find
4816         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4817
4818         maint: fts: move decl of `dp' down into while loop; split a long line
4819         * lib/fts.c (fts_build): No semantic change.
4820
4821         fts: add/use new struct member, fts_dirp
4822         We are about to use this to manage any directory with
4823         too many entries to read all of them into memory at once.
4824         To do that, we'll need to save the DIR* pointer in each
4825         affected FTSENT struct.
4826         * lib/fts_.h: Include <dirent.h>.
4827         (struct FTSENT) [fts_dirp]: New member.
4828         * lib/fts.c (closedir_and_clear): Define.
4829         Use it in place of closedir so that we are sure to
4830         clear the new fts_dirp member when done with it.
4831         (fts_alloc): Initialize the new member.
4832         (fts_lfree): Free, if needed.
4833
4834         maint: fts: give __opendir2 a new parameter and rename
4835         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4836         than surreptitiously using sole caller's "dir_fd".
4837         (fts_opendir): Rename from __opendir2.
4838
4839         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4840         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4841
4842         maint: fts.c: correct off-by-one indentation
4843         * lib/fts.c (fts_build): Correct indentation, change style
4844         of a couple of block comments, and bracing style.
4845
4846         maint: fts.c: move __opendir2 #define "up" out of function body
4847         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4848
4849         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4850         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4851         out for a long time and besides was useful only on BSD systems.
4852
4853 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4854
4855         regex: port to Stratus OpenVOS
4856         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4857         define to empty, rather than attempting nonportable optimizations.
4858         Problem reported by Paul Green in:
4859         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4860         and fix suggested by Eric Blake in:
4861         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4862
4863 2011-08-17  Eric Blake  <eblake@redhat.com>
4864
4865         getcwd: fix test failures on mingw
4866         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4867         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4868         test if long directory cannot be created, and allow mingw errno.
4869
4870         getcwd-lgpl: fix m4 to match relaxed test for BSD
4871         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4872         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4873         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4874         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4875         signature problem.
4876
4877         getcwd: fix compilation on mingw64
4878         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4879         getcwd.
4880         Reported by Marc-André Lureau.
4881
4882         pipe2: silence compiler warning
4883         * lib/pipe2.c (pipe2): Hide label if it is not used.
4884
4885 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4886
4887         relocatable-prog: fix link error
4888         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4889         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4890         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4891         into modules/relocatable-lib without noticing that
4892         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4893         also needs to build relocatable.c.
4894
4895 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4899         shell code: it contained a 'break' that was not in a loop.
4900         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4901         via a shell-language loop; this may have been true in old Autoconf
4902         versions, but it's not true in Autoconf 2.68.  I found this bug
4903         when testing coreutils git on Solaris 8, whose shell complains
4904         about the syntax error.
4905
4906 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4907
4908         * lib/base64.c: Fix comment to reference RFC 4648.
4909         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4910         <gvtulder@gmail.com>.
4911
4912 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4913
4914         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4915
4916         po/Makefile.in.in: fix make -q problem
4917         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4918         rule, since there's no file named 'check-macro-version' and its
4919         use as a file breaks make -q.
4920         (all): Don't depend on check-macro-version.
4921         (CHECK_MACRO_VERSION): New macro.
4922         (stamp-po): Use it.
4923
4924         configmake: fix make -q problem
4925         * modules/configmake (configmake.h): Update configmake.h's time stamp
4926         even if the file does not change.  Otherwise, 'make -q' fails.
4927         Problem reported by Simon Josefsson in
4928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4929
4930 2011-08-11  Jim Meyering  <meyering@redhat.com>
4931
4932         git-version-gen: correct the advice in a comment
4933         * build-aux/git-version-gen: Correct comment.
4934         Don't recommend to list .tarball-version in .gitignore.
4935
4936 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4937
4938         base64: fix off-by-one buffer size bug
4939         Problem and (trivial) fix reported by Gijs van Tulder in
4940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4941         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4942         * tests/test-base64.c (main): Catch the bug.
4943
4944 2011-08-10  Eric Blake  <eblake@redhat.com>
4945
4946         closein: correct comments
4947         * lib/closein.c (close_stdin): Improve comments.
4948
4949 2011-08-09  Bruno Haible  <bruno@clisp.org>
4950
4951         More tests for 'fseeko'.
4952         * tests/test-fseeko3.c: New file, from Eric Blake.
4953         * tests/test-fseeko3.sh: New file.
4954         * modules/fseeko-tests (Files): Add them.
4955         (TESTS): Add test-fseeko3.sh.
4956         (check_PROGRAMS): Add test-fseeko3.
4957
4958 2011-08-09  Eric Blake  <eblake@redhat.com>
4959
4960         fseeko: remove unneeded hack
4961         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4962
4963         fseeko: fix bug on glibc
4964         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4965         Reported by John W. Eaton.
4966
4967 2011-08-08  Bruno Haible  <bruno@clisp.org>
4968
4969         unictype/base: Fix interoperability with preinstalled libunistring.
4970         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4971         Reported by Simon Josefsson.
4972
4973 2011-08-08  Bruno Haible  <bruno@clisp.org>
4974
4975         iswblank: Detect declaration correctly.
4976         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4977         AC_CHECK_DECLS invocation.
4978
4979 2011-08-08  Bruno Haible  <bruno@clisp.org>
4980
4981         tcgetsid: Detect declaration correctly.
4982         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4983         AC_CHECK_DECLS invocation.
4984         Reported by Simon Josefsson.
4985
4986 2011-08-08  Eric Blake  <eblake@redhat.com>
4987
4988         largefile: fix typo that regressed large file support
4989         * modules/largefile (configure.ac-early): Fix section name.
4990
4991 2011-08-06  Karl Berry  <karl@gnu.org>
4992
4993         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4994         a separate module.
4995
4996 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4997
4998         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4999         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5000         get prototype for free.
5001
5002 2011-08-04  Bruno Haible  <bruno@clisp.org>
5003
5004         Tests for module 'pathmax'.
5005         * modules/pathmax-tests: New file.
5006         * tests/test-pathmax.c: New file.
5007
5008         canonicalize-lgpl: Support larger filenames on the Hurd.
5009         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5010         Reported by Paul Eggert.
5011
5012         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5013         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5014         * lib/chdir-long.h: Include pathmax.h.
5015         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5016         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5017         (PATH_MAX): Remove code that is done by pathmax.h.
5018         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5019         * lib/tmpfile.c: Add a comment.
5020         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5021         * modules/chdir-long (Depends-on): Add pathmax.
5022         * modules/getcwd (Depends-on): Add pathmax.
5023         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5024         is not defined.
5025         * doc/posix-headers/limits.texi: Mention the pathmax module.
5026         * NEWS: Mention the change.
5027
5028 2011-08-02  Bruno Haible  <bruno@clisp.org>
5029
5030         pthread_sigmask: Actually use results of gl_THREADLIB.
5031         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5032         gl_THREADLIB, not gl_[]THREADLIB.
5033         Reported by Eric Blake.
5034
5035 2011-08-02  Jim Meyering  <meyering@redhat.com>
5036
5037         maint.mk: relax the default _gl_TS_function_match regexp
5038         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5039         space between function name and "(" in an "extern" declaration.
5040         That would fail to match a decl with no space there: extern void foo();
5041
5042 2011-07-31  Iain Nicol  <iain@thenicols.net>
5043
5044         git-version-gen: document that EXTRA_DIST must include .version
5045         * build-aux/git-version-gen: In the how-to-use comment, document
5046         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5047         will fail when run from an unpacked distribution tarball.
5048
5049 2011-08-01  Bruno Haible  <bruno@clisp.org>
5050
5051         wctype-h: Fix last change.
5052         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5053         REPLACE_TOWLOWER to 0.
5054         Reported by Sam Steingold <sds@gnu.org>.
5055
5056 2011-07-31  Bruno Haible  <bruno@clisp.org>
5057
5058         frexpl: Update autoconf test.
5059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5060         according to changes of 2011-06-20.
5061
5062 2011-07-31  Bruno Haible  <bruno@clisp.org>
5063
5064         sys_utsname: Add support for Minix.
5065         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5066         <sys/utsname.h>.
5067         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5068         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5069
5070 2011-07-31  Bruno Haible  <bruno@clisp.org>
5071
5072         strings: Add support for Minix.
5073         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5074         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5075         * doc/posix-headers/strings.texi: Document the Minix problem.
5076
5077 2011-07-31  Bruno Haible  <bruno@clisp.org>
5078
5079         wctype-h: Add support for Minix.
5080         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5081         REPLACE_TOWLOWER.
5082         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5083         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5084         REPLACE_ISWCNTRL.
5085
5086 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5087
5088         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5089         This is a performance improvement for 64-bit hosts: it causes the
5090         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5091
5092 2011-07-31  Bruno Haible  <bruno@clisp.org>
5093
5094         stdioext: Add support for Minix.
5095         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5096         * lib/fpurge.c (fpurge): Likewise.
5097         * lib/freadahead.c (freadahead): Likewise.
5098         * lib/freadable.c (freadable): Likewise.
5099         * lib/freading.c (freading): Likewise.
5100         * lib/freadptr.c (freadptr): Likewise.
5101         * lib/freadseek.c (freadptrinc): Likewise.
5102         * lib/fseeko.c (rpl_fseeko): Likewise.
5103         * lib/fseterr.c (fseterr): Likewise.
5104         * lib/fwritable.c (fwritable): Likewise.
5105         * lib/fwriting.c (fwriting): Likewise.
5106         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5107         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5108
5109 2011-07-31  Bruno Haible  <bruno@clisp.org>
5110
5111         errno: Port to Minix.
5112         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5113         ECONNABORTED are defined.
5114         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5115         GNULIB_defined_ECONNABORTED): New macros.
5116         * lib/strerror-override.h (strerror_override): Test also
5117         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5118         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5119         ECONNABORTED.
5120         * doc/posix-headers/errno.texi: Mention the Minix problem.
5121
5122 2011-07-31  Bruno Haible  <bruno@clisp.org>
5123
5124         Work around declaration collisions on Minix.
5125         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5126         defined, set REPLACE_MBSINIT.
5127         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5128         defined, set REPLACE_MBRTOWC.
5129         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5130         set REPLACE_MBRLEN.
5131         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5132         defined, set REPLACE_MBSRTOWCS.
5133         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5134         defined, set REPLACE_WCRTOMB.
5135         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5136         defined, set REPLACE_WCSRTOMBS.
5137
5138 2011-07-31  Bruno Haible  <bruno@clisp.org>
5139
5140         Add support for Minix with ACK compiler.
5141         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5142         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5143         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5144
5145 2011-07-31  Bruno Haible  <bruno@clisp.org>
5146
5147         Documentation about Minix.
5148         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5149         * doc/glibc-headers/*.texi: Likewise.
5150         * doc/posix-functions/*.texi: Likewise.
5151         * doc/glibc-functions/*.texi: Likewise.
5152
5153 2011-07-31  Bruno Haible  <bruno@clisp.org>
5154
5155         snippet/warn-on-use: Fix indentation.
5156         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5157
5158 2011-07-25  Jim Meyering  <meyering@redhat.com>
5159
5160         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5161         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5162         commands.
5163
5164 2011-07-27  Jim Meyering  <meyering@redhat.com>
5165
5166         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5167         * top/maint.mk (gl_extract_significant_defines_): Now that
5168         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5169         gnulib/lib/signal.in.h, and now that we recommend to
5170         define-if-undefined those two symbols in application code,
5171         we must filter them out of the "significant" list.
5172         This avoids a "make syntax-check" failure in coreutils.
5173
5174 2011-07-26  Eric Blake  <eblake@redhat.com>
5175
5176         warnings: add comments about previous patch
5177         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5178         * m4/include_next.m4: Likewise.
5179         * m4/warn-on-use.m4: Likewise.
5180         * m4/warnings.m4: Likewise, and simplify use.
5181         Suggested by Stefano Lattarini.
5182
5183         include-next, warnings: support older autoconf
5184         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5185         AS_VAR_PUSHDEF in a way that works with older autoconf.
5186         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5187         Reported by Daniel P. Berrange.
5188
5189 2011-07-25  Bruno Haible  <bruno@clisp.org>
5190
5191         fseek, ftell: Fix doc.
5192         * doc/posix-functions/fseek.texi: Reword statement about
5193         AC_SYS_LARGEFILE.
5194         * doc/posix-functions/ftell.texi: Likewise.
5195
5196 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5197             Bruno Haible  <bruno@clisp.org>
5198
5199         Add dependencies to the 'largefile' module.
5200         * modules/fopen (Depends-on): Add 'largefile'.
5201         * modules/freopen (Depends-on): Likewise.
5202         * modules/fseeko (Depends-on): Likewise.
5203         * modules/ftello (Depends-on): Likewise.
5204         * modules/glob (Depends-on): Likewise.
5205         * modules/lseek (Depends-on): Likewise.
5206         * modules/lstat (Depends-on): Likewise.
5207         * modules/mkostemp (Depends-on): Likewise.
5208         * modules/mkostemps (Depends-on): Likewise.
5209         * modules/mkstemp (Depends-on): Likewise.
5210         * modules/mkstemps (Depends-on): Likewise.
5211         * modules/open (Depends-on): Likewise.
5212         * modules/openat (Depends-on): Likewise.
5213         * modules/pread (Depends-on): Likewise.
5214         * modules/pwrite (Depends-on): Likewise.
5215         * modules/scandir (Depends-on): Likewise.
5216         * modules/stat (Depends-on): Likewise.
5217         * modules/tmpfile (Depends-on): Likewise.
5218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5219         since the containing module now depends on the largefile module.
5220         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5221         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5222         off_t is fixed by gnulib.
5223         * doc/posix-functions/freopen.texi: Likewise.
5224         * doc/posix-functions/fseeko.texi: Likewise.
5225         * doc/posix-functions/fstatat.texi: Likewise.
5226         * doc/posix-functions/ftello.texi: Likewise.
5227         * doc/posix-functions/glob.texi: Likewise.
5228         * doc/posix-functions/lseek.texi: Likewise.
5229         * doc/posix-functions/lstat.texi: Likewise.
5230         * doc/posix-functions/mkstemp.texi: Likewise.
5231         * doc/posix-functions/open.texi: Likewise.
5232         * doc/posix-functions/openat.texi: Likewise.
5233         * doc/posix-functions/pread.texi: Likewise.
5234         * doc/posix-functions/pwrite.texi: Likewise.
5235         * doc/posix-functions/scandir.texi: Likewise.
5236         * doc/posix-functions/stat.texi: Likewise.
5237         * doc/posix-functions/tmpfile.texi: Likewise.
5238         * doc/glibc-functions/mkostemp.texi: Likewise.
5239         * doc/glibc-functions/mkostemps.texi: Likewise.
5240         * doc/glibc-functions/mkstemps.texi: Likewise.
5241
5242 2011-07-25  Bruno Haible  <bruno@clisp.org>
5243
5244         fcntl: Move AC_LIBOBJ invocation to module description.
5245         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5246         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5247
5248         fcntl: Remove call-in from fchdir.m4.
5249         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5251
5252         dup3: Remove potential call-in from fchdir.m4.
5253         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5255
5256         dup2: Move AC_LIBOBJ invocation to module description.
5257         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5258         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5259         Don't invoke AC_LIBOBJ.
5260         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5261
5262         dup2: Remove call-in from fchdir.m4.
5263         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5265
5266         fclose: Move AC_LIBOBJ invocation to module description.
5267         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5268         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5269         to 1.
5270         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5271
5272         fclose: Remove call-in from close.m4.
5273         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5274         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5275
5276         close: Move AC_LIBOBJ invocation to module description.
5277         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5278         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5279         1.
5280         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5281
5282         close: Remove call-in from fchdir.m4.
5283         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5285
5286         open: Move AC_LIBOBJ invocation to module description.
5287         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5288         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5289         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5290
5291         open: Remove call-in from fchdir.m4.
5292         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5294
5295         fchdir: Start to remove gl_REPLACE_* idiom.
5296         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5297         (gl_FUNC_FCHDIR): Invoke it.
5298
5299 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5300
5301         * lib/ftell.c (ftell): Comment out cast.
5302
5303         close: use gl_REPLACE_FCLOSE only if defined
5304         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5305         is defined.  The close module doesn't depend on the fclose module
5306         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5308         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5309
5310 2011-07-24  Jim Meyering  <meyering@redhat.com>
5311
5312         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5313         * tests/test-select.h (test_function): Declare as "static".
5314
5315 2011-07-24  Bruno Haible  <bruno@clisp.org>
5316
5317         doc: Mention the effects of AC_SYS_LARGEFILE.
5318         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5319         on this function.
5320         * doc/posix-functions/aio_error.texi: Likewise.
5321         * doc/posix-functions/aio_fsync.texi: Likewise.
5322         * doc/posix-functions/aio_read.texi: Likewise.
5323         * doc/posix-functions/aio_return.texi: Likewise.
5324         * doc/posix-functions/aio_suspend.texi: Likewise.
5325         * doc/posix-functions/aio_write.texi: Likewise.
5326         * doc/posix-functions/fgetpos.texi: Likewise.
5327         * doc/posix-functions/fopen.texi: Likewise.
5328         * doc/posix-functions/freopen.texi: Likewise.
5329         * doc/posix-functions/fsetpos.texi: Likewise.
5330         * doc/posix-functions/fstatvfs.texi: Likewise.
5331         * doc/posix-functions/ftruncate.texi: Likewise.
5332         * doc/posix-functions/ftw.texi: Likewise.
5333         * doc/posix-functions/getrlimit.texi: Likewise.
5334         * doc/posix-functions/glob.texi: Likewise.
5335         * doc/posix-functions/lio_listio.texi: Likewise.
5336         * doc/posix-functions/lockf.texi: Likewise.
5337         * doc/posix-functions/mkstemp.texi: Likewise.
5338         * doc/posix-functions/mmap.texi: Likewise.
5339         * doc/posix-functions/nftw.texi: Likewise.
5340         * doc/posix-functions/openat.texi: Likewise.
5341         * doc/posix-functions/opendir.texi: Likewise.
5342         * doc/posix-functions/posix_fadvise.texi: Likewise.
5343         * doc/posix-functions/posix_fallocate.texi: Likewise.
5344         * doc/posix-functions/pread.texi: Likewise.
5345         * doc/posix-functions/pwrite.texi: Likewise.
5346         * doc/posix-functions/readdir.texi: Likewise.
5347         * doc/posix-functions/readdir_r.texi: Likewise.
5348         * doc/posix-functions/rewinddir.texi: Likewise.
5349         * doc/posix-functions/scandir.texi: Likewise.
5350         * doc/posix-functions/seekdir.texi: Likewise.
5351         * doc/posix-functions/setrlimit.texi: Likewise.
5352         * doc/posix-functions/statvfs.texi: Likewise.
5353         * doc/posix-functions/telldir.texi: Likewise.
5354         * doc/posix-functions/tmpfile.texi: Likewise.
5355         * doc/posix-functions/truncate.texi: Likewise.
5356         * doc/glibc-functions/fallocate.texi: Likewise.
5357         * doc/glibc-functions/fstatfs.texi: Likewise.
5358         * doc/glibc-functions/fts_children.texi: Likewise.
5359         * doc/glibc-functions/fts_read.texi: Likewise.
5360         * doc/glibc-functions/getdirentries.texi: Likewise.
5361         * doc/glibc-functions/mkostemp.texi: Likewise.
5362         * doc/glibc-functions/mkostemps.texi: Likewise.
5363         * doc/glibc-functions/mkstemps.texi: Likewise.
5364         * doc/glibc-functions/preadv.texi: Likewise.
5365         * doc/glibc-functions/pwritev.texi: Likewise.
5366         * doc/glibc-functions/sendfile.texi: Likewise.
5367         * doc/glibc-functions/statfs.texi: Likewise.
5368
5369 2011-07-24  Bruno Haible  <bruno@clisp.org>
5370
5371         doc: Fix typo.
5372         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5373
5374 2011-07-24  Bruno Haible  <bruno@clisp.org>
5375
5376         doc: Mention fsusage.
5377         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5378
5379 2011-07-24  Bruno Haible  <bruno@clisp.org>
5380
5381         doc: Mention new glibc headers and functions.
5382         * doc/glibc-headers/gshadow.texi: New file.
5383         * doc/glibc-functions/endsgent.texi: New file.
5384         * doc/glibc-functions/fgetsgent.texi: New file.
5385         * doc/glibc-functions/fgetsgent_r.texi: New file.
5386         * doc/glibc-functions/getsgent.texi: New file.
5387         * doc/glibc-functions/getsgent_r.texi: New file.
5388         * doc/glibc-functions/getsgnam.texi: New file.
5389         * doc/glibc-functions/getsgnam_r.texi: New file.
5390         * doc/glibc-functions/putsgent.texi: New file.
5391         * doc/glibc-functions/setsgent.texi: New file.
5392         * doc/glibc-functions/sgetsgent.texi: New file.
5393         * doc/glibc-functions/sgetsgent_r.texi: New file.
5394         * doc/glibc-functions/malloc_info.texi: New file.
5395         * doc/glibc-functions/preadv.texi: New file.
5396         * doc/glibc-functions/pwritev.texi: New file.
5397         * doc/glibc-functions/register_printf_modifier.texi: New file.
5398         * doc/glibc-functions/register_printf_specifier.texi: New file.
5399         * doc/glibc-functions/register_printf_type.texi: New file.
5400         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5401         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5402         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5403         * doc/glibc-functions/pthread_getname_np.texi: New file.
5404         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5405         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5406         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5407         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5408         * doc/glibc-functions/pthread_setname_np.texi: New file.
5409         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5410         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5411         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5412         * doc/glibc-functions/qsort_r.texi: New file.
5413         * doc/glibc-functions/quick_exit.texi: New file.
5414         * doc/glibc-functions/syncfs.texi: New file.
5415         * doc/gnulib.texi: Include them.
5416         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5417         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5418         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5419         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5420         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5421         * doc/glibc-functions/execvpe.texi: Likewise.
5422
5423 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5424
5425         ftell: don't include <unistd.h>
5426         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5427         guaranteed to define off_t, and the ftell module depends on the
5428         stdio module.
5429
5430         ftell: do not assume wraparound signed arithmetic
5431         * lib/ftell.c: Include <limits.h>.
5432         (ftell): Don't assume wraparound signed arithmetic.
5433
5434 2011-07-24  Bruno Haible  <bruno@clisp.org>
5435
5436         close: No longer depend on module 'fclose'.
5437         * modules/close (Depends-on): Remove fclose.
5438         * NEWS: Mention the change.
5439         Suggested by Sam Steingold <sds@gnu.org>.
5440
5441 2011-07-24  Bruno Haible  <bruno@clisp.org>
5442
5443         fsusage: Enable large volume support on AIX >= 5.2.
5444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5445         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5446         instead of STAT_STATVFS.
5447         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5448
5449         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5451         f_blocks field only on MacOS X.
5452
5453         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5455         * modules/fsusage (Depends-on): Add largefile.
5456
5457 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5458
5459         * README: Modernize discussion of signed integers.
5460         Assuming overflow wraparound is no longer safe.
5461         Mention ones' complement and signed magnitude.
5462
5463 2011-07-22  Bruno Haible  <bruno@clisp.org>
5464
5465         select tests, pselect tests: Refactor.
5466         * tests/test-select.h: New file, extracted from tests/test-select.c.
5467         (select_fn): New type.
5468         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5469         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5470         test_pipe): Add my_select argument.
5471         (test_function): Renamed from main. Add my_select argument.
5472         * tests/test-select.c: Move most code to tests/test-select.h. Include
5473         test-select.h.
5474         * modules/select-tests (Files): Add tests/test-select.h.
5475         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5476         (my_select, main): New functions.
5477         * modules/pselect-tests (Files): Add tests/test-select.h,
5478         tests/macros.h, tests/signature.h.
5479         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5480         (configure.ac): Check for <sys/wait.h>.
5481
5482 2011-07-22  Bruno Haible  <bruno@clisp.org>
5483
5484         sys_select tests: Check the signature of FD_*.
5485         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5486         signature tests from here...
5487         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5488         here.
5489         * modules/sys_select-tests (Files): Add tests/signature.h.
5490
5491 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5492
5493         largefile: new module, replacing large-inode
5494         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5495         * MODULES.html.sh: Add largefile, remove large-inode.
5496         * modules/largefile, m4/largefile.m4: New files.
5497         * modules/large-inode, m4/large-inode.m4: Remove.
5498
5499         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5500         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5501         implementations that use only 32 bits to count blocks.
5502         On typical hosts with 1024-byte blocks, this fails with file
5503         systems as small as 4 TiB.  Problem reported by Herb Wartens
5504         <http://debbugs.gnu.org/9140> and this should also fix a similar
5505         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5506
5507         large-inode: New module
5508         * MODULES.html.sh: Add it.
5509         * modules/large-inode, m4/large-inode.m4: New files.
5510
5511         extensions: Enable extensions on MacOS X 10.5 and later.
5512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5513
5514 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5515
5516         file-has-acl: use acl_extended_file_nofollow if available
5517         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5518         (acl_extended_file): New macro.
5519         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5520         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5521
5522 2011-07-21  Bruno Haible  <bruno@clisp.org>
5523
5524         Declare system functions in a way that works with C++.
5525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5526         declare fdopendir as extern "C".
5527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5528         declare frexpl as extern "C".
5529         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5530         declare gai_strerror as extern "C".
5531         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5532         programs, declare gai_strerror as extern "C".
5533         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5534         declare getlogin_r as extern "C".
5535         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5536         as extern "C".
5537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5538         declare ldexpl as extern "C".
5539         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5540         as extern "C".
5541         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5542         program, declare getmntinfo as extern "C".
5543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5544         stpncpy as extern "C".
5545         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5546         program, declare __xpg_strerror_r as extern "C".
5547         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5548         strndup as extern "C".
5549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5550         declare memset and bzero as extern "C".
5551         Reported by Sam Steingold <sds@gnu.org>.
5552
5553 2011-07-12  Jim Meyering  <meyering@redhat.com>
5554
5555         maint.mk: prohibit inclusion of "verify.h" without use
5556         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5557
5558 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5559
5560         timer-time: A new module to check for timer_settime()
5561         * m4/timer_time.m4: Check for the posix function.
5562         * modules/timer-time: Add the new module.
5563         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5564         Mention it.
5565
5566 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5567             Bruno Haible  <bruno@clisp.org>
5568
5569         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5570         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5571         not defined, assume POSIX threads and look for pthread_sigmask in
5572         $LIBS, without changing $CPPFLAGS.
5573
5574 2011-07-19  Bruno Haible  <bruno@clisp.org>
5575
5576         strstr: Update cross-compilation guess.
5577         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5578         CPUs, guess no, in view of glibc
5579         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5580         Suggested by Eric Blake. Reported by Reuben Thomas.
5581
5582 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5583
5584         getopt-gnu: suppress core dumps from detection code
5585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5586         to suppress core dumps that may well occur on glibc systems.
5587         * modules/getopt-gnu: Depend on nocrash.
5588
5589 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5590
5591         pthread_sigmask: ensure usleep is declared
5592         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5593         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5594
5595 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5596
5597         doc: Document NonStop portability issues.
5598         * doc/posix-functions/sigaction.texi (sigaction):
5599         * doc/posix-headers/signal.texi (signal.h):
5600         Document NonStop.  See Joachim Schmitz in
5601         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5602
5603 2011-07-15  Bruno Haible  <bruno@clisp.org>
5604
5605         ffsl, ffsll: Avoid unportable behaviour.
5606         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5607
5608 2011-07-15  Bruno Haible  <bruno@clisp.org>
5609
5610         ffs: More tests.
5611         * tests/test-ffs.c (NBITS): New macro.
5612         (main): Add more tests.
5613         * tests/test-ffsl.c (NBITS): New macro.
5614         (main): Add more tests.
5615         * tests/test-ffsll.c (NBITS): New macro.
5616         (main): Add more tests.
5617
5618 2011-07-15  Eric Blake  <eblake@redhat.com>
5619
5620         ffsl, ffsll: new modules
5621         * modules/ffsl: New file.
5622         * modules/ffsll: Likewise.
5623         * m4/ffsl.m4: Likewise.
5624         * m4/ffsll.m4: Likewise.
5625         * lib/ffsl.c: Likewise.
5626         * lib/ffsl.h: Likewise.
5627         * lib/ffsll.c: Likewise.
5628         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5629         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5630         * modules/string (Makefile.am): Substitute witnesses.
5631         * lib/strings.in.h (ffsl, ffsll): Declare.
5632         * modules/ffsl-tests: New test file.
5633         * modules/ffsll-tests: Likewise.
5634         * tests/test-ffsl.c: Likewise.
5635         * tests/test-ffsll.c: Likewise.
5636         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5637         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5638         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5639
5640         ffs: fix m4 prerequisite
5641         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5642
5643         ffs: avoid undefined behavior
5644         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5645         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5646         Reported by Bruno Haible.
5647
5648 2011-07-12  Bruno Haible  <bruno@clisp.org>
5649
5650         pthread_sigmask: Rely on module 'threadlib'.
5651         * modules/pthread_sigmask (Depends-on): Add threadlib.
5652         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5653         is defined.
5654
5655 2011-07-12  Bruno Haible  <bruno@clisp.org>
5656
5657         regex: Depend on module 'strcase'.
5658         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5659
5660 2011-07-12  Jim Meyering  <meyering@redhat.com>
5661
5662         warn-on-use: fix typo in file name
5663         * modules/snippet/warn-on-use (Files): Correct file name:
5664         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5665
5666 2011-07-12  Bruno Haible  <bruno@clisp.org>
5667
5668         strings: Document module.
5669         * doc/posix-headers/strings.texi: Mention module 'strings'.
5670
5671 2011-07-12  Bruno Haible  <bruno@clisp.org>
5672
5673         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5674         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5675         (Files, Makefile.am): Update.
5676         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5677         * modules/stdlib (Depends-on): Update.
5678
5679 2011-07-12  Bruno Haible  <bruno@clisp.org>
5680
5681         * NEWS: Mention the changes.
5682
5683         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5684         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5685         (Files, Makefile.am): Update.
5686         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5687         * modules/arpa_inet (Depends-on): Update.
5688         * modules/ctype (Depends-on): Update.
5689         * modules/dirent (Depends-on): Update.
5690         * modules/fcntl-h (Depends-on): Update.
5691         * modules/glob (Depends-on): Update.
5692         * modules/iconv-h (Depends-on): Update.
5693         * modules/inttypes-incomplete (Depends-on): Update.
5694         * modules/langinfo (Depends-on): Update.
5695         * modules/locale (Depends-on): Update.
5696         * modules/math (Depends-on): Update.
5697         * modules/netdb (Depends-on): Update.
5698         * modules/poll-h (Depends-on): Update.
5699         * modules/pty (Depends-on): Update.
5700         * modules/search (Depends-on): Update.
5701         * modules/signal (Depends-on): Update.
5702         * modules/spawn (Depends-on): Update.
5703         * modules/stdio (Depends-on): Update.
5704         * modules/stdlib (Depends-on): Update.
5705         * modules/string (Depends-on): Update.
5706         * modules/strings (Depends-on): Update.
5707         * modules/sys_file (Depends-on): Update.
5708         * modules/sys_ioctl (Depends-on): Update.
5709         * modules/sys_select (Depends-on): Update.
5710         * modules/sys_socket (Depends-on): Update.
5711         * modules/sys_stat (Depends-on): Update.
5712         * modules/sys_time (Depends-on): Update.
5713         * modules/sys_times (Depends-on): Update.
5714         * modules/sys_utsname (Depends-on): Update.
5715         * modules/sys_wait (Depends-on): Update.
5716         * modules/termios (Depends-on): Update.
5717         * modules/time (Depends-on): Update.
5718         * modules/unistd (Depends-on): Update.
5719         * modules/wchar (Depends-on): Update.
5720         * modules/wctype-h (Depends-on): Update.
5721         * MODULES.html.sh (Support for building libraries and executables):
5722         Update.
5723
5724         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5725         * modules/snippet/unused-parameter: Renamed from
5726         modules/unused-parameter.
5727         (Files, Makefile.am): Update.
5728         * build-aux/snippet/unused-parameter.h: Renamed from
5729         build-aux/unused-parameter.h.
5730         * modules/selinux-h (Depends-on): Update.
5731         * modules/unistr/base (Depends-on): Update.
5732         * MODULES.html.sh (Core language properties): Update.
5733
5734         Rename module 'link-warning' to 'snippet/link-warning'.
5735         * modules/snippet/link-warning: Renamed from modules/link-warning.
5736         (Files, Makefile.am): Update.
5737         * build-aux/snippet/link-warning.h: Renamed from
5738         build-aux/link-warning.h.
5739         * MODULES.html.sh (Support for building libraries and executables):
5740         Update.
5741
5742         Rename module 'c++defs' to 'snippet/c++defs'.
5743         * modules/snippet/c++defs: Renamed from modules/c++defs.
5744         (Files, Makefile.am): Update.
5745         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5746         * modules/arpa_inet (Depends-on): Update.
5747         * modules/ctype (Depends-on): Update.
5748         * modules/dirent (Depends-on): Update.
5749         * modules/fcntl-h (Depends-on): Update.
5750         * modules/glob (Depends-on): Update.
5751         * modules/iconv-h (Depends-on): Update.
5752         * modules/langinfo (Depends-on): Update.
5753         * modules/locale (Depends-on): Update.
5754         * modules/math (Depends-on): Update.
5755         * modules/netdb (Depends-on): Update.
5756         * modules/poll-h (Depends-on): Update.
5757         * modules/pty (Depends-on): Update.
5758         * modules/search (Depends-on): Update.
5759         * modules/signal (Depends-on): Update.
5760         * modules/spawn (Depends-on): Update.
5761         * modules/stdio (Depends-on): Update.
5762         * modules/stdlib (Depends-on): Update.
5763         * modules/string (Depends-on): Update.
5764         * modules/strings (Depends-on): Update.
5765         * modules/sys_ioctl (Depends-on): Update.
5766         * modules/sys_select (Depends-on): Update.
5767         * modules/sys_socket (Depends-on): Update.
5768         * modules/sys_stat (Depends-on): Update.
5769         * modules/sys_time (Depends-on): Update.
5770         * modules/sys_wait (Depends-on): Update.
5771         * modules/termios (Depends-on): Update.
5772         * modules/time (Depends-on): Update.
5773         * modules/unistd (Depends-on): Update.
5774         * modules/wchar (Depends-on): Update.
5775         * modules/wctype-h (Depends-on): Update.
5776
5777         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5778         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5779         (Files, Makefile.am): Update.
5780         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5781         * modules/argv-iter (Depends-on): Update.
5782         * modules/arpa_inet (Depends-on): Update.
5783         * modules/dirent (Depends-on): Update.
5784         * modules/fcntl-h (Depends-on): Update.
5785         * modules/fnmatch (Depends-on): Update.
5786         * modules/getopt-posix (Depends-on): Update.
5787         * modules/glob (Depends-on): Update.
5788         * modules/iconv-h (Depends-on): Update.
5789         * modules/inttypes-incomplete (Depends-on): Update.
5790         * modules/locale (Depends-on): Update.
5791         * modules/math (Depends-on): Update.
5792         * modules/netdb (Depends-on): Update.
5793         * modules/search (Depends-on): Update.
5794         * modules/signal (Depends-on): Update.
5795         * modules/spawn (Depends-on): Update.
5796         * modules/stdio (Depends-on): Update.
5797         * modules/stdlib (Depends-on): Update.
5798         * modules/string (Depends-on): Update.
5799         * modules/strings (Depends-on): Update.
5800         * modules/sys_socket (Depends-on): Update.
5801         * modules/sys_stat (Depends-on): Update.
5802         * modules/sys_time (Depends-on): Update.
5803         * modules/sys_times (Depends-on): Update.
5804         * modules/sys_utsname (Depends-on): Update.
5805         * modules/time (Depends-on): Update.
5806         * modules/unistd (Depends-on): Update.
5807         * modules/wchar (Depends-on): Update.
5808         * MODULES.html.sh (Support for building libraries and executables):
5809         Update.
5810
5811 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5812
5813         Improvements on _Noreturn and related modules.
5814
5815         modules/_Exit-tests: test _Noreturn too
5816         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5817         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5818         (main): Use them.
5819
5820         stdnoreturn, stdnoreturn-tests: remove modules
5821         They're not needed here and a bit premature for use elsewhere.  See
5822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5823         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5824         * tests/test-stdnoreturn.c: Remove files.
5825         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5826         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5827         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5828         and using noreturn.
5829         * modules/openat, modules/sigpipe-die, modules/xalloc:
5830         * modules/xmemdup0, modules/xstrtol:
5831         Remove dependency on stdnoreturn.
5832
5833         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5834         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5835         Reparenthesize to avoid GCC warning.
5836         Support Microsoft's syntax.
5837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5838
5839         _Noreturn-tests: remove module
5840         * modules/_Noreturn-tests: Remove.
5841         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5842         * tests/test-_Noreturn.c: Remove.
5843         * tests/test-stdnoreturn.c: Merge from the old
5844         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5845
5846 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5847
5848         _Noreturn, stdnoreturn, and related modules.
5849
5850         * top/maint.mk: Adjust to new noreturn support.
5851         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5852         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5853
5854         xalloc: use stdnoreturn.h
5855         * lib/xalloc.h: Include <stdnoreturn.h>.
5856         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5857         * modules/xalloc (Depends-on): Add stdnoreturn.
5858
5859         xstrtol: use stdnoreturn.h
5860         * lib/xstrtol.h: Include <stdnoreturn.h>.
5861         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5862         * modules/xstrtol (Depends-on): Add stdnoreturn.
5863
5864         xmemdup0: use stdnoreturn.h
5865         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5866         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5867         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5868
5869         sigpipe-die: use stdnoreturn.h
5870         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5871         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5872         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5873
5874         openat: use stdnoreturn.h
5875         * lib/openat.h: Include <stdnoreturn.h>.
5876         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5877         * modules/openat (Depends-on): Add stdnoreturn.
5878
5879         * lib/openat-die.c (openat_save_fail): Modernize comment.
5880
5881         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5882
5883         * lib/glthread/thread.h: Modernize comment.
5884
5885         obstack: use _Noreturn
5886         * lib/obstack.c (__attribute__): Remove macro.
5887         (print_and_abort): Use _Noreturn.
5888
5889         c-stack: use _Noreturn
5890         * lib/c-stack.c (die, overflow_handler, segv_handler):
5891         Use _Noreturn rather than __attribute__((noreturn)).
5892
5893         argmatch-tests, exclude_tests: use _Noreturn
5894         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5895         Remove.
5896         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5897
5898         stdlib: use _Noreturn
5899         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5900         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5901         * modules/stdlib (Depends-on): Add _Noreturn.
5902         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5903
5904         stdnoreturn-tests: new module
5905         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5906
5907         stdnoreturn: new module
5908         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5909         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5910
5911         _Noreturn-tests: new module
5912         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5913
5914         _Noreturn: new module
5915         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5916         New section, mentioning it.
5917         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5918
5919         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5920
5921 2011-07-11  Eric Blake  <eblake@redhat.com>
5922
5923         ffs: new module
5924         * modules/ffs: New file.
5925         * m4/ffs.m4: Likewise.
5926         * lib/ffs.c: Likewise.
5927         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5928         * modules/strings (Makefile.am): Substitute witness.
5929         (Depends-on): Add c++defs.
5930         * lib/strings.in.h (ffs): Declare.
5931         * modules/ffs-tests: New test file.
5932         * tests/test-ffs.c: Test new module.
5933         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5934         * doc/posix-functions/ffs.texi (ffs): Likewise.
5935
5936         regex: avoid compiler warning
5937         * lib/regex.c (includes): Include <strings.h>, for use of
5938         strcasecmp in regcomp.c.
5939         Reported by Joachim Schmitz.
5940
5941 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5942
5943         stdint: respect system's intmax_t if INTMAX_MAX
5944         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5945         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5946         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5947         long but int64_t is long long, and where we will clash with the
5948         system intmax_t if we override it.  See
5949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5950         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5951         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5952         similarly for UINTMAX_C.
5953
5954 2011-07-08  Bruno Haible  <bruno@clisp.org>
5955
5956         pthread_sigmask tests: Avoid a compiler warning.
5957         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5958         non-zero.
5959
5960         sigprocmask tests: A better way to avoid a compiler warning.
5961         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5962         (main): Complain if system() returns non-zero.
5963         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5964
5965 2011-07-08  Bruno Haible  <bruno@clisp.org>
5966
5967         pthread_sigmask: Work around IRIX bug.
5968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5969         bug.
5970         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5971         there may be unblocked pending signals.
5972         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5973
5974 2011-07-08  Bruno Haible  <bruno@clisp.org>
5975
5976         pthread_sigmask: Work around Cygwin bug.
5977         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5978         bug.
5979         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5980         the system's pthread_sigmask function.
5981         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5982
5983 2011-07-08  Bruno Haible  <bruno@clisp.org>
5984
5985         pthread_sigmask: Work around bug in single-threaded implementation.
5986         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5987         FreeBSD, HP-UX, Solaris bug.
5988         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5989         * lib/pthread_sigmask.c: Include <stddef.h>.
5990         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5991         the system's pthread_sigmask function.
5992         * modules/pthread_sigmask (configure.ac): Invoke
5993         gl_PREREQ_PTHREAD_SIGMASK.
5994         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5995         HP-UX, Solaris.
5996
5997 2011-07-08  Eric Blake  <eblake@redhat.com>
5998
5999         test-sigprocmask: avoid compiler warning
6000         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6001         * tests/test-sigprocmask.c (main): Use it to silence warning.
6002         Reported by Jim Meyering.
6003
6004         test-snprintf: avoid compiler warning
6005         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6006         * tests/test-vsnprintf.c (main): Likewise.
6007         Reported by Jim Meyering.
6008
6009 2011-07-08  Bruno Haible  <bruno@clisp.org>
6010
6011         Tests for module 'pthread_sigmask'.
6012         * modules/pthread_sigmask-tests: New file.
6013         * tests/test-pthread_sigmask1.c: New file, based on
6014         tests/test-sigprocmask.c.
6015         * tests/test-pthread_sigmask2.c: New file.
6016
6017 2011-07-08  Jim Meyering  <meyering@redhat.com>
6018
6019         test-getopt.h: avoid warning about an unused variable
6020         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6021
6022 2011-07-07  Jim Meyering  <meyering@redhat.com>
6023
6024         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6025         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6026         now that it no longer contains leading TABs.
6027         Remove unused "url=FIXME" statement.
6028
6029 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6030
6031         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6032         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6033         When gl_THREADLIB is not in use, assume that the POSIX sematics
6034         are desired.  This is better for Emacs, which uses POSIX semantics
6035         on GNUish and/or POSIXish platforms, and does not use threads at
6036         all otherwise.
6037
6038         pthread_sigmask: fix typo when testing for libraries
6039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6040         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6041
6042 2011-07-08  Eric Blake  <eblake@redhat.com>
6043
6044         fts: introduce FTS_NOATIME
6045         * lib/fts_.h (FTS_NOATIME): New bit flag.
6046         (FTS_OPTIONMASK): Adjust.
6047         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6048         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6049
6050 2011-07-08  Bruno Haible  <bruno@clisp.org>
6051
6052         Tests for module 'thread'.
6053         * modules/thread-tests: New file.
6054         * tests/test-thread_self.c: New file.
6055         * tests/test-thread_create.cc: New file.
6056
6057 2011-07-08  Bruno Haible  <bruno@clisp.org>
6058
6059         thread: Avoid gcc warnings when using gl_thread_self().
6060         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6061         'void *'.
6062         (gl_thread_self_pointer): Update.
6063
6064 2011-07-07  Bruno Haible  <bruno@clisp.org>
6065
6066         signal-c++-tests: Check declaration of pthread_sigmask.
6067         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6068         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6069         $(LIB_PTHREAD_SIGMASK).
6070
6071 2011-07-07  Bruno Haible  <bruno@clisp.org>
6072
6073         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6074         * lib/signal.in.h (pthread_sigmask): Override if
6075         REPLACE_PTHREAD_SIGMASK is 1.
6076         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6077         REPLACE_PTHREAD_SIGMASK.
6078         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6079         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6080         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6081         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6082         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6083
6084 2011-07-07  Bruno Haible  <bruno@clisp.org>
6085
6086         pthread_sigmask: Ensure declaration in <signal.h>.
6087         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6088         include <pthread.h>.
6089         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6090         problem.
6091
6092 2011-07-07  Bruno Haible  <bruno@clisp.org>
6093
6094         pthread_sigmask: Document the module.
6095         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6096
6097 2011-07-07  Bruno Haible  <bruno@clisp.org>
6098
6099         pthread_sigmask: Follow gnulib conventions.
6100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6101         gl_PTHREAD_SIGMASK.
6102         * modules/pthread_sigmask (configure.ac): Update.
6103
6104 2011-07-07  Bruno Haible  <bruno@clisp.org>
6105
6106         pthread_sigmask: Make declaration C++ safe.
6107         * lib/signal.in.h: In two special conditions, just do an #include_next.
6108         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6109         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6110         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6111         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6112         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6113         not REPLACE_PTHREAD_MASK.
6114         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6115         not REPLACE_PTHREAD_MASK.
6116         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6117
6118 2011-07-07  Bruno Haible  <bruno@clisp.org>
6119
6120         pthread_sigmask: Fix return value.
6121         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6122         * lib/pthread_sigmask.c: New file.
6123         * modules/pthread_sigmask (Files): Add it.
6124         (configure.ac): Invoke AC_LIBOBJ.
6125
6126 2011-07-07  Eric Blake  <eblake@redhat.com>
6127
6128         getopt: more portable argv creation
6129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6130         const, use char arrays rather than strings.
6131         Suggested by Paul Eggert.
6132
6133 2011-07-07  Bruno Haible  <bruno@clisp.org>
6134
6135         Tests for module 'sigprocmask'.
6136         * modules/sigprocmask-tests: New file.
6137         * tests/test-sigprocmask.c: New file.
6138
6139 2011-07-07  Bruno Haible  <bruno@clisp.org>
6140
6141         float tests: Tweak.
6142         * tests/test-float.c (main): Tweak skip message.
6143
6144 2011-07-07  Eric Blake  <eblake@redhat.com>
6145
6146         getopt: avoid compiler warning during configure
6147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6148         assigning string literals to non-const pointer.
6149
6150         getopt-gnu: avoid crash in glibc getopt
6151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6152         * tests/test-getopt.h (test_getopt): Enhance test.
6153         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6154         * doc/posix-functions/getopt.texi (getopt): Document it.
6155         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6156         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6157         Likewise.
6158
6159 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6160
6161         getopt: handle W; without long options in getopt [BZ #12922]
6162         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6163         but no long options are defined, just return 'W'.
6164
6165 2011-07-07  Bruno Haible  <bruno@clisp.org>
6166
6167         Avoid literal tabs.
6168         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6169         variable containing a tab instead of a literal tab.
6170         Reported by Jim Meyering.
6171
6172 2011-07-07  Bruno Haible  <bruno@clisp.org>
6173
6174         Comments.
6175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6176
6177 2011-07-06  Bruno Haible  <bruno@clisp.org>
6178
6179         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6180         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6181         <winsock2.h>.
6182         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6183         lib/sys_socket.in.h.
6184         (close, gethostname): Hide declarations from <winsock2.h>.
6185         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6186         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6187         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6188         (select): Don't override if gnulib's <sys/select.h> was already
6189         included.
6190         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6191         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6192         setsockopt, shutdown, select): Tweak indentation.
6193
6194 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6195
6196         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6197         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6198         in an application that does not use the sys_select module.
6199
6200 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6201
6202         poll: do not return 0 on timeout=-1
6203         * lib/poll.c: Loop with yield if no events occured
6204
6205 2011-07-06  Eric Blake  <eblake@redhat.com>
6206
6207         pthread_sigmask: always replace when not using pthread
6208         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6209         replacement when using some threading other than pthread.  Fix
6210         logic bug.
6211
6212 2011-07-06  Bruno Haible  <bruno@clisp.org>
6213
6214         Comments.
6215         * m4/printf.m4: Update comments about mingw.
6216
6217 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6218
6219         sys_select: define sigset_t more portably
6220         * lib/sys_select.in.h: Always include <sys/types.h>, since
6221         we now need sigset_t and mingw defines it there.
6222         Include <signal.h> before split inclusion guard, to avoid
6223         mishaps on Solaris, whose <signal.h> eventually includes us.
6224         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6225         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6226         which come from ...
6227         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6228         gl_CHECK_TYPE_SIGSET_T.
6229         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6230         does the real work.
6231         * modules/sys_select (Depends-on): Add 'signal'.
6232
6233         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6234         Suggested by Bruno Haible.
6235
6236         pselect: Use pthread_sigmask, not sigprocmask.
6237         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6238         multithreaded apps better than sigprocmask does.
6239         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6240         sigprocmask directly.
6241
6242 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6245         Don't #undef,  since we don't need any underlying pselect.
6246         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6247         (Depends-on): Add select.
6248         (Link): Add $(LIBSOCKET).
6249         These changes suggested by Bruno Haible.
6250
6251         pselect: document better
6252         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6253         * doc/posix-functions/pselect.texi (pselect): Document new module.
6254
6255         pthread_sigmask: new module
6256         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6257         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6258         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6259         This is done only as a macro; I don't know how well that'll
6260         work for C++.  Move <sys/types.h> include before the include_next,
6261         to avoid mishap on Solaris.
6262         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6263         * modules/signal (Makefile.am): Substitute the check's results.
6264         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6265
6266         test-pselect: new module
6267         * modules/pselect-tests, tests/test-pselect.c: New files.
6268         * tests/test-select.c, tests/test-sys_select-c++.cc:
6269         If TEST_PSELECT is defined, test pselect instead of testing select.
6270
6271         * tests/test-sys_select.c (sigset_t): Test for it, too.
6272         Suggested by Bruno Haible.
6273
6274 2011-07-05  Eric Blake  <eblake@redhat.com>
6275
6276         snprintf: guarantee %1$d, for libintl
6277         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6278         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6279         * doc/posix-functions/snprintf.texi (snprintf): Update.
6280         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6281         * tests/test-snprintf.c (main): Enhance test.
6282         * tests/test-vsnprintf.c (main): Likewise.
6283
6284 2011-07-05  Jim Meyering  <meyering@redhat.com>
6285
6286         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6287         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6288         per Bruno's request, to accommodate this idiom (no space after "#")
6289         even when the function is inside an #if block:
6290         char *
6291         gets (char *s)
6292         #undef gets
6293         {
6294           ...
6295         }
6296
6297 2011-07-04  Jim Meyering  <meyering@redhat.com>
6298
6299         maint: indent with spaces, not TABs, and add a rule to check this
6300         * tests/test-userspec.c: Indent with spaces, not TABs.
6301         * tests/test-argp.c: Likewise.
6302         * tests/test-c-stack2.sh: Likewise.
6303         * tests/test-parse-duration.sh: Likewise
6304         * m4/strtod.m4: Likewise.
6305         * m4/alloca.m4: Likewise.
6306         * m4/pselect.m4: Likewise.
6307         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6308
6309 2011-07-03  Jim Meyering  <meyering@redhat.com>
6310
6311         maint.mk: correct omissions in prohibit_argmatch_without_use check
6312         This rule would mistakenly report that argmatch.h is included without
6313         use even when both the argmatch and invalid_arg macro were used.
6314         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6315         of argmatch and invalid_arg.
6316
6317 2011-07-03  Bruno Haible  <bruno@clisp.org>
6318
6319         Comments about EINTR.
6320         * lib/safe-read.h: Explain the purpose of this module.
6321         * lib/safe-write.h: Likewise.
6322         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6323         module.
6324         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6325         module.
6326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6327
6328 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6329
6330         xnanosleep: Rewrite to use new dtotimespec module.
6331         It has the conversion code that used to be in xnanosleep.
6332         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6333         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6334         (TIME_T_MAX): Remove.
6335         (xnanosleep): Rewrite in terms of dtotimespec.
6336         * modules/xnanosleep (Depends-on): Add dtotimespec.
6337         Remove intprops, stdbool.
6338
6339         timespec-add, timespec-sub: new modules
6340         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6341         * lib/timespec-add.c, lib/timespec-sub.c:
6342         * modules/timespec-add, modules/timespec-sub: New files.
6343
6344         dtotimespec: new module
6345         * lib/timespec.h (dtotimespec): New decl.
6346         * lib/dtotimespec.c, modules/dtotimespec: New files.
6347
6348         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6349
6350         pselect: new module
6351         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6352         (pselect): New decls.
6353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6354         since the standard pselect decl uses 'restrict'.
6355         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6356         HAVE_PSELECT, REPLACE_PSELECT.
6357         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6358         HAVE_PSELECT, REPLACE_PSELECT.
6359         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6360
6361         sys_select: don't depend on sys_socket
6362         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6364         This fix works on GNU and GNU-like platforms, but has not been tested
6365         on native Windows.
6366         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6368         gl_HEADER_SYS_SOCKET.
6369         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6370         gl_PREREQ_SYS_H_WINSOCK2.
6371
6372 2011-06-29  Eric Blake  <eblake@redhat.com>
6373
6374         pipe2: fix C89 compile problem
6375         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6376         Reported by Bruno Haible.
6377
6378         pipe, pipe2: don't corrupt fd on error
6379         * lib/pipe.c (pipe): Leave fd unchanged on error.
6380         * lib/pipe2.c (pipe2): Likewise.
6381         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6382         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6383
6384 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6385
6386         mmap-anon: do not use regular expressions inadvertently
6387         * m4/mmap-anon.m4: Remove trailing period from strings sought
6388         in the output.
6389
6390 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6391
6392         nanosleep: fix integer overflow problem
6393         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6394         arithmetic wraps around on overflow.
6395
6396         nanosleep: simplify carrying
6397         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6398         first call to the underyling nanosleep, not for the last one.
6399         This doesn't fix any bugs, but it simplifies the computation of
6400         the remaining delay.  Found while auditing integer overflow issues.
6401
6402         dup2: remove test for existence of fcntl
6403         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6404         "#if HAVE_FCNTL", in the configure-time test program.
6405         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6406         and therefore speeds up "configure" a bit.  Found while
6407         adding the dup2 module to Emacs.
6408
6409 2011-06-24  Eric Blake  <eblake@redhat.com>
6410
6411         maint.mk: enhance useless header checks
6412         * top/maint.mk (_sc_header_without_use): Check both include
6413         styles.
6414         (sc_prohibit_assert_without_use)
6415         (sc_prohibit_close_stream_without_use)
6416         (sc_prohibit_getopt_without_use)
6417         (sc_prohibit_quotearg_without_use)
6418         (sc_prohibit_quote_without_use)
6419         (sc_prohibit_long_options_without_use)
6420         (sc_prohibit_inttostr_without_use)
6421         (sc_prohibit_ignore_value_without_use)
6422         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6423         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6424         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6425         (sc_prohibit_hash_pjw_without_use)
6426         (sc_prohibit_safe_read_without_use)
6427         (sc_prohibit_argmatch_without_use)
6428         (sc_prohibit_canonicalize_without_use)
6429         (sc_prohibit_root_dev_ino_without_use)
6430         (sc_prohibit_openat_without_use)
6431         (sc_prohibit_c_ctype_without_use)
6432         (sc_prohibit_signal_without_use)
6433         (sc_prohibit_stdio--_without_use)
6434         (sc_prohibit_stdio-safer_without_use)
6435         (sc_prohibit_strings_without_use)
6436         (sc_prohibit_intprops_without_use)
6437         (sc_prohibit_stddef_without_use)
6438         (sc_prohibit_xfreopen_without_use): Update clients.
6439
6440 2011-06-24  Jim Meyering  <meyering@redhat.com>
6441
6442         syntax-check: keep one maint.mk rule in sync with its header
6443         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6444         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6445         I prefer to avoid temporary files here, so use <(...), but that
6446         is not supported by /bin/sh, so...
6447         (SHELL): Define to /bin/bash.
6448
6449 2011-06-24  Eric Blake  <eblake@redhat.com>
6450
6451         maint.mk: update sc_prohibit_intprops_without_use
6452         * top/maint.mk (_intprops_names): Match recent changes.
6453
6454 2011-06-24  Bruno Haible  <bruno@clisp.org>
6455
6456         strerror-override: No-op tweak.
6457         * lib/strerror-override.h (strerror_override): Reorder conditions,
6458         for consistency with lib/strerror-override.c.
6459
6460 2011-06-23  Eric Blake  <eblake@redhat.com>
6461
6462         maint.mk: test further PATH_MAX issues
6463         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6464         (sc_prohibit_path_max_allocation): ...and also test alloca.
6465         Suggested by Jim Meyering.
6466
6467 2011-06-22  Eric Blake  <eblake@redhat.com>
6468
6469         maint.mk: add syntax-check to avoid char[PATH_MAX]
6470         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6471
6472         stat: be robust to PATH_MAX definition
6473         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6474         * modules/stat (Depends-on): Add verify.
6475
6476         link: work around IRIX bug
6477         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6478         * lib/link.c (rpl_link): Work around it.
6479         * tests/test-link.h (test_link): Enhance test.
6480         * doc/posix-functions/link.texi (link): Document the bug.
6481
6482         getopt: silence clang warning
6483         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6484         dereference.
6485         Reported by Gustavo Martin Domato.
6486
6487 2011-06-22  Jim Meyering  <meyering@redhat.com>
6488
6489         bootstrap: do not insert a blank line into each .gitignore file
6490         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6491
6492 2011-06-21  Eric Blake  <eblake@redhat.com>
6493
6494         perror: test for output mismatch
6495         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6496         perror on IRIX.
6497
6498         strerror_r: fix OpenBSD behavior on out-of-range
6499         * lib/strerror_r.c (strerror_r): Always use maximal string.
6500         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6501
6502         strerror_r: fix OpenBSD behavior on 0
6503         * lib/strerror-override.c (strerror_override): Also override 0
6504         when needed.
6505         * lib/strerror-override.h (strerror_override): Likewise.
6506         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6507         earlier.
6508         * lib/strerror_r.c (strerror_r): Likewise.
6509         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6510         behavior...
6511         (gl_FUNC_STRERROR_0): ...into new macro.
6512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6513         is overridden.
6514         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6515         * modules/strerror-override (Files): Add strerror.m4.
6516         (configure.ac): Also provide override for 0 when needed.
6517         * doc/posix-functions/strerror.texi (strerror): Document this.
6518         * doc/posix-functions/perror.texi (perror): Likewise.
6519
6520         perror: adjust array size
6521         * modules/perror (Depends-on): Add strerror-override.
6522         * lib/perror.c (perror): Use it to avoid magic number.
6523
6524         strerror-override: reduce size
6525         * lib/strerror-override.c (strerror_override): Use fewer lines.
6526
6527 2011-06-20  Bruno Haible  <bruno@clisp.org>
6528
6529         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6530         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6531
6532 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6533
6534         alloca: port to compilers that can optimize like GCC 4.6.0
6535         * lib/alloca.c (find_stack_direction): New signature, taken from
6536         Autoconf git.  This works with GCC 4.6.0.  This code should never
6537         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6538         be used with other compilers that optimize as well as GCC 4.6.0 does.
6539         (alloca): Adjust to new signature.
6540         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6541         New macro, which patches Autoconf in a similar way.
6542
6543         c-stack: stop worrying about stack direction
6544         * lib/c-stack.c (find_stack_direction): Remove.
6545         (segv_handler): Don't worry about stack direction growth, as it's
6546         too much of a pain to configure this correctly, given how compilers
6547         are optimizing-away our stack-growth detection code.  Instead, assume
6548         that any access to just before or just after the stack is OK.
6549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6550         Don't require AC_FUNC_ALLOCA; no longer needed.
6551
6552 2011-06-20  Eric Blake  <eblake@redhat.com>
6553
6554         test-stat: don't allocate PATH_MAX bytes
6555         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6556         PATH_MAX-sized buffer.
6557         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6558         * modules/stat-tests (Depends-on): Likewise.
6559         * tests/test-fstatat.c (includes): Drop pathmax.h.
6560         * tests/test-stat.c (includes): Likewise.
6561         Reported by Bruno Haible.
6562
6563 2011-06-20  Bruno Haible  <bruno@clisp.org>
6564
6565         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6566         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6567         * lib/float.c: New file.
6568         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6569         REPLACE_FLOAT_LDBL.
6570         * modules/float (Files): Add lib/float.c.
6571         (configure.ac): Invoke AC_LIBOBJ.
6572         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6573
6574 2011-06-20  Bruno Haible  <bruno@clisp.org>
6575
6576         Tests for module 'float'.
6577         * modules/float-tests: New file.
6578         * tests/test-float.c: New file.
6579
6580 2011-06-19  Bruno Haible  <bruno@clisp.org>
6581
6582         isinf: Coding style.
6583         * lib/isinf.c: Use GNU coding style.
6584
6585 2011-06-19  Bruno Haible  <bruno@clisp.org>
6586
6587         linkat test: Avoid test failure on AIX 7.1.
6588         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6589         * tests/test-link.h (test_link): Likewise.
6590
6591 2011-06-19  Bruno Haible  <bruno@clisp.org>
6592
6593         pread test: Avoid test failure on OpenBSD 4.9.
6594         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6595
6596 2011-06-19  Bruno Haible  <bruno@clisp.org>
6597
6598         sprintf-posix: Fix test failure on AIX 7.1.
6599         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6600         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6601         on AIX.
6602         * doc/posix-functions/fprintf.texi: Likewise.
6603         * doc/posix-functions/printf.texi: Likewise.
6604         * doc/posix-functions/snprintf.texi: Likewise.
6605         * doc/posix-functions/sprintf.texi: Likewise.
6606         * doc/posix-functions/vdprintf.texi: Likewise.
6607         * doc/posix-functions/vfprintf.texi: Likewise.
6608         * doc/posix-functions/vprintf.texi: Likewise.
6609         * doc/posix-functions/vsnprintf.texi: Likewise.
6610         * doc/posix-functions/vsprintf.texi: Likewise.
6611
6612 2011-06-19  Bruno Haible  <bruno@clisp.org>
6613
6614         roundl-ieee: Fix test failure on AIX 7.1.
6615         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6616         * doc/posix-functions/roundl.texi: Mention problem with negative
6617         arguments.
6618
6619 2011-06-19  Bruno Haible  <bruno@clisp.org>
6620
6621         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6622         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6623         * doc/posix-functions/round.texi: Mention problem with negative
6624         arguments.
6625         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6626
6627 2011-06-19  Bruno Haible  <bruno@clisp.org>
6628
6629         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6631         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6632         * doc/posix-functions/roundf.texi: Mention problem with negative
6633         arguments.
6634         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6635
6636 2011-06-19  Bruno Haible  <bruno@clisp.org>
6637
6638         ceilf-ieee: Work around bug on MacOS X 10.5.
6639         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6640
6641         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6642         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6643         IEEE compliant, avoid compiler optimizations.
6644         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6645         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6646         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6647         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6648         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6649         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6650         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6652         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6654
6655 2011-06-19  Bruno Haible  <bruno@clisp.org>
6656
6657         ceilf-ieee: Work around bug on AIX 7.1.
6658         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6659         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6660
6661 2011-06-19  Bruno Haible  <bruno@clisp.org>
6662
6663         ceil-ieee: Work around bug on AIX 7.1.
6664         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6665         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6666
6667 2011-06-18  Bruno Haible  <bruno@clisp.org>
6668
6669         fsync test: Avoid test failure on MacOS X and AIX.
6670         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6671         EINVAL.
6672
6673 2011-06-18  Bruno Haible  <bruno@clisp.org>
6674
6675         openat, fdopendir tests: Fix link errors.
6676         * modules/openat-tests (Depends-on): Add progname.
6677         * modules/fdopendir-tests (Depends-on): Likewise.
6678         * tests/test-fchownat.c: Include progname.h.
6679         (main): Call set_program_name.
6680         * tests/test-fstatat.c: Include progname.h.
6681         (main): Call set_program_name.
6682         * tests/test-mkdirat.c: Include progname.h.
6683         (main): Call set_program_name.
6684         * tests/test-openat.c: Include progname.h.
6685         (main): Call set_program_name.
6686         * tests/test-unlinkat.c: Include progname.h.
6687         (main): Call set_program_name.
6688         * tests/test-fdopendir.c: Include progname.h.
6689         (main): Call set_program_name.
6690
6691 2011-06-18  Bruno Haible  <bruno@clisp.org>
6692
6693         Doc update.
6694         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6695         HP-UX.
6696         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6697
6698 2011-06-18  Bruno Haible  <bruno@clisp.org>
6699
6700         getcwd tests: Avoid compilation error on HP-UX 11.31.
6701         * modules/getcwd-tests (Depends-on): Add pathmax.
6702         * tests/test-getcwd.c: Include pathmax.h.
6703
6704 2011-06-18  Bruno Haible  <bruno@clisp.org>
6705
6706         isfinite, isinf: Fix link error on AIX 6 and 7.
6707         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6708         needed, also test the macro with a 'float' argument.
6709         * m4/isinf.m4 (gl_ISINF): Likewise.
6710
6711 2011-06-18  Bruno Haible  <bruno@clisp.org>
6712
6713         getloadavg: Don't clobber LIBS. Regression from previous commit.
6714         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6715         AC_CHECK_LIB from here...
6716         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6717         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6718         gl_func_getloadavg_done.
6719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6720
6721 2011-06-18  Bruno Haible  <bruno@clisp.org>
6722
6723         clean-temp: Improve documentation.
6724         * lib/clean-temp.h: Explain better how to use this module.
6725         Reported by John Darrington <john@darrington.wattle.id.au>.
6726
6727 2011-06-17  Bruno Haible  <bruno@clisp.org>
6728
6729         pread, pwrite: Avoid cc warning on AIX.
6730         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6731         (pwrite): Likewise.
6732
6733 2011-06-17  Bruno Haible  <bruno@clisp.org>
6734
6735         spawn-pipe tests: Fix link error.
6736         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6738
6739 2011-06-17  Bruno Haible  <bruno@clisp.org>
6740
6741         Tests: Remove unnecessary dependency.
6742         * modules/canonicalize-tests (Depends-on): Remove progname.
6743         * modules/chown-tests (Depends-on): Likewise.
6744         * modules/dirname-tests (Depends-on): Likewise.
6745         * modules/fdopendir-tests (Depends-on): Likewise.
6746         * modules/fdutimensat-tests (Depends-on): Likewise.
6747         * modules/hash-tests (Depends-on): Likewise.
6748         * modules/lchown-tests (Depends-on): Likewise.
6749         * modules/linkat-tests (Depends-on): Likewise.
6750         * modules/renameat-tests (Depends-on): Likewise.
6751         * modules/spawn-pipe-tests (Depends-on): Likewise.
6752         * modules/utimensat-tests (Depends-on): Likewise.
6753
6754 2011-06-17  Bruno Haible  <bruno@clisp.org>
6755
6756         spawn-pipe tests: Fix link error.
6757         * tests/test-spawn-pipe-child.c: Undefine fflush.
6758
6759 2011-06-17  Bruno Haible  <bruno@clisp.org>
6760
6761         Fix tests link errors.
6762         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6763         * modules/chown-tests (Makefile.am): Don't link test-chown with
6764         LIBINTL.
6765         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6766         LIBINTL.
6767         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6768         LIBINTL.
6769         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6770         LIBINTL.
6771
6772 2011-06-16  Bruno Haible  <bruno@clisp.org>
6773
6774         crypto/gc-sha1: Fix recent regression.
6775         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6776         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6777
6778         crypto/gc-md5: Fix recent regression.
6779         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6780
6781         crypto/gc-md4: Fix recent regression.
6782         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6783         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6784
6785         crypto/gc-arctwo: Fix recent regression.
6786         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6787         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6788
6789         crypto/gc-rijndael: Fix recent regression.
6790         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6791         (configure.ac): Invoke AC_LIBOBJ here.
6792         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6794
6795         crypto/gc-hmac-sha1: Fix recent regression.
6796         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6797         (configure.ac): Invoke AC_LIBOBJ here.
6798         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6800
6801         crypto/gc-hmac-md5: Fix recent regression.
6802         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6803         (configure.ac): Invoke AC_LIBOBJ here.
6804         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6806
6807         crypto/gc-des: Fix recent regression.
6808         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6809         (configure.ac): Invoke AC_LIBOBJ here.
6810         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6812
6813         crypto/gc-arcfour: Fix recent regression.
6814         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6815         (configure.ac): Invoke AC_LIBOBJ here.
6816         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6818
6819 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6820
6821         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6822         After the 2011-05-21 change, this macro requires
6823         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6825
6826 2011-06-16  Bruno Haible  <bruno@clisp.org>
6827
6828         fprintftime: Move AC_LIBOBJ invocations to module description.
6829         * m4/fprintftime.m4: Remove file.
6830         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6831         (configure.ac): Remove gl_FPRINTFTIME call.
6832         (Makefile.am): Augment lib_SOURCES.
6833         Reported by Jim Meyering.
6834
6835 2011-06-16  Bruno Haible  <bruno@clisp.org>
6836
6837         tmpfile-safer: Finish 2011-05-23 commit.
6838         * m4/stdio-safer.m4: Really remove file.
6839         Reported by Jim Meyering.
6840
6841 2011-06-16  Bruno Haible  <bruno@clisp.org>
6842
6843         syntax-check: Fix typo.
6844         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6845         printf-posix.m4.
6846         Reported by Jim Meyering.
6847
6848 2011-06-13  Jim Meyering  <meyering@redhat.com>
6849
6850         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6851         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6852
6853 2011-05-23  Bruno Haible  <bruno@clisp.org>
6854
6855         yesno: Move AC_LIBOBJ invocations to module description.
6856         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6857         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6858
6859 2011-05-23  Bruno Haible  <bruno@clisp.org>
6860
6861         xstrtol: Move AC_LIBOBJ invocations to module description.
6862         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6863         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6864
6865 2011-05-23  Bruno Haible  <bruno@clisp.org>
6866
6867         xstrtold: Move AC_LIBOBJ invocations to module description.
6868         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6869         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6870
6871 2011-05-23  Bruno Haible  <bruno@clisp.org>
6872
6873         xstrtod: Move AC_LIBOBJ invocations to module description.
6874         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6875         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6876
6877 2011-05-23  Bruno Haible  <bruno@clisp.org>
6878
6879         xnanosleep: Move AC_LIBOBJ invocations to module description.
6880         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6881         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6882
6883 2011-05-23  Bruno Haible  <bruno@clisp.org>
6884
6885         xgetcwd: Move AC_LIBOBJ invocations to module description.
6886         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6887         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6888
6889 2011-05-23  Bruno Haible  <bruno@clisp.org>
6890
6891         xalloc: Move AC_LIBOBJ invocations to module description.
6892         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6893         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6894
6895 2011-05-23  Bruno Haible  <bruno@clisp.org>
6896
6897         write-any-file: Move AC_LIBOBJ invocations to module description.
6898         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6899         invocation.
6900         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6901
6902 2011-05-23  Bruno Haible  <bruno@clisp.org>
6903
6904         utimens: Move AC_LIBOBJ invocations to module description.
6905         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6906         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6907
6908 2011-05-23  Bruno Haible  <bruno@clisp.org>
6909
6910         utimecmp: Move AC_LIBOBJ invocations to module description.
6911         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6912         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6913
6914 2011-05-23  Bruno Haible  <bruno@clisp.org>
6915
6916         userspec: Move AC_LIBOBJ invocations to module description.
6917         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6918         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6919
6920 2011-05-23  Bruno Haible  <bruno@clisp.org>
6921
6922         unlinkdir: Move AC_LIBOBJ invocations to module description.
6923         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6924         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6925
6926 2011-05-23  Bruno Haible  <bruno@clisp.org>
6927
6928         unistd-safer: Move AC_LIBOBJ invocations to module description.
6929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6930         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6931
6932 2011-05-23  Bruno Haible  <bruno@clisp.org>
6933
6934         tempname: Move AC_LIBOBJ invocations to module description.
6935         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6936         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6937
6938 2011-05-23  Bruno Haible  <bruno@clisp.org>
6939
6940         strftime: Move AC_LIBOBJ invocations to module description.
6941         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6942         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6943
6944 2011-05-23  Bruno Haible  <bruno@clisp.org>
6945
6946         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6947         * m4/stdlib-safer.m4: Remove file.
6948         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6949         (configure.ac): Remove gl_STDLIB_SAFER call.
6950         (Makefile.am): Augment lib_SOURCES.
6951
6952 2011-05-23  Bruno Haible  <bruno@clisp.org>
6953
6954         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6955         * m4/stdio-safer.m4: Remove file.
6956         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6957         (configure.ac): Remove gl_TMPFILE_SAFER call.
6958         (Makefile.am): Augment lib_SOURCES.
6959
6960 2011-05-23  Bruno Haible  <bruno@clisp.org>
6961
6962         popen-safer: Move AC_LIBOBJ invocations to module description.
6963         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6964         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6965         (configure.ac): Remove gl_POPEN_SAFER call.
6966         (Makefile.am): Augment lib_SOURCES.
6967
6968 2011-05-23  Bruno Haible  <bruno@clisp.org>
6969
6970         freopen-safer: Move AC_LIBOBJ invocations to module description.
6971         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6972         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6973         (configure.ac): Remove gl_FREOPEN_SAFER call.
6974         (Makefile.am): Augment lib_SOURCES.
6975
6976 2011-05-23  Bruno Haible  <bruno@clisp.org>
6977
6978         fopen-safer: Move AC_LIBOBJ invocations to module description.
6979         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6980         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6981         (configure.ac): Remove gl_FOPEN_SAFER call.
6982         (Makefile.am): Augment lib_SOURCES.
6983
6984 2011-05-23  Bruno Haible  <bruno@clisp.org>
6985
6986         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6987         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6988         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6989
6990 2011-05-23  Bruno Haible  <bruno@clisp.org>
6991
6992         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6993         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6994         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6995
6996 2011-05-23  Bruno Haible  <bruno@clisp.org>
6997
6998         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6999         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7000         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7001
7002 2011-05-23  Bruno Haible  <bruno@clisp.org>
7003
7004         settime: Move AC_LIBOBJ invocations to module description.
7005         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7006         * modules/settime (Makefile.am): Augment lib_SOURCES.
7007
7008 2011-05-23  Bruno Haible  <bruno@clisp.org>
7009
7010         savedir: Move AC_LIBOBJ invocations to module description.
7011         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7012         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7013
7014 2011-05-23  Bruno Haible  <bruno@clisp.org>
7015
7016         save-cwd: Move AC_LIBOBJ invocations to module description.
7017         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7018         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7019
7020 2011-05-23  Bruno Haible  <bruno@clisp.org>
7021
7022         same: Move AC_LIBOBJ invocations to module description.
7023         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7024         * modules/same (Makefile.am): Augment lib_SOURCES.
7025
7026 2011-05-23  Bruno Haible  <bruno@clisp.org>
7027
7028         safe-write: Move AC_LIBOBJ invocations to module description.
7029         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7030         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7031         instead of gl_SAFE_WRITE.
7032         (Makefile.am): Augment lib_SOURCES.
7033
7034 2011-05-23  Bruno Haible  <bruno@clisp.org>
7035
7036         safe-read: Move AC_LIBOBJ invocations to module description.
7037         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7038         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7039         of gl_SAFE_READ.
7040         (Makefile.am): Augment lib_SOURCES.
7041
7042 2011-05-23  Bruno Haible  <bruno@clisp.org>
7043
7044         safe-alloc: Move AC_LIBOBJ invocations to module description.
7045         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7046         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7047
7048 2011-05-23  Bruno Haible  <bruno@clisp.org>
7049
7050         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7051         * m4/rijndael.m4: Remove file.
7052         * modules/crypto/rijndael (Files): Remove it.
7053         (configure.ac): Remove gl_RIJNDAEL call.
7054         (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         readtokens: Move AC_LIBOBJ invocations to module description.
7059         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7060         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         read-file: Move AC_LIBOBJ invocations to module description.
7065         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7066         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7067         of gl_FUNC_READ_FILE.
7068         (Makefile.am): Augment lib_SOURCES.
7069
7070 2011-05-23  Bruno Haible  <bruno@clisp.org>
7071
7072         quotearg: Move AC_LIBOBJ invocations to module description.
7073         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7074         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7075
7076 2011-05-23  Bruno Haible  <bruno@clisp.org>
7077
7078         quote: Move AC_LIBOBJ invocations to module description.
7079         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7080         * modules/quote (Makefile.am): Augment lib_SOURCES.
7081
7082 2011-05-23  Bruno Haible  <bruno@clisp.org>
7083
7084         posixver: Move AC_LIBOBJ invocations to module description.
7085         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7086         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7087
7088 2011-05-23  Bruno Haible  <bruno@clisp.org>
7089
7090         posixtm: Move AC_LIBOBJ invocations to module description.
7091         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7092         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7093
7094 2011-05-23  Bruno Haible  <bruno@clisp.org>
7095
7096         physmem: Move AC_LIBOBJ invocations to module description.
7097         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7098         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7099
7100 2011-05-23  Bruno Haible  <bruno@clisp.org>
7101
7102         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7103         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7104         invocation.
7105         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7106
7107 2011-05-23  Bruno Haible  <bruno@clisp.org>
7108
7109         mpsort: Move AC_LIBOBJ invocations to module description.
7110         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7111         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7112
7113 2011-05-23  Bruno Haible  <bruno@clisp.org>
7114
7115         modechange: Move AC_LIBOBJ invocations to module description.
7116         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7117         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7118
7119 2011-05-23  Bruno Haible  <bruno@clisp.org>
7120
7121         mkdir-p: Move AC_LIBOBJ invocations to module description.
7122         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7123         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7124
7125 2011-05-23  Bruno Haible  <bruno@clisp.org>
7126
7127         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7128         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7129         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7130
7131 2011-05-23  Bruno Haible  <bruno@clisp.org>
7132
7133         mgetgroups: Move AC_LIBOBJ invocations to module description.
7134         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7135         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7136
7137 2011-05-23  Bruno Haible  <bruno@clisp.org>
7138
7139         memxor: Move AC_LIBOBJ invocations to module description.
7140         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7141         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7142
7143 2011-05-23  Bruno Haible  <bruno@clisp.org>
7144
7145         memcoll: Move AC_LIBOBJ invocations to module description.
7146         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7147         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7148
7149 2011-05-23  Bruno Haible  <bruno@clisp.org>
7150
7151         memcasecmp: Move AC_LIBOBJ invocations to module description.
7152         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7153         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7154
7155 2011-05-23  Bruno Haible  <bruno@clisp.org>
7156
7157         crypto/md5: Move AC_LIBOBJ invocations to module description.
7158         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7159         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7160
7161 2011-05-23  Bruno Haible  <bruno@clisp.org>
7162
7163         crypto/md4: Move AC_LIBOBJ invocations to module description.
7164         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7165         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7166
7167 2011-05-23  Bruno Haible  <bruno@clisp.org>
7168
7169         crypto/md2: Move AC_LIBOBJ invocations to module description.
7170         * m4/md2.m4: Remove file.
7171         * modules/crypto/md2 (Files): Remove it.
7172         (configure.ac): Remove gl_MD2 call.
7173         (Makefile.am): Augment lib_SOURCES.
7174
7175 2011-05-23  Bruno Haible  <bruno@clisp.org>
7176
7177         long-options: Move AC_LIBOBJ invocations to module description.
7178         * m4/long-options.m4: Remove file.
7179         * modules/long-options (Files): Remove it.
7180         (configure.ac): Remove gl_LONG_OPTIONS call.
7181         (Makefile.am): Augment lib_SOURCES.
7182
7183 2011-05-23  Bruno Haible  <bruno@clisp.org>
7184
7185         i-ring: Move AC_LIBOBJ invocations to module description.
7186         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7187         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7188
7189 2011-05-23  Bruno Haible  <bruno@clisp.org>
7190
7191         idcache: Move AC_LIBOBJ invocations to module description.
7192         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7193         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7194
7195 2011-05-23  Bruno Haible  <bruno@clisp.org>
7196
7197         human: Move AC_LIBOBJ invocations to module description.
7198         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7199         * modules/human (Makefile.am): Augment lib_SOURCES.
7200
7201 2011-05-23  Bruno Haible  <bruno@clisp.org>
7202
7203         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7204         * m4/hmac-sha1.m4: Remove file.
7205         * modules/crypto/hmac-sha1 (Files): Remove it.
7206         (configure.ac): Remove gl_HMAC_SHA1 call.
7207         (Makefile.am): Augment lib_SOURCES.
7208
7209 2011-05-23  Bruno Haible  <bruno@clisp.org>
7210
7211         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7212         * m4/hmac-md5.m4: Remove file.
7213         * modules/crypto/hmac-md5 (Files): Remove it.
7214         (configure.ac): Remove gl_HMAC_MD5 call.
7215         (Makefile.am): Augment lib_SOURCES.
7216
7217 2011-05-23  Bruno Haible  <bruno@clisp.org>
7218
7219         hash: Move AC_LIBOBJ invocations to module description.
7220         * m4/hash.m4: Remove file.
7221         * modules/hash (Files): Remove it.
7222         (configure.ac): Remove gl_HASH call.
7223         (Makefile.am): Augment lib_SOURCES.
7224
7225 2011-05-23  Bruno Haible  <bruno@clisp.org>
7226
7227         hard-locale: Move AC_LIBOBJ invocations to module description.
7228         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7229         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7230
7231 2011-05-23  Bruno Haible  <bruno@clisp.org>
7232
7233         getugroups: Move AC_LIBOBJ invocations to module description.
7234         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7235         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7236
7237 2011-05-23  Bruno Haible  <bruno@clisp.org>
7238
7239         gettime: Move AC_LIBOBJ invocations to module description.
7240         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7241         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7242
7243 2011-05-23  Bruno Haible  <bruno@clisp.org>
7244
7245         getndelim2: Move AC_LIBOBJ invocations to module description.
7246         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7247         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7248
7249 2011-05-23  Bruno Haible  <bruno@clisp.org>
7250
7251         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7252         * m4/gc-pbkdf2-sha1.m4: Remove file.
7253         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7254         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7255         (Makefile.am): Augment lib_SOURCES.
7256
7257 2011-05-23  Bruno Haible  <bruno@clisp.org>
7258
7259         fts: Move AC_LIBOBJ invocations to module description.
7260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7261         * modules/fts (configure.ac): ... to here.
7262
7263 2011-05-23  Bruno Haible  <bruno@clisp.org>
7264
7265         file-type: Move AC_LIBOBJ invocations to module description.
7266         * m4/file-type.m4: Remove file.
7267         * modules/file-type (Files): Remove it.
7268         (configure.ac): Remove gl_FILE_TYPE call.
7269         (Makefile.am): Augment lib_SOURCES.
7270
7271 2011-05-23  Bruno Haible  <bruno@clisp.org>
7272
7273         filenamecat*: Respect rules for use of AC_LIBOBJ.
7274         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7275         Remove AC_LIBOBJ invocation.
7276         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7277         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7278
7279 2011-05-23  Bruno Haible  <bruno@clisp.org>
7280
7281         filemode: Move AC_LIBOBJ invocations to module description.
7282         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7283         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7284
7285 2011-05-23  Bruno Haible  <bruno@clisp.org>
7286
7287         openat-safer: Move AC_LIBOBJ invocations to module description.
7288         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7289         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7290
7291 2011-05-23  Bruno Haible  <bruno@clisp.org>
7292
7293         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7295         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7296
7297 2011-05-23  Bruno Haible  <bruno@clisp.org>
7298
7299         exclude: Move AC_LIBOBJ invocations to module description.
7300         * m4/exclude.m4: Remove file.
7301         * modules/exclude (Files): Remove it.
7302         (configure.ac): Remove gl_EXCLUDE call.
7303         (Makefile.am): Augment lib_SOURCES.
7304
7305 2011-05-23  Bruno Haible  <bruno@clisp.org>
7306
7307         dirname*: Respect rules for use of AC_LIBOBJ.
7308         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7309         invocations.
7310         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7311         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7312
7313 2011-05-23  Bruno Haible  <bruno@clisp.org>
7314
7315         dirent-safer: Move AC_LIBOBJ invocations to module description.
7316         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7317         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7318
7319 2011-05-23  Bruno Haible  <bruno@clisp.org>
7320
7321         crypto/des: Move AC_LIBOBJ invocations to module description.
7322         * m4/des.m4: Remove file.
7323         * modules/crypto/des (Files): Remove it.
7324         (configure.ac): Remove gl_DES call.
7325         (Makefile.am): Augment lib_SOURCES.
7326
7327 2011-05-23  Bruno Haible  <bruno@clisp.org>
7328
7329         cycle-check: Move AC_LIBOBJ invocations to module description.
7330         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7331         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7332
7333 2011-05-23  Bruno Haible  <bruno@clisp.org>
7334
7335         c-strtold: Move AC_LIBOBJ invocations to module description.
7336         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7337         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7338
7339 2011-05-23  Bruno Haible  <bruno@clisp.org>
7340
7341         c-strtod: Move AC_LIBOBJ invocations to module description.
7342         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7343         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7344
7345 2011-05-23  Bruno Haible  <bruno@clisp.org>
7346
7347         crc: Move AC_LIBOBJ invocations to module description.
7348         * m4/crc.m4: Remove file.
7349         * modules/crc (Files): Remove it.
7350         (configure.ac): Remove gl_CRC call.
7351         (Makefile.am): Augment lib_SOURCES.
7352
7353 2011-05-23  Bruno Haible  <bruno@clisp.org>
7354
7355         close-stream: Move AC_LIBOBJ invocations to module description.
7356         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7357         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7358
7359 2011-05-23  Bruno Haible  <bruno@clisp.org>
7360
7361         closeout: Move AC_LIBOBJ invocations to module description.
7362         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7363         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7364
7365 2011-05-23  Bruno Haible  <bruno@clisp.org>
7366
7367         closein: Move AC_LIBOBJ invocations to module description.
7368         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7369         * modules/closein (Makefile.am): Augment lib_SOURCES.
7370
7371 2011-05-23  Bruno Haible  <bruno@clisp.org>
7372
7373         cloexec: Move AC_LIBOBJ invocations to module description.
7374         * m4/cloexec.m4: Remove file.
7375         * modules/cloexec (Files): Remove it.
7376         (configure.ac): Remove gl_CLOEXEC call.
7377         (Makefile.am): Augment lib_SOURCES.
7378
7379 2011-05-23  Bruno Haible  <bruno@clisp.org>
7380
7381         check-version: Move AC_LIBOBJ invocations to module description.
7382         * m4/check-version.m4: Remove file.
7383         * modules/check-version (Files): Remove it.
7384         (configure.ac): Remove gl_CHECK_VERSION call.
7385         (Makefile.am): Augment lib_SOURCES.
7386
7387 2011-05-23  Bruno Haible  <bruno@clisp.org>
7388
7389         chdir-safer: Move AC_LIBOBJ invocations to module description.
7390         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7391         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7392
7393 2011-05-23  Bruno Haible  <bruno@clisp.org>
7394
7395         canonicalize: Move AC_LIBOBJ invocations to module description.
7396         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7397         AC_LIBOBJ invocation.
7398         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7399
7400 2011-05-23  Bruno Haible  <bruno@clisp.org>
7401
7402         canon-host: Move AC_LIBOBJ invocations to module description.
7403         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7404         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7405         instead of gl_CANON_HOST.
7406         (Makefile.am): Augment lib_SOURCES.
7407
7408 2011-05-23  Bruno Haible  <bruno@clisp.org>
7409
7410         backupfile: Move AC_LIBOBJ invocations to module description.
7411         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7412         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7413
7414 2011-05-23  Bruno Haible  <bruno@clisp.org>
7415
7416         argmatch: Move AC_LIBOBJ invocations to module description.
7417         * m4/argmatch.m4: Remove file.
7418         * modules/argmatch (Files): Remove it.
7419         (configure.ac): Remove gl_ARGMATCH call.
7420         (Makefile.am): Augment lib_SOURCES.
7421
7422 2011-05-23  Bruno Haible  <bruno@clisp.org>
7423
7424         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7425         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7426         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7427
7428 2011-05-23  Bruno Haible  <bruno@clisp.org>
7429
7430         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7431         * m4/arcfour.m4: Remove file.
7432         * modules/crypto/arcfour (Files): Remove it.
7433         (configure.ac): Remove gl_ARCFOUR call.
7434         (Makefile.am): Augment lib_SOURCES.
7435
7436 2011-05-22  Bruno Haible  <bruno@clisp.org>
7437
7438         write: Move AC_LIBOBJ invocations to module description.
7439         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7440         * modules/write (configure.ac): ... to here.
7441
7442 2011-05-22  Bruno Haible  <bruno@clisp.org>
7443
7444         wmemset: Move AC_LIBOBJ invocations to module description.
7445         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7446         here...
7447         * modules/wmemset (configure.ac): ... to here.
7448
7449 2011-05-22  Bruno Haible  <bruno@clisp.org>
7450
7451         wmemmove: Move AC_LIBOBJ invocations to module description.
7452         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7453         here...
7454         * modules/wmemmove (configure.ac): ... to here.
7455
7456 2011-05-22  Bruno Haible  <bruno@clisp.org>
7457
7458         wmemcpy: Move AC_LIBOBJ invocations to module description.
7459         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7460         here...
7461         * modules/wmemcpy (configure.ac): ... to here.
7462
7463 2011-05-22  Bruno Haible  <bruno@clisp.org>
7464
7465         wmemcmp: Move AC_LIBOBJ invocations to module description.
7466         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7467         here...
7468         * modules/wmemcmp (configure.ac): ... to here.
7469
7470 2011-05-22  Bruno Haible  <bruno@clisp.org>
7471
7472         wmemchr: Move AC_LIBOBJ invocations to module description.
7473         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7474         here...
7475         * modules/wmemchr (configure.ac): ... to here.
7476
7477 2011-05-22  Bruno Haible  <bruno@clisp.org>
7478
7479         wcswidth: Move AC_LIBOBJ invocations to module description.
7480         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7481         here...
7482         * modules/wcswidth (configure.ac): ... to here.
7483
7484 2011-05-22  Bruno Haible  <bruno@clisp.org>
7485
7486         wcwidth: Respect rules for use of AC_LIBOBJ.
7487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7488         invocation from here...
7489         * modules/wcwidth (configure.ac): ... to here.
7490         (Depends-on): Update conditions.
7491
7492 2011-05-22  Bruno Haible  <bruno@clisp.org>
7493
7494         wctype: Move AC_LIBOBJ invocations to module description.
7495         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7496         invocation from here...
7497         * modules/wctype (configure.ac): ... to here.
7498         (Depends-on): Update conditions.
7499
7500 2011-05-22  Bruno Haible  <bruno@clisp.org>
7501
7502         wctrans: Move AC_LIBOBJ invocations to module description.
7503         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7504         invocation from here...
7505         * modules/wctrans (configure.ac): ... to here.
7506
7507 2011-05-22  Bruno Haible  <bruno@clisp.org>
7508
7509         wctomb: Move AC_LIBOBJ invocations to module description.
7510         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7511         invocations from here...
7512         * modules/wctomb (configure.ac): ... to here.
7513
7514 2011-05-22  Bruno Haible  <bruno@clisp.org>
7515
7516         wctob: Move AC_LIBOBJ invocations to module description.
7517         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7518         gl_PREREQ_WCTOB invocations from here...
7519         * modules/wctob (configure.ac): ... to here.
7520         (Depends-on): Update conditions.
7521
7522 2011-05-22  Bruno Haible  <bruno@clisp.org>
7523
7524         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7525         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7526         here...
7527         * modules/wcsxfrm (configure.ac): ... to here.
7528
7529 2011-05-22  Bruno Haible  <bruno@clisp.org>
7530
7531         wcstok: Move AC_LIBOBJ invocations to module description.
7532         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7533         * modules/wcstok (configure.ac): ... to here.
7534
7535 2011-05-22  Bruno Haible  <bruno@clisp.org>
7536
7537         wcsstr: Move AC_LIBOBJ invocations to module description.
7538         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7539         * modules/wcsstr (configure.ac): ... to here.
7540
7541 2011-05-22  Bruno Haible  <bruno@clisp.org>
7542
7543         wcsspn: Move AC_LIBOBJ invocations to module description.
7544         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7545         * modules/wcsspn (configure.ac): ... to here.
7546
7547 2011-05-22  Bruno Haible  <bruno@clisp.org>
7548
7549         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7550         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7551         gl_PREREQ_WCSRTOMBS invocations from here...
7552         * modules/wcsrtombs (configure.ac): ... to here.
7553
7554 2011-05-22  Bruno Haible  <bruno@clisp.org>
7555
7556         wcsrchr: Move AC_LIBOBJ invocations to module description.
7557         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7558         here...
7559         * modules/wcsrchr (configure.ac): ... to here.
7560
7561 2011-05-22  Bruno Haible  <bruno@clisp.org>
7562
7563         wcspbrk: Move AC_LIBOBJ invocations to module description.
7564         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7565         here...
7566         * modules/wcspbrk (configure.ac): ... to here.
7567
7568 2011-05-22  Bruno Haible  <bruno@clisp.org>
7569
7570         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7571         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7572         gl_PREREQ_WCSNRTOMBS invocations from here...
7573         * modules/wcsnrtombs (configure.ac): ... to here.
7574
7575 2011-05-22  Bruno Haible  <bruno@clisp.org>
7576
7577         wcsnlen: Move AC_LIBOBJ invocations to module description.
7578         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7579         here...
7580         * modules/wcsnlen (configure.ac): ... to here.
7581
7582 2011-05-22  Bruno Haible  <bruno@clisp.org>
7583
7584         wcsncpy: Move AC_LIBOBJ invocations to module description.
7585         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7586         here...
7587         * modules/wcsncpy (configure.ac): ... to here.
7588
7589 2011-05-22  Bruno Haible  <bruno@clisp.org>
7590
7591         wcsncmp: Move AC_LIBOBJ invocations to module description.
7592         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7593         here...
7594         * modules/wcsncmp (configure.ac): ... to here.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         wcsncat: Move AC_LIBOBJ invocations to module description.
7599         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7600         here...
7601         * modules/wcsncat (configure.ac): ... to here.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7606         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7607         from here...
7608         * modules/wcsncasecmp (configure.ac): ... to here.
7609
7610 2011-05-22  Bruno Haible  <bruno@clisp.org>
7611
7612         wcslen: Move AC_LIBOBJ invocations to module description.
7613         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7614         * modules/wcslen (configure.ac): ... to here.
7615
7616 2011-05-22  Bruno Haible  <bruno@clisp.org>
7617
7618         wcsdup: Move AC_LIBOBJ invocations to module description.
7619         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7620         * modules/wcsdup (configure.ac): ... to here.
7621
7622 2011-05-22  Bruno Haible  <bruno@clisp.org>
7623
7624         wcscspn: Move AC_LIBOBJ invocations to module description.
7625         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7626         here...
7627         * modules/wcscspn (configure.ac): ... to here.
7628
7629 2011-05-22  Bruno Haible  <bruno@clisp.org>
7630
7631         wcscpy: Move AC_LIBOBJ invocations to module description.
7632         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7633         * modules/wcscpy (configure.ac): ... to here.
7634
7635 2011-05-22  Bruno Haible  <bruno@clisp.org>
7636
7637         wcscoll: Move AC_LIBOBJ invocations to module description.
7638         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7639         here...
7640         * modules/wcscoll (configure.ac): ... to here.
7641
7642 2011-05-22  Bruno Haible  <bruno@clisp.org>
7643
7644         wcscmp: Move AC_LIBOBJ invocations to module description.
7645         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7646         * modules/wcscmp (configure.ac): ... to here.
7647
7648 2011-05-22  Bruno Haible  <bruno@clisp.org>
7649
7650         wcschr: Move AC_LIBOBJ invocations to module description.
7651         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7652         * modules/wcschr (configure.ac): ... to here.
7653
7654 2011-05-22  Bruno Haible  <bruno@clisp.org>
7655
7656         wcscat: Move AC_LIBOBJ invocations to module description.
7657         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7658         * modules/wcscat (configure.ac): ... to here.
7659
7660 2011-05-22  Bruno Haible  <bruno@clisp.org>
7661
7662         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7663         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7664         here...
7665         * modules/wcscasecmp (configure.ac): ... to here.
7666
7667 2011-05-22  Bruno Haible  <bruno@clisp.org>
7668
7669         wcrtomb: Move AC_LIBOBJ invocations to module description.
7670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7671         invocations from here...
7672         * modules/wcrtomb (configure.ac): ... to here.
7673
7674 2011-05-22  Bruno Haible  <bruno@clisp.org>
7675
7676         wcpncpy: Move AC_LIBOBJ invocations to module description.
7677         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7678         here...
7679         * modules/wcpncpy (configure.ac): ... to here.
7680
7681 2011-05-22  Bruno Haible  <bruno@clisp.org>
7682
7683         wcpcpy: Move AC_LIBOBJ invocations to module description.
7684         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7685         * modules/wcpcpy (configure.ac): ... to here.
7686
7687 2011-05-22  Bruno Haible  <bruno@clisp.org>
7688
7689         waitpid: Move AC_LIBOBJ invocations to module description.
7690         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7691         invocation from here...
7692         * modules/waitpid (configure.ac): ... to here.
7693
7694 2011-05-22  Bruno Haible  <bruno@clisp.org>
7695
7696         utimensat: Move AC_LIBOBJ invocations to module description.
7697         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7698         here...
7699         * modules/utimensat (configure.ac): ... to here.
7700
7701 2011-05-22  Bruno Haible  <bruno@clisp.org>
7702
7703         usleep: Move AC_LIBOBJ invocations to module description.
7704         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7705         here...
7706         * modules/usleep (configure.ac): ... to here.
7707
7708 2011-05-22  Bruno Haible  <bruno@clisp.org>
7709
7710         unlockpt: Move AC_LIBOBJ invocations to module description.
7711         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7712         gl_PREREQ_UNLOCKPT invocations from here...
7713         * modules/unlockpt (configure.ac): ... to here.
7714
7715 2011-05-22  Bruno Haible  <bruno@clisp.org>
7716
7717         unlink: Respect rules for use of AC_LIBOBJ.
7718         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7719         * modules/unlink (configure.ac): ... to here.
7720
7721 2011-05-22  Bruno Haible  <bruno@clisp.org>
7722
7723         uname: Move AC_LIBOBJ invocations to module description.
7724         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7726         here...
7727         * modules/uname (configure.ac): ... to here.
7728
7729 2011-05-22  Bruno Haible  <bruno@clisp.org>
7730
7731         ttyname_r: Move AC_LIBOBJ invocations to module description.
7732         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7733         gl_PREREQ_TTYNAME_R invocations from here...
7734         * modules/ttyname_r (configure.ac): ... to here.
7735
7736 2011-05-22  Bruno Haible  <bruno@clisp.org>
7737
7738         tsearch: Move AC_LIBOBJ invocations to module description.
7739         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7740         invocations from here...
7741         * modules/tsearch (configure.ac): ... to here.
7742
7743 2011-05-22  Bruno Haible  <bruno@clisp.org>
7744
7745         towctrans: Move AC_LIBOBJ invocations to module description.
7746         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7747         AC_LIBOBJ invocation from here...
7748         * modules/towctrans (configure.ac): ... to here.
7749
7750 2011-05-22  Bruno Haible  <bruno@clisp.org>
7751
7752         tmpfile: Move AC_LIBOBJ invocations to module description.
7753         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7754         invocations from here...
7755         * modules/tmpfile (configure.ac): ... to here.
7756
7757 2011-05-22  Bruno Haible  <bruno@clisp.org>
7758
7759         times: Move AC_LIBOBJ invocations to module description.
7760         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7761         * modules/times (configure.ac): ... to here.
7762
7763 2011-05-22  Bruno Haible  <bruno@clisp.org>
7764
7765         time_r: Move AC_LIBOBJ invocations to module description.
7766         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7767         invocations from here...
7768         * modules/time_r (configure.ac): ... to here.
7769
7770 2011-05-22  Bruno Haible  <bruno@clisp.org>
7771
7772         timegm: Move AC_LIBOBJ invocations to module description.
7773         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7774         invocations from here...
7775         * modules/timegm (configure.ac): ... to here.
7776
7777 2011-05-22  Bruno Haible  <bruno@clisp.org>
7778
7779         tcgetsid: Move AC_LIBOBJ invocations to module description.
7780         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7781         and gl_PREREQ_TCGETSID invocations from here...
7782         * modules/tcgetsid (configure.ac): ... to here.
7783         (Depends-on): Update conditions.
7784
7785 2011-05-22  Bruno Haible  <bruno@clisp.org>
7786
7787         symlinkat: Move AC_LIBOBJ invocations to module description.
7788         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7789         here...
7790         * modules/symlinkat (configure.ac): ... to here.
7791
7792 2011-05-22  Bruno Haible  <bruno@clisp.org>
7793
7794         symlink: Move AC_LIBOBJ invocations to module description.
7795         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7796         here...
7797         * modules/symlink (configure.ac): ... to here.
7798
7799 2011-05-22  Bruno Haible  <bruno@clisp.org>
7800
7801         strverscmp: Move AC_LIBOBJ invocations to module description.
7802         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7804         from here...
7805         * modules/strverscmp (configure.ac): ... to here.
7806
7807 2011-05-22  Bruno Haible  <bruno@clisp.org>
7808
7809         strtok_r: Move AC_LIBOBJ invocations to module description.
7810         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7811         and gl_PREREQ_STRTOK_R invocations from here...
7812         * modules/strtok_r (configure.ac): ... to here.
7813         (Depends-on): Update conditions.
7814
7815 2011-05-22  Bruno Haible  <bruno@clisp.org>
7816
7817         strtoumax: Move AC_LIBOBJ invocations to module description.
7818         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7820         from here...
7821         * modules/strtoumax (configure.ac): ... to here.
7822
7823 2011-05-22  Bruno Haible  <bruno@clisp.org>
7824
7825         strtoimax: Move AC_LIBOBJ invocations to module description.
7826         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7828         from here...
7829         * modules/strtoimax (configure.ac): ... to here.
7830
7831 2011-05-22  Bruno Haible  <bruno@clisp.org>
7832
7833         strtoull: Move AC_LIBOBJ invocations to module description.
7834         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7836         from here...
7837         * modules/strtoull (configure.ac): ... to here.
7838
7839 2011-05-22  Bruno Haible  <bruno@clisp.org>
7840
7841         strtoll: Move AC_LIBOBJ invocations to module description.
7842         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7843         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7844         here...
7845         * modules/strtoll (configure.ac): ... to here.
7846
7847 2011-05-22  Bruno Haible  <bruno@clisp.org>
7848
7849         strtoul: Move AC_LIBOBJ invocations to module description.
7850         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7851         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7852         * modules/strtoul (configure.ac): ... to here.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         strtol: Move AC_LIBOBJ invocations to module description.
7857         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7858         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7859         * modules/strtol (configure.ac): ... to here.
7860
7861 2011-05-22  Bruno Haible  <bruno@clisp.org>
7862
7863         strtod: Move AC_LIBOBJ invocations to module description.
7864         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7865         invocations from here...
7866         * modules/strtod (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         strstr*: Move AC_LIBOBJ invocations to module description.
7871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7872         invocations from here...
7873         * modules/strstr-simple (configure.ac): ... to here.
7874         * modules/strstr (configure.ac): ... and here.
7875
7876 2011-05-22  Bruno Haible  <bruno@clisp.org>
7877
7878         strsignal: Move AC_LIBOBJ invocations to module description.
7879         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7880         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7881         * modules/strsignal (configure.ac): ... to here.
7882         (Depends-on): Update conditions.
7883
7884 2011-05-22  Bruno Haible  <bruno@clisp.org>
7885
7886         strsep: Move AC_LIBOBJ invocations to module description.
7887         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7889         here...
7890         * modules/strsep (configure.ac): ... to here.
7891
7892 2011-05-22  Bruno Haible  <bruno@clisp.org>
7893
7894         strptime: Move AC_LIBOBJ invocations to module description.
7895         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7896         gl_PREREQ_STRPTIME invocations from here...
7897         * modules/strptime (configure.ac): ... to here.
7898
7899 2011-05-22  Bruno Haible  <bruno@clisp.org>
7900
7901         strpbrk: Move AC_LIBOBJ invocations to module description.
7902         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7904         here...
7905         * modules/strpbrk (configure.ac): ... to here.
7906
7907 2011-05-22  Bruno Haible  <bruno@clisp.org>
7908
7909         strnlen: Move AC_LIBOBJ invocations to module description.
7910         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7911         invocations from here...
7912         * modules/strnlen (configure.ac): ... to here.
7913
7914 2011-05-22  Bruno Haible  <bruno@clisp.org>
7915
7916         strndup: Move AC_LIBOBJ invocations to module description.
7917         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7918         invocations from here...
7919         * modules/strndup (configure.ac): ... to here.
7920         (Depends-on): Update conditions.
7921
7922 2011-05-22  Bruno Haible  <bruno@clisp.org>
7923
7924         strncat: Move AC_LIBOBJ invocations to module description.
7925         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7926         invocations from here...
7927         * modules/strncat (configure.ac): ... to here.
7928
7929 2011-05-22  Bruno Haible  <bruno@clisp.org>
7930
7931         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7932         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7933         invocations from here...
7934         * modules/strdup (configure.ac): ... to here.
7935         * modules/strdup-posix (configure.ac): ... and here.
7936
7937 2011-05-22  Bruno Haible  <bruno@clisp.org>
7938
7939         strcspn: Move AC_LIBOBJ invocations to module description.
7940         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7942         here...
7943         * modules/strcspn (configure.ac): ... to here.
7944
7945 2011-05-22  Bruno Haible  <bruno@clisp.org>
7946
7947         strchrnul: Move AC_LIBOBJ invocations to module description.
7948         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7949         gl_PREREQ_STRCHRNUL invocations from here...
7950         * modules/strchrnul (configure.ac): ... to here.
7951
7952 2011-05-22  Bruno Haible  <bruno@clisp.org>
7953
7954         strcasestr*: Move AC_LIBOBJ invocations to module description.
7955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7956         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7957         * modules/strcasestr-simple (configure.ac): ... to here.
7958         * modules/strcasestr (configure.ac): ... and here.
7959
7960 2011-05-22  Bruno Haible  <bruno@clisp.org>
7961
7962         strcase: Move AC_LIBOBJ invocations to module description.
7963         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7964         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7965         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7966         gl_PREREQ_STRNCASECMP invocations from here...
7967         * modules/strcase (configure.ac): ... to here.
7968
7969 2011-05-22  Bruno Haible  <bruno@clisp.org>
7970
7971         stpncpy: Move AC_LIBOBJ invocations to module description.
7972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7973         here...
7974         * modules/stpncpy (configure.ac): ... to here.
7975
7976 2011-05-22  Bruno Haible  <bruno@clisp.org>
7977
7978         stpcpy: Move AC_LIBOBJ invocations to module description.
7979         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7980         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7981         here...
7982         * modules/stpcpy (configure.ac): ... to here.
7983
7984 2011-05-21  Bruno Haible  <bruno@clisp.org>
7985
7986         stat: Move AC_LIBOBJ invocations to module description.
7987         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7988         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7989         here...
7990         * modules/stat (configure.ac): ... to here.
7991
7992 2011-05-21  Bruno Haible  <bruno@clisp.org>
7993
7994         sleep: Move AC_LIBOBJ invocations to module description.
7995         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7996         * modules/sleep (configure.ac): ... to here.
7997
7998 2011-05-21  Bruno Haible  <bruno@clisp.org>
7999
8000         signbit: Move AC_LIBOBJ invocations to module description.
8001         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8002         * modules/signbit (configure.ac): ... to here.
8003
8004 2011-05-21  Bruno Haible  <bruno@clisp.org>
8005
8006         sigprocmask: Move AC_LIBOBJ invocations to module description.
8007         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8008         gl_PREREQ_SIGPROMASK invocations from here...
8009         * modules/sigprocmask (configure.ac): ... to here.
8010
8011 2011-05-21  Bruno Haible  <bruno@clisp.org>
8012
8013         sigaction: Move AC_LIBOBJ invocations to module description.
8014         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8015         gl_PREREQ_SIGACTION invocations from here...
8016         * modules/sigaction (configure.ac): ... to here.
8017
8018 2011-05-21  Bruno Haible  <bruno@clisp.org>
8019
8020         sig2str: Move AC_LIBOBJ invocations to module description.
8021         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8023         here...
8024         * modules/sig2str (configure.ac): ... to here.
8025
8026 2011-05-21  Bruno Haible  <bruno@clisp.org>
8027
8028         setlocale: Move AC_LIBOBJ invocations to module description.
8029         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8030         gl_PREREQ_SETLOCALE invocations from here...
8031         * modules/setlocale (configure.ac): ... to here.
8032
8033 2011-05-21  Bruno Haible  <bruno@clisp.org>
8034
8035         unsetenv: Move AC_LIBOBJ invocations to module description.
8036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8037         and gl_PREREQ_UNSETENV invocations from here...
8038         * modules/unsetenv (configure.ac): ... to here.
8039         (Depends-on): Update.
8040
8041 2011-05-21  Bruno Haible  <bruno@clisp.org>
8042
8043         setenv: Move AC_LIBOBJ invocations to module description.
8044         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8045         here...
8046         * modules/setenv (configure.ac): ... to here.
8047
8048 2011-05-21  Bruno Haible  <bruno@clisp.org>
8049
8050         selinux-h: Move AC_LIBOBJ invocations to module description.
8051         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8052         AC_LIBOBJ invocation from here...
8053         * modules/selinux-h (configure.ac): ... to here.
8054
8055 2011-05-21  Bruno Haible  <bruno@clisp.org>
8056
8057         select: Respect rules for use of AC_LIBOBJ.
8058         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8059         here...
8060         * modules/select (configure.ac): ... to here.
8061
8062 2011-05-21  Bruno Haible  <bruno@clisp.org>
8063
8064         scandir: Move AC_LIBOBJ invocations to module description.
8065         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8066         invocations from here...
8067         * modules/scandir (configure.ac): ... to here.
8068
8069 2011-05-21  Bruno Haible  <bruno@clisp.org>
8070
8071         rpmatch: Move AC_LIBOBJ invocations to module description.
8072         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8074         here...
8075         * modules/rpmatch (configure.ac): ... to here.
8076
8077 2011-05-21  Bruno Haible  <bruno@clisp.org>
8078
8079         rmdir: Respect rules for use of AC_LIBOBJ.
8080         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8081         * modules/rmdir (configure.ac): ... to here.
8082
8083 2011-05-21  Bruno Haible  <bruno@clisp.org>
8084
8085         renameat: Move AC_LIBOBJ invocations to module description.
8086         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8087         here...
8088         * modules/renameat (configure.ac): ... to here.
8089
8090 2011-05-21  Bruno Haible  <bruno@clisp.org>
8091
8092         rename: Respect rules for use of AC_LIBOBJ.
8093         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8094         here...
8095         * modules/rename (configure.ac): ... to here.
8096
8097 2011-05-21  Bruno Haible  <bruno@clisp.org>
8098
8099         remove: Move AC_LIBOBJ invocations to module description.
8100         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8101         here...
8102         * modules/remove (configure.ac): ... to here.
8103
8104 2011-05-21  Bruno Haible  <bruno@clisp.org>
8105
8106         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8107         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8108         macro.
8109         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8110         * modules/relocatable-lib (configure.ac): ... to here.
8111         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8112         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8113
8114 2011-05-21  Bruno Haible  <bruno@clisp.org>
8115
8116         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8117         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8118         here...
8119         * modules/relocatable-prog (configure.ac): ... to here.
8120
8121 2011-05-21  Bruno Haible  <bruno@clisp.org>
8122
8123         regex: Move AC_LIBOBJ invocations to module description.
8124         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8125         invocations from here...
8126         * modules/regex (configure.ac): ... to here.
8127
8128 2011-05-21  Bruno Haible  <bruno@clisp.org>
8129
8130         realloc-*: Move AC_LIBOBJ invocations to module description.
8131         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8132         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8133         AC_LIBOBJ invocations from here...
8134         * modules/realloc-gnu (configure.ac): ... to here.
8135         * modules/realloc-posix (configure.ac): ... and here.
8136
8137 2011-05-21  Bruno Haible  <bruno@clisp.org>
8138
8139         readutmp: Move AC_LIBOBJ invocations to module description.
8140         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8141         * modules/readutmp (configure.ac): ... to here.
8142
8143 2011-05-21  Bruno Haible  <bruno@clisp.org>
8144
8145         readlinkat: Move AC_LIBOBJ invocations to module description.
8146         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8147         here...
8148         * modules/readlinkat (configure.ac): ... to here.
8149
8150 2011-05-21  Bruno Haible  <bruno@clisp.org>
8151
8152         readlink: Move AC_LIBOBJ invocations to module description.
8153         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8154         gl_PREREQ_READLINK invocations from here...
8155         * modules/readlink (configure.ac): ... to here.
8156
8157 2011-05-21  Bruno Haible  <bruno@clisp.org>
8158
8159         readline: Move AC_LIBOBJ invocations to module description.
8160         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8161         gl_PREREQ_READLINE invocations from here...
8162         * modules/readline (configure.ac): ... to here.
8163
8164 2011-05-21  Bruno Haible  <bruno@clisp.org>
8165
8166         read: Move AC_LIBOBJ invocations to module description.
8167         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8168         * modules/read (configure.ac): ... to here.
8169
8170 2011-05-21  Bruno Haible  <bruno@clisp.org>
8171
8172         rawmemchr: Move AC_LIBOBJ invocations to module description.
8173         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8175         from here...
8176         * modules/rawmemchr (configure.ac): ... to here.
8177
8178 2011-05-21  Bruno Haible  <bruno@clisp.org>
8179
8180         random_r: Move AC_LIBOBJ invocations to module description.
8181         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8182         gl_PREREQ_RANDOM_R invocations from here...
8183         * modules/random_r (configure.ac): ... to here.
8184
8185 2011-05-21  Bruno Haible  <bruno@clisp.org>
8186
8187         pwrite: Move AC_LIBOBJ invocations to module description.
8188         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8189         * modules/pwrite (configure.ac): ... to here.
8190
8191 2011-05-21  Bruno Haible  <bruno@clisp.org>
8192
8193         putenv: Move AC_LIBOBJ invocations to module description.
8194         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8195         * modules/putenv (configure.ac): ... to here.
8196
8197 2011-05-21  Bruno Haible  <bruno@clisp.org>
8198
8199         login_tty: Move AC_LIBOBJ invocations to module description.
8200         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8201         * modules/login_tty (configure.ac): ... to here.
8202
8203 2011-05-21  Bruno Haible  <bruno@clisp.org>
8204
8205         openpty: Move AC_LIBOBJ invocations to module description.
8206         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8207         * modules/openpty (configure.ac): ... to here.
8208
8209 2011-05-21  Bruno Haible  <bruno@clisp.org>
8210
8211         forkpty: Move AC_LIBOBJ invocations to module description.
8212         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8213         * modules/forkpty (configure.ac): ... to here.
8214
8215 2011-05-21  Bruno Haible  <bruno@clisp.org>
8216
8217         ptsname: Move AC_LIBOBJ invocations to module description.
8218         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8219         invocations from here...
8220         * modules/ptsname (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         pread: Move AC_LIBOBJ invocations to module description.
8225         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8226         * modules/pread (configure.ac): ... to here.
8227
8228 2011-05-21  Bruno Haible  <bruno@clisp.org>
8229
8230         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8231         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8232         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8233         * modules/posix_spawn (configure.ac): ... to here.
8234         * modules/posix_spawnp (configure.ac): ... and here.
8235
8236 2011-05-21  Bruno Haible  <bruno@clisp.org>
8237
8238         popen: Move AC_LIBOBJ invocations to module description.
8239         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8240         invocations from here...
8241         * modules/popen (configure.ac): ... to here.
8242
8243 2011-05-21  Bruno Haible  <bruno@clisp.org>
8244
8245         poll: Move AC_LIBOBJ invocations to module description.
8246         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8247         invocations from here...
8248         * modules/poll (configure.ac): ... to here.
8249
8250 2011-05-21  Bruno Haible  <bruno@clisp.org>
8251
8252         pipe-posix: Move AC_LIBOBJ invocations to module description.
8253         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8254         * modules/pipe-posix (configure.ac): ... to here.
8255
8256 2011-05-21  Bruno Haible  <bruno@clisp.org>
8257
8258         openat: Respect rules for use of AC_LIBOBJ.
8259         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8260         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8261         * modules/openat (configure.ac): ... to here.
8262
8263 2011-05-21  Bruno Haible  <bruno@clisp.org>
8264
8265         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8266         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8267         invocation from here...
8268         * modules/obstack-printf (configure.ac): ... to here.
8269         * modules/obstack-printf-posix (configure.ac): ... and here.
8270
8271 2011-05-21  Bruno Haible  <bruno@clisp.org>
8272
8273         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8274         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8275         from here...
8276         * modules/nl_langinfo (configure.ac): ... to here.
8277
8278 2011-05-21  Bruno Haible  <bruno@clisp.org>
8279
8280         nanosleep: Move AC_LIBOBJ invocations to module description.
8281         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8282         gl_PREREQ_NANOSLEEP invocations from here...
8283         * modules/nanosleep (configure.ac): ... to here.
8284
8285 2011-05-21  Bruno Haible  <bruno@clisp.org>
8286
8287         mountlist: Move AC_LIBOBJ invocations to module description.
8288         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8289         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8290         * modules/mountlist (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         mktime: Respect rules for use of AC_LIBOBJ.
8295         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8296         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8297         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8298         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8299         * modules/mktime (configure.ac): ... to here.
8300         * modules/mktime-internal (configure.ac): ... and here.
8301         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8302
8303 2011-05-21  Bruno Haible  <bruno@clisp.org>
8304
8305         mkstemps: Move AC_LIBOBJ invocations to module description.
8306         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8307         here...
8308         * modules/mkstemps (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         mkstemp: Move AC_LIBOBJ invocations to module description.
8313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8314         gl_PREREQ_MKSTEMP invocations from here...
8315         * modules/mkstemp (configure.ac): ... to here.
8316
8317 2011-05-21  Bruno Haible  <bruno@clisp.org>
8318
8319         mkostemps: Move AC_LIBOBJ invocations to module description.
8320         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8321         here...
8322         * modules/mkostemps (configure.ac): ... to here.
8323
8324 2011-05-21  Bruno Haible  <bruno@clisp.org>
8325
8326         mkostemp: Move AC_LIBOBJ invocations to module description.
8327         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8328         gl_PREREQ_MKOSTEMP invocations from here...
8329         * modules/mkostemp (configure.ac): ... to here.
8330
8331 2011-05-21  Bruno Haible  <bruno@clisp.org>
8332
8333         mknod: Move AC_LIBOBJ invocations to module description.
8334         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8335         * modules/mknod (configure.ac): ... to here.
8336
8337 2011-05-21  Bruno Haible  <bruno@clisp.org>
8338
8339         mkfifoat: Move AC_LIBOBJ invocations to module description.
8340         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8341         here...
8342         * modules/mkfifoat (configure.ac): ... to here.
8343
8344 2011-05-21  Bruno Haible  <bruno@clisp.org>
8345
8346         mkfifo: Respect rules for use of AC_LIBOBJ.
8347         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8348         here...
8349         * modules/mkfifo (configure.ac): ... to here.
8350
8351 2011-05-21  Bruno Haible  <bruno@clisp.org>
8352
8353         mkdtemp: Move AC_LIBOBJ invocations to module description.
8354         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8355         invocations from here...
8356         * modules/mkdtemp (configure.ac): ... to here.
8357
8358 2011-05-21  Bruno Haible  <bruno@clisp.org>
8359
8360         mkdir: Move AC_LIBOBJ invocations to module description.
8361         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8362         * modules/mkdir (configure.ac): ... to here.
8363
8364 2011-05-21  Bruno Haible  <bruno@clisp.org>
8365
8366         memset: Move AC_LIBOBJ invocations to module description.
8367         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8369         here...
8370         * modules/memset (configure.ac): ... to here.
8371
8372 2011-05-21  Bruno Haible  <bruno@clisp.org>
8373
8374         memrchr: Move AC_LIBOBJ invocations to module description.
8375         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8377         here...
8378         * modules/memrchr (configure.ac): ... to here.
8379
8380 2011-05-21  Bruno Haible  <bruno@clisp.org>
8381
8382         mempcpy: Move AC_LIBOBJ invocations to module description.
8383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8385         here...
8386         * modules/mempcpy (configure.ac): ... to here.
8387
8388 2011-05-21  Bruno Haible  <bruno@clisp.org>
8389
8390         memmove: Move AC_LIBOBJ invocations to module description.
8391         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8393         here...
8394         * modules/memmove (configure.ac): ... to here.
8395
8396 2011-05-21  Bruno Haible  <bruno@clisp.org>
8397
8398         memmem*: Move AC_LIBOBJ invocations to module description.
8399         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8400         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8401         here...
8402         (gl_FUNC_MEMMEM): ... and here...
8403         * modules/memmem-simple (configure.ac): ... to here.
8404         * modules/memmem (configure.ac): ... and here.
8405
8406 2011-05-21  Bruno Haible  <bruno@clisp.org>
8407
8408         memcpy: Move AC_LIBOBJ invocations to module description.
8409         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8410         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8411         here...
8412         * modules/memcpy (configure.ac): ... to here.
8413
8414 2011-05-21  Bruno Haible  <bruno@clisp.org>
8415
8416         memcmp: Simplify autoconf macro.
8417         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8418         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8419         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8420
8421 2011-05-21  Bruno Haible  <bruno@clisp.org>
8422
8423         memcmp: Move AC_LIBOBJ invocations to module description.
8424         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8425         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8426         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8427         * modules/memcmp (configure.ac): ... to here.
8428         (Depends-on): Update conditions.
8429
8430 2011-05-21  Bruno Haible  <bruno@clisp.org>
8431
8432         memchr: Respect rules for use of AC_LIBOBJ.
8433         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8434         invocations from here...
8435         * modules/memchr (configure.ac): ... to here.
8436
8437 2011-05-21  Bruno Haible  <bruno@clisp.org>
8438
8439         mbtowc: Move AC_LIBOBJ invocations to module description.
8440         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8441         invocations from here...
8442         * modules/mbtowc (configure.ac): ... to here.
8443
8444 2011-05-21  Bruno Haible  <bruno@clisp.org>
8445
8446         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8447         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8448         gl_PREREQ_MBSRTOWCS invocations from here...
8449         * modules/mbsrtowcs (configure.ac): ... to here.
8450
8451 2011-05-21  Bruno Haible  <bruno@clisp.org>
8452
8453         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8454         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8455         gl_PREREQ_MBSNRTOWCS invocations from here...
8456         * modules/mbsnrtowcs (configure.ac): ... to here.
8457
8458 2011-05-21  Bruno Haible  <bruno@clisp.org>
8459
8460         mbsinit: Move AC_LIBOBJ invocations to module description.
8461         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8462         invocations from here...
8463         * modules/mbsinit (configure.ac): ... to here.
8464
8465 2011-05-21  Bruno Haible  <bruno@clisp.org>
8466
8467         mbrlen: Move AC_LIBOBJ invocations to module description.
8468         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8469         invocations from here...
8470         * modules/mbrlen (configure.ac): ... to here.
8471
8472 2011-05-21  Bruno Haible  <bruno@clisp.org>
8473
8474         mbrtowc: Respect rules for use of AC_LIBOBJ.
8475         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8476         invocations from here...
8477         * modules/mbrtowc (configure.ac): ... to here.
8478
8479 2011-05-21  Bruno Haible  <bruno@clisp.org>
8480
8481         malloc-*: Move AC_LIBOBJ invocations to module description.
8482         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8483         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8484         AC_LIBOBJ invocations from here...
8485         * modules/malloc-gnu (configure.ac): ... to here.
8486         * modules/malloc-posix (configure.ac): ... and here.
8487
8488 2011-05-21  Bruno Haible  <bruno@clisp.org>
8489
8490         lstat, openat: Respect rules for use of AC_LIBOBJ.
8491         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8492         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8493         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8494         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8495         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8496         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8497         here.
8498         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8499
8500 2011-05-21  Bruno Haible  <bruno@clisp.org>
8501
8502         lseek: Move AC_LIBOBJ invocations to module description.
8503         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8504         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8505         * modules/lseek (configure.ac): ... to here.
8506
8507 2011-05-21  Bruno Haible  <bruno@clisp.org>
8508
8509         linkat: Move AC_LIBOBJ invocations to module description.
8510         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8511         here...
8512         * modules/linkat (configure.ac): ... to here.
8513
8514 2011-05-21  Bruno Haible  <bruno@clisp.org>
8515
8516         link: Respect rules for use of AC_LIBOBJ.
8517         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8518         * modules/link (configure.ac): ... to here.
8519
8520 2011-05-21  Bruno Haible  <bruno@clisp.org>
8521
8522         lchown: Move AC_LIBOBJ invocations to module description.
8523         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8524         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8525         * modules/lchown (configure.ac): ... to here.
8526
8527 2011-05-21  Bruno Haible  <bruno@clisp.org>
8528
8529         iswctype: Move AC_LIBOBJ invocations to module description.
8530         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8531         here...
8532         * modules/iswctype (configure.ac): ... to here.
8533
8534 2011-05-21  Bruno Haible  <bruno@clisp.org>
8535
8536         iswblank: Move AC_LIBOBJ invocations to module description.
8537         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8538         here...
8539         * modules/iswblank (configure.ac): ... to here.
8540
8541 2011-05-21  Bruno Haible  <bruno@clisp.org>
8542
8543         atanl: Move AC_LIBOBJ invocations to module description.
8544         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8545         * modules/atanl (configure.ac): ... to here.
8546
8547 2011-05-21  Bruno Haible  <bruno@clisp.org>
8548
8549         acosl: Move AC_LIBOBJ invocations to module description.
8550         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8551         * modules/acosl (configure.ac): ... to here.
8552
8553 2011-05-21  Bruno Haible  <bruno@clisp.org>
8554
8555         asinl: Respect rules for use of AC_LIBOBJ.
8556         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8557         * modules/asinl (configure.ac): ... to here.
8558
8559 2011-05-21  Bruno Haible  <bruno@clisp.org>
8560
8561         tanl: Move AC_LIBOBJ invocations to module description.
8562         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8563         * modules/tanl (configure.ac): ... to here.
8564
8565 2011-05-21  Bruno Haible  <bruno@clisp.org>
8566
8567         cosl: Move AC_LIBOBJ invocations to module description.
8568         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8569         * modules/cosl (configure.ac): ... to here.
8570
8571 2011-05-21  Bruno Haible  <bruno@clisp.org>
8572
8573         sinl: Move AC_LIBOBJ invocations to module description.
8574         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8575         * modules/sinl (configure.ac): ... to here.
8576
8577 2011-05-21  Bruno Haible  <bruno@clisp.org>
8578
8579         logl: Move AC_LIBOBJ invocations to module description.
8580         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8581         * modules/logl (configure.ac): ... to here.
8582
8583 2011-05-21  Bruno Haible  <bruno@clisp.org>
8584
8585         expl: Move AC_LIBOBJ invocations to module description.
8586         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8587         * modules/expl (configure.ac): ... to here.
8588
8589 2011-05-21  Bruno Haible  <bruno@clisp.org>
8590
8591         roundl: Move AC_LIBOBJ invocations to module description.
8592         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8593         * modules/roundl (configure.ac): ... to here.
8594
8595 2011-05-21  Bruno Haible  <bruno@clisp.org>
8596
8597         round: Move AC_LIBOBJ invocations to module description.
8598         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8599         * modules/round (configure.ac): ... to here.
8600
8601 2011-05-21  Bruno Haible  <bruno@clisp.org>
8602
8603         roundf: Move AC_LIBOBJ invocations to module description.
8604         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8605         * modules/roundf (configure.ac): ... to here.
8606
8607 2011-05-21  Bruno Haible  <bruno@clisp.org>
8608
8609         truncl: Move AC_LIBOBJ invocations to module description.
8610         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8611         * modules/truncl (configure.ac): ... to here.
8612
8613 2011-05-21  Bruno Haible  <bruno@clisp.org>
8614
8615         trunc: Move AC_LIBOBJ invocations to module description.
8616         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8617         * modules/trunc (configure.ac): ... to here.
8618
8619 2011-05-21  Bruno Haible  <bruno@clisp.org>
8620
8621         truncf: Move AC_LIBOBJ invocations to module description.
8622         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8623         * modules/truncf (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         ceill: Move AC_LIBOBJ invocations to module description.
8628         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8629         * modules/ceill (configure.ac): ... to here.
8630
8631 2011-05-21  Bruno Haible  <bruno@clisp.org>
8632
8633         ceil: Move AC_LIBOBJ invocations to module description.
8634         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8635         * modules/ceil (configure.ac): ... to here.
8636
8637 2011-05-21  Bruno Haible  <bruno@clisp.org>
8638
8639         ceilf: Move AC_LIBOBJ invocations to module description.
8640         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8641         * modules/ceilf (configure.ac): ... to here.
8642
8643 2011-05-21  Bruno Haible  <bruno@clisp.org>
8644
8645         floorl: Respect rules for use of AC_LIBOBJ.
8646         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8647         * modules/floorl (configure.ac): ... to here.
8648
8649 2011-05-21  Bruno Haible  <bruno@clisp.org>
8650
8651         floor: Respect rules for use of AC_LIBOBJ.
8652         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8653         * modules/floor (configure.ac): ... to here.
8654
8655 2011-05-21  Bruno Haible  <bruno@clisp.org>
8656
8657         floorf: Move AC_LIBOBJ invocations to module description.
8658         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8659         * modules/floorf (configure.ac): ... to here.
8660
8661 2011-05-20  Bruno Haible  <bruno@clisp.org>
8662
8663         sqrtl: Respect rules for use of AC_LIBOBJ.
8664         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8665         * modules/sqrtl (configure.ac): ... to here.
8666
8667 2011-05-20  Bruno Haible  <bruno@clisp.org>
8668
8669         ldexpl: Respect rules for use of AC_LIBOBJ.
8670         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8671         * modules/ldexpl (configure.ac): ... to here.
8672
8673 2011-05-20  Bruno Haible  <bruno@clisp.org>
8674
8675         frexpl*: Respect rules for use of AC_LIBOBJ.
8676         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8677         invocation from here...
8678         * modules/frexpl (configure.ac): ... to here.
8679         * modules/frexpl-nolibm (configure.ac): ... and here.
8680
8681 2011-05-20  Bruno Haible  <bruno@clisp.org>
8682
8683         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8684         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8685         invocation from here...
8686         * modules/frexp (configure.ac): ... to here.
8687         * modules/frexp-nolibm (configure.ac): ... and here.
8688
8689 2011-05-20  Bruno Haible  <bruno@clisp.org>
8690
8691         isnan: Respect rules for use of AC_LIBOBJ.
8692         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8693         invocations here.
8694         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8695         REPLACE_ISNAN.
8696         * modules/isnand (configure.ac): Likewise.
8697         * modules/isnanl (configure.ac): Likewise.
8698
8699 2011-05-20  Bruno Haible  <bruno@clisp.org>
8700
8701         isnanl*: Respect rules for use of AC_LIBOBJ.
8702         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8703         invocation from here...
8704         * modules/isnanl (configure.ac): ... to here.
8705         * modules/isnanl-nolibm (configure.ac): ... and here.
8706
8707 2011-05-20  Bruno Haible  <bruno@clisp.org>
8708
8709         isnand*: Move AC_LIBOBJ invocations to module description.
8710         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8711         invocation from here...
8712         * modules/isnand (configure.ac): ... to here.
8713         * modules/isnand-nolibm (configure.ac): ... and here.
8714
8715 2011-05-20  Bruno Haible  <bruno@clisp.org>
8716
8717         isnanf*: Move AC_LIBOBJ invocations to module description.
8718         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8719         invocation from here...
8720         * modules/isnanf (configure.ac): ... to here.
8721         * modules/isnanf-nolibm (configure.ac): ... and here.
8722
8723 2011-05-20  Bruno Haible  <bruno@clisp.org>
8724
8725         isnan*: Separate the AC_LIBOBJ invocations.
8726         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8727         AC_LIBOBJ invocation.
8728         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8729         here.
8730         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8731         AC_LIBOBJ invocation.
8732         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8733         here.
8734         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8735         AC_LIBOBJ invocation.
8736         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8737         here.
8738         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8739
8740 2011-05-08  Bruno Haible  <bruno@clisp.org>
8741
8742         isinf: Move AC_LIBOBJ invocations to module description.
8743         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8744         * modules/isinf (configure.ac): ... to here.
8745
8746 2011-05-08  Bruno Haible  <bruno@clisp.org>
8747
8748         isfinite: Move AC_LIBOBJ invocations to module description.
8749         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8750         * modules/isfinite (configure.ac): ... to here.
8751
8752 2011-05-08  Bruno Haible  <bruno@clisp.org>
8753
8754         isblank: Move AC_LIBOBJ invocations to module description.
8755         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8756         here...
8757         * modules/isblank (configure.ac): ... to here.
8758
8759 2011-05-08  Bruno Haible  <bruno@clisp.org>
8760
8761         isapipe: Move AC_LIBOBJ invocations to module description.
8762         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8763         gl_PREREQ_ISAPIPE invocations from here...
8764         * modules/isapipe (configure.ac): ... to here.
8765         (Depends-on): Update condition.
8766
8767 2011-05-08  Bruno Haible  <bruno@clisp.org>
8768
8769         ioctl: Move AC_LIBOBJ invocations to module description.
8770         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8771         invocations from here...
8772         * modules/ioctl (configure.ac): ... to here.
8773         (Depends-on): Update condition.
8774
8775 2011-05-08  Bruno Haible  <bruno@clisp.org>
8776
8777         imaxdiv: Move AC_LIBOBJ invocations to module description.
8778         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8779         invocations from here...
8780         * modules/imaxdiv (configure.ac): ... to here.
8781
8782 2011-05-08  Bruno Haible  <bruno@clisp.org>
8783
8784         imaxabs: Move AC_LIBOBJ invocations to module description.
8785         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8786         invocations from here...
8787         * modules/imaxabs (configure.ac): ... to here.
8788
8789 2011-05-08  Bruno Haible  <bruno@clisp.org>
8790
8791         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8792         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8793         AC_LIBOBJ invocations from here...
8794         * modules/getaddrinfo (configure.ac): ... to here.
8795         (Depends-on): Add conditions.
8796
8797 2011-05-08  Bruno Haible  <bruno@clisp.org>
8798
8799         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8800         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8801         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8802         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8803         (gl_PREREQ_INET_PTON): ... from here.
8804         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8805         gl_PREREQ_INET_PTON here.
8806         (Depends-on): Update condition.
8807
8808 2011-05-08  Bruno Haible  <bruno@clisp.org>
8809
8810         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8811         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8812         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8813         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8814         (gl_PREREQ_INET_NTOP): ... from here.
8815         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8816         gl_PREREQ_INET_NTOP here.
8817         (Depends-on): Update condition.
8818
8819 2011-05-08  Bruno Haible  <bruno@clisp.org>
8820
8821         iconv_open: Move AC_LIBOBJ invocations to module description.
8822         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8823         AC_LIBOBJ invocations from here...
8824         * modules/iconv_open (configure.ac): ... to here.
8825
8826 2011-05-08  Bruno Haible  <bruno@clisp.org>
8827
8828         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8829         If module 'iconv_open' is among the main modules and module
8830         'iconv_open-utf' is among the tests dependencies, then
8831         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8832         return the special iconv_t values. Therefore iconv() and iconv_close()
8833         must support these special iconv_t values, already in lib, not only in
8834         tests.
8835         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8836         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8837         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8838         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8839         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8840         (Depends-on): Add the dependencies of iconv_open-utf.
8841         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8842         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8843         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8844
8845 2011-05-08  Bruno Haible  <bruno@clisp.org>
8846
8847         group-member: Move AC_LIBOBJ invocations to module description.
8848         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8849         gl_PREREQ_GROUP_MEMBER invocations from here...
8850         * modules/group-member (configure.ac): ... to here.
8851
8852 2011-05-08  Bruno Haible  <bruno@clisp.org>
8853
8854         grantpt: Move AC_LIBOBJ invocations to module description.
8855         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8856         invocations from here...
8857         * modules/grantpt (configure.ac): ... to here.
8858
8859 2011-05-08  Bruno Haible  <bruno@clisp.org>
8860
8861         glob: Move AC_LIBOBJ invocations to module description.
8862         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8863         from here...
8864         * modules/glob (configure.ac): ... to here.
8865
8866 2011-05-08  Bruno Haible  <bruno@clisp.org>
8867
8868         getusershell: Move AC_LIBOBJ invocations to module description.
8869         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8870         Move AC_LIBOBJ invocation from here...
8871         * modules/getusershell (configure.ac): ... to here.
8872         (Depends-on): Update condition.
8873
8874 2011-05-08  Bruno Haible  <bruno@clisp.org>
8875
8876         gettimeofday: Move AC_LIBOBJ invocations to module description.
8877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8878         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8879         gl_PREREQ_GETTIMEOFDAY invocations from here...
8880         * modules/gettimeofday (configure.ac): ... to here.
8881
8882 2011-05-08  Bruno Haible  <bruno@clisp.org>
8883
8884         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8885         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8886         just gl_FUNC_TZSET.
8887         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8888         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8890         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8891
8892 2011-05-08  Bruno Haible  <bruno@clisp.org>
8893
8894         getsubopt: Move AC_LIBOBJ invocations to module description.
8895         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8896         gl_PREREQ_GETSUBOPT invocations from here...
8897         * modules/getsubopt (configure.ac): ... to here.
8898
8899 2011-05-08  Bruno Haible  <bruno@clisp.org>
8900
8901         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8902         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8903         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8904         * modules/getpass-gnu (configure.ac): ... to here.
8905
8906 2011-05-08  Bruno Haible  <bruno@clisp.org>
8907
8908         getpass: Move AC_LIBOBJ invocations to module description.
8909         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8910         gl_PREREQ_GETPASS invocations from here...
8911         * modules/getpass (configure.ac): ... to here.
8912
8913 2011-05-08  Bruno Haible  <bruno@clisp.org>
8914
8915         getpagesize: Move AC_LIBOBJ invocations to module description.
8916         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8917         from here...
8918         * modules/getpagesize (configure.ac): ... to here.
8919
8920 2011-05-08  Bruno Haible  <bruno@clisp.org>
8921
8922         getopt: Move AC_LIBOBJ invocations to module description.
8923         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8924         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8925         invocations from here...
8926         * modules/getopt-gnu (configure.ac): ... to here.
8927         * modules/getopt-posix (configure.ac): ... and here.
8928         (Depends-on): Update condition.
8929
8930 2011-05-08  Bruno Haible  <bruno@clisp.org>
8931
8932         getopt, argp: Respect rules for use of AC_LIBOBJ.
8933         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8934         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8935         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8936         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8937
8938 2011-05-08  Bruno Haible  <bruno@clisp.org>
8939
8940         getlogin_r: Move AC_LIBOBJ invocations to module description.
8941         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8942         gl_PREREQ_GETLOGIN_R invocations from here...
8943         * modules/getlogin_r (configure.ac): ... to here.
8944
8945 2011-05-08  Bruno Haible  <bruno@clisp.org>
8946
8947         getlogin: Move AC_LIBOBJ invocations to module description.
8948         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8949         here...
8950         * modules/getlogin (configure.ac): ... to here.
8951
8952 2011-05-08  Bruno Haible  <bruno@clisp.org>
8953
8954         getloadavg: Move AC_LIBOBJ invocations to module description.
8955         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8956         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8957         * modules/getloadavg (configure.ac): ... to here.
8958
8959 2011-05-08  Bruno Haible  <bruno@clisp.org>
8960
8961         gethrxtime: Move AC_LIBOBJ invocations to module description.
8962         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8963         LIB_GETHRXTIME from here...
8964         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8965         invocations from here...
8966         * modules/gethrxtime (configure.ac): ... to here.
8967
8968 2011-05-08  Bruno Haible  <bruno@clisp.org>
8969
8970         gethostname: Move AC_LIBOBJ invocations to module description.
8971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8972         gl_PREREQ_GETHOSTNAME invocations from here...
8973         * modules/gethostname (configure.ac): ... to here.
8974
8975 2011-05-08  Bruno Haible  <bruno@clisp.org>
8976
8977         getgroups: Move AC_LIBOBJ invocations to module description.
8978         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8979         here...
8980         * modules/getgroups (configure.ac): ... to here.
8981
8982 2011-05-08  Bruno Haible  <bruno@clisp.org>
8983
8984         getdtablesize: Move AC_LIBOBJ invocations to module description.
8985         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8986         invocation from here...
8987         * modules/getdtablesize (configure.ac): ... to here.
8988
8989 2011-05-08  Bruno Haible  <bruno@clisp.org>
8990
8991         getdomainname: Move AC_LIBOBJ invocations to module description.
8992         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8993         gl_PREREQ_GETDOMAINNAME invocations from here...
8994         * modules/getdomainname (configure.ac): ... to here.
8995
8996 2011-05-08  Bruno Haible  <bruno@clisp.org>
8997
8998         getline: Move AC_LIBOBJ invocations to module description.
8999         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9000         invocations from here...
9001         * modules/getline (configure.ac): ... to here.
9002
9003 2011-05-08  Bruno Haible  <bruno@clisp.org>
9004
9005         getline: Simplify.
9006         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9007         It's already handled through the module dependency.
9008
9009 2011-05-08  Bruno Haible  <bruno@clisp.org>
9010
9011         getdelim: Move AC_LIBOBJ invocations to module description.
9012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9013         and gl_PREREQ_GETDELIM invocations from here...
9014         * modules/getdelim (configure.ac): ... to here.
9015         (Depends-on): Fix condition.
9016
9017 2011-05-08  Bruno Haible  <bruno@clisp.org>
9018
9019         getcwd: Move AC_LIBOBJ invocations to module description.
9020         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9021         invocations from here...
9022         * modules/getcwd (configure.ac): ... to here.
9023
9024 2011-05-08  Bruno Haible  <bruno@clisp.org>
9025
9026         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9027         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9028         here...
9029         * modules/getcwd-lgpl (configure.ac): ... to here.
9030
9031 2011-05-07  Bruno Haible  <bruno@clisp.org>
9032
9033         crypto/gc: Move AC_LIBOBJ invocations to module description.
9034         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9035         * modules/crypto/gc (configure.ac): ... to here.
9036
9037 2011-05-07  Bruno Haible  <bruno@clisp.org>
9038
9039         fwriting: Move AC_LIBOBJ invocations to module description.
9040         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9041         here...
9042         * modules/fwriting (configure.ac): ... to here.
9043
9044 2011-05-07  Bruno Haible  <bruno@clisp.org>
9045
9046         fwritable: Move AC_LIBOBJ invocations to module description.
9047         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9048         here...
9049         * modules/fwritable (configure.ac): ... to here.
9050
9051 2011-05-07  Bruno Haible  <bruno@clisp.org>
9052
9053         futimens: Move AC_LIBOBJ invocations to module description.
9054         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9055         here...
9056         * modules/futimens (configure.ac): ... to here.
9057
9058 2011-05-07  Bruno Haible  <bruno@clisp.org>
9059
9060         ftruncate: Move AC_LIBOBJ invocations to module description.
9061         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9062         gl_PREREQ_FTRUNCATE invocations from here...
9063         * modules/ftruncate (configure.ac): ... to here.
9064
9065 2011-05-07  Bruno Haible  <bruno@clisp.org>
9066
9067         fsync: Move AC_LIBOBJ invocations to module description.
9068         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9069         invocations from here...
9070         * modules/fsync (configure.ac): ... to here.
9071
9072 2011-05-07  Bruno Haible  <bruno@clisp.org>
9073
9074         fsusage: Move AC_LIBOBJ invocations to module description.
9075         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9076         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9077         * modules/fsusage (configure.ac): ... to here.
9078
9079 2011-05-07  Bruno Haible  <bruno@clisp.org>
9080
9081         freopen: Move AC_LIBOBJ invocations to module description.
9082         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9083         invocations from here...
9084         * modules/freopen (configure.ac): ... to here.
9085
9086 2011-05-07  Bruno Haible  <bruno@clisp.org>
9087
9088         free: Move AC_LIBOBJ invocations to module description.
9089         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9090         invocations from here...
9091         * modules/free (configure.ac): ... to here.
9092
9093 2011-05-07  Bruno Haible  <bruno@clisp.org>
9094
9095         freadable: Move AC_LIBOBJ invocations to module description.
9096         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9097         here...
9098         * modules/freadable (configure.ac): ... to here.
9099
9100 2011-05-07  Bruno Haible  <bruno@clisp.org>
9101
9102         fpurge: Move AC_LIBOBJ invocations to module description.
9103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9104         invocations from here...
9105         * modules/fpurge (configure.ac): ... to here.
9106
9107 2011-05-07  Bruno Haible  <bruno@clisp.org>
9108
9109         fpending: Move AC_LIBOBJ invocations to module description.
9110         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9111         gl_FUNC_FPENDING.
9112         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9113         invocations from here...
9114         * modules/fpending (configure.ac): ... to here.
9115
9116 2011-05-07  Bruno Haible  <bruno@clisp.org>
9117
9118         fopen: Move AC_LIBOBJ invocations to module description.
9119         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9120         invocations from here...
9121         * modules/fopen (configure.ac): ... to here.
9122
9123 2011-05-07  Bruno Haible  <bruno@clisp.org>
9124
9125         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9126         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9127         gl_FUNC_FNMATCH_POSIX.
9128         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9129         invocations from here...
9130         * modules/fnmatch (configure.ac): ... to here.
9131         * modules/fnmatch-gnu (configure.ac): ... and here.
9132
9133 2011-05-07  Bruno Haible  <bruno@clisp.org>
9134
9135         flock: Move AC_LIBOBJ invocations to module description.
9136         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9137         invocations from here...
9138         * modules/flock (configure.ac): ... to here.
9139
9140 2011-05-07  Bruno Haible  <bruno@clisp.org>
9141
9142         fileblocks: Move AC_LIBOBJ invocations to module description.
9143         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9144         gl_PREREQ_FILEBLOCKS invocations from here...
9145         * modules/fileblocks (configure.ac): ... to here.
9146
9147 2011-05-06  Bruno Haible  <bruno@clisp.org>
9148
9149         fflush: Move AC_LIBOBJ invocations to module description.
9150         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9151         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9152         invocations from here...
9153         * modules/fflush (configure.ac): ... to here.
9154
9155 2011-05-06  Bruno Haible  <bruno@clisp.org>
9156
9157         fdopendir: Move AC_LIBOBJ invocations to module description.
9158         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9159         here...
9160         * modules/fdopendir (configure.ac): ... to here.
9161         (Depends-on): Improve conditions.
9162
9163 2011-05-06  Bruno Haible  <bruno@clisp.org>
9164
9165         _Exit: Move AC_LIBOBJ invocations to module description.
9166         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9167         invocations from here...
9168         * modules/_Exit (configure.ac): ... to here.
9169
9170 2011-05-21  Bruno Haible  <bruno@clisp.org>
9171
9172         euidaccess: Respect rules for use of AC_LIBOBJ.
9173         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9175         from here...
9176         * modules/euidaccess (configure.ac): ... to here.
9177
9178 2011-05-06  Bruno Haible  <bruno@clisp.org>
9179
9180         error: Move AC_LIBOBJ invocations to module description.
9181         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9182         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9183         invocations from here...
9184         * modules/error (configure.ac): ... to here.
9185
9186 2011-05-06  Bruno Haible  <bruno@clisp.org>
9187
9188         duplocale: Move AC_LIBOBJ invocations to module description.
9189         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9190         gl_PREREQ_DUPLOCALE invocations from here...
9191         * modules/duplocale (configure.ac): ... to here.
9192
9193 2011-05-05  Bruno Haible  <bruno@clisp.org>
9194
9195         dirfd: Move AC_LIBOBJ invocations to module description.
9196         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9197         gl_FUNC_DIRFD.
9198         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9199         here...
9200         * modules/dirfd (configure.ac): ... to here.
9201         (Depends-on): Fix condition.
9202
9203 2011-05-05  Bruno Haible  <bruno@clisp.org>
9204
9205         chown: Respect rules for use of AC_LIBOBJ.
9206         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9207         * modules/chown (configure.ac): ... to here.
9208
9209 2011-05-05  Bruno Haible  <bruno@clisp.org>
9210
9211         chdir-long: Move AC_LIBOBJ invocations to module description.
9212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9213         gl_PREREQ_CHDIR_LONG invocations from here...
9214         * modules/chdir-long (configure.ac): ... to here.
9215
9216 2011-05-05  Bruno Haible  <bruno@clisp.org>
9217
9218         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9219         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9220         from here...
9221         * modules/canonicalize-lgpl (configure.ac): ... to here.
9222
9223 2011-05-05  Bruno Haible  <bruno@clisp.org>
9224
9225         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9226         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9227         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9228         REPLACE_CALLOC.
9229         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9230         * modules/calloc-gnu (configure.ac): Likewise.
9231
9232 2011-05-05  Bruno Haible  <bruno@clisp.org>
9233
9234         btowc: Move AC_LIBOBJ invocations to module description.
9235         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9236         invocations from here...
9237         * modules/btowc (configure.ac): ... to here.
9238
9239 2011-05-21  Bruno Haible  <bruno@clisp.org>
9240
9241         atexit: Move AC_LIBOBJ invocations to module description.
9242         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9244         here...
9245         * modules/atexit (configure.ac): ... to here.
9246
9247 2011-05-05  Bruno Haible  <bruno@clisp.org>
9248
9249         atoll: Move AC_LIBOBJ invocations to module description.
9250         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9251         invocations from here...
9252         * modules/atoll (configure.ac): ... to here.
9253
9254 2011-05-05  Bruno Haible  <bruno@clisp.org>
9255
9256         argz: Move AC_LIBOBJ invocations to module description.
9257         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9258         * modules/argz (configure.ac): ... to here.
9259
9260 2011-05-05  Bruno Haible  <bruno@clisp.org>
9261
9262         alphasort: Move AC_LIBOBJ invocations to module description.
9263         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9264         gl_PREREQ_ALPHASORT invocations from here...
9265         * modules/alphasort (configure.ac): ... to here.
9266
9267 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9268
9269         verify: new macro verify_expr; verify_true deprecated
9270         * NEWS: Mention this.
9271         * doc/verify.texi (Compile-time Assertions): Document this.
9272         * lib/verify.h (verify_true): Deprecate.
9273         (verify_expr): New macro.
9274         * tests/test-verify.c (function): Test verify_expr.
9275
9276 2011-06-14  Jim Meyering  <meyering@redhat.com>
9277
9278         init.sh: give more portable redirection-related advice in a comment
9279         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9280         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9281         for lots of discussion.  Stefano Lattarini suggested the solution
9282         of putting "9>&2" after the command.  Reported by Bruno Haible.
9283
9284 2011-06-13  Bruno Haible  <bruno@clisp.org>
9285
9286         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9288         'none'.
9289
9290 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9291
9292         ftoastr: use strtof only if HAVE_STRTOF
9293         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9295         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9296         * modules/ftoastr (configure.ac): Check for strtof.
9297
9298 2011-06-13  Bruno Haible  <bruno@clisp.org>
9299
9300         gnulib-tool: Addendum to 2011-06-08 commit.
9301         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9302         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9303
9304 2011-06-13  Bruno Haible  <bruno@clisp.org>
9305
9306         fseeko: Provide a non-inline replacement of fseek().
9307         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9308         * modules/fseeko (Depends-on): Add fseek.
9309         * modules/fseek (License): Change to LGPLv2+.
9310
9311 2011-06-13  Bruno Haible  <bruno@clisp.org>
9312
9313         ftello: Provide a non-inline replacement of ftell().
9314         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9315         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9316         not have ftello() (such as on mingw).
9317         * modules/ftello (Depends-on): Add ftell.
9318         * modules/ftell (License): Change to LGPLv2+.
9319
9320 2011-05-07  Bruno Haible  <bruno@clisp.org>
9321
9322         ftell: Move AC_LIBOBJ invocations to module description.
9323         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9324         * modules/ftell (configure.ac): ... to here.
9325
9326 2011-05-07  Bruno Haible  <bruno@clisp.org>
9327
9328         ftello: Respect rules for use of AC_LIBOBJ.
9329         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9330         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9331         here...
9332         * modules/ftello (configure.ac): ... to here.
9333
9334 2011-05-07  Bruno Haible  <bruno@clisp.org>
9335
9336         fseeko: Simplify.
9337         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9338         (gl_FUNC_FSEEKO): Inline it here.
9339
9340 2011-05-07  Bruno Haible  <bruno@clisp.org>
9341
9342         fseek: Move AC_LIBOBJ invocations to module description.
9343         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9344         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9345         * modules/fseek (configure.ac): ... to here.
9346
9347 2011-05-07  Bruno Haible  <bruno@clisp.org>
9348
9349         fseek: Respect rules for use of AC_LIBOBJ.
9350         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9351         here...
9352         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9353
9354 2011-05-07  Bruno Haible  <bruno@clisp.org>
9355
9356         fseeko: Respect rules for use of AC_LIBOBJ.
9357         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9358         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9359         here...
9360         * modules/fseeko (configure.ac): ... to here.
9361
9362 2011-06-13  Bruno Haible  <bruno@clisp.org>
9363
9364         gnulib-tool: Allow comments in the 'Depends-on' section.
9365         * doc/gnulib.texi (Module description): Mention comment syntax in the
9366         Depends-on section.
9367         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9368
9369 2011-06-13  Bruno Haible  <bruno@clisp.org>
9370
9371         file-set.h: guard __attibute__ use, now that it's not always defined
9372         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9373         versions that support it.  This fixes a coreutils build failure with
9374         the vendor cc on HP-UX 11.31.
9375
9376 2011-06-12  Bruno Haible  <bruno@clisp.org>
9377
9378         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9379         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9380         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9381         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9382         (acl, aclsort): New declarations.
9383         (aclv_nontrivial): New declaration.
9384         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9385         (file_has_acl): Read also the second kind of HP-UX ACLs.
9386         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9387         kind of HP-UX ACLs if the first kind fails.
9388         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9389         second kind of HP-UX ACLs.
9390         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9391         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9392         agree.
9393         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9394         hpuxjfs.
9395         Handle hpuxjfs.
9396         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9397         hpuxjfs.
9398         Handle hpuxjfs.
9399         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9400         (func_test_same_acls): Use both lsacl and getacl.
9401         Handle hpuxjfs.
9402         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9403         (func_test_same_acls): Use both lsacl and getacl.
9404         Handle hpuxjfs.
9405
9406 2011-06-12  Bruno Haible  <bruno@clisp.org>
9407
9408         acl: Complete the 2010-08-10 fix.
9409         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9410         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9411         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9412         explicitly.
9413         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9414         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9415
9416 2011-06-12  Bruno Haible  <bruno@clisp.org>
9417
9418         spawn-pipe tests: Comments.
9419         * tests/test-spawn-pipe-child.c (main): Update comment.
9420         Reported by James Youngman <jay@gnu.org>.
9421
9422 2011-06-11  James Youngman  <jay@gnu.org>
9423
9424         New module 'stat-size'.
9425         * modules/stat-size: New module.  Provides macros for accessing
9426         file size information in instances of struct stat.  Depends on the
9427         fileblocks module because it calls st_blocks.
9428         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9429         * doc/gnulib.texi: Include stat-size.texi.
9430         * doc/stat-size.texi: Documentation for this module.
9431         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9432         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9433         AC_STRUCT_ST_BLOCKS.
9434
9435 2011-06-09  Bruno Haible  <bruno@clisp.org>
9436
9437         thread: Support pthreads-win32.
9438         * lib/glthread/thread.h (gl_thread_self): Define differently on
9439         pthreads-win32.
9440         (gl_null_thread): New declaration.
9441         (gl_thread_self_pointer): New macro.
9442         * lib/glthread/thread.c (gl_null_thread): New constant.
9443         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9444         gl_thread_self.
9445         * tests/test-tls.c: Likewise.
9446         Suggested by Paul Eggert. Reported by Eric Blake.
9447
9448 2011-06-09  Bruno Haible  <bruno@clisp.org>
9449
9450         thread: Fix confusion between NULL and 0.
9451         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9452         Reported by Paul Eggert.
9453
9454 2011-06-09  Bruno Haible  <bruno@clisp.org>
9455
9456         spawn-pipe tests: Avoid test failure on HP-UX 11.
9457         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9458         is closed.
9459
9460 2011-06-09  Bruno Haible  <bruno@clisp.org>
9461
9462         acl tests: Fix compilation error on HP-UX 11.
9463         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9464
9465 2011-06-09  Bruno Haible  <bruno@clisp.org>
9466
9467         rmdir: Avoid test failure on HP-UX 10.20.
9468         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9469         EEXIST.
9470
9471 2011-06-08  Eric Blake  <eblake@redhat.com>
9472
9473         perror: fix test on mingw
9474         * modules/perror-tests (Depends-on): Add dup2.
9475
9476         strerror_r-posix: fix on MacOS
9477         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9478         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9479         logic bug.
9480         * lib/strerror_r.c (strerror_r): Fix the bug.
9481         * lib/strerror.c (strerror): Likewise.
9482         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9483         problem.
9484         * doc/posix-functions/strerror.texi (strerror): Likewise.
9485         * doc/posix-functions/perror.texi (perror): Likewise.
9486         * tests/test-strerror.c (main): Enhance test.
9487         * tests/test-strerror_r.c (main): Likewise.
9488
9489 2011-06-08  Bruno Haible  <bruno@clisp.org>
9490
9491         gnulib-tool: Better isolation between different gnulib-tool invocations.
9492         * gnulib-tool: New option --witness-c-macro.
9493         (witness_c_macro): New variable.
9494         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9495         AM_CPPFLAGS define it as a C macro.
9496         (func_emit_tests_Makefile_am): Likewise.
9497         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9498         read it from there.
9499         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9500         m4_define, not AC_DEFUN.
9501         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9502         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9503         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9504         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9505         s|...|...|, to substitute the values of the GNULIB_* module indicator
9506         variables.
9507         * modules/dirent (Makefile.am): Likewise.
9508         * modules/fcntl-h (Makefile.am): Likewise.
9509         * modules/iconv-h (Makefile.am): Likewise.
9510         * modules/langinfo (Makefile.am): Likewise.
9511         * modules/locale (Makefile.am): Likewise.
9512         * modules/math (Makefile.am): Likewise.
9513         * modules/netdb (Makefile.am): Likewise.
9514         * modules/poll-h (Makefile.am): Likewise.
9515         * modules/pty (Makefile.am): Likewise.
9516         * modules/search (Makefile.am): Likewise.
9517         * modules/signal (Makefile.am): Likewise.
9518         * modules/spawn (Makefile.am): Likewise.
9519         * modules/stdio (Makefile.am): Likewise.
9520         * modules/stdlib (Makefile.am): Likewise.
9521         * modules/string (Makefile.am): Likewise.
9522         * modules/sys_ioctl (Makefile.am): Likewise.
9523         * modules/sys_select (Makefile.am): Likewise.
9524         * modules/sys_socket (Makefile.am): Likewise.
9525         * modules/sys_stat (Makefile.am): Likewise.
9526         * modules/sys_times (Makefile.am): Likewise.
9527         * modules/sys_utsname (Makefile.am): Likewise.
9528         * modules/sys_wait (Makefile.am): Likewise.
9529         * modules/termios (Makefile.am): Likewise.
9530         * modules/time (Makefile.am): Likewise.
9531         * modules/unistd (Makefile.am): Likewise.
9532         * modules/wchar (Makefile.am): Likewise.
9533
9534 2011-06-08  Eric Blake  <eblake@redhat.com>
9535
9536         strerror: simplify replacement
9537         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9538         * modules/strerror (configure.ac): No prereqs needed here...
9539         * modules/strerror-override (configure.ac): ...but this needs it.
9540         (Files): Add file for needed prereq macro.
9541
9542 2011-06-08  Bruno Haible  <bruno@clisp.org>
9543
9544         strerror_r-posix: Tweaks.
9545         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9546         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9548         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9549         (gl_FUNC_STRERROR_R): ... to here.
9550         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9551
9552 2011-06-07  Eric Blake  <eblake@redhat.com>
9553
9554         perror: document fixed bugs
9555         * doc/posix-functions/perror.texi (perror): Document recent
9556         patches.
9557
9558 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9559
9560         stat-time: get_stat_birthtime failure is better-defined
9561         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9562         return a timestamp whose tv_sec and tv_nsec values are both -1.
9563         Previously, the spec said only that the tv_nsec value was negative.
9564         This upward-compatible change simplifies GNU tar a bit.
9565
9566 2011-06-07  Eric Blake  <eblake@redhat.com>
9567
9568         strerror_r-posix: work around cygwin 1.7.9
9569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9570         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9571         bug without replacing strerror_r.
9572         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9573         strerror_r is buggy, but without requiring strerror_r compilation.
9574         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9575
9576         test-perror: relax test to ignore cygwin bug
9577         * tests/test-perror2.c (main): Relax test on requiring detection
9578         of stream errors, and use unbuffered stream.
9579         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9580         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9581         * doc/posix-functions/fputc.texi (fputc): Likewise.
9582         * doc/posix-functions/fputs.texi (fputs): Likewise.
9583         * doc/posix-functions/fputws.texi (fputws): Likewise.
9584         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9585         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9586         * doc/posix-functions/getopt.texi (getopt): Likewise.
9587         * doc/posix-functions/perror.texi (perror): Likewise.
9588         * doc/posix-functions/printf.texi (printf): Likewise.
9589         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9590         * doc/posix-functions/psignal.texi (psignal): Likewise.
9591         * doc/posix-functions/putc.texi (putc): Likewise.
9592         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9593         Likewise.
9594         * doc/posix-functions/putchar.texi (putchar): Likewise.
9595         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9596         Likewise.
9597         * doc/posix-functions/puts.texi (puts): Likewise.
9598         * doc/posix-functions/putwc.texi (putwc): Likewise.
9599         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9600         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9601         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9602         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9603         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9604         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9605         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9606         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9607
9608 2011-05-22  Bruno Haible  <bruno@clisp.org>
9609
9610         strerror: Move AC_LIBOBJ invocations to module description.
9611         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9612         gl_PREREQ_STRERROR invocations from here...
9613         * modules/strerror (configure.ac): ... to here.
9614
9615 2011-05-21  Bruno Haible  <bruno@clisp.org>
9616
9617         perror: Use common idiom.
9618         * modules/perror (configure.ac): Reorder statements.
9619
9620 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9621
9622         tests: fix usage message in 'mktempd_'
9623         * tests/init.sh (mktempd_): In the usage message, use literal
9624         'mktempd_', not '$ME' (which is even undefined), as the name of
9625         the subroutine.
9626
9627 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9628
9629         tests init: new function 'fatal_', for hard errors
9630         Before this patch, the only way offered by tests/init.sh to
9631         properly signal a hard error was the `framework_failure_'
9632         function.  But the error message issued by that function,
9633         as its name would suggest, refers to a set-up failure in the
9634         testsuite, while hard errors can obviously also be due to
9635         other reasons.  The best way to fix this inconsistency is to
9636         introduce a new function with a more general error message.
9637         * tests/init.sh (fatal_): New function.
9638
9639 2011-06-06  Eric Blake  <eblake@redhat.com>
9640
9641         canonicalize-lgpl: use common idiom
9642         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9643         over newer POSIX -Rf.
9644         Reported by Bruno Haible.
9645
9646         canonicalize-lgpl: work around AIX realpath bug
9647         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9648         * doc/posix-functions/realpath.texi (realpath): Document it.
9649         Reported by Bruno Haible.
9650
9651         strerror: work around FreeBSD bug
9652         * lib/strerror.c (strerror): Special case 0.
9653         Reported by Bruno Haible.
9654
9655         strerror-override: avoid bloating errno module
9656         * modules/errno (Files, configure.ac): Move replacement strings...
9657         * modules/strerror-override: ...to new module.
9658         * modules/strerror (Depends-on): Add strerror-override.
9659         * modules/strerror_r-posix (Depends-on): Likewise.
9660         * MODULES.html.sh: Document new module.
9661         Reported by Bruno Haible.
9662
9663 2011-06-06  Bruno Haible  <bruno@clisp.org>
9664
9665         spawn-pipe tests: Rename program.
9666         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9667         * tests/test-spawn-pipe-child.c: Update comment.
9668         * tests/test-spawn-pipe.sh: Update.
9669         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9670
9671         spawn-pipe tests: Link the child program only against libc.
9672         * tests/test-spawn-pipe-child.c: New file, extracted from
9673         tests/test-spawn-pipe.c.
9674         (main): Expect only one argument.
9675         (is_open): New function, copied from tests/test-pipe.c.
9676         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9677         (child_main): Remove function.
9678         (test_pipe): Pass only one argument to the child program.
9679         (main): Remove child process code. Expect the child program's name as
9680         first argument.
9681         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9682         argument.
9683         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9684         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9685         test-spawn-pipe-child against no libraries.
9686
9687 2011-06-06  Bruno Haible  <bruno@clisp.org>
9688
9689         careadlinkat: Avoid mismatch between ssize_t and int.
9690         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9691         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9692
9693 2011-06-06  Jim Meyering  <meyering@redhat.com>
9694
9695         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9696         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9697         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9698
9699 2011-06-05  Bruno Haible  <bruno@clisp.org>
9700
9701         ansi-c++-opt: Interoperability with libtool.
9702         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9703         set the variable to "no", not to ":".
9704         * NEWS: Mention the change.
9705
9706 2011-06-05  Bruno Haible  <bruno@clisp.org>
9707
9708         acl: Fix test failure on AIX 7.
9709         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9710         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9711
9712 2011-06-05  Bruno Haible  <bruno@clisp.org>
9713
9714         pipe-filter-ii: Fix test failure on AIX and IRIX.
9715         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9716         with EAGAIN, retry with a smaller buffer size.
9717
9718 2011-06-05  Bruno Haible  <bruno@clisp.org>
9719
9720         localename: Fix link dependencies.
9721         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9722         * modules/localename-tests (Makefile.am): Link test-localename with
9723         $(LIBTHREAD).
9724
9725 2011-06-05  Bruno Haible  <bruno@clisp.org>
9726
9727         error: Avoid gcc warning.
9728         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9729
9730 2011-06-05  Bruno Haible  <bruno@clisp.org>
9731
9732         unsetenv: Avoid gcc warning.
9733         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9734
9735 2011-06-05  Bruno Haible  <bruno@clisp.org>
9736
9737         setenv: Avoid gcc warning.
9738         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9739
9740 2011-06-05  Bruno Haible  <bruno@clisp.org>
9741
9742         sys_select: Ensure memset is declared also on AIX 7.
9743         * lib/sys_select.in.h: Include <string.h> also on AIX.
9744         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9745         self-contained also on AIX 7.1.
9746
9747 2011-06-04  Jim Meyering  <meyering@redhat.com>
9748
9749         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9750         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9751         function name, "error".
9752         (_gl_translatable_diag_func_re): New configurable variable.
9753
9754 2011-06-04  Bruno Haible  <bruno@clisp.org>
9755
9756         getopt: Avoid gcc warning.
9757         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9758
9759 2011-06-04  Bruno Haible  <bruno@clisp.org>
9760
9761         strerror_r: Fix comments.
9762         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9763         commit.
9764
9765 2011-06-04  Bruno Haible  <bruno@clisp.org>
9766
9767         perror: Fix compilation error.
9768         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9769         Undefine fprintf, not sprintf.
9770         * modules/perror (Depends-on): Remove intprops, verify.
9771
9772 2011-06-04  Bruno Haible  <bruno@clisp.org>
9773
9774         setlocale: Enable replacement on Cygwin 1.5.
9775         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9776         Cygwin 1.5.x.
9777         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9778         LC_CTYPE category also exists on Cygwin 1.5.x.
9779
9780 2011-06-04  Bruno Haible  <bruno@clisp.org>
9781
9782         strerror-override: Don't disable symbol renamings.
9783         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9784         * lib/strerror-override.c: Include config.h.
9785         (strerror_override): Don't undefine.
9786
9787 2011-06-03  Bruno Haible  <bruno@clisp.org>
9788
9789         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9790         * lib/localename.h: Update copyright header.
9791         * lib/localename.c: Likewise.
9792         * lib/relocatable.h: Likewise.
9793         * lib/relocatable.c: Likewise.
9794
9795 2011-06-02  Bruno Haible  <bruno@clisp.org>
9796
9797         doc: Fix a module name.
9798         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9799
9800 2011-06-02  Bruno Haible  <bruno@clisp.org>
9801
9802         pipe2: Remove dependency on 'nonblocking' module.
9803         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9804         O_NONBLOCK is defined by gnulib.
9805         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9806         is zero.
9807         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9808         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9809         defined by gnulib.
9810         (get_nonblocking_flag): New function.
9811         (main): Test O_NONBLOCK flag only if it is nonzero.
9812         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9813
9814 2011-06-03  Jim Meyering  <meyering@redhat.com>
9815
9816         maint: three new prohibit-header-without-use rules
9817         Prohibit use of cloexec.h, posixver.h, same.h without use.
9818         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9819         (sc_prohibit_posixver_without_use): Likewise.
9820         (sc_prohibit_same_without_use): Likewise.
9821
9822 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9823
9824         allocator: 'die' routine is now given requested size
9825         * lib/allocator.h (struct allocator.die): New size arg.
9826         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9827         If the actual problem is an ssize_t limitation, not a size_t or
9828         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9829
9830 2011-06-01  Eric Blake  <eblake@redhat.com>
9831
9832         strerror: drop strerror_r dependency
9833         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9834         * lib/strerror-override.c (strerror_override): ...to new file.
9835         * lib/strerror-override.h: Add prototype.
9836         * lib/strerror-impl.h: Delete.
9837         * lib/strerror.c (strerror): New implementation.
9838         * modules/errno (Files): Add new files.
9839         (configure.ac): Compile new file as appropriate.
9840         * modules/strerror (Files): Drop unused file.
9841         (Depends-on): Drop strerror_r-posix.
9842         * MODULES.html.sh: Document strerror_r-posix.
9843         Requested by Sam Steingold.
9844
9845         perror: call strerror_r directly
9846         * modules/perror (Files): Drop strerror-impl.h.
9847         * lib/perror.c (perror): Use our own stack buffer, rather than
9848         calling a wrapper that uses static storage.
9849         * doc/posix-functions/perror.texi (perror): Document a limitation
9850         of our replacement.
9851
9852         strerror_r: fix includes for FreeBSD
9853         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9854         since we use abort on some platforms.
9855         Reported by Matthias Bolte.
9856
9857 2011-05-31  Bruno Haible  <bruno@clisp.org>
9858
9859         Fix link errors in tests: openat-die uses gettext-h.
9860         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9861         against $(LIBINTL).
9862         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9863         against $(LIBINTL).
9864         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9865         $(LIBINTL).
9866         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9867         against $(LIBINTL).
9868         * modules/linkat-tests (Makefile.am): Link test-linkat against
9869         $(LIBINTL).
9870         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9871         $(LIBINTL).
9872         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9873         against $(LIBINTL).
9874         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9875         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9876         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9877         $(LIBINTL).
9878         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9879         $(LIBINTL).
9880         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9881         $(LIBINTL).
9882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9883
9884 2011-05-31  Bruno Haible  <bruno@clisp.org>
9885
9886         Fix link errors in tests: wait-process uses gettext-h.
9887         * modules/nonblocking-pipe-tests (Makefile.am): Set
9888         test_nonblocking_pipe_main_LDADD.
9889         * modules/nonblocking-socket-tests (Makefile.am): Link
9890         test-nonblocking-socket-main against $(LIBINTL).
9891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9892
9893 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9894
9895         assert-h: work around 'verify' incompatibility
9896         * lib/verify.h: Use @...@ directives, not ifdef.
9897         * modules/assert-h (assert.h): Implement the directives.
9898         (assert.h): Substitute the symbol-prefix more consistently.
9899
9900 2011-05-29  Jim Meyering  <meyering@redhat.com>
9901
9902         trim: remove three superfluous assignments
9903         * lib/trim.c (trim2): Remove three superfluous assignments
9904         and correct brace positioning.
9905
9906 2011-05-29  Bruno Haible  <bruno@clisp.org>
9907
9908         wctype-h: Avoid namespace pollution on Solaris 2.6.
9909         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9910         identifiers.
9911         * doc/posix-headers/wctype.texi: Mention the problem.
9912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9913
9914 2011-05-28  Jim Meyering  <meyering@redhat.com>
9915
9916         parse-datetime.y: accommodate -Wstrict-overflow
9917         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9918         placate -Wstrict-overflow.
9919
9920         trim: avoid a warning from -O2 -Wstrict-overflow
9921         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9922
9923 2011-05-29  Bruno Haible  <bruno@clisp.org>
9924
9925         gnulib-tool: Fix bug in yesterday's commit.
9926         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9927         twice.
9928
9929 2011-05-29  Bruno Haible  <bruno@clisp.org>
9930
9931         Allow multiple gnulib generated include files to be combined.
9932         * gnulib-tool (func_compute_include_guard_prefix): New function.
9933         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9934         ${gl_include_guard_prefix} references.
9935         (func_import, func_create_testdir): Invoke
9936         func_compute_include_guard_prefix.
9937         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9938         * lib/ctype.in.h: Likewise.
9939         * lib/dirent.in.h: Likewise.
9940         * lib/errno.in.h: Likewise.
9941         * lib/fcntl.in.h: Likewise.
9942         * lib/float.in.h: Likewise.
9943         * lib/getopt.in.h: Likewise.
9944         * lib/iconv.in.h: Likewise.
9945         * lib/langinfo.in.h: Likewise.
9946         * lib/locale.in.h: Likewise.
9947         * lib/math.in.h: Likewise.
9948         * lib/netdb.in.h: Likewise.
9949         * lib/netinet_in.in.h: Likewise.
9950         * lib/poll.in.h: Likewise.
9951         * lib/pthread.in.h: Likewise.
9952         * lib/pty.in.h: Likewise.
9953         * lib/sched.in.h: Likewise.
9954         * lib/se-selinux.in.h: Likewise.
9955         * lib/search.in.h: Likewise.
9956         * lib/signal.in.h: Likewise.
9957         * lib/spawn.in.h: Likewise.
9958         * lib/stdarg.in.h: Likewise.
9959         * lib/stddef.in.h: Likewise.
9960         * lib/stdint.in.h: Likewise.
9961         * lib/stdio.in.h: Likewise.
9962         * lib/stdlib.in.h: Likewise.
9963         * lib/string.in.h: Likewise.
9964         * lib/strings.in.h: Likewise.
9965         * lib/sys_file.in.h: Likewise.
9966         * lib/sys_ioctl.in.h: Likewise.
9967         * lib/sys_select.in.h: Likewise.
9968         * lib/sys_socket.in.h: Likewise.
9969         * lib/sys_stat.in.h: Likewise.
9970         * lib/sys_time.in.h: Likewise.
9971         * lib/sys_times.in.h: Likewise.
9972         * lib/sys_uio.in.h: Likewise.
9973         * lib/sys_utsname.in.h: Likewise.
9974         * lib/sys_wait.in.h: Likewise.
9975         * lib/sysexits.in.h: Likewise.
9976         * lib/termios.in.h: Likewise.
9977         * lib/time.in.h: Likewise.
9978         * lib/unistd.in.h: Likewise.
9979         * lib/wchar.in.h: Likewise.
9980         * lib/wctype.in.h: Likewise.
9981         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9982         * modules/ctype (Makefile.am): Likewise.
9983         * modules/dirent (Makefile.am): Likewise.
9984         * modules/errno (Makefile.am): Likewise.
9985         * modules/fcntl-h (Makefile.am): Likewise.
9986         * modules/float (Makefile.am): Likewise.
9987         * modules/getopt-posix (Makefile.am): Likewise.
9988         * modules/iconv-h (Makefile.am): Likewise.
9989         * modules/langinfo (Makefile.am): Likewise.
9990         * modules/locale (Makefile.am): Likewise.
9991         * modules/math (Makefile.am): Likewise.
9992         * modules/netdb (Makefile.am): Likewise.
9993         * modules/netinet_in (Makefile.am): Likewise.
9994         * modules/poll-h (Makefile.am): Likewise.
9995         * modules/pthread (Makefile.am): Likewise.
9996         * modules/pty (Makefile.am): Likewise.
9997         * modules/sched (Makefile.am): Likewise.
9998         * modules/search (Makefile.am): Likewise.
9999         * modules/selinux-h (Makefile.am): Likewise.
10000         * modules/signal (Makefile.am): Likewise.
10001         * modules/spawn (Makefile.am): Likewise.
10002         * modules/stdarg (Makefile.am): Likewise.
10003         * modules/stddef (Makefile.am): Likewise.
10004         * modules/stdint (Makefile.am): Likewise.
10005         * modules/stdio (Makefile.am): Likewise.
10006         * modules/stdlib (Makefile.am): Likewise.
10007         * modules/string (Makefile.am): Likewise.
10008         * modules/strings (Makefile.am): Likewise.
10009         * modules/sys_file (Makefile.am): Likewise.
10010         * modules/sys_ioctl (Makefile.am): Likewise.
10011         * modules/sys_select (Makefile.am): Likewise.
10012         * modules/sys_socket (Makefile.am): Likewise.
10013         * modules/sys_stat (Makefile.am): Likewise.
10014         * modules/sys_time (Makefile.am): Likewise.
10015         * modules/sys_times (Makefile.am): Likewise.
10016         * modules/sys_uio (Makefile.am): Likewise.
10017         * modules/sys_utsname (Makefile.am): Likewise.
10018         * modules/sys_wait (Makefile.am): Likewise.
10019         * modules/sysexits (Makefile.am): Likewise.
10020         * modules/termios (Makefile.am): Likewise.
10021         * modules/time (Makefile.am): Likewise.
10022         * modules/unistd (Makefile.am): Likewise.
10023         * modules/wchar (Makefile.am): Likewise.
10024         * modules/wctype-h (Makefile.am): Likewise.
10025         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10026
10027 2011-05-29  Bruno Haible  <bruno@clisp.org>
10028
10029         assert-h: Allow multiple gnulib generated replacements to coexist.
10030         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10031
10032 2011-05-29  Bruno Haible  <bruno@clisp.org>
10033
10034         argp: Allow coexistence with strerror_r-posix module.
10035         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10036         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10037         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10038         not the glibc signature.
10039
10040 2011-05-28  Bruno Haible  <bruno@clisp.org>
10041
10042         gnulib-tool: Alternative structure of testdirs, similar to --import.
10043         * gnulib-tool: New option --single-configure.
10044         (func_usage): Document it.
10045         (single_configure): New variable.
10046         (func_modules_transitive_closure_separately,
10047         func_modules_transitive_closure_separately,
10048         func_determine_use_libtests, func_modules_add_dummy_separately,
10049         func_modules_to_filelist_separately): New functions, extracted from
10050         func_import.
10051         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10052         (func_import): Use the new functions.
10053         (func_create_testdir): Set final_modules. Handle $single_configure =
10054         true case.
10055
10056 2011-05-28  Bruno Haible  <bruno@clisp.org>
10057
10058         getloadavg: Remove an unreliable safety check.
10059         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10060         getloadavg.c is in place.
10061         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10062         Reported by Sam Steingold <sds@gnu.org>.
10063
10064 2011-05-28  Bruno Haible  <bruno@clisp.org>
10065
10066         doc: Cleanup yet another file produced by texinfo.tex.
10067         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10068
10069 2011-05-28  Bruno Haible  <bruno@clisp.org>
10070
10071         Finish the conditional dependencies mechanism.
10072         * gnulib-tool: New option --no-conditional-dependencies.
10073         (func_usage): Document it. Don't mark --conditional-dependencies as
10074         experimental.
10075         (cond_dependencies): The possible values can now be true, false, empty.
10076         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10077         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10078         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10079
10080 2011-05-28  Bruno Haible  <bruno@clisp.org>
10081
10082         doc: Use a recent texinfo.tex.
10083         * doc/Makefile (tex_opts): New variable.
10084         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10085
10086 2011-05-28  Jim Meyering  <meyering@redhat.com>
10087
10088         intprops.h: adjust comment to match code change
10089         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10090         only once, it *may* have side effects.  Also fix an unrelated typo.
10091         (_GL_INT_SIGNED): Likewise.
10092
10093 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10094
10095         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10096
10097 2011-05-26  Bruno Haible  <bruno@clisp.org>
10098
10099         mbsrchr: Avoid collision with system function on Interix.
10100         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10101         Reported by Markus Duft <mduft@gentoo.org>.
10102
10103 2011-05-15  James Youngman  <jay@gnu.org>
10104
10105         getopt: for ambiguous options, enumerate the possibilities.
10106         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10107         the ambiguous options when an ambiguous prefix is given. This was
10108         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10109         glibc change was
10110         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10111
10112 2011-05-25  Eric Blake  <eblake@redhat.com>
10113
10114         getcwd: work around mingw bug
10115         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10116         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10117         Reported by Matthias Bolte.
10118
10119 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10120
10121         test-intprops: disable -Wtype-limits diagnostics
10122         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10123         diagnostics.  Otherwise, the integer overflow macros generate many
10124         diagnostics.  Reported by Jim Meyering in
10125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10126
10127         intprops: shorten, to pacify gcc -Woverlength-strings
10128         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10129         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10130         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10131         likely to run afoul of C compiler limits for string constant lengths.
10132         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10133
10134 2011-05-24  Eric Blake  <eblake@redhat.com>
10135
10136         docs: document recently fixed glibc printf bug
10137         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10138         * doc/posix-functions/printf.texi (printf): Likewise.
10139         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10140         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10141
10142         closein-tests: convert to init.sh
10143         * modules/closein-tests (Files): Add init.sh
10144         * tests/test-closein.sh Use it.
10145
10146         yesno-tests: convert to init.sh
10147         * modules/yesno-tests (Files): Add init.sh.
10148         * tests/test-yesno.sh: Use it.
10149
10150         atexit-tests: ensure reliable exit status
10151         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10152         Reported by Bruno Haible.
10153
10154 2011-05-24  Bruno Haible  <bruno@clisp.org>
10155
10156         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10157         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10158         gl_PREREQ_STRERROR_R invocations from here...
10159         * modules/strerror_r-posix (configure.ac): ... to here.
10160
10161 2011-05-24  Eric Blake  <eblake@redhat.com>
10162
10163         strerror_r: fix missing header
10164         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10165
10166         strerror_r: fix AIX test failures
10167         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10168         ERANGE failure.
10169
10170         strerror_r: fix Solaris test failures
10171         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10172         failures.
10173         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10174
10175         strerror_r: enforce POSIX recommendations
10176         * lib/strerror_r.c (safe_copy): New helper method.
10177         (strerror_r): Guarantee a non-empty string.
10178         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10179         recent POSIX rulings and to match our strerror guarantees.
10180         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10181
10182 2011-05-24  Jim Meyering  <meyering@redhat.com>
10183
10184         test-perror2.c: avoid warning about unused variable
10185         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10186
10187 2011-05-24  Eric Blake  <eblake@redhat.com>
10188
10189         perror: avoid spurious test failure on HP-UX
10190         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10191
10192         tests: fix logic bug in init.sh
10193         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10194         shell.
10195
10196 2011-05-24  Jim Meyering  <meyering@redhat.com>
10197
10198         utimensat: do not reference an out-of-scope buffer
10199         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10200         declared in an inner scope, yet "times" would be dereferenced outside
10201         the scope in which "ts" was valid.
10202         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10203         of ts[2] "out/up", so that the use of aliased "times" (via
10204         "times = ts;") does not end up referencing an out-of-scope "ts"
10205
10206         opendir-safer.c: don't clobber errno; don't close negative FD
10207         * lib/opendir-safer.c (opendir_safer):
10208         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10209         file descriptor, and more importantly, don't clobber the
10210         offending errno value with EINVAL.  Before, upon failure
10211         of dup_safer, we would pass the negative file descriptor to
10212         fdopendir, which would clobber errno.
10213
10214 2011-05-23  Bruno Haible  <bruno@clisp.org>
10215
10216         idcache: Fix module description.
10217         * modules/idcache (Include): Set to "idcache.h".
10218
10219 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10220
10221         gnulib-tool: fix portability problem with MacOS sed
10222         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10223         before the "}".  Problem reported by Leo in
10224         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10225         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10226         sed_extract_condition1, sed_extract_condition2.
10227
10228 2011-05-23  Bruno Haible  <bruno@clisp.org>
10229
10230         hash: Simplify autoconf macro.
10231         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10232
10233 2011-05-23  Bruno Haible  <bruno@clisp.org>
10234
10235         getugroups: Fix module description.
10236         * modules/getugroups (Include): Set to "getugroups.h".
10237
10238 2011-05-23  Bruno Haible  <bruno@clisp.org>
10239
10240         linkat: Simplify autoconf macro.
10241         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10242
10243 2011-05-23  Bruno Haible  <bruno@clisp.org>
10244             Eric Blake  <eblake@redhat.com>
10245
10246         linkat, renameat: Update dependencies.
10247         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10248         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10249         symlinkat.
10250
10251 2011-05-23  Jim Meyering  <meyering@redhat.com>
10252
10253         maint.mk: more tight_scope improvements
10254         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10255         (_gl_TS_headers): Define only in if-0'd block.
10256         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10257         sometimes we must *not* use it.  Adjust uses accordingly.
10258         (sc_tight_scope): Use much simpler grep-based test to determine
10259         whether we skip this rule.
10260
10261         maint.mk: generalize/improve the tight-scope rule
10262         * top/maint.mk: Emit a warning when the test is skipped.
10263         (_gl_TS_dir): Add $(srcdir)/ prefix.
10264         (_gl_TS_function_match): Simplify, rather than trying
10265         to enumerate common types.  Otherwise, it would fail to match an
10266         "extern unsigned char const *" declaration in idutils.
10267         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10268         a way to support use of that type of macro.
10269         (_gl_TS_var_match): Simplify regexp.
10270         (_gl_TS_obj_files): New configurable variable.
10271         (_gl_TS_headers): Likewise.
10272
10273 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         verify: fix bug when gnulib <assert.h> is also included
10276         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10277         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10278         Perhaps there's a better way, but this fixes the immediate problem.
10279         Problem reported by Bruno Haible in
10280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10281
10282 2011-05-22  Bruno Haible  <bruno@clisp.org>
10283
10284         xgetcwd: Simplify autoconf macro.
10285         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10286
10287 2011-05-22  Bruno Haible  <bruno@clisp.org>
10288
10289         New module 'mktime-internal'.
10290         * modules/mktime-internal: New file.
10291         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10292         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10293         mktime_internal as a C macro if libc has __mktime_internal.
10294         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10295         conditions.
10296         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10297
10298 2011-05-22  Bruno Haible  <bruno@clisp.org>
10299
10300         timegm: Correct mktime replacement statements.
10301         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10302         defining mktime as a C macro. This completes a 2009-07-28 commit.
10303
10304 2011-05-22  Bruno Haible  <bruno@clisp.org>
10305
10306         timegm: Simplify autoconf macro.
10307         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10308
10309 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10310
10311         clock-time: change to LGPLv2+.
10312         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10313         BSD-like but we have no mark for that; this is good enough for now.
10314
10315 2011-05-21  Bruno Haible  <bruno@clisp.org>
10316
10317         strerror_r: Fix comments.
10318         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10319
10320 2011-05-21  Bruno Haible  <bruno@clisp.org>
10321
10322         relocatable-prog-wrapper: Fix possible link error.
10323         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10324         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10325         (gl_FUNC_SETENV): ... to here.
10326         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10327         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10328
10329 2011-05-21  Bruno Haible  <bruno@clisp.org>
10330
10331         relocatable-prog-wrapper: Assume strerror() exists.
10332         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10333         m4/strerror.m4.
10334         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10335         * lib/relocwrapper.c: Remove mention of strerror module.
10336         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10338         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10339         C macro.
10340
10341 2011-05-21  Bruno Haible  <bruno@clisp.org>
10342
10343         select: Simplify replacement idiom.
10344         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10345         Win32 platforms.
10346         * lib/sys_select.in.h (select): Simplify accordingly.
10347         * modules/select (Depends-on): Likewise.
10348
10349 2011-05-21  Bruno Haible  <bruno@clisp.org>
10350
10351         mkdir-p: Simplify autoconf macro.
10352         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10353         gl_FUNC_LCHOWN.
10354
10355 2011-05-21  Eric Blake  <eblake@redhat.com>
10356
10357         strerror_r: avoid clobbering strerror on cygwin
10358         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10359         fall back instead to sys_errlist.
10360         * modules/strerror (configure.ac): Add witness.
10361         * tests/test-strerror_r.c (main): Enhance test.
10362         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10363         * tests/test-perror2.c (main): Free memory before exit.
10364
10365 2011-05-21  Bruno Haible  <bruno@clisp.org>
10366
10367         mkdtemp: Use gnulib naming conventions.
10368         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10369         * modules/mkdtemp (configure.ac): Update.
10370
10371 2011-05-20  Eric Blake  <eblake@redhat.com>
10372
10373         strerror_r: avoid corrupting errno on Solaris
10374         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10375         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10376
10377         strerror_r: avoid compiler warning
10378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10379
10380         strerror_r: simplify AIX code
10381         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10382
10383         test-perror: avoid spurious failure on FreeBSD
10384         * modules/perror-tests (Depends-on): Add strerror, now that
10385         strerror_r no longer pulls it in.
10386
10387 2011-05-20  Bruno Haible  <bruno@clisp.org>
10388
10389         strerror_r-posix: Remove unused dependencies.
10390         * modules/strerror_r-posix (Depends-on): Remove strerror.
10391         Reported by Eric Blake.
10392
10393 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10394
10395         intprops: remove assumption about A|B representation
10396         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10397         is a valid integer if both A and B are.  Although this is true for
10398         all known practical hosts, the C standard doesn't guarantee it,
10399         and the code need not assume it.  Also, this change may work around
10400         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10402
10403 2011-05-20  Eric Blake  <eblake@redhat.com>
10404
10405         perror: work around FreeBSD bug
10406         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10407         is broken.  Move AC_LIBOBJ...
10408         * modules/perror (configure.ac): Here.
10409         * doc/posix-functions/perror.texi (perror): Document this.
10410         * tests/test-perror2.c (main): Enhance test.
10411
10412         test-perror: check for strerror interactions
10413         * tests/macros.h (STREQ): Add macro.
10414         * modules/perror-tests (Files): Add second test.
10415         * tests/test-perror2.c (main): New file.
10416         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10417
10418         test-perror: rewrite to use init script
10419         * modules/perror-tests (Files): Add init.sh.
10420         * tests/test-perror.sh: Use temporary directory.
10421
10422 2011-05-20  Jim Meyering  <meyering@redhat.com>
10423
10424         maint: replace misused "a" with "an"
10425         * doc/intprops.texi: "a integer"
10426         * doc/regex.texi: "a explanation"
10427         * lib/alignof.h: "a object"
10428         * lib/argmatch.h: "a explanation"
10429         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10430         * lib/stdint.in.h: "a integer"
10431         * lib/userspec.c: "a owner"
10432         * doc/gnulib.texi: Fix "a idea", and reword.
10433
10434 2011-05-19  Jim Meyering  <meyering@redhat.com>
10435
10436         maint: correct misuse of "a" and "an"
10437         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10438         * lib/argp-help.c: "an docum...": s/an/a/
10439         * lib/argp-parse.c: "An vector": s/An/A/
10440         * lib/execute.c: "an native": s/an/a/
10441         * lib/spawn-pipe.c: Likewise.
10442         * lib/gc.h: "an Gc_rc": s/an/a/
10443         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10444         * lib/fts.c: "an stat.st_dev": s/an/a/
10445
10446 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10447
10448         intprops-tests: work around HP-UX 11.23 cc bug with constants
10449         * tests/test-intprops.c (VERIFY): New macro.
10450         (main): Use it, instead of verify, to work around the compiler bug; see
10451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10452
10453         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10454         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10455         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10456         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10457         (_GL_REMAINDER_OVERFLOW): Use it.
10458
10459         intprops-tests: revert unsigned part of previous change
10460         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10461         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10462         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10464
10465 2011-05-19  Bruno Haible  <bruno@clisp.org>
10466
10467         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10468         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10469         strerror_r() returned without filling the buffer.
10470         Reported by Eric Blake.
10471
10472 2011-05-19  Eric Blake  <eblake@redhat.com>
10473
10474         strerror_r: guarantee unchanged errno
10475         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10476         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10477         failure.
10478         * tests/test-strerror_r.c (main): Enhance test.
10479
10480 2011-05-19  Bruno Haible  <bruno@clisp.org>
10481
10482         strerror_r: Reorder #if blocks.
10483         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10484         for consistency with the previous commit.
10485
10486 2011-05-19  Bruno Haible  <bruno@clisp.org>
10487
10488         perror: Avoid clobbering the strerror buffer when possible.
10489         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10490         * lib/strerror.c: Include it.
10491         * modules/strerror (Files): Add lib/strerror-impl.h.
10492         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10493         (my_strerror): New function, defined through lib/strerror-impl.h.
10494         (perror): Use it instead of strerror.
10495         * modules/perror (Files): Add lib/strerror-impl.h.
10496         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10497
10498 2011-05-19  Eric Blake  <eblake@redhat.com>
10499
10500         strerror_r: fix on newer cygwin
10501         * lib/strerror_r.c (strerror_r): Cygwin now has
10502         __xpg_strerror_r, use it.
10503
10504 2011-05-19  Bruno Haible  <bruno@clisp.org>
10505
10506         strerror_r: Avoid clobbering the strerror buffer when possible.
10507         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10508         (sys_nerr, sys_errlist): New declarations.
10509         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10510         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10511         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10512
10513 2011-05-19  Bruno Haible  <bruno@clisp.org>
10514
10515         strerror_r: Fix test failure on mingw.
10516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10517         EXTEND_STRERROR_R.
10518         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10519         macros from errno.in.h instead.
10520
10521 2011-05-19  Eric Blake  <eblake@redhat.com>
10522
10523         strerror: relax test for Solaris
10524         * tests/test-strerror.c (main): Permit Solaris behavior.
10525         * tests/test-strerror_r.c (main): Likewise.
10526
10527         strerror: enforce POSIX ruling on strerror(0)
10528         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10530         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10531         * doc/posix-functions/strerror.texi (strerror): Document it.
10532         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10533         * tests/test-strerror.c (main): Strengthen test.
10534         * tests/test-strerror_r.c (main): Likewise.
10535
10536 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10537
10538         intprop-tests: port to older and more-pedantic compilers
10539         * modules/intprops-tests (Files): Add tests/macros.h.
10540         * tests/test-intprops.c: Include macros.h.
10541         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10542         it's no longer documented to expand to an integer constant expression.
10543         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10544         argument is floating point, as it's no longer documented to expand
10545         to an integer constant expression in that case.
10546         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10547         compiler bugs reported by Bruno Haible.  See
10548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10549         (U0, U1): New constants, to work around the same bugs.  Also,
10550         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10551
10552         intprops: work around C compiler bugs
10553         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10554         bug in Sun C 5.11 2010/08/13 and other compilers; see
10555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10556
10557         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10558         * doc/intprops.texi (Integer Type Determination): Fix
10559         documentation for TYPE_IS_INTEGER: it returns an constant
10560         expression, not an integer constant expression.  Fix doc for
10561         TYPE_SIGNED: it returns an integer constant expression only if its
10562         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10563         hardly worth documented that way....)
10564
10565 2011-05-18  Bruno Haible  <bruno@clisp.org>
10566
10567         strerror_r: Avoid clobbering the strerror buffer when possible.
10568         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10569         Handle gnulib defined errno values here. When strerror() returns NULL
10570         or an empty string, return EINVAL.
10571         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10572         gnulib defined errno values here.
10573         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10574
10575 2011-05-18  Eric Blake  <eblake@redhat.com>
10576
10577         fnmatch: avoid compiler warning
10578         * lib/fnmatch_loop.c (FCT): Use correct type.
10579         Reported by Matthias Bolte.
10580
10581 2011-05-13  Jim Meyering  <meyering@redhat.com>
10582
10583         maint.mk: three new prohibit_<HDR>_without_use rules
10584         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10585         (sc_prohibit_stdio-safer_without_use): Likewise.
10586         (sc_prohibit_xfreopen_without_use): Likewise.
10587
10588 2011-05-17  Jim Meyering  <meyering@redhat.com>
10589
10590         announce-gen: fail if the NEWS delta is empty
10591         If there's nothing noteworthy in NEWS, then either you forgot
10592         or you shouldn't be releasing.
10593         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10594
10595 2011-05-17  Pádraig Brady <P@draigBrady.com>
10596
10597         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10598         reserved symbols starting with double underscore from the check.
10599
10600 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         intprops: add doc
10603         * doc/intprops.texi: New file, documenting intprops.
10604         * doc/gnulib.texi (Particular Modules): Include it.
10605
10606         verify: add doc to gnulib manual and fix example
10607         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10608         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10609         (Compile-time Assertions): Fix example so it can't overflow.
10610
10611 2011-05-17  Jim Meyering  <meyering@redhat.com>
10612
10613         warnings.m4: don't usurp save_CPPFLAGS variable name
10614         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10615
10616         doc: fix typo
10617         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10618
10619 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10620             Bruno Haible  <bruno@clisp.org>
10621
10622         doc: Tweak recent change.
10623         * README (Portability guidelines): Tweak new text.
10624         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10625         Interix 6.1.
10626
10627 2011-05-16  Eric Blake  <eblake@redhat.com>
10628
10629         inttypes: avoid autoconf warning
10630         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10631         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10632
10633 2011-05-16  Sam Steingold <sds@gnu.org>
10634         and Eric Blake  <eblake@redhat.com>
10635
10636         vc-list-files: accept multiple directory operands
10637         * build-aux/vc-list-files: Iterate over all remaining operands.
10638
10639 2011-05-16  Bruno Haible  <bruno@clisp.org>
10640
10641         Fix confusion regarding deprecated modules.
10642         * modules/calloc (Status, Notice): Mark module as deprecated, not
10643         obsolete.
10644         * modules/fnmatch-posix (Status, Notice): Likewise.
10645         * modules/getdate (Status, Notice): Likewise.
10646         * modules/getopt (Status, Notice): Likewise.
10647         * modules/malloc (Status, Notice): Likewise.
10648         * modules/pipe (Status, Notice): Likewise.
10649         * modules/realloc (Status, Notice): Likewise.
10650         * modules/rename-dest-slash (Status, Notice): Likewise.
10651         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10652         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10653         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10654         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10655         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10656
10657 2011-05-16  Bruno Haible  <bruno@clisp.org>
10658
10659         doc: List the target platforms.
10660         * doc/gnulib-intro.texi (Target Platforms): New section.
10661         * doc/gnulib.texi (Introduction): Update menu.
10662         * README (Portability guidelines): Refer to the new section. Update
10663         statement about oldest supported environment. Remove rationale why
10664         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10665         unportable C89 function.
10666         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10667         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10668
10669 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10670
10671         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10672
10673 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10674
10675         intprops-tests: new module
10676         * modules/intprops-tests, tests/test-intprops.c: New files.
10677
10678         intprops: add safe, portable integer overflow checking
10679         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10680         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10681         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10682         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10683         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10684         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10685         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10686         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10687         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10688         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10689         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10690
10691 2011-05-12  James Youngman  <jay@gnu.org>
10692
10693         Add a test for glibc's Bugzilla bug #12378.
10694         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10695         doesn't allow the literal matching of a lone "[" (which is
10696         required by POSIX).
10697         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10698
10699 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10700
10701         Sync glibc change fixing Bugzilla bug #12378.
10702         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10703         beginning and fall back to matching as normal character if the
10704         string ends before the matching ']' is found.  This is what POSIX
10705         requires.
10706
10707 2011-05-13  Eric Blake  <eblake@redhat.com>
10708
10709         getcwd-lgpl: relax test for FreeBSD
10710         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10711         issue.
10712         * tests/test-getcwd-lgpl.c (main): Relax test.
10713         Reported by Matthias Bolte.
10714
10715 2011-05-11  Eric Blake  <eblake@redhat.com>
10716
10717         test-fflush: silence compiler warning
10718         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10719
10720 2011-05-11  Bruno Haible  <bruno@clisp.org>
10721
10722         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10723         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10724         * modules/canonicalize (Depends-on): Add 'nocrash'.
10725         * modules/canonicalize-lgpl (Depends-on): Likewise.
10726         * doc/posix-functions/realpath.texi: Update platforms list.
10727         Reported by Ryan Schmidt <ryandesign@macports.org>.
10728
10729 2011-05-11  Bruno Haible  <bruno@clisp.org>
10730
10731         group-member: Declare function in <unistd.h>.
10732         * lib/unistd.in.h (group_member): New declaration.
10733         * lib/group-member.h: Remove file.
10734         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10735         * tests/test-unistd-c++.cc: Check signature of group_member.
10736         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10737         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10738         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10739         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10740         HAVE_GROUP_MEMBER.
10741         * modules/group-member (Files): Remove lib/group-member.h.
10742         (Depends-on): Add unistd. Specify conditions.
10743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10744         (Include): Change to <unistd.h>.
10745         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10746         HAVE_GROUP_MEMBER.
10747         * NEWS: Mention the change.
10748         * lib/euidaccess.c: Don't include group-member.h.
10749
10750 2011-05-11  Bruno Haible  <bruno@clisp.org>
10751
10752         group-member: Document module.
10753         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10754         module.
10755
10756 2011-05-11  Bruno Haible  <bruno@clisp.org>
10757
10758         fclose: Fix mistake earlier today.
10759         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10760
10761 2011-05-11  Eric Blake  <eblake@redhat.com>
10762
10763         fclose: preserve fflush errors
10764         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10765         Reported by Jim Meyering.
10766
10767         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10768         * build-aux/bootstrap (check_versions): When no specific version
10769         is required, merely check that the app produces an exit status
10770         that indicates its existence.
10771
10772         maint.mk: drop redundant check
10773         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10774         the same but better.
10775
10776 2011-05-11  Bruno Haible  <bruno@clisp.org>
10777
10778         fclose: Fix possible link error.
10779         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10780         unregister_shadow_fd. Improve comments.
10781         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10782         Eric Blake.
10783
10784 2011-05-11  Jim Meyering  <meyering@redhat.com>
10785
10786         maint.mk: improve "can not" detection and generalize rule name
10787         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10788         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10789         Use the same technique as in sc_prohibit_doubled_word, so that
10790         we recognize "can not" also when the words are separated by a newline.
10791         Suggested by Eric Blake.
10792         (perl_filename_lineno_text_): Define.  Factored out of...
10793         (prohibit_doubled_word_): ...here.  Use the new definition.
10794         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10795         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10796         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10797
10798 2011-05-10  Eric Blake  <eblake@redhat.com>
10799
10800         fclose: avoid double close race when possible
10801         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10802         all but WINDOWS_SOCKETS.
10803
10804 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10805
10806         openat: correct new comment
10807         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10808
10809 2011-05-10  Jim Meyering  <meyering@redhat.com>
10810
10811         openat: add comments
10812         * lib/openat-proc.c (openat_proc_name): Add comments,
10813         mostly from Eric Blake.
10814
10815 2011-05-09  Eric Blake  <eblake@redhat.com>
10816
10817         openat: reduce syscalls in first probe of /proc
10818         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10819         be a directory.  Simplify the probe for .. bugs.
10820         * modules/openat (Depends-on): Drop same-inode.
10821         Reported by Bastien ROUCARIES.
10822
10823 2011-05-09  Jim Meyering  <meyering@redhat.com>
10824
10825         maint.mk: change semantics/name of tight_scope variables
10826         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10827         Rename variables to align with semantics that make them more useful.
10828
10829         maint.mk: tweak new rule's name not to impinge
10830         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10831         (sc_tight_scope): Use new rule name rather than $@-0.
10832
10833         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10834         * top/maint.mk (sc_tight_scope): New rule.
10835         (sc_tight_scope-0): New rule, ifdef'd out.
10836         (_gl_TS_dir): Default.
10837         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10838         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10839
10840 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10841
10842         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10843         Haible <bruno@clisp.org>.
10844
10845 2011-05-08  Bruno Haible  <bruno@clisp.org>
10846
10847         Comments.
10848         * m4/isnanf.m4: Add comment.
10849         * m4/isnanl.m4: Likewise.
10850
10851 2011-05-08  Bruno Haible  <bruno@clisp.org>
10852
10853         glob: Remove obsolete macro.
10854         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10855
10856 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10857
10858         intprops: Sun C 5.11 supports __typeof__
10859         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10860         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10861         which is new.
10862         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10863
10864         intprops: switch to usual gnulib indenting and naming
10865         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10866         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10867
10868         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10869
10870 2011-05-08  Jim Meyering  <meyering@redhat.com>
10871
10872         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10873         * top/maint.mk (release-prep): Use make's --no-print-directory
10874         option when generating the announcement.  This eliminates the
10875         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10876         generated announcement template.
10877
10878 2011-05-08  Bruno Haible  <bruno@clisp.org>
10879
10880         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10881         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10882         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10883
10884 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10885
10886         ignore-value, verify: Omit include files from lib_SOURCES.
10887         * modules/ignore-value, modules/verify (Makefile.am):
10888         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10889         that leads Automake to duplicate use of am__objects_... variables
10890         in Makefile.in.  See
10891         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10892
10893 2011-05-07  Bruno Haible  <bruno@clisp.org>
10894
10895         fclose: Simplify autoconf macro.
10896         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10897         defined.
10898
10899 2011-05-07  Bruno Haible  <bruno@clisp.org>
10900
10901         canonicalize-lgpl: Fix autoconf macro ordering bug.
10902         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10903         gl_STDLIB_H_DEFAULTS.
10904
10905 2011-05-06  Eric Blake  <eblake@redhat.com>
10906
10907         maintainer-makefile: make sc_po_check easier to tune
10908         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10909         to probe for strings, such as an alternate location for gnulib.
10910
10911         fclose: guarantee behavior on seekable stdin
10912         * modules/fclose (Depends-on): Add fflush.
10913         * doc/posix-functions/fclose.texi (fclose): Document this.
10914         * tests/test-fclose.c (main): Make test for this unconditional.
10915
10916 2011-05-06  Bruno Haible  <bruno@clisp.org>
10917
10918         fflush, fpurge: Relicense under LGPLv2+.
10919         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10920         * modules/fpurge (License): Likewise.
10921         With permission from Eric Blake and Jim Meyering.
10922         Suggested by Eric Blake.
10923
10924 2011-05-06  Karl Berry  <karl@gnu.org>
10925
10926         * MODULES.html.sh (func_all_modules): remove exit.
10927
10928 2011-05-06  Jim Meyering  <meyering@redhat.com>
10929
10930         maint.mk: use info-gnu@ as the default only for a stable release
10931         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10932         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10933         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10934         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10935
10936 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10937
10938         assert-h: new module, which supports C1X-style static_assert
10939         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10940         * lib/verify.h: Revamp so that this can be copied into assert.h,
10941         while retaining the ability to use it standalone as before.
10942         Rename private identifiers so as not to encroach on the
10943         standard C namespace, since this is now used by assert.h.
10944         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10945         the old verify_true.
10946         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10947         the old verify_true.  Use _GL_VERIFY_TYPE.
10948         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10949         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10950         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10951         defined when this file is copied into the replacement assert.h.
10952         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10953         and _Static_assert is not built in.
10954         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10955         defined, and use the new macros mentioned above.
10956         * doc/posix-headers/assert.texi: Document this.
10957
10958 2011-05-05  Bruno Haible  <bruno@clisp.org>
10959
10960         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10961         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10962         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10963         gl_REPLACE_FCLOSE here.
10964         * modules/fflush (Depends-on): Remove fclose.
10965         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10966         combination with module 'fclose'.
10967
10968 2011-05-05  Bruno Haible  <bruno@clisp.org>
10969
10970         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10971         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10972         gl_FUNC_FFLUSH.
10973         (gl_FUNC_FFLUSH): Use it.
10974         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10975         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10976         gl_REPLACE_FSEEKO here.
10977
10978 2011-05-05  Bruno Haible  <bruno@clisp.org>
10979
10980         tzset: Relicense under LGPL.
10981         * modules/tzset (License): Change to LGPL.
10982         No agreement needed; it's a no-op.
10983
10984         strtoimax, strtoumax: Relicense under LGPL.
10985         * modules/strtoimax (License): Change to LGPL.
10986         * modules/strtoumax (License): Likewise.
10987         With permission from Jim Meyering, Paul Eggert:
10988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10990
10991         getgroups: Relicense under LGPL.
10992         * modules/getgroups (License): Change to LGPL.
10993         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10997
10998         nanosleep: Relicense under LGPL.
10999         * modules/nanosleep (License): Change to LGPL.
11000         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11001         Haible:
11002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11006
11007         futimens: Relicense under LGPL.
11008         * modules/futimens (License): Change to LGPL.
11009         With permission from Eric Blake:
11010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11011
11012         fflush: Relicense under LGPL.
11013         * modules/fflush (License): Change to LGPL.
11014         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11018
11019         tmpfile: Relicense under LGPL.
11020         * modules/tmpfile (License): Change to LGPL.
11021         With permission from Ben Pfaff:
11022         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11023
11024         isfinite: Relicense under LGPL.
11025         * modules/isfinite (License): Change to LGPL.
11026         With permission from Ben Pfaff, Bruno Haible:
11027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11029
11030         acosl..tanl: Relicense under LGPL.
11031         * modules/acosl (License): Change to LGPL.
11032         * modules/asinl (License): Likewise.
11033         * modules/atanl (License): Likewise.
11034         * modules/cosl (License): Likewise.
11035         * modules/expl (License): Likewise.
11036         * modules/logl (License): Likewise.
11037         * modules/sinl (License): Likewise.
11038         * modules/sqrtl (License): Likewise.
11039         * modules/tanl (License): Likewise.
11040         Source code originally from glibc and Paolo Bonzini. Agreements:
11041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11043
11044 2011-05-05  Bruno Haible  <bruno@clisp.org>
11045
11046         signal: Define sighandler_t.
11047         * lib/signal.in.h (sighandler_t): New type.
11048         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11049         whether sighandler_t is defined.
11050         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11051         * modules/signal (Depends-on): Add extensions.
11052         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11053         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11054         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11055
11056 2011-05-05  Eric Blake  <eblake@redhat.com>
11057
11058         maint: remove useless REPLACE_*_H macros
11059         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11060         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11061         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11062         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11063         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11064         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11065         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11066         * m4/btowc.m4: Update callers.
11067         * m4/dirfd.m4: Likewise.
11068         * m4/duplocale.m4: Likewise.
11069         * m4/fchdir.m4: Likewise.
11070         * m4/fdopendir.m4: Likewise.
11071         * m4/inet_ntop.m4: Likewise.
11072         * m4/inet_pton.m4: Likewise.
11073         * m4/ioctl.m4: Likewise.
11074         * m4/mbrlen.m4: Likewise.
11075         * m4/mbrtowc.m4: Likewise.
11076         * m4/mbsinit.m4: Likewise.
11077         * m4/mbsnrtowcs.m4: Likewise.
11078         * m4/mbsrtowcs.m4: Likewise.
11079         * m4/poll.m4: Likewise.
11080         * m4/setlocale.m4: Likewise.
11081         * m4/wcrtomb.m4: Likewise.
11082         * m4/wcsnrtombs.m4: Likewise.
11083         * m4/wcsrtombs.m4: Likewise.
11084         * m4/wctob.m4: Likewise.
11085         * m4/wcwidth.m4: Likewise.
11086         * modules/posix_spawn: Likewise.
11087         * modules/posix_spawn_file_actions_addclose: Likewise.
11088         * modules/posix_spawn_file_actions_adddup2: Likewise.
11089         * modules/posix_spawn_file_actions_addopen: Likewise.
11090         * modules/posix_spawn_file_actions_destroy: Likewise.
11091         * modules/posix_spawn_file_actions_init: Likewise.
11092         * modules/posix_spawnattr_destroy: Likewise.
11093         * modules/posix_spawnattr_getflags: Likewise.
11094         * modules/posix_spawnattr_getpgroup: Likewise.
11095         * modules/posix_spawnattr_getschedparam: Likewise.
11096         * modules/posix_spawnattr_getschedpolicy: Likewise.
11097         * modules/posix_spawnattr_getsigdefault: Likewise.
11098         * modules/posix_spawnattr_getsigmask: Likewise.
11099         * modules/posix_spawnattr_init: Likewise.
11100         * modules/posix_spawnattr_setflags: Likewise.
11101         * modules/posix_spawnattr_setpgroup: Likewise.
11102         * modules/posix_spawnattr_setschedparam: Likewise.
11103         * modules/posix_spawnattr_setschedpolicy: Likewise.
11104         * modules/posix_spawnattr_setsigdefault: Likewise.
11105         * modules/posix_spawnattr_setsigmask: Likewise.
11106         * modules/posix_spawnp: Likewise.
11107
11108 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11109
11110         Add option to do-release-commit-and-tag to specify branch.
11111         * build-aux/do-release-commit-and-tag: Add --branch.
11112
11113 2011-05-03  Bruno Haible  <bruno@clisp.org>
11114
11115         Avoid unnecessary compilation units, through conditional dependencies.
11116         * modules/accept (Depends-on): Add conditions to the dependencies.
11117         * modules/acosl (Depends-on): Likewise.
11118         * modules/argz (Depends-on): Likewise.
11119         * modules/asinl (Depends-on): Likewise.
11120         * modules/atanl (Depends-on): Likewise.
11121         * modules/atoll (Depends-on): Likewise.
11122         * modules/bind (Depends-on): Likewise.
11123         * modules/btowc (Depends-on): Likewise.
11124         * modules/canonicalize-lgpl (Depends-on): Likewise.
11125         * modules/ceil (Depends-on): Likewise.
11126         * modules/ceilf (Depends-on): Likewise.
11127         * modules/ceill (Depends-on): Likewise.
11128         * modules/chdir-long (Depends-on): Likewise.
11129         * modules/chown (Depends-on): Likewise.
11130         * modules/close (Depends-on): Likewise.
11131         * modules/connect (Depends-on): Likewise.
11132         * modules/cosl (Depends-on): Likewise.
11133         * modules/dirfd (Depends-on): Likewise.
11134         * modules/dprintf (Depends-on): Likewise.
11135         * modules/dprintf-posix (Depends-on): Likewise.
11136         * modules/error (Depends-on): Likewise.
11137         * modules/euidaccess (Depends-on): Likewise.
11138         * modules/expl (Depends-on): Likewise.
11139         * modules/faccessat (Depends-on): Likewise.
11140         * modules/fchdir (Depends-on): Likewise.
11141         * modules/fclose (Depends-on): Likewise.
11142         * modules/fcntl (Depends-on): Likewise.
11143         * modules/fdopendir (Depends-on): Likewise.
11144         * modules/fflush (Depends-on): Likewise.
11145         * modules/floor (Depends-on): Likewise.
11146         * modules/floorf (Depends-on): Likewise.
11147         * modules/floorl (Depends-on): Likewise.
11148         * modules/fnmatch (Depends-on): Likewise.
11149         * modules/fopen (Depends-on): Likewise.
11150         * modules/fprintf-posix (Depends-on): Likewise.
11151         * modules/frexp (Depends-on): Likewise.
11152         * modules/frexp-nolibm (Depends-on): Likewise.
11153         * modules/frexpl (Depends-on): Likewise.
11154         * modules/frexpl-nolibm (Depends-on): Likewise.
11155         * modules/fseek (Depends-on): Likewise.
11156         * modules/fsusage (Depends-on): Likewise.
11157         * modules/ftell (Depends-on): Likewise.
11158         * modules/ftello (Depends-on): Likewise.
11159         * modules/futimens (Depends-on): Likewise.
11160         * modules/getcwd (Depends-on): Likewise.
11161         * modules/getcwd-lgpl (Depends-on): Likewise.
11162         * modules/getdelim (Depends-on): Likewise.
11163         * modules/getdomainname (Depends-on): Likewise.
11164         * modules/getgroups (Depends-on): Likewise.
11165         * modules/gethostname (Depends-on): Likewise.
11166         * modules/getline (Depends-on): Likewise.
11167         * modules/getlogin_r (Depends-on): Likewise.
11168         * modules/getopt-posix (Depends-on): Likewise.
11169         * modules/getpeername (Depends-on): Likewise.
11170         * modules/getsockname (Depends-on): Likewise.
11171         * modules/getsockopt (Depends-on): Likewise.
11172         * modules/getsubopt (Depends-on): Likewise.
11173         * modules/getusershell (Depends-on): Likewise.
11174         * modules/glob (Depends-on): Likewise.
11175         * modules/grantpt (Depends-on): Likewise.
11176         * modules/iconv_open (Depends-on): Likewise.
11177         * modules/iconv_open-utf (Depends-on): Likewise.
11178         * modules/inet_ntop (Depends-on): Likewise.
11179         * modules/inet_pton (Depends-on): Likewise.
11180         * modules/ioctl (Depends-on): Likewise.
11181         * modules/isapipe (Depends-on): Likewise.
11182         * modules/isfinite (Depends-on): Likewise.
11183         * modules/isinf (Depends-on): Likewise.
11184         * modules/lchown (Depends-on): Likewise.
11185         * modules/ldexpl (Depends-on): Likewise.
11186         * modules/link (Depends-on): Likewise.
11187         * modules/linkat (Depends-on): Likewise.
11188         * modules/listen (Depends-on): Likewise.
11189         * modules/logl (Depends-on): Likewise.
11190         * modules/lstat (Depends-on): Likewise.
11191         * modules/mbrlen (Depends-on): Likewise.
11192         * modules/mbrtowc (Depends-on): Likewise.
11193         * modules/mbsinit (Depends-on): Likewise.
11194         * modules/mbsnrtowcs (Depends-on): Likewise.
11195         * modules/mbsrtowcs (Depends-on): Likewise.
11196         * modules/mbtowc (Depends-on): Likewise.
11197         * modules/memcmp (Depends-on): Likewise.
11198         * modules/mkdir (Depends-on): Likewise.
11199         * modules/mkdtemp (Depends-on): Likewise.
11200         * modules/mkfifo (Depends-on): Likewise.
11201         * modules/mkfifoat (Depends-on): Likewise.
11202         * modules/mknod (Depends-on): Likewise.
11203         * modules/mkostemp (Depends-on): Likewise.
11204         * modules/mkostemps (Depends-on): Likewise.
11205         * modules/mkstemp (Depends-on): Likewise.
11206         * modules/mkstemps (Depends-on): Likewise.
11207         * modules/mktime (Depends-on): Likewise.
11208         * modules/nanosleep (Depends-on): Likewise.
11209         * modules/open (Depends-on): Likewise.
11210         * modules/openat (Depends-on): Likewise.
11211         * modules/perror (Depends-on): Likewise.
11212         * modules/poll (Depends-on): Likewise.
11213         * modules/popen (Depends-on): Likewise.
11214         * modules/posix_spawn (Depends-on): Likewise.
11215         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11216         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11217         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11218         * modules/posix_spawnp (Depends-on): Likewise.
11219         * modules/pread (Depends-on): Likewise.
11220         * modules/printf-posix (Depends-on): Likewise.
11221         * modules/ptsname (Depends-on): Likewise.
11222         * modules/putenv (Depends-on): Likewise.
11223         * modules/pwrite (Depends-on): Likewise.
11224         * modules/readline (Depends-on): Likewise.
11225         * modules/readlink (Depends-on): Likewise.
11226         * modules/readlinkat (Depends-on): Likewise.
11227         * modules/recv (Depends-on): Likewise.
11228         * modules/recvfrom (Depends-on): Likewise.
11229         * modules/regex (Depends-on): Likewise.
11230         * modules/remove (Depends-on): Likewise.
11231         * modules/rename (Depends-on): Likewise.
11232         * modules/renameat (Depends-on): Likewise.
11233         * modules/rmdir (Depends-on): Likewise.
11234         * modules/round (Depends-on): Likewise.
11235         * modules/roundf (Depends-on): Likewise.
11236         * modules/roundl (Depends-on): Likewise.
11237         * modules/rpmatch (Depends-on): Likewise.
11238         * modules/select (Depends-on): Likewise.
11239         * modules/send (Depends-on): Likewise.
11240         * modules/sendto (Depends-on): Likewise.
11241         * modules/setenv (Depends-on): Likewise.
11242         * modules/setlocale (Depends-on): Likewise.
11243         * modules/setsockopt (Depends-on): Likewise.
11244         * modules/shutdown (Depends-on): Likewise.
11245         * modules/sigaction (Depends-on): Likewise.
11246         * modules/signbit (Depends-on): Likewise.
11247         * modules/sigprocmask (Depends-on): Likewise.
11248         * modules/sinl (Depends-on): Likewise.
11249         * modules/sleep (Depends-on): Likewise.
11250         * modules/snprintf (Depends-on): Likewise.
11251         * modules/snprintf-posix (Depends-on): Likewise.
11252         * modules/socket (Depends-on): Likewise.
11253         * modules/sprintf-posix (Depends-on): Likewise.
11254         * modules/sqrtl (Depends-on): Likewise.
11255         * modules/stat (Depends-on): Likewise.
11256         * modules/strchrnul (Depends-on): Likewise.
11257         * modules/strdup-posix (Depends-on): Likewise.
11258         * modules/strerror (Depends-on): Likewise.
11259         * modules/strerror_r-posix (Depends-on): Likewise.
11260         * modules/strndup (Depends-on): Likewise.
11261         * modules/strnlen (Depends-on): Likewise.
11262         * modules/strptime (Depends-on): Likewise.
11263         * modules/strsep (Depends-on): Likewise.
11264         * modules/strsignal (Depends-on): Likewise.
11265         * modules/strstr-simple (Depends-on): Likewise.
11266         * modules/strtod (Depends-on): Likewise.
11267         * modules/strtoimax (Depends-on): Likewise.
11268         * modules/strtok_r (Depends-on): Likewise.
11269         * modules/strtoumax (Depends-on): Likewise.
11270         * modules/symlink (Depends-on): Likewise.
11271         * modules/symlinkat (Depends-on): Likewise.
11272         * modules/tanl (Depends-on): Likewise.
11273         * modules/tcgetsid (Depends-on): Likewise.
11274         * modules/tmpfile (Depends-on): Likewise.
11275         * modules/trunc (Depends-on): Likewise.
11276         * modules/truncf (Depends-on): Likewise.
11277         * modules/truncl (Depends-on): Likewise.
11278         * modules/uname (Depends-on): Likewise.
11279         * modules/unlink (Depends-on): Likewise.
11280         * modules/unlockpt (Depends-on): Likewise.
11281         * modules/unsetenv (Depends-on): Likewise.
11282         * modules/usleep (Depends-on): Likewise.
11283         * modules/utimensat (Depends-on): Likewise.
11284         * modules/vasprintf (Depends-on): Likewise.
11285         * modules/vdprintf (Depends-on): Likewise.
11286         * modules/vdprintf-posix (Depends-on): Likewise.
11287         * modules/vfprintf-posix (Depends-on): Likewise.
11288         * modules/vprintf-posix (Depends-on): Likewise.
11289         * modules/vsnprintf (Depends-on): Likewise.
11290         * modules/vsnprintf-posix (Depends-on): Likewise.
11291         * modules/vsprintf-posix (Depends-on): Likewise.
11292         * modules/wcrtomb (Depends-on): Likewise.
11293         * modules/wcscasecmp (Depends-on): Likewise.
11294         * modules/wcscspn (Depends-on): Likewise.
11295         * modules/wcsdup (Depends-on): Likewise.
11296         * modules/wcsncasecmp (Depends-on): Likewise.
11297         * modules/wcsnrtombs (Depends-on): Likewise.
11298         * modules/wcspbrk (Depends-on): Likewise.
11299         * modules/wcsrtombs (Depends-on): Likewise.
11300         * modules/wcsspn (Depends-on): Likewise.
11301         * modules/wcsstr (Depends-on): Likewise.
11302         * modules/wcstok (Depends-on): Likewise.
11303         * modules/wcswidth (Depends-on): Likewise.
11304         * modules/wctob (Depends-on): Likewise.
11305         * modules/wctomb (Depends-on): Likewise.
11306         * modules/wctype (Depends-on): Likewise.
11307         * modules/wcwidth (Depends-on): Likewise.
11308         * modules/write (Depends-on): Likewise.
11309
11310 2011-05-03  Bruno Haible  <bruno@clisp.org>
11311
11312         Support for conditional dependencies.
11313         * doc/gnulib.texi (Module description): Document the syntax of
11314         conditional dependencies.
11315         * gnulib-tool: New option --conditional-dependencies.
11316         (func_usage): Document it.
11317         (cond_dependencies): New variable.
11318         (func_get_automake_snippet_conditional,
11319         func_get_automake_snippet_unconditional): New functions, extracted from
11320         func_get_automake_snippet.
11321         (func_get_automake_snippet): Use them.
11322         (sed_first_32_chars): New variable.
11323         (func_module_shellfunc_name): New function.
11324         (func_module_shellvar_name): New function.
11325         (func_module_conditional_name): New function.
11326         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11327         func_cond_module_condition): New functions.
11328         (func_modules_transitive_closure): Add support for conditional
11329         dependencies.
11330         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11331         conditional automake snippet in an automake conditional.
11332         (func_emit_autoconf_snippets): Emit shell functions that contain the
11333         code for conditional modules.
11334         (func_import, func_create_testdir): Update specification.
11335
11336 2011-05-03  Eric Blake  <eblake@redhat.com>
11337
11338         test-getaddrinfo: report error information
11339         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11340
11341 2011-05-03  Jim Meyering  <meyering@redhat.com>
11342
11343         bootstrap: avoid build failure when $GZIP is set
11344         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11345         program name.  If defined at all, it is supposed to list gzip options.
11346         Reported by Alan Curry in http://debbugs.gnu.org/8609
11347
11348 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11349
11350         readme-release: new module with release instructions
11351         * modules/readme-release: New module.
11352         * top/README-release: New file, from coreutils, grep, diffutils.
11353         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11354
11355 2011-05-02  Eric Blake  <eblake@redhat.com>
11356
11357         fflush: also replace fclose when fixing fflush
11358         * modules/fflush (Depends-on): Add fclose.
11359         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11360         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11361         memstreams with no backing fd.
11362         * doc/posix-functions/fclose.texi (fclose): Document the use of
11363         fflush module to fix the bug.
11364         * tests/test-fclose.c (main): Relax test when fclose is used in
11365         isolation.
11366
11367         fclose: add some tests
11368         * modules/fclose-tests: New test module.
11369         * tests/test-fclose.c: New file.
11370         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11371
11372         fclose: reduced dependencies
11373         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11374         simpler lseek.
11375         * lib/fclose.c (rpl_fclose): Likewise.
11376         Reported by Simon Josefsson.
11377
11378         exit: drop remaining clients
11379         * modules/argmatch (Depends-on): Replace exit with stdlib.
11380         * modules/copy-file (Depends-on): Likewise.
11381         * modules/execute (Depends-on): Likewise.
11382         * modules/exitfail (Depends-on): Likewise.
11383         * modules/obstack (Depends-on): Likewise.
11384         * modules/pagealign_alloc (Depends-on): Likewise.
11385         * modules/pipe-filter-gi (Depends-on): Likewise.
11386         * modules/pipe-filter-ii (Depends-on): Likewise.
11387         * modules/savewd (Depends-on): Likewise.
11388         * modules/spawn-pipe (Depends-on): Likewise.
11389         * modules/wait-process (Depends-on): Likewise.
11390         * modules/xsetenv (Depends-on): Likewise.
11391         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11392         * modules/git-merge-changelog (Depends-on): Likewise.
11393         * modules/long-options (Depends-on): Likewise.
11394         * modules/pt_chown (Depends-on): Likewise.
11395         * modules/sysexits (Depends-on): Likewise.
11396
11397         freading: relax license from LGPLv3+ to LGPLv2+
11398         * modules/freading (License): Relax LGPL version.
11399
11400 2011-05-02  Bruno Haible  <bruno@clisp.org>
11401
11402         fchdir: Remove unused dependencies.
11403         * modules/fchdir (Depends-on): Remove include_next.
11404
11405 2011-05-02  Bruno Haible  <bruno@clisp.org>
11406
11407         gnulib-tool: Refactor.
11408         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11409         from func_emit_autoconf_snippets.
11410         (func_emit_autoconf_snippets): Use it.
11411
11412 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11413
11414         * NEWS: Document removal of 'exit'.
11415         * modules/exit: Remove file.
11416
11417 2011-05-01  Bruno Haible  <bruno@clisp.org>
11418
11419         Update DEPENDENCIES.
11420         * DEPENDENCIES (gettext): Recommend the newest release.
11421         Reported by Simon Josefsson.
11422
11423 2011-05-01  Bruno Haible  <bruno@clisp.org>
11424
11425         gnulib-tool: Reduce code duplication.
11426         * gnulib-tool (func_emit_autoconf_snippets): New function.
11427         (func_import, func_create_testdir): Use it.
11428
11429 2011-04-30  Eric Blake  <eblake@redhat.com>
11430
11431         fclose: don't fail on non-seekable input stream
11432         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11433         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11434         since fflush is allowed to fail in that case.
11435
11436 2011-04-30  Bruno Haible  <bruno@clisp.org>
11437
11438         dup3: cleanup
11439         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11440
11441 2011-04-30  Bruno Haible  <bruno@clisp.org>
11442
11443         netdb: Make it work in C++ mode.
11444         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11445         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11446         module.
11447         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11448         gl_MODULE_INDICATOR_FOR_TESTS.
11449         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11450         * modules/netdb-c++-tests: New file.
11451         * tests/test-netdb-c++.cc: New file.
11452
11453 2011-04-30  Bruno Haible  <bruno@clisp.org>
11454
11455         New modules 'vfscanf', 'vscanf'.
11456         * modules/vfscanf: New file.
11457         * modules/vscanf: New file.
11458         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11459         here.
11460         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11461         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11462
11463 2011-04-30  Bruno Haible  <bruno@clisp.org>
11464
11465         passfd: Add comments.
11466         * lib/passfd.c: Add comments about platforms.
11467
11468 2011-04-30  Bruno Haible  <bruno@clisp.org>
11469
11470         sys_uio: Make <sys/uio.h> self-contained.
11471         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11472         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11473
11474 2011-04-30  Bruno Haible  <bruno@clisp.org>
11475
11476         sys_socket: Ensure 'struct iovec' definition.
11477         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11478         <sys/socket.h>.
11479         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11480
11481 2011-04-30  Bruno Haible  <bruno@clisp.org>
11482
11483         sys_uio: Protect definition of 'struct iovec'.
11484         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11485         it as a C struct.
11486
11487 2011-04-30  Bruno Haible  <bruno@clisp.org>
11488
11489         manywarnings: fix indentation
11490         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11491
11492 2011-04-30  Pádraig Brady <P@draigBrady.com>
11493
11494         manywarnings: add -Wno-missing-field-initializers if needed.
11495         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11496         option if it's needed to allow initialization with { 0, }
11497
11498 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11499
11500         announce-gen: cosmetic improvement
11501         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11502
11503 2011-04-29  Jim Meyering  <meyering@redhat.com>
11504
11505         vc-list-files: indent with spaces, not TABs
11506         * build-aux/vc-list-files: Convert leading TABs to spaces,
11507         to match the style of most other files in gnulib.
11508
11509         announce-gen: indent with spaces, not TABs
11510         * build-aux/announce-gen: Convert all TABs to spaces, to match
11511         the style of most other files in gnulib.
11512
11513 2011-04-29  Eric Blake  <eblake@redhat.com>
11514
11515         quotearg: avoid uninitialized variable use
11516         * lib/quotearg.c (quoting_options_from_style): Initialize
11517         remaining fields, and ensure that custom styles are only used via
11518         quoting_options rather than quoting_style.
11519
11520 2011-04-29  Jim Meyering  <meyering@redhat.com>
11521
11522         maint.mk: remove unused VC-tag variable
11523         * top/maint.mk (VC-tag): Remove unused variable.
11524
11525 2011-04-29  Bruno Haible  <bruno@clisp.org>
11526
11527         netdb: fix gai_strerror replacements
11528         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11529         * modules/netdb: Substitute it.
11530
11531 2011-04-29  Jim Meyering  <meyering@redhat.com>
11532
11533         test-getcwd.c: avoid new set-but-not-used warning
11534         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11535         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11536         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11537         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11538
11539         test-hash.c: avoid a new shadowing warning
11540         * tests/test-hash.c (main): Don't shadow "dup".
11541
11542 2011-04-28  Eric Blake  <eblake@redhat.com>
11543
11544         getaddrinfo: fix gai_strerror signature
11545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11546         and work around mingw with UNICODE defined.
11547         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11548         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11549         * modules/netdb (Makefile.am): Substitute it.
11550         * lib/netdb.in.h (gai_strerror): Declare replacement.
11551         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11552         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11553         the fix.
11554
11555         getsockopt: avoid compiler warning
11556         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11557         Reported by Matthias Bolte.
11558
11559         tests: drop unused link dependency
11560         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11561         * modules/dirent-safer-tests (Makefile.am): Likewise.
11562         * modules/fdopendir-tests (Makefile.am): Likewise.
11563         * modules/mkfifoat-tests (Makefile.am): Likewise.
11564         * modules/openat-safer-tests (Makefile.am): Likewise.
11565         * modules/openat-tests (Makefile.am): Likewise.
11566         * modules/readlinkat-tests (Makefile.am): Likewise.
11567         * modules/symlinkat-tests (Makefile.am): Likewise.
11568         * modules/linkat-tests (Makefile.am): Likewise.
11569         (Depends-on): Switch to filenamecat-lgpl.
11570         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11571         LIBINTL.
11572         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11573         * tests/test-linkat.c (main): Don't require xalloc.
11574
11575         hash, mgetgroups: drop xalloc dependency
11576         * lib/hash.c (includes): Adjust includes.
11577         * lib/mgetgroups.c (includes): Likewise.
11578         (xgetgroups): Move...
11579         * lib/xgetgroups.c: ...to new file.
11580         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11581         * modules/xgetgroups: New file, split from...
11582         * modules/mgetgroups: ...here.
11583         (Depends-on): Add xalloc-oversized.
11584         * modules/hash (Depends-on): Likewise.
11585         * modules/hash-tests (Depends-on): Drop xalloc.
11586         (test_hash_LDADD): Drop unused library.
11587         * tests/test-hash.c (main): Break xalloc dependency.
11588         (includes): Drop unused include.
11589
11590         xalloc-oversized: new module
11591         * modules/xalloc-oversized: New module.
11592         * modules/xalloc (Depends-on): Add it.
11593         * lib/xalloc.h (xalloc_oversized): Move...
11594         * lib/xalloc-oversized.h: ...into new file.
11595
11596         utimecmp: drop dependency on xmalloc
11597         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11598         due to memory pressure.
11599         * modules/utimecmp (Depends-on): Drop xalloc.
11600
11601 2011-04-27  Eric Blake  <eblake@redhat.com>
11602
11603         getcwd: fix mingw bugs
11604         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11605         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11606         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11607
11608 2011-04-27  Bruno Haible  <bruno@clisp.org>
11609
11610         mkstemps: Ensure declaration on MacOS X 10.5.
11611         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11612         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11613         MacOS X.
11614
11615 2011-04-27  Bruno Haible  <bruno@clisp.org>
11616
11617         mkstemp: More documentation.
11618         * doc/posix-functions/mkstemp.texi: Document header file problem on
11619         MacOS X.
11620
11621 2011-04-27  Bruno Haible  <bruno@clisp.org>
11622
11623         mkstemp: Tweak configure message when cross-compiling.
11624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11625         result as a guess.
11626
11627 2011-04-27  Bruno Haible  <bruno@clisp.org>
11628
11629         clean-temp: Clarify what it does.
11630         * lib/clean-temp.h: Add more comments.
11631         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11632         module.
11633         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11634         * doc/glibc-functions/mkstemps.texi: Likewise.
11635         * doc/glibc-functions/mkostemps.texi: Likewise.
11636
11637 2011-04-27  Eric Blake  <eblake@redhat.com>
11638
11639         fchdir: avoid extra chdir and fix test
11640         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11641         getcwd-lgpl.
11642         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11643         have to be canonical.
11644         (canonicalize_file_name): Drop unused macro.
11645         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11646
11647         filenamecat-lgpl: fix licence
11648         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11649         when it was first created.
11650
11651         linkat, renameat: add missing dependency
11652         * modules/linkat (Depends-on): Require getcwd-lgpl.
11653         * modules/renameat (Depends-on): Likewise.
11654
11655         tests: reduce dependencies
11656         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11657         * tests/test-renameat.c (main): Likewise.
11658         * modules/linkat-tests (Depends-on): Relax dependency.
11659         * modules/renameat-tests (Depends-on): Likewise.
11660         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11661         dependency explicit.
11662
11663         save-cwd: reduce default dependency
11664         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11665         * lib/save-cwd.c: Update comments.
11666         * NEWS: Document the semantic change.
11667
11668         getcwd: enhance tests
11669         * tests/test-getcwd-lgpl.c: New file, taken from...
11670         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11671         repeat long path stress tests from m4 probe.
11672         * modules/getcwd-lgpl-tests: New module.
11673         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11674         * m4/getcwd-abort-bug.m4: Update comment.
11675         * m4/getcwd-path-max.m4: Likewise.
11676
11677         getcwd-lgpl: new module
11678         * modules/getcwd-lgpl: New module.
11679         * lib/getcwd-lgpl.c: New file.
11680         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11681         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11682         * modules/getcwd (configure.ac): Set C witness.
11683         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11684
11685         getcwd: tweak comments
11686         * m4/getcwd-abort-bug.m4: Fix comments.
11687         * m4/getcwd-path-max.m4: Likewise.
11688         * m4/getcwd.m4: Likewise.
11689
11690 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11691         and Eric Blake  <eblake@redhat.com>
11692
11693         mkstemp: replace if system version uses wrong permissions
11694         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11695         read/write mode bits set in file created by mkstemp.
11696         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11697
11698 2011-04-27  Eric Blake  <eblake@redhat.com>
11699
11700         passfd: avoid compiler warning
11701         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11702         Reported by Laine Stump.
11703
11704 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11705
11706         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11707         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11708
11709 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11710         and Eric Blake  <eblake@redhat.com>
11711
11712         mkstemp: mention clean-temp module
11713         * lib/mkstemp.c: Add comment.
11714         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11715
11716 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11717
11718         inttypes: also provide default values for 32-bit tests
11719         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11720         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11721
11722 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11723
11724         strtoumax: remove dependency on strtoimax
11725         This is like the strtoull change of yesterday.
11726         * modules/strtoumax (Files): Add lib/strtoimax.c.
11727         (Depends-on): Remove strtoimax and add verify.
11728
11729         inttypes-incomplete: new module
11730         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11731         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11732         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11733         of gl_INTTYPES_H.
11734         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11735         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11736         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11737         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11738         * modules/strtoumax, modules/xstrtol (Depends-on):
11739         Depend on inttypes-incomplete, not inttypes.
11740         * modules/inttypes-incomplete: New module, containing the contents
11741         of the old modules/inttypes module, except that the Files: section
11742         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11743         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11744         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11745         (Depends-on): Depend only on inttypes-incomplete.
11746         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11747
11748         inttypes: omit now-redundant strtoimax and strtoumax work
11749         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11750         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11751
11752         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11753         This supports apps that need pointers to strtoimax and strtoumax,
11754         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11755         nonexistent functions.  See
11756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11757         et seq.
11758         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11759         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11760         a macro.
11761         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11762
11763 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11764
11765         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11766
11767 2011-04-25  Bruno Haible  <bruno@clisp.org>
11768
11769         strtol, strtoul: Mark modules as obsolete.
11770         * modules/strtol (Status, Notice): New sections.
11771         * modules/strtoul (Status, Notice): New sections.
11772
11773 2011-04-25  Bruno Haible  <bruno@clisp.org>
11774
11775         strtod: Remove check for strtod, unless supporting old platforms.
11776         * modules/strtod-obsolete: New file.
11777         * m4/strtod-obsolete.m4: New file.
11778         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11779         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11780         * modules/strtod (Depends-on): Add strtod-obsolete.
11781         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11782
11783 2011-04-25  Bruno Haible  <bruno@clisp.org>
11784
11785         strcase: Make module obsolete.
11786         * modules/strcase (Status, Notice): New sections.
11787
11788 2011-04-25  Bruno Haible  <bruno@clisp.org>
11789
11790         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11791         * modules/dup2-obsolete: New file.
11792         * m4/dup2-obsolete.m4: New file.
11793         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11794         gl_FUNC_DUP2_OBSOLETE is not also defined.
11795         * modules/dup2 (Depends-on): Add dup2-obsolete.
11796         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11797
11798 2011-04-25  Bruno Haible  <bruno@clisp.org>
11799
11800         strnlen: Avoid memchr related link error on old obsolete platforms.
11801         * modules/memchr-obsolete: New file.
11802         * m4/memchr-obsolete.m4: New file.
11803         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11804         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11805         * modules/memchr (Depends-on): Add memchr-obsolete.
11806         * modules/strnlen (Depends-on): Likewise.
11807         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11808
11809 2011-04-25  Jim Meyering  <meyering@redhat.com>
11810
11811         maint.mk: makefile_at_at_check extend and clean up
11812         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11813         in addition to */Makefile.am.
11814         Exempt legitimate uses of @VAR@ notation, e.g.,
11815         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11816         Remove obsolete coreutils-specific comment.
11817         Prompted by discussion here:
11818         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11819
11820 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11821
11822         strtoul: remove dependency on strtol
11823         This is so that 'configure' need not check for strtol merely because
11824         the application needs strtoul.
11825         * modules/strtoul (Files): Add lib/strtol.c.
11826         (Depends-on): Remove strtol.
11827
11828         strtoull: remove dependency on strtoul
11829         This is like the strtoll change.
11830         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11831         (Depends-on): Remove strtoul.
11832
11833         strtoll: remove dependency on strtol
11834         This is so that 'configure' need not check for strtol merely because
11835         the application needs strtoll.
11836         * modules/strtoll (Files): Add lib/strtol.c.
11837         (Depends-on): Remove strtol.
11838
11839 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11840
11841         inttypes: Move some configure check to module 'imaxdiv'.
11842         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11843         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11844         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11845
11846 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11847
11848         inttypes: Move some configure check to module 'imaxabs'.
11849         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11850         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11851         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11852
11853 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11854
11855         inttypes: Remove configure tests that are not needed since 2009-12-31.
11856         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11857         gl_cv_header_working_inttypes_h.
11858
11859 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         * modules/strnlen (Depends-on): Remove memchr.
11862         The strnlen implementation doesn't need the memchr module's fixes; see
11863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11864
11865         strtol: remove dependency on wchar
11866         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11867         * modules/strtol (Depends-on): Remove wchar.
11868
11869 2011-04-21  Eric Blake  <eblake@redhat.com>
11870
11871         passfd: fix test regression on Linux
11872         * modules/passfd-tests (configure.ac): Correct socketpair check.
11873
11874         passfd: speed up configure and drop unused code
11875         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11876         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11877         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11878         Instead of probing at configure for unix_scm_rights_bsd44_way,
11879         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11880         check to a struct member probe.
11881         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11882         (sendfd, recvfd): Update preprocessor checks.
11883         * modules/passfd (Files): Reflect rename, and drop unused file.
11884         (Depends-on): Drop unused dependency.
11885
11886         passfd: allow compilation on mingw
11887         * modules/sys_socket (Depends-on): Add sys_uio.
11888         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11889         iovec and a minimal struct msghdr.
11890         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11891         * tests/test-sys_socket.c (main): Enhance test.
11892         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11893         guaranteed to provide what we need.
11894         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11895         * modules/passfd-tests (Depends-on): Add sys_wait.
11896         * tests/test-passfd.c (main): Skip test on mingw, for now.
11897         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11898         partial 'struct msghdr' implementation.
11899
11900         sys_uio: new module
11901         * modules/sys_uio: New module.
11902         * modules/sys_uio-tests: Likewise.
11903         * lib/sys_uio.in.h: New file.
11904         * m4/sys_uio_h.m4: Likewise.
11905         * tests/test-sys_uio.c: Likewise.
11906         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11907         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11908
11909 2011-04-20  Jim Meyering  <meyering@redhat.com>
11910
11911         useless-if-before-free: avoid false-positive
11912         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11913         disjunct so that it too requires a terminating ";".  Without that,
11914         this script would identify as useless one statement from gcc that
11915         was not:
11916           if (aligned_ptr)
11917             free (((void **) aligned_ptr) [-1]);
11918
11919 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11920
11921         doc: update users.txt.
11922         * users.txt: Add barcode.
11923
11924 2011-04-19  Bruno Haible  <bruno@clisp.org>
11925
11926         ioctl: Remove link dependency on native Windows.
11927         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11928         (gl_close_fn, gl_ioctl_fn): New types.
11929         (struct fd_hook): Renamed from struct close_hook. Change type of
11930         private_close_fn field. Add private_ioctl_fn field.
11931         (close_hook_fn): Add parameter for primary close method.
11932         (execute_close_hooks, execute_all_close_hooks): Likewise.
11933         (ioctl_hook_fn): New type.
11934         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11935         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11936         argument.
11937         (unregister_fd_hook): Renamed from unregister_close_hook.
11938         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11939         Don't include <unistd.h>.
11940         (close): Remove undef.
11941         (anchor): Update.
11942         (execute_close_hooks): Add argument for primary close method.
11943         (execute_all_close_hooks): Likewise.
11944         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11945         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11946         argument. Allow each argument to be NULL.
11947         (unregister_fd_hook): Renamed from unregister_close_hook.
11948         * lib/close.c (rpl_close): Pass 'close' function pointer to
11949         execute_all_close_hooks.
11950         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11951         (primary_ioctl): New function.
11952         (ioctl): Don't call ioctlsocket here. Instead, call
11953         execute_all_ioctl_hooks.
11954         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11955         close method.
11956         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11957         (fd_sockets_hook): Renamed from close_sockets_hook.
11958         (gl_sockets_startup, gl_sockets_cleanup): Update.
11959         * modules/fd-hook: Renamed from modules/close-hook. Update.
11960         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11961         * modules/sockets (Depends-on): Likewise.
11962         * modules/ioctl (Depends-on): Add fd-hook.
11963         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11964         GNULIB_SOCKET.
11965
11966 2011-04-19  Bruno Haible  <bruno@clisp.org>
11967
11968         Move the support of O_NONBLOCK in open() to the 'open' module.
11969         * modules/nonblocking (Depends-on): Remove 'open'.
11970         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11971         gl_cv_have_open_O_NONBLOCK.
11972         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11973         O_NONBLOCK support.
11974         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11975
11976 2011-04-17  Bruno Haible  <bruno@clisp.org>
11977
11978         pipe2: Simplify code.
11979         * lib/pipe2.c (pipe2): Reduce code duplication.
11980
11981 2011-04-17  Bruno Haible  <bruno@clisp.org>
11982
11983         nonblocking: Add comment.
11984         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11985
11986 2011-04-17  Bruno Haible  <bruno@clisp.org>
11987
11988         nonblocking: Add tests for sockets.
11989         * tests/test-nonblocking-socket.sh: New file.
11990         * tests/test-nonblocking-socket-main.c: New file.
11991         * tests/test-nonblocking-socket-child.c: New file.
11992         * tests/test-nonblocking-socket.h: New file.
11993         * tests/socket-server.h: New file.
11994         * tests/socket-client.h: New file.
11995         * modules/nonblocking-socket-tests: New file.
11996         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11997
11998 2011-04-17  Bruno Haible  <bruno@clisp.org>
11999
12000         nonblocking: Add tests for pipes.
12001         * tests/test-nonblocking-pipe.sh: New file.
12002         * tests/test-nonblocking-pipe-main.c: New file.
12003         * tests/test-nonblocking-pipe-child.c: New file.
12004         * tests/test-nonblocking-pipe.h: New file.
12005         * tests/test-nonblocking-writer.h: New file.
12006         * tests/test-nonblocking-reader.h: New file.
12007         * tests/test-nonblocking-misc.h: New file.
12008         * modules/nonblocking-pipe-tests: New file.
12009         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12010
12011 2011-04-16  Bruno Haible  <bruno@clisp.org>
12012
12013         gettext: Clarify the needed programmer actions.
12014         * modules/gettext (Notice): New field.
12015         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12016
12017 2011-04-16  Bruno Haible  <bruno@clisp.org>
12018
12019         strchrnul: Tweak last commit.
12020         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12021         bug.
12022         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12023         as in _GL_FUNCDECL_SYS.
12024         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12025         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12026
12027 2011-04-15  Eric Blake  <eblake@redhat.com>
12028
12029         strchrnul: work around cygwin bug
12030         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12031         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12033         * modules/string (Makefile.am): Substitute it.
12034         * lib/string.in.h (strchrnul): Use it.
12035
12036 2011-04-15  Bruno Haible  <bruno@clisp.org>
12037
12038         Don't require lib/stdio-write.c when only module 'stdio' is used.
12039         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12040         invocation.
12041         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12042
12043 2011-04-14  Bruno Haible  <bruno@clisp.org>
12044
12045         Support non-blocking pipe I/O in read() on native Windows.
12046         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12047         (read): New declaration.
12048         * lib/read.c: New file.
12049         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12050         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12051         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12052         vscanf): New declarations.
12053         * lib/stdio-read.c: New file.
12054         * m4/read.m4: New file.
12055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12056         REPLACE_READ.
12057         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12058         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12059         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12060         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12061         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12062         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12063         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12064         * modules/read: New file.
12065         * modules/nonblocking (Files): Add lib/stdio-read.c.
12066         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12067         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12068         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12069         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12070         * modules/pread (Depends-on): Add read.
12071         * modules/safe-read (Depends-on): Likewise.
12072         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12073         gets, scanf, vfscanf, vscanf): Verify signatures.
12074         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12075         problem with non-blocking pipes.
12076         * doc/posix-functions/fgetc.texi: Likewise.
12077         * doc/posix-functions/fgets.texi: Likewise.
12078         * doc/posix-functions/fread.texi: Likewise.
12079         * doc/posix-functions/fscanf.texi: Likewise.
12080         * doc/posix-functions/getc.texi: Likewise.
12081         * doc/posix-functions/getchar.texi: Likewise.
12082         * doc/posix-functions/gets.texi: Likewise.
12083         * doc/posix-functions/scanf.texi: Likewise.
12084         * doc/posix-functions/vfscanf.texi: Likewise.
12085         * doc/posix-functions/vscanf.texi: Likewise.
12086
12087 2011-04-14  Bruno Haible  <bruno@clisp.org>
12088
12089         Support non-blocking pipe I/O in write() on native Windows.
12090         * lib/write.c (rpl_write): Split a write request that failed merely
12091         because the byte count was larger than the pipe buffer's size.
12092         * doc/posix-functions/write.texi: Mention the problem with large byte
12093         counts.
12094
12095 2011-04-14  Bruno Haible  <bruno@clisp.org>
12096
12097         wchar: Ensure that wchar_t gets defined on uClibc.
12098         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12099         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12100
12101 2011-04-13  Bruno Haible  <bruno@clisp.org>
12102
12103         safe-write, full-read: Avoid unnecessary compilation units.
12104         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12105         (Depends-on): Remove safe-read. Add ssize_t.
12106         * modules/full-read (Files): Add lib/full-write.c.
12107         (Depends-on): Add full-write.
12108
12109 2011-04-13  Bruno Haible  <bruno@clisp.org>
12110
12111         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12112         * modules/pwrite (Depends-on): Add 'write'.
12113
12114 2011-04-13  Bruno Haible  <bruno@clisp.org>
12115
12116         Support non-blocking pipe I/O in write() on native Windows.
12117         * lib/unistd.in.h (write): Enable replacement also if
12118         GNULIB_UNISTD_H_NONBLOCKING is 1.
12119         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12120         (rpl_write): When failing to write on a non-blocking pipe, change
12121         errno from ENOSPC to EAGAIN.
12122         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12123         putchar, puts, vfprintf, vprintf): Enable replacement also if
12124         GNULIB_STDIO_H_NONBLOCKING is 1.
12125         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12126         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12127         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12128         CALL_WITH_SIGPIPE_EMULATION.
12129         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12130         * m4/nonblocking.m4: New file.
12131         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12132         for non-blocking I/O support.
12133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12134         GNULIB_UNISTD_H_NONBLOCKING.
12135         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12136         required for non-blocking I/O support.
12137         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12138         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12139         lib/stdio-write.c, m4/asm-underscore.m4.
12140         (Depends-on): Add stdio, unistd.
12141         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12142         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12143         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12144         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12145         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12146         problem with non-blocking pipes.
12147         * doc/posix-functions/fputc.texi: Likewise.
12148         * doc/posix-functions/fputs.texi: Likewise.
12149         * doc/posix-functions/fwrite.texi: Likewise.
12150         * doc/posix-functions/printf.texi: Likewise.
12151         * doc/posix-functions/putc.texi: Likewise.
12152         * doc/posix-functions/putchar.texi: Likewise.
12153         * doc/posix-functions/puts.texi: Likewise.
12154         * doc/posix-functions/vfprintf.texi: Likewise.
12155         * doc/posix-functions/vprintf.texi: Likewise.
12156         * doc/posix-functions/write.texi: Likewise.
12157
12158 2011-04-10  Jim Meyering  <meyering@redhat.com>
12159
12160         maint.mk: prohibit doubled words
12161         Detect them also when they're separated by a newline.
12162         There are 3 ways to customize it:
12163           - disable the test on a per file basis, as usual with rules using
12164             $(VC_LIST_EXCEPT)
12165           - replace the default doubled-word-selecting regexp (affects all files)
12166           - ignore a particular file-vs-doubled-word match
12167         I nearly used that last one to ignore the "is is" match in
12168         coreutils' NEWS file, since the text was "ls -is is ..."
12169         To do that, I would have added this line to cfg.mk:
12170           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12171         but it would have ignored any "is is" match in NEWS.
12172         Low probability, but still...
12173         Instead, I changed the text, slightly:
12174           -  ls -is is now consistent with ls -lis in ignoring values returned
12175           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12176         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12177         (prohibit_doubled_word_): Define.
12178         (sc_prohibit_doubled_word): New rule.
12179         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12180
12181 2011-04-10  Jim Meyering  <meyering@redhat.com>
12182
12183         maint: fix doubled-word typo in comment
12184         * m4/gethostname.m4: s/is is/it is/
12185         * m4/getdomainname.m4: Likewise.
12186
12187 2011-04-10  Jim Meyering  <meyering@redhat.com>
12188
12189         maint: remove doubled word: s/it it/it/
12190         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12191
12192 2011-04-10  Jim Meyering  <meyering@redhat.com>
12193
12194         maint.mk: remove useless semicolon and backslash
12195         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12196         semicolon and backslash.
12197
12198 2011-04-10  Bruno Haible  <bruno@clisp.org>
12199
12200         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12201         * modules/stdint-tests (Depends-on): Add wchar.
12202
12203 2011-04-10  Jim Meyering  <meyering@redhat.com>
12204
12205         maint: remove doubled words in comments, e.g., s/a a/a/
12206         * lib/strptime.c (day_of_the_week): s/the the/the/
12207         * tests/test-chown.h (test_chown): s/a a/a/
12208
12209         test-chown.h: correct a cast
12210         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12211         when the destination is a stat.st_gid.
12212
12213 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12214
12215         getaddrinfo: Fix test for sa_len member.
12216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12217         include <sys/types.h> before <sys/socket.h>.
12218
12219 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12220
12221         maint: change "can not" to "cannot"
12222         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12223         boundaries.
12224
12225 2011-04-09  Jim Meyering  <meyering@redhat.com>
12226
12227         maint: change "a a" to "a"
12228         * tests/test-lchown.h (test_lchown): s/a a/a/
12229
12230         maint.mk: prohibit \<the the\>
12231         * top/maint.mk (sc_prohibit_the_the): New rule.
12232
12233         maint: fix "the the" in comment
12234         * lib/count-one-bits.h: s/the the/the/
12235
12236         maint: change "can not" to "cannot"
12237         But do not change the occurrences in maintain.texi or in
12238         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12239         * doc/gnulib-tool.texi: s/can not/cannot/
12240         * doc/posix-functions/accept.texi (accept): Likewise.
12241         * doc/posix-functions/socket.texi (socket): Likewise.
12242         * lib/mbrtowc.c: Likewise.
12243
12244         maint.mk: prohibit use of "can not"
12245         * top/maint.mk (sc_prohibit_can_not): New rule.
12246         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12247
12248 2011-04-09  Bruno Haible  <bruno@clisp.org>
12249
12250         careadlinkat: Guard against misuse of careadlinkatcwd.
12251         * lib/careadlinkat.c: Include <stdlib.h>.
12252         (careadlinkatcwd): Check that the fd argument is as expected.
12253
12254 2011-04-09  Bruno Haible  <bruno@clisp.org>
12255
12256         careadlinkat: Use common coding style.
12257         * lib/careadlinkat.c: Move gnulib includes after system includes.
12258
12259 2011-04-09  Bruno Haible  <bruno@clisp.org>
12260
12261         careadlinkat: Clarify specification.
12262         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12263         (careadlinkatcwd): Add comment.
12264         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12265
12266 2011-04-09  Bruno Haible  <bruno@clisp.org>
12267
12268         areadlinkat: Avoid link error on many platforms.
12269         * modules/areadlinkat (Depends-on): Add areadlink.
12270
12271 2011-04-09  Bruno Haible  <bruno@clisp.org>
12272
12273         allocator, careadlinkat: Fix double-inclusion guard.
12274         * lib/allocator.h: Fix double-inclusion guard.
12275         * lib/careadlinkat.h: Likewise.
12276
12277 2011-04-09  Bruno Haible  <bruno@clisp.org>
12278
12279         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12280         * lib/relocwrapper.c: Update dependencies hierarchy.
12281         * build-aux/install-reloc: Update list of files to be compiled.
12282         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12283         lib/allocator.[hc].
12284
12285 2011-04-08  Eric Blake  <eblake@redhat.com>
12286
12287         strftime: silence gnulib-tool warning
12288         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12289
12290 2011-04-08  Bruno Haible  <bruno@clisp.org>
12291
12292         verify: Fix syntax error with GCC 4.6 in C++ mode.
12293         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12294         (HAVE_STATIC_ASSERT): New macro.
12295         (verify_true, verify): Use 'static_assert' if it is supported and
12296         '_Static_assert' is not supported.
12297
12298 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12299
12300         allocator: New module.
12301         * modules/allocator, lib/allocator.c: New files.
12302         * lib/allocator.h (stdlib_allocator): New decl.
12303         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12304         Remove.  Do not include <stdlib.h>.
12305         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12306         * modules/careadlinkat (Files): Remove lib/allocator.h.
12307         (Depends-on): Add allocator.
12308
12309         stdlib: let modules use system malloc, realloc
12310         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12311         if !_GL_USE_STDLIB_ALLOC.
12312         (malloc, realloc): Limit this change to a smaller scope.
12313
12314         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12315         (malloc, realloc): Don't #undef; no longer needed.
12316         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12317         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12318         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12319         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12320         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12321         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12322         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12323         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12324
12325         careadlinkat: rename members to avoid problem
12326         * lib/allocator.h (struct allocator): Rename members from
12327         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12328         and realloc are #define'd.  Reported by Eric Blake in
12329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12330         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12331
12332 2011-04-08  Eric Blake  <eblake@redhat.com>
12333
12334         nonblocking: reduce dependency
12335         * tests/test-nonblocking.c: Only test sockets when in use.
12336         * modules/nonblocking-tests (Depends-on): Drop socket.
12337         (Makefile.am): Link even if sockets are not present.
12338         * modules/pipe2-tests (Makefile.am): Likewise.
12339         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12340
12341         pipe2: fix O_NONBLOCK support on mingw
12342         * modules/pipe2 (Depends-on): Add nonblocking.
12343         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12344         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12345         * tests/test-nonblocking.c (main): Likewise.
12346         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12347
12348         fcntl-h: fix O_ACCMODE on cygwin
12349         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12350         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12351
12352         pipe-filter: drop O_NONBLOCK workarounds
12353         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12354         * modules/pipe-filter-ii (Depends-on): Likewise.
12355         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12356
12357         nonblocking: provide O_NONBLOCK for mingw
12358         * modules/nonblocking (Depends-on): Add open.
12359         (configure.ac): Set new witness macro.
12360         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12361         * modules/fcntl-h (Makefile.am): Substitute it.
12362         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12363         nonblocking module is in use.
12364         * lib/nonblocking.c: Adjust portability test.
12365         * lib/open.c (open): Don't let native open see gnulib flag.
12366         * tests/test-fcntl-h.c (main): Enhance test.
12367         * tests/test-open.h (test_open): Likewise.
12368         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12369
12370         careadlinkat: fix compilation error on mingw
12371         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12372         within struct allocator.
12373
12374 2011-04-06  Eric Blake  <eblake@redhat.com>
12375
12376         binary-io: relicense under LGPLv2+
12377         * modules/binary-io (License): Relax to LGPLv2+.
12378         Requested for libvirt, and required by pipe2.
12379
12380 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         verify: use _Static_assert if available
12383         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12384         (verify_true, verify): Use it if available.  This generates better
12385         diagnostics with GCC 4.6.0 and later.
12386
12387 2011-04-05  Bruno Haible  <bruno@clisp.org>
12388
12389         Remove leftover generated .h files after config.status changed.
12390
12391         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12392         GL_GENERATE_ALLOCA_H.
12393         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12394         GL_GENERATE_ALLOCA_H evaluates to false.
12395
12396         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12397         GL_GENERATE_ARGZ_H.
12398         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12399         evaluates to false.
12400
12401         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12402         GL_GENERATE_BYTESWAP_H.
12403         * modules/byteswap (Makefile.am): Remove byteswap.h if
12404         GL_GENERATE_BYTESWAP_H evaluates to false.
12405
12406         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12407         GL_GENERATE_ERRNO_H.
12408         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12409         evaluates to false.
12410
12411         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12412         GL_GENERATE_FLOAT_H.
12413         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12414         evaluates to false.
12415
12416         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12417         GL_GENERATE_FNMATCH_H.
12418         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12419         GL_GENERATE_FNMATCH_H evaluates to false.
12420
12421         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12422         GL_GENERATE_GLOB_H.
12423         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12424         evaluates to false.
12425
12426         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12427         automake conditional GL_GENERATE_ICONV_H.
12428         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12429         evaluates to false.
12430
12431         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12432         GL_GENERATE_NETINET_IN_H.
12433         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12434         GL_GENERATE_NETINET_IN_H evaluates to false.
12435
12436         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12437         conditional GL_GENERATE_PTHREAD_H.
12438         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12439         * modules/pthread (Makefile.am): Remove pthread.h if
12440         GL_GENERATE_PTHREAD_H evaluates to false.
12441
12442         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12443         GL_GENERATE_SCHED_H.
12444         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12445         evaluates to false.
12446
12447         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12448         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12449         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12450         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12451
12452         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12453         GL_GENERATE_STDARG_H.
12454         * modules/stdarg (Makefile.am): Remove stdarg.h if
12455         GL_GENERATE_STDARG_H evaluates to false.
12456
12457         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12458         GL_GENERATE_STDBOOL_H.
12459         * modules/stdbool (Makefile.am): Remove stdbool.h if
12460         GL_GENERATE_STDBOOL_H evaluates to false.
12461
12462         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12463         conditional GL_GENERATE_STDDEF_H.
12464         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12465         * modules/stddef (Makefile.am): Remove stddef.h if
12466         GL_GENERATE_STDDEF_H evaluates to false.
12467
12468         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12469         GL_GENERATE_STDINT_H.
12470         * modules/stdint (Makefile.am): Remove stdint.h if
12471         GL_GENERATE_STDINT_H evaluates to false.
12472
12473         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12474         GL_GENERATE_SYSEXITS_H.
12475         * modules/sysexits (Makefile.am): Remove sysexits.h if
12476         GL_GENERATE_SYSEXITS_H evaluates to false.
12477
12478         Reported by Karl Berry and Ralf Wildenhues.
12479
12480 2011-04-05  Bruno Haible  <bruno@clisp.org>
12481
12482         Ensure to rebuild generated .h files when config.status has changed.
12483         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12484         config.status.
12485         * modules/ctype (Makefile.am): Likewise.
12486         * modules/dirent (Makefile.am): Likewise.
12487         * modules/errno (Makefile.am): Likewise.
12488         * modules/fcntl-h (Makefile.am): Likewise.
12489         * modules/float (Makefile.am): Likewise.
12490         * modules/getopt-posix (Makefile.am): Likewise.
12491         * modules/glob (Makefile.am): Likewise.
12492         * modules/iconv-h (Makefile.am): Likewise.
12493         * modules/inttypes (Makefile.am): Likewise.
12494         * modules/langinfo (Makefile.am): Likewise.
12495         * modules/locale (Makefile.am): Likewise.
12496         * modules/math (Makefile.am): Likewise.
12497         * modules/netdb (Makefile.am): Likewise.
12498         * modules/netinet_in (Makefile.am): Likewise.
12499         * modules/poll-h (Makefile.am): Likewise.
12500         * modules/pthread (Makefile.am): Likewise.
12501         * modules/pty (Makefile.am): Likewise.
12502         * modules/sched (Makefile.am): Likewise.
12503         * modules/search (Makefile.am): Likewise.
12504         * modules/selinux-h (Makefile.am): Likewise.
12505         * modules/signal (Makefile.am): Likewise.
12506         * modules/spawn (Makefile.am): Likewise.
12507         * modules/stdarg (Makefile.am): Likewise.
12508         * modules/stdbool (Makefile.am): Likewise.
12509         * modules/stddef (Makefile.am): Likewise.
12510         * modules/stdint (Makefile.am): Likewise.
12511         * modules/stdio (Makefile.am): Likewise.
12512         * modules/stdlib (Makefile.am): Likewise.
12513         * modules/string (Makefile.am): Likewise.
12514         * modules/strings (Makefile.am): Likewise.
12515         * modules/sys_file (Makefile.am): Likewise.
12516         * modules/sys_ioctl (Makefile.am): Likewise.
12517         * modules/sys_select (Makefile.am): Likewise.
12518         * modules/sys_socket (Makefile.am): Likewise.
12519         * modules/sys_stat (Makefile.am): Likewise.
12520         * modules/sys_time (Makefile.am): Likewise.
12521         * modules/sys_times (Makefile.am): Likewise.
12522         * modules/sys_utsname (Makefile.am): Likewise.
12523         * modules/sys_wait (Makefile.am): Likewise.
12524         * modules/sysexits (Makefile.am): Likewise.
12525         * modules/termios (Makefile.am): Likewise.
12526         * modules/time (Makefile.am): Likewise.
12527         * modules/unistd (Makefile.am): Likewise.
12528         * modules/wchar (Makefile.am): Likewise.
12529         * modules/wctype-h (Makefile.am): Likewise.
12530         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12531
12532 2011-04-05  Bruno Haible  <bruno@clisp.org>
12533
12534         pipe2: Relicense under LGPLv2+.
12535         * modules/pipe2 (License): Change to LGPLv2+.
12536         Requested by Eric Blake, for libvirt.
12537
12538 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12539
12540         bootstrap: compute gnulib_extra_files after updating build_aux
12541         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12542         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12543
12544 2011-04-05  Eric Blake  <eblake@redhat.com>
12545
12546         bootstrap: preserve git whitelist item sorting
12547         * build-aux/bootstrap (sort_patterns): New function.
12548         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12549
12550 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12551
12552         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12553         sc_space_tab check.
12554
12555 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12556
12557         areadlink, areadlinkat: rewrite in terms of careadlinkat
12558         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12559         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12560         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12561         (malloc, realloc): Remove #undefs.
12562         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12563         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12564         readlink, ssize_t, stdint, unistd.
12565         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12566         areadlink, stdint.
12567
12568         careadlinkat: new module
12569         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12570         * modules/careadlinkat: New files, written by me with
12571         a review and feedback from Ben Pfaff in
12572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12573
12574 2011-04-01  Bruno Haible  <bruno@clisp.org>
12575
12576         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12577         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12578         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12579         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12580         Reported by Bruce Korb <bruce.korb@gmail.com>.
12581
12582 2011-04-01  Bruno Haible  <bruno@clisp.org>
12583
12584         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12585         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12586         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12587         * modules/wcpcpy (Depends-on): Add extensions.
12588         * modules/wcpncpy (Depends-on): Likewise.
12589         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12590         systems.
12591         * doc/posix-functions/wcpncpy.texi: Likewise.
12592         * doc/posix-functions/wcwidth.texi: Likewise.
12593
12594 2011-03-31  Eric Blake  <eblake@redhat.com>
12595
12596         nonblocking: fix mingw test failures
12597         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12598         non-blocking flag on regular file.
12599         (get_nonblocking_flag): Set errno on invalid fd.
12600         * tests/test-nonblocking.c (main): Avoid test failure on
12601         directories if fchdir is not active.
12602         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12603
12604 2011-03-31  Bruno Haible  <bruno@clisp.org>
12605
12606         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12607         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12608         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12609         Reported by Simon Josefsson <simon@josefsson.org>.
12610
12611 2011-03-31  Bruno Haible  <bruno@clisp.org>
12612         and Eric Blake  <eblake@redhat.com>
12613
12614         nonblocking: new module
12615         * modules/nonblocking: New module.
12616         * modules/nonblocking-tests: Likewise.
12617         * lib/nonblocking.h: New file.
12618         * lib/nonblocking.c: Likewise.
12619         * tests/test-nonblocking.c: New test.
12620         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12621
12622 2011-03-30  Bruno Haible  <bruno@clisp.org>
12623
12624         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12625         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12626         instead of 'printf' format for GCC >= 4.4.
12627         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12628         (fprintf, printf, vfprintf, vprintf): Declare with
12629         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12630         the system's vfprintf() function.
12631         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12632
12633 2011-03-30  Eric Blake  <eblake@redhat.com>
12634
12635         passfd: fix scoping bug
12636         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12637         before sendmsg/recvmsg.
12638
12639         passfd: standardize coding conventions
12640         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12641         can be learned at compile time.
12642         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12643         ifdefs.
12644         (sendfd, recvfd): Follow gnulib code conventions.
12645
12646         passfd: fix incorrect sendmsg arguments
12647         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12648         incorrect msg_controllen value.
12649         * modules/passfd-tests (Depends-on): Check for alarm.
12650         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12651         Reported by Bastien ROUCARIES.
12652
12653 2011-03-30  Bruno Haible  <bruno@clisp.org>
12654
12655         c-strcasestr: Relicense under LGPLv2+.
12656         * modules/c-strcasestr (License): Change to LGPLv2+.
12657         Requested by Eric Blake, for libvirt.
12658
12659 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12660
12661         * users.txt: Add libidn2.  Fix libtasn1 link.
12662
12663 2011-03-30  Jim Meyering  <meyering@redhat.com>
12664
12665         tests: readlink* ("",... fails with EINVAL on newer kernels
12666         readlink and readlinkat have typically failed with ENOENT for
12667         the invalid, empty file name,  "".  However, with the advent
12668         of linux-2.6.39, they fail with EINVAL.
12669         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12670         when operating on the empty file name.
12671         * tests/test-readlink.h (test_readlink): Likewise.
12672
12673 2011-03-29  Bruno Haible  <bruno@clisp.org>
12674
12675         Relicense some modules under LGPLv2+, for libidn2.
12676         * modules/array-mergesort (License): Change to LGPLv2+.
12677         * modules/c-strcaseeq (License): Likewise.
12678         * modules/striconveh (License): Likewise.
12679         * modules/striconveha (License): Likewise.
12680         * modules/uniconv/base (License): Likewise.
12681         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12682         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12683         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12684         * modules/unictype/base (License): Likewise.
12685         * modules/unictype/bidiclass-of (License): Likewise.
12686         * modules/unictype/category-M (License): Likewise.
12687         * modules/unictype/category-none (License): Likewise.
12688         * modules/unictype/category-of (License): Likewise.
12689         * modules/unictype/category-test (License): Likewise.
12690         * modules/unictype/category-test-withtable (License): Likewise.
12691         * modules/unictype/combining-class (License): Likewise.
12692         * modules/unictype/joiningtype-of (License): Likewise.
12693         * modules/unictype/scripts (License): Likewise.
12694         * modules/uninorm/base (License): Likewise.
12695         * modules/uninorm/canonical-decomposition (License): Likewise.
12696         * modules/uninorm/composition (License): Likewise.
12697         * modules/uninorm/decompose-internal (License): Likewise.
12698         * modules/uninorm/decomposition-table (License): Likewise.
12699         * modules/uninorm/nfc (License): Likewise.
12700         * modules/uninorm/nfd (License): Likewise.
12701         * modules/uninorm/u32-normalize (License): Likewise.
12702         * modules/unistr/base (License): Likewise.
12703         * modules/unistr/u32-cpy (License): Likewise.
12704         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12705         * modules/unistr/u32-to-u8 (License): Likewise.
12706         * modules/unistr/u32-uctomb (License): Likewise.
12707         * modules/unistr/u8-check (License): Likewise.
12708         * modules/unistr/u8-mblen (License): Likewise.
12709         * modules/unistr/u8-mbtouc (License): Likewise.
12710         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12711         * modules/unistr/u8-mbtoucr (License): Likewise.
12712         * modules/unistr/u8-prev (License): Likewise.
12713         * modules/unistr/u8-strlen (License): Likewise.
12714         * modules/unistr/u8-to-u32 (License): Likewise.
12715         * modules/unistr/u8-uctomb (License): Likewise.
12716         * modules/unitypes (License): Likewise.
12717         Requested by Simon Josefsson.
12718
12719 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12720
12721         lib-symbol-visibility: Add a notice.
12722         * modules/lib-symbol-visibility (Notice): New field.
12723
12724 2011-03-29  Bruno Haible  <bruno@clisp.org>
12725
12726         getaddrinfo: Doc fix.
12727         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12728         section "fixed in Gnulib".
12729
12730 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12731
12732         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12733         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12734
12735 2011-03-26  Bruno Haible  <bruno@clisp.org>
12736
12737         unictype/property-byname: Reduce the number of load-time relocations.
12738         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12739         (UC_PROPERTY_INDEX_*): New enumeration values.
12740         (uc_property_byname): Convert an index from the lookup table to an
12741         uc_property_t.
12742         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12743         values.
12744
12745 2011-03-26  Bruno Haible  <bruno@clisp.org>
12746
12747         unictype/property-byname: Allow omitted word separators and aliases.
12748         * lib/unictype/pr_byname.gperf: Add property names without word
12749         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12750         for 'space'.
12751
12752 2011-03-26  Bruno Haible  <bruno@clisp.org>
12753
12754         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12755         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12756         also hyphens to space.
12757         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12758         without spaces.
12759         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12760
12761 2011-03-26  Bruno Haible  <bruno@clisp.org>
12762
12763         unictype/joiningtype-byname: Recognize long names as well.
12764         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12765         a long name.
12766         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12767         unictype/joiningtype_byname.h.
12768         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12769         * lib/unictype/joiningtype_byname.gperf: New file.
12770         * modules/unictype/joiningtype-byname (Files): Add
12771         lib/unictype/joiningtype_byname.gperf.
12772         (Depends-on): Add gperf.
12773         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12774         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12775         long names.
12776
12777         Tests for module 'unictype/joiningtype-longname'.
12778         * modules/unictype/joiningtype-longname-tests: New file.
12779         * tests/unictype/test-joiningtype_longname.c: New file.
12780
12781         New module 'unictype/joiningtype-longname'.
12782         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12783         * lib/unictype/joiningtype_longname.c: New file.
12784         * modules/unictype/joiningtype-longname: New file.
12785         * modules/unictype/joiningtype-all (Depends-on): Add
12786         unictype/joiningtype-longname.
12787
12788 2011-03-26  Bruno Haible  <bruno@clisp.org>
12789
12790         unictype/bidiclass-byname: Recognize long names as well.
12791         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12792         name.
12793         * lib/unictype/bidi_byname.c: Include <string.h>,
12794         unictype/bidi_byname.h.
12795         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12796         * lib/unictype/bidi_byname.gperf: New file.
12797         * modules/unictype/bidiclass-byname (Files): Add
12798         lib/unictype/bidi_byname.gperf.
12799         (Depends-on): Add gperf.
12800         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12801         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12802         long names.
12803
12804         Tests for module 'unictype/bidiclass-longname'.
12805         * modules/unictype/bidiclass-longname-tests: New file.
12806         * tests/unictype/test-bidi_longname.c: New file.
12807
12808         New module 'unictype/bidiclass-longname'.
12809         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12810         * lib/unictype/bidi_longname.c: New file.
12811         * modules/unictype/bidiclass-longname: New file.
12812         * modules/unictype/bidiclass-all (Depends-on): Add
12813         unictype/bidiclass-longname.
12814
12815 2011-03-26  Bruno Haible  <bruno@clisp.org>
12816
12817         unictype/bidi*: Rename modules.
12818         * modules/unictype/bidiclass-all: Renamed from
12819         modules/unictype/bidicategory-all.
12820         * modules/unictype/bidiclass-name: Renamed from
12821         modules/unictype/bidiclass-name.
12822         (Description): Update.
12823         * modules/unictype/bidiclass-name-tests: Renamed from
12824         modules/unictype/bidicategory-name-tests.
12825         * modules/unictype/bidiclass-byname: Renamed from
12826         modules/unictype/bidicategory-byname.
12827         (Description): Update.
12828         * modules/unictype/bidiclass-byname-tests: Renamed from
12829         modules/unictype/bidicategory-byname-tests.
12830         * modules/unictype/bidiclass-of: Renamed from
12831         modules/unictype/bidicategory-of.
12832         (Description): Update.
12833         * modules/unictype/bidiclass-of-tests: Renamed from
12834         modules/unictype/bidicategory-of-tests.
12835         * modules/unictype/bidiclass-test: Renamed from
12836         modules/unictype/bidicategory-test.
12837         (Description): Update.
12838         * modules/unictype/bidiclass-test-tests: Renamed from
12839         modules/unictype/bidicategory-test-tests.
12840         * modules/unictype/bidicategory-all: New file, a simple redirection.
12841         * modules/unictype/bidicategory-name: Likewise.
12842         * modules/unictype/bidicategory-byname: Likewise.
12843         * modules/unictype/bidicategory-of: Likewise.
12844         * modules/unictype/bidicategory-test: Likewise.
12845         * modules/unictype/property-bidi-* (Dependencies): Update.
12846         * lib/unictype/bidi_*.c: Update comment.
12847
12848 2011-03-26  Bruno Haible  <bruno@clisp.org>
12849
12850         unictype/bidi*: Rename functions, part 2.
12851         * modules/unictype/bidicategory-name (configure.ac): Update required
12852         libunistring version.
12853         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12854
12855 2011-03-25  Bruno Haible  <bruno@clisp.org>
12856
12857         New module 'unictype/combining-class-all'.
12858         * modules/unictype/combining-class-all: New file.
12859
12860         Tests for module 'unictype/combining-class-byname'.
12861         * modules/unictype/combining-class-byname-tests: New file.
12862         * tests/unictype/test-combiningclass_byname.c: New file.
12863
12864         New module 'unictype/combining-class-byname'.
12865         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12866         * lib/unictype/combiningclass_byname.c: New file.
12867         * lib/unictype/combiningclass_byname.gperf: New file.
12868         * modules/unictype/combining-class-byname: New file.
12869
12870         Tests for module 'unictype/combining-class-longname'.
12871         * modules/unictype/combining-class-longname-tests: New file.
12872         * tests/unictype/test-combiningclass_longname.c: New file.
12873
12874         New module 'unictype/combining-class-longname'.
12875         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12876         * lib/unictype/combiningclass_longname.c: New file.
12877         * modules/unictype/combining-class-longname: New file.
12878
12879         Tests for module 'unictype/combining-class-name'.
12880         * modules/unictype/combining-class-name-tests: New file.
12881         * tests/unictype/test-combiningclass_name.c: New file.
12882
12883         New module 'unictype/combining-class-name'.
12884         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12885         * lib/unictype/combiningclass_name.c: New file.
12886         * modules/unictype/combining-class-name: New file.
12887
12888 2011-03-25  Bruno Haible  <bruno@clisp.org>
12889
12890         unictype/combining-class: Rename source files.
12891         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12892         of unictype/combining.h.
12893         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12894         Update.
12895         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12896         * modules/unictype/combining-class (Description): Fix.
12897         (Files, Makefile.am): Update.
12898         * tests/unictype/test-combiningclass.c: Renamed from
12899         tests/unictype/test-combining.c.
12900         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12901
12902 2011-03-25  Bruno Haible  <bruno@clisp.org>
12903
12904         unictype: Update list of canonical combining classes.
12905         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12906
12907 2011-03-25  Bruno Haible  <bruno@clisp.org>
12908
12909         unictype/category-byname: Recognize long names as well.
12910         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12911         a long name.
12912         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12913         unictype/categ_byname.h.
12914         (UC_CATEGORY_INDEX_*): New enumeration values.
12915         (uc_general_category_byname): Use uc_general_category_lookup and
12916         convert from index to value.
12917         * lib/unictype/categ_byname.gperf: New file.
12918         * modules/unictype/category-byname (Files): Add
12919         lib/unictype/categ_byname.gperf.
12920         (Depends-on): Add gperf.
12921         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12922         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12923         long names.
12924
12925         Tests for module 'unictype/category-longname'.
12926         * modules/unictype/category-longname-tests: New file.
12927         * tests/unictype/test-categ_longname.c: New file.
12928
12929         New module 'unictype/category-longname'.
12930         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12931         * lib/unictype/categ_longname.c: New file.
12932         * modules/unictype/category-longname: New file.
12933         * modules/unictype/category-all (Depends-on): Add it.
12934
12935 2011-03-25  Bruno Haible  <bruno@clisp.org>
12936
12937         Tests for module 'unictype/category-LC'.
12938         * modules/unictype/category-LC-tests: New file.
12939         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12940
12941         New module 'unictype/category-LC'.
12942         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12943         (UC_CATEGORY_LC): New declaration.
12944         (UC_CASED_LETTER): New macro.
12945         * lib/gen-uni-tables.c (is_category_LC): New function.
12946         (output_categories): Also handle category LC.
12947         (UC_CATEGORY_MASK_LC): New enumeration value.
12948         (general_category_byname): Also handle category LC.
12949         * lib/unictype/categ_LC.c: New file.
12950         * lib/unictype/categ_LC.h: New file, automatically generated.
12951         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12952         category LC.
12953         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12954         * modules/unictype/category-LC: New file.
12955         * modules/unictype/category-byname (Depends-on): Add
12956         unictype/category-LC.
12957         * modules/unictype/category-all (Depends-on): Likewise.
12958
12959 2011-03-25  Eric Blake  <eblake@redhat.com>
12960
12961         xmalloc: revert yesterday's regression
12962         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12963         realloc's underlying behavior (allowing allocation of zero-size
12964         objects, especially if malloc-gnu is also in use).
12965
12966 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12967
12968         maint.mk: add missing version to VC-tag
12969         * top/maint.mk: git tag was missing actual tag name; add it.
12970
12971         valgrind: do leak checking, and exit with code 1 on error (not 0)
12972         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12973         to VALGRIND.
12974
12975 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12976
12977         posix-modules: say what it does.
12978         * posix-modules: Add a line to the --help output saying what it does.
12979
12980 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12981
12982         xmalloc: Do not leak if underlying realloc is C99 compatible.
12983         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12984         This avoids a leak on C99-based systems.  See
12985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12986
12987 2011-03-24  Eric Blake  <eblake@redhat.com>
12988
12989         realloc: document portability problem
12990         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12991         passing 0 size to realloc.
12992
12993 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12994
12995         doc: update users.txt
12996         * users.txt: Add cvsps, tmpwatch
12997
12998 2011-03-23  Matt Rice  <ratmice@gmail.com>
12999
13000         doc: update users.txt
13001         * users.txt: Add gdb.
13002
13003 2011-03-23  Jim Meyering  <meyering@redhat.com>
13004
13005         doc: update users.txt
13006         Looking through matches up to the following URL (there are still
13007         several more pages), I found several projects that use gnulib:
13008         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13009         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13010         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13011
13012 2011-03-22  Bruno Haible  <bruno@clisp.org>
13013
13014         unictype/bidi*: Rename functions.
13015         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13016         uc_bidi_class, uc_is_bidi_class): New declarations.
13017         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13018         uc_bidi_category_byname.
13019         (uc_bidi_category_byname): New function.
13020         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13021         u_bidi_category_name.
13022         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13023         (uc_bidi_category_name): New function.
13024         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13025         uc_bidi_category.
13026         (uc_bidi_category): New function.
13027         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13028         uc_is_bidi_category. Invoke uc_bidi_class.
13029         (uc_is_bidi_category): New function.
13030         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13031         instead of uc_bidi_category_byname.
13032         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13033         instead of uc_bidi_category_name.
13034         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13035         uc_bidi_category.
13036         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13037         instead of uc_is_bidi_category.
13038
13039 2011-03-21  Bruno Haible  <bruno@clisp.org>
13040
13041         New module 'unictype/joininggroup-all'.
13042         * modules/unictype/joininggroup-all: New file.
13043
13044         Tests for module 'unictype/joininggroup-of'.
13045         * modules/unictype/joininggroup-of-tests: New file.
13046         * tests/unictype/test-joininggroup_of.c: New file.
13047         * tests/unictype/test-joininggroup_of.h: New file, automatically
13048         generated by gen-uni-tables.
13049
13050         New module 'unictype/joininggroup-of'.
13051         * modules/unictype/joininggroup-of: New file.
13052         * lib/unictype/joininggroup_of.c: New file.
13053         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13054         gen-uni-tables.
13055
13056         Tests for module 'unictype/joininggroup-byname'.
13057         * modules/unictype/joininggroup-byname-tests: New file.
13058         * tests/unictype/test-joininggroup_byname.c: New file.
13059
13060         New module 'unictype/joininggroup-byname'.
13061         * modules/unictype/joininggroup-byname: New file.
13062         * lib/unictype/joininggroup_byname.c: New file.
13063         * lib/unictype/joininggroup_byname.gperf: New file.
13064
13065         Tests for module 'unictype/joininggroup-name'.
13066         * modules/unictype/joininggroup-name-tests: New file.
13067         * tests/unictype/test-joininggroup_name.c: New file.
13068
13069         New module 'unictype/joininggroup-name'.
13070         * modules/unictype/joininggroup-name: New file.
13071         * lib/unictype/joininggroup_name.c: New file.
13072         * lib/unictype/joininggroup_name.h: New file.
13073
13074         New module 'unictype/joiningtype-all'.
13075         * modules/unictype/joiningtype-all: New file.
13076
13077         Tests for module 'unictype/joiningtype-of'.
13078         * modules/unictype/joiningtype-of-tests: New file.
13079         * tests/unictype/test-joiningtype_of.c: New file.
13080         * tests/unictype/test-joiningtype_of.h: New file, automatically
13081         generated by gen-uni-tables.
13082
13083         New module 'unictype/joiningtype-of'.
13084         * modules/unictype/joiningtype-of: New file.
13085         * lib/unictype/joiningtype_of.c: New file.
13086         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13087         gen-uni-tables.
13088
13089         Tests for module 'unictype/joiningtype-byname'.
13090         * modules/unictype/joiningtype-byname-tests: New file.
13091         * tests/unictype/test-joiningtype_byname.c: New file.
13092
13093         New module 'unictype/joiningtype-byname'.
13094         * modules/unictype/joiningtype-byname: New file.
13095         * lib/unictype/joiningtype_byname.c: New file.
13096
13097         Tests for module 'unictype/joiningtype-name'.
13098         * modules/unictype/joiningtype-name-tests: New file.
13099         * tests/unictype/test-joiningtype_name.c: New file.
13100
13101         New module 'unictype/joiningtype-name'.
13102         * modules/unictype/joiningtype-name: New file.
13103         * lib/unictype/joiningtype_name.c: New file.
13104
13105         unictype: Add support for Arabic shaping properties.
13106         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13107         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13108         declarations.
13109         (UC_JOINING_GROUP_*): New enumeration values.
13110         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13111         declarations.
13112         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13113         (unicode_joining_type): New variable.
13114         (UC_JOINING_GROUP_*): New enumeration values.
13115         (unicode_joining_group): New variable.
13116         (fill_arabicshaping, joining_type_as_c_identifier,
13117         output_joining_type_test, output_joining_type,
13118         joining_group_as_c_identifier, output_joining_group_test,
13119         output_joining_group): New functions.
13120         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13121         fill_arabicshaping and output_joining_type_test, output_joining_type,
13122         output_joining_group_test, output_joining_group.
13123         Reported by Simon Josefsson.
13124
13125 2011-03-21  Jim Meyering  <meyering@redhat.com>
13126
13127         strftime: fix a bug in yesterday's change
13128         * lib/strftime.c (add): Accommodate width's initial value of -1.
13129         Otherwise, nstrftime would copy uninitialized data into
13130         the result buffer.
13131
13132 2011-03-21  Jim Meyering  <meyering@redhat.com>
13133
13134         tests: add strftime-tests module
13135         * tests/test-strftime.c: New file.
13136         * modules/strftime-tests: New module.
13137
13138 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         strftime: don't assume a byte count fits in 'int'
13141         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13142         found this problem by static analysis, using gcc -Wstrict-overflow
13143         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13144         on an integer overflow having undefined behavior, but it turns out
13145         that the argument is a size, which might not fit in 'int' anyway,
13146
13147 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13148
13149         stdio: don't require ignore_value around fwrite
13150
13151         This patch works around libc bug 11959
13152         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13153         Without this patch, applications must often write
13154         ignore_value (fwrite (...)) even though the ignore_value is
13155         not helpful here.  It's common to write many objects, using
13156         fwrite/printf/etc., and then use ferror to detect output error.
13157
13158         I considered making this patch optional, but decided against it,
13159         because libc is obviously being inconsistent here: there is no
13160         reason libc should insist that user code must inspect fwrite
13161         return's value without also insisting that it inspect printf's,
13162         putchar's, etc.  If user code wants to have a strict style where
13163         all these functions' values are checked (so that ferror need not
13164         be checked), we could add support for that style in a new gnulib
13165         module, but in the meantime it's better to be consistent and to
13166         support common usage.
13167
13168         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13169         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13170         that we are compiling in checking mode, and if not C++, and
13171         if not already wrapping fwrite for some other reason.
13172         (fwrite): #define to rpl_fwrite if the latter is defined.
13173
13174 2011-03-20  Bruno Haible  <bruno@clisp.org>
13175
13176         verror: Fix compilation error introduced on 2011-02-13.
13177         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13178         instead of __attribute__.
13179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13180
13181 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13182             Bruno Haible  <bruno@clisp.org>
13183
13184         socklen: do not depend on sys_socket
13185         While trying to modify Emacs to use gnulib's socklen module,
13186         I discovered a circular dependency: socklen depends on sys_socket
13187         and vice versa.  Emacs can use socklen, but it does not need
13188         sys_socket because it has its own substitute for sys/socket.h.
13189         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13190         gl_TYPE_SOCKLEN_T.
13191         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13192         gl_PREREQ_SYS_H_SOCKET.
13193         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13194         gl_PREREQ_SYS_H_SOCKET.
13195         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13196         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13197         * modules/socklen (Depends-on): Do not depend on sys_socket.
13198         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13199
13200 2011-03-20  Jim Meyering  <meyering@redhat.com>
13201
13202         maint.mk: sort file names *after* new transformation
13203         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13204         prefix would have led to an unwarranted failure in GNU parted.
13205         Sort after that transformation.
13206
13207 2011-03-19  Jim Meyering  <meyering@redhat.com>
13208
13209         maint.mk: fix po-file syntax-check rule
13210         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13211         Patch by Bruno Haible.
13212
13213 2011-03-19  Bruno Haible  <bruno@clisp.org>
13214
13215         socklen: Update comment.
13216         * m4/socklen.m4: Update comment about platforms.
13217
13218 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13219             Bruno Haible  <bruno@clisp.org>
13220
13221         inet_ntop, inet_pton: Simplify.
13222         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13223         documented to provide socklen_t and we already depend on sys_socket.
13224         * modules/inet_pton (Depends-on): Likewise.
13225         * lib/arpa_inet.in.h: Adjust comment.
13226
13227 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13228             Bruno Haible  <bruno@clisp.org>
13229
13230         netdb: Simplify.
13231         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13232         documented to provide socklen_t and we already depend on sys_socket.
13233         * lib/netdb.in.h: Adjust comment.
13234
13235 2011-03-19  Bruno Haible  <bruno@clisp.org>
13236
13237         sys_socket, netdb: Document problem with socklen_t.
13238         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13239         platforms.
13240         * doc/posix-headers/netdb.texi: Likewise.
13241
13242 2011-03-18  Eric Blake  <eblake@redhat.com>
13243
13244         maint.mk: let po check work in VPATH build
13245         * top/maint.mk (po_file): Allow cfg.mk override.
13246         (sc_po_check): Allow VPATH use.
13247         Reported by Jiri Denemark.
13248
13249 2011-03-16  Jim Meyering  <meyering@redhat.com>
13250
13251         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13252         Before, you would have had to create one .x-sc_ file per rule in order
13253         to exempt offending files.  Now, you may instead use a Make variable --
13254         usually defined in cfg.mk -- whose name identifies the affected rule.
13255         * top/maint.mk (_sc_excl): Define.
13256         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13257         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13258
13259 2011-03-13  Bruno Haible  <bruno@clisp.org>
13260
13261         ignore-value tests: Avoid warnings.
13262         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13263         empty for gcc < 3.4.
13264
13265 2011-03-13  Bruno Haible  <bruno@clisp.org>
13266
13267         passfd: Fix link error on Solaris.
13268         * modules/passfd (Description): Correct.
13269         (Depends-on): Add socketlib.
13270         (Link): New section.
13271         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13272
13273 2011-03-13  Bruno Haible  <bruno@clisp.org>
13274
13275         passfd: Fix link error on AIX 5.2.
13276         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13277
13278 2011-03-13  Bruno Haible  <bruno@clisp.org>
13279
13280         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13281         * lib/sys_socket.in.h: Include <stddef.h>.
13282         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13283         CMSG_FIRSTHDR. Remove unused variable.
13284
13285 2011-03-13  Bruno Haible  <bruno@clisp.org>
13286
13287         passfd: Fix compilation error on OpenBSD.
13288         * lib/passfd.c: Include <sys/uio.h>.
13289
13290 2011-03-13  Bruno Haible  <bruno@clisp.org>
13291
13292         passfd test: Fix warnings.
13293         * tests/test-passfd.c: Include <sys/wait.h>.
13294         (main): Fix typo.
13295
13296 2011-03-13  Bruno Haible  <bruno@clisp.org>
13297
13298         passfd module, part 4, tweaks.
13299         * tests/test-passfd.c: Reorder includes.
13300         (main): Fix perror and printf calls.
13301
13302 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13303
13304         passfd module, part 4.
13305         * modules/passfd-tests: New file.
13306         * tests/test-passfd.c: New file.
13307
13308 2011-03-13  Jim Meyering  <meyering@redhat.com>
13309
13310         Makefile: rely on GNU make; derive syntax-check rule names
13311         Rather than requiring that each sc_ rule be listed as a dependent
13312         of "check", use features of GNU make to derive the list.
13313         * Makefile (syntax-check-rules): Define.
13314         (check): Depend on the new variable, not the hard-coded list.
13315
13316 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13317             Bruno Haible  <bruno@clisp.org>
13318
13319         passfd module, part 3.
13320         * lib/passfd.h (recvfd): Add a flags argument.
13321         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13322         (recvfd): Add a flags argument.
13323         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13324         exists.
13325         * modules/passfd (Depends-on): Add cloexec.
13326         Suggested by Eric Blake.
13327
13328 2011-03-13  Bruno Haible  <bruno@clisp.org>
13329
13330         passfd module, part 2, tweaks.
13331         * modules/passfd (Files): Reorder.
13332         (Depends-on): Remove errno.
13333         (Include): Remove <sys/socket.h>, <sys/un.h>.
13334         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13335         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13336         specification header. Include <sys/socket.h> always. Don't include
13337         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13338         (sendfd): Clarify that it sets errno when it fails.
13339         (recvfd): Fix specification.
13340
13341 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13342
13343         passfd module, part 2.
13344         * modules/passfd: New file.
13345         * lib/passfd.h: New file.
13346         * lib/passfd.c: New file.
13347
13348 2011-03-12  Bruno Haible  <bruno@clisp.org>
13349
13350         wcswidth, mbswidth: Avoid integer overflow.
13351         * lib/wcswidth.c: Include <limits.h>.
13352         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13353         * lib/mbswidth.c: Include <limits.h>.
13354         (mbsnwidth): Avoid 'int' overflow.
13355         Reported by Jim Meyering.
13356
13357 2011-03-12  Bruno Haible  <bruno@clisp.org>
13358
13359         futimens, utimensat: Avoid endless recursion on Solaris 10.
13360         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13361         Solaris.
13362         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13363         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13364
13365 2011-03-11  Jim Meyering  <meyering@redhat.com>
13366
13367         maint.mk: relax a regexp to accommodate other formatting styles
13368         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13369         between "ngettext" and the following "(".
13370
13371 2011-03-11  Pádraig Brady <P@draigBrady.com>
13372
13373         maint.mk: suppress a false positive warning
13374         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13375         diagnostics are marked with ngettext.
13376
13377 2011-03-10  Eric Blake  <eblake@redhat.com>
13378
13379         wchar: add explicit dependencies, for Tru64
13380         * modules/mbmemcasecoll (Depends-on): Add wchar.
13381         * modules/mbtowc (Depends-on): Likewise.
13382         * modules/vasnprintf (Depends-on): Likewise.
13383         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13384         * modules/wctomb (Depends-on): Likewise.
13385         Reported by Peter O'Gorman.
13386
13387 2011-03-08  Bruno Haible  <bruno@clisp.org>
13388
13389         passfd module, part 1, tweaks.
13390         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13391         Improve indentation. Improve AC_MSG_CHECKING messages.
13392         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13393         gl_SOCKET_FAMILIES.
13394
13395 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13396
13397         passfd module, part 1.
13398         * m4/afunix.m4: New file.
13399         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13400         sockets.
13401
13402 2011-03-08  Bruno Haible  <bruno@clisp.org>
13403
13404         regex-quote: New API.
13405         * lib/regex-quote.h: Include <stdbool.h>.
13406         (struct regex_quote_spec): New type.
13407         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13408         New declarations.
13409         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13410         'const struct regex_quote_spec *' argument.
13411         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13412         (pcre_special): New constant.
13413         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13414         New functions.
13415         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13416         'const struct regex_quote_spec *' argument.
13417         * modules/regex-quote (Depends-on): Add stdbool.
13418         * tests/test-regex-quote.c (check): Update for new API. Add test for
13419         anchored results.
13420         * NEWS: Mention the API change.
13421         Reported by Reuben Thomas and Eric Blake.
13422
13423 2011-03-06  Bruno Haible  <bruno@clisp.org>
13424
13425         regex-quote: Fix creation of POSIX extended regular expressions.
13426         * lib/regex-quote.c (ere_special): Add grouping and alternation
13427         operators.
13428
13429 2011-03-05  Bruno Haible  <bruno@clisp.org>
13430
13431         doc: Improve doc regarding autopoint vs. gnulib.
13432         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13433         disable autopoint while running autoreconf.
13434         Suggested by Ralf Wildenhues.
13435
13436 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13437
13438         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13439         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13440
13441 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13442
13443         parse-duration: remove xalloc.h dependency
13444         * lib/parse-duration.c (parse_period): handle NULL return from
13445         strdup instead of calling xstrdup().
13446         * modules/parse-duration: remove "xalloc" dependency
13447
13448 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13449
13450         bootstrap: honor m4_base when running aclocal
13451         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13452
13453 2011-03-02  Jim Meyering  <meyering@redhat.com>
13454
13455         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13456         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13457         on request from Matt Booth.
13458
13459 2011-03-01  Eric Blake  <eblake@redhat.com>
13460
13461         test-link: work on Hurd
13462         * tests/test-link.h (test_link): Hurd rejects linking directories
13463         with EISDIR instead of the POSIX-mandated EPERM.
13464
13465 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13466
13467         stdio: simplify by moving files to printf-posix, sigpipe
13468         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13469         since this symbol is needed only if printf is replaced.
13470         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13471         Require gl_ASM_SYMBOL_PREFIX.
13472         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13473         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13474         (Depends-on): Add 'raise'.
13475         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13476         * modules/stdio (Files): Remove lib/stdio-write.c,
13477         m4/asm-underscore.m4.
13478         (Depends-on): Remove 'raise'.
13479
13480         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13481         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13482         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13483         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13484
13485 2011-02-28  Bruno Haible  <bruno@clisp.org>
13486
13487         localcharset: Assume ANSI C behaviour of free().
13488         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13489         calling free().
13490         Suggested by Simon Josefsson <simon@josefsson.org>.
13491
13492 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13493             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13494             Bruno Haible  <bruno@clisp.org>  (tiny change)
13495
13496         On Cygwin, use /proc file system instead of win32 API.
13497         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13498         Win32 file names.
13499         (DllMain): Simplify by removing Cygwin specific code.
13500         (find_shared_library_fullname): Use Linux specific implementation also
13501         for Cygwin.
13502         (get_shared_library_fullname): Update accordingly.
13503         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13504         Win32 file names.
13505         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13506         Cygwin specific code.
13507
13508 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13509             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13510
13511         Fix OpenMP flag detection for various Fortran compilers.
13512         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13513         OpenMP-conditional compilation construct, to force compile
13514         failure with missing OpenMP flag.
13515         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13516
13517 2011-02-25  Eric Blake  <eblake@redhat.com>
13518
13519         strstr: expand test coverage
13520         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13521         compilation.
13522         * tests/test-memmem.c (main): Duplicate tests.
13523         * tests/test-strcasestr.c (main): Likewise.
13524         * tests/test-c-strcasestr.c (main): Likewise.
13525
13526 2011-02-25  Jim Meyering  <meyering@redhat.com>
13527
13528         maint.mk: detect missing-NL-at-EOF, too
13529         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13530         it also detects when a file lacks a newline at EOF.
13531         (require_exactly_one_NL_at_EOF_): Renamed from
13532         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13533         since people may well have .x-sc_... file names tied to the
13534         existing name.  Suggested by Eric Blake.
13535
13536 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13537
13538         dirname: move m4/dos.m4 functionality into lib/dosname.h
13539
13540         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13541         extracts symbols from it, puts them into config.h; but it's much
13542         easier to use the symbols directly.  filename.h already does this,
13543         but it disagrees with dos.m4 in some respects.  This patch
13544         introduces a different include file dosname.h that packages up
13545         dos.m4, and then later we can work on merging filename.h and
13546         dosname.h.  Applications that need only the easy-to-configure
13547         symbols should consider including dosname.h rather than dirname.h.
13548         * NEWS: Mention incompatible changes.
13549         * m4/dos.m4: Remove.
13550         * lib/dosname.h, modules/dosname: New files.
13551         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13552         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13553         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13554         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13555         Include dosname.h, not dirname.h.
13556         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13557         Include dosname.h, for definitions of symbols like ISSLASH
13558         that used to be in config.h.
13559         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13560         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13561         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13562         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13563         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13564         * modules/rmdir (Files): Likewise.
13565         * modules/stat (Files): Likewise.
13566         * modules/unlink (Files): Likewise.
13567         * modules/dirname-lgpl (Depends-on): Add dosname.
13568         * modules/lstat (Depends-on): Likewise.
13569         * modules/openat (Depends-on): Likewise.
13570         * modules/rmdir (Depends-on): Likewise.
13571         * modules/savewd (Depends-on): Likewise.
13572         * modules/stat (Depends-on): Likewise.
13573         * modules/unlink (Depends-on): Likewise.
13574         * modules/openat (Depends-on): Remove dirname-lgpl.
13575         * modules/savewd (Depends-on): Likewise.
13576         * tests/test-dirname.c: Do not use removed symbols like
13577         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13578         the remaining symbols, e.g., ISSLASH ('\\').
13579
13580 2011-02-25  Eric Blake  <eblake@redhat.com>
13581
13582         strstr: revert patches that introduced bug and pessimization
13583         * lib/str-two-way.h: Add another reference.
13584         (two_way_short_needle, two_way_long_needle): Revert changes from
13585         2011-02-24; they pessimize search speed.
13586         (critical_factorization): Partially revert changes from
13587         2010-06-22; they violate the requirement that the left half of the
13588         needle be smaller than the period of the needle.
13589
13590 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13591
13592         filenamecat: remove unnecessary dependency on dirname-lgpl
13593         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13594         is no direct dependency, just an indirect one via filenamecat-lgpl.
13595
13596         remove: remove unnecessary use of m4/dos.m4
13597         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13598         * modules/remove (FILES): Remove m4/dos.m4.
13599
13600         * lib/openat-proc.c: Don't include dirname.h; not needed.
13601
13602         backupfile: remove unnecessary use of m4/dos.m4
13603         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13604         of its symbols are used by the backupfile code.  backupfile.c does
13605         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13606         for the rare case of programs that want all their backup file
13607         names to live within 8+3 limits, and dos.m4 doesn't address that.
13608         * modules/backupfile (Files): Remove m4/dos.m4.
13609
13610 2011-02-24  Jim Meyering  <meyering@redhat.com>
13611
13612         strstr: fix a bug whereby strstr would mistakenly return NULL
13613         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13614         in period calculation.
13615         (two_way_long_needle): Likewise.
13616         The original problem was reported by Mike Stump in
13617         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13618         Ralf Wildenhues provided the short needle and haystack.
13619         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13620         Add a more involved test to trigger the bug in two_way_long_needle.
13621
13622 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13623
13624         gnulib-tool: remove use of bold display in help screen
13625         * gnulib-tool (func_usage): Do not use bold display anymore in the
13626         help screen.  That was just meant to be a temporary emphasis for a
13627         backward-incompatible change.
13628
13629 2011-02-23  Bruno Haible  <bruno@clisp.org>
13630
13631         Fix misindentation of preprocessor directives.
13632         * lib/argp-namefrob.h: Reindent preprocessor directives.
13633         * lib/getopt_int.h (struct _getopt_data): Likewise.
13634         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13635         * lib/vasnprintf.c (decode_long_double): Likewise.
13636         * tests/test-argmatch.c: Insert blank lines, for clarity.
13637         * tests/test-exclude.c: Likewise.
13638
13639 2011-02-22  Bruno Haible  <bruno@clisp.org>
13640
13641         ioctl: Fix for MacOS X in 64-bit mode.
13642         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13643         value.
13644         Suggested by Eric Blake.
13645         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13646
13647 2011-02-22  Jim Meyering  <meyering@redhat.com>
13648
13649         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13650         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13651         in lib/.
13652
13653 2011-02-22  Eric Blake  <eblake@redhat.com>
13654
13655         maint: avoid any CDPATH issue
13656         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13657
13658         maint: adjust cpp indentation for my modules, as well
13659         * Makefile (sc_cpp_indent_check): Add my name.
13660         * lib/fbufmode.c: Filter through cppi.
13661         * lib/fpurge.c: Likewise.
13662         * lib/freadable.c: Likewise.
13663         * lib/freading.c: Likewise.
13664         * lib/fwritable.c: Likewise.
13665         * lib/fwriting.c: Likewise.
13666         * lib/sigaction.c: Likewise.
13667
13668 2011-02-22  Jim Meyering  <meyering@redhat.com>
13669
13670         maint: adjust cpp indentation to reflect nesting depth
13671         I.e., in a block of code that begins with an unnested "#if",
13672         put one space between the "#" in column 1 and following token.
13673         For example,
13674         -#include <sys/vfs.h>
13675         +# include <sys/vfs.h>
13676         Do this only in .c files that are part of a module I maintain.
13677         * lib/linkat.c: Filter through cppi.
13678         * lib/nanosleep.c: Likewise.
13679         * lib/openat.c: Likewise.
13680         * lib/openat-die.c: Likewise.
13681         * lib/dup3.c: Likewise.
13682         * lib/fchownat.c: Likewise.
13683         * lib/flock.c: Likewise.
13684         * lib/fsync.c: Likewise.
13685         * lib/fts.c: Likewise.
13686         * lib/getpass.c: Likewise.
13687         * lib/gettimeofday.c: Likewise.
13688         * lib/userspec.c: Likewise.
13689         * Makefile (sc_cpp_indent_check): New rule, to check this.
13690
13691 2011-02-22  Bruno Haible  <bruno@clisp.org>
13692
13693         New module 'wctomb'.
13694         * lib/stdlib.in.h (wctomb): New declaration.
13695         * lib/wctomb.c: New file.
13696         * lib/wctomb-impl.h: New file.
13697         * m4/wctomb.m4: New file.
13698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13699         REPLACE_WCTOMB.
13700         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13701         REPLACE_WCTOMB.
13702         * modules/wctomb: New file.
13703         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13704         * doc/posix-functions/wctomb.texi: Mention the new module.
13705         * modules/wctob (Depends-on): Add wctomb.
13706
13707 2011-02-22  Bruno Haible  <bruno@clisp.org>
13708
13709         New module 'mbtowc'.
13710         * lib/stdlib.in.h (mbtowc): New declaration.
13711         * lib/mbtowc.c: New file.
13712         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13713         * m4/mbtowc.m4: New file.
13714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13715         REPLACE_MBTOWC.
13716         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13717         REPLACE_MBTOWC.
13718         * modules/mbtowc: New file.
13719         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13720         * doc/posix-functions/mbtowc.texi: Mention the new module.
13721         * modules/btowc (Depends-on): Add mbtowc.
13722
13723 2011-02-22  Bruno Haible  <bruno@clisp.org>
13724
13725         wcrtomb: Add more tests for native Windows platforms.
13726         * tests/test-wcrtomb-w32-1.sh: New file.
13727         * tests/test-wcrtomb-w32-2.sh: New file.
13728         * tests/test-wcrtomb-w32-3.sh: New file.
13729         * tests/test-wcrtomb-w32-4.sh: New file.
13730         * tests/test-wcrtomb-w32-5.sh: New file.
13731         * tests/test-wcrtomb-w32.c: New file.
13732         * modules/wcrtomb-tests (Files): Add them.
13733         (Makefile.am): Arrange to run these tests.
13734         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13735         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13736
13737 2011-02-20  Bruno Haible  <bruno@clisp.org>
13738
13739         wcrtomb: Enhance test.
13740         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13741
13742 2011-02-20  Bruno Haible  <bruno@clisp.org>
13743
13744         mbrtowc: Tiny optimization.
13745         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13746
13747 2011-02-20  Jim Meyering  <meyering@redhat.com>
13748
13749         test-exclude.c: remove unmatched #endif
13750         * tests/test-exclude.c: Remove stray #endif, left over from
13751         the change of a week ago.
13752
13753 2011-02-19  Jim Meyering  <meyering@redhat.com>
13754
13755         git-version-gen: skip "-dirty" check when appropriate
13756         * build-aux/git-version-gen: Don't run any git commands when the
13757         version string comes from .tarball-version.  Prior to this, we
13758         would run git update-index --refresh even from a just-unpacked
13759         tarball directory, and that could affect a .git/ directory in a
13760         parent of the build directory.  Reported by Mike Frysinger.
13761
13762 2011-02-19  Bruno Haible  <bruno@clisp.org>
13763
13764         unictype/property-byname: Reduce the size of the 'data' segment.
13765         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13766
13767 2011-02-19  Bruno Haible  <bruno@clisp.org>
13768
13769         unictype/scripts: Reduce the size of the 'data' segment.
13770         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13771         '%pic'.
13772         * lib/unictype/scripts_byname.gperf: Regenerated.
13773
13774 2011-02-19  Bruno Haible  <bruno@clisp.org>
13775
13776         stdint: Update documentation.
13777         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13778
13779 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13780
13781         stdint: omit redundant check for wchar.h
13782         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13783         always tests whether wchar.h exists, so remove the now-redundant test.
13784
13785 2011-02-18  Bruno Haible  <bruno@clisp.org>
13786
13787         stdint: Cut dependency to module 'wchar'.
13788         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13789         include the necessary prerequisites.
13790         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13791         * modules/stdint (Depends-on): Remove wchar.
13792         (Makefile.am): Substitute HAVE_WCHAR_H.
13793         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13794
13795 2011-02-18  Eric Blake  <eblake@redhat.com>
13796
13797         longlong: skip, rather than fail, on cross-compilation
13798         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13799         when cross-compiling; regression from 2011-02-16.
13800
13801 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13802
13803         * NEWS: Mention 2011-02-08 change to stdlib.
13804
13805 2011-02-17  Bruno Haible  <bruno@clisp.org>
13806
13807         getloadavg: Add comments about platforms.
13808         * m4/getloadavg.m4: Add comment.
13809         * lib/getloadavg.c: Likewise.
13810
13811 2011-02-17  Bruno Haible  <bruno@clisp.org>
13812
13813         getloadavg: Fix link error on Solaris 2.6.
13814         * modules/getloadavg (Link): New section.
13815         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13816         linking test-getloadavg.
13817         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13818         getloadavg.
13819
13820 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13823         It was 'int', but this doesn't match the IRIX 6.5 manual.
13824         Suggested by Bruno Haible in
13825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13826
13827 2011-02-17  Bruno Haible  <bruno@clisp.org>
13828
13829         havelib: Fix comments.
13830         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13831         change.
13832
13833 2011-02-17  Bruno Haible  <bruno@clisp.org>
13834
13835         havelib: Update config.rpath.
13836         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13837
13838 2011-02-17  Bruno Haible  <bruno@clisp.org>
13839
13840         getloadavg test: Add some plausibility checks.
13841         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13842         is improbable.
13843
13844 2011-02-16  Eric Blake  <eblake@redhat.com>
13845
13846         maintainer-makefile: make syntax-check a no-op from tarballs
13847         * top/maint.mk (no-vc-detected): New rule.
13848         (local-checks-available): Use it to avoid hanging if someone tries
13849         'make syntax-check' from a tarball.  Also append to any non-syntax
13850         checks already defined in cfg.mk.
13851
13852 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         longlong: tune, particularly for common case of c99
13855
13856         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13857         or running anything if c99, or if unsigned long long int does not
13858         work.  In either case, we know the answer without further tests.
13859         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13860         it at most once, and use its results for both long long int and
13861         unsigned long long int.  This is more likely to be efficient in
13862         the common case where the program wants to check for both long
13863         long int and unsigned long long int.
13864         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13865         since the answer is already known.
13866
13867 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13868
13869         getloadavg: set errno
13870         * lib/getloadavg.c: Set errno when returning -1.  If no other
13871         error number looks appropriate, set it to ENOSYS if the getloadavg
13872         looks like it can't possibly ever work, ENOTSUP otherwise.
13873         Suggested by Bruno Haible in
13874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13875
13876         getloadavg: trim unused parts and speed up 'configure'
13877         * NEWS: Document this.
13878         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13879         always compiled if getloadavg is absent.
13880         Move test code to ...
13881         * tests/test-getloadavg.c: New file, containing previous
13882         contents of test from lib/getloadavg.c.  It also contains
13883         suggestions by Bruno Haible in
13884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13885         * modules/getloadavg-tests: New file.
13886         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13887         Do tests in the same order as they're needed for getloadavg.c.
13888         Omit setgid-related tests that generate symbols KMEM_GROUP,
13889         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13890         Do only the tests that are needed to see whether the system has
13891         getloadavg, moving the other tests into ...
13892         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13893         NLIST_NAME_UNION; nobody should be using it.  Do not define
13894         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13895         relevant, as the user of this module shouldn't care how getloadavg
13896         is implemented.
13897
13898         getloadavg: omit unused var
13899         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13900
13901 2011-02-15  Jim Meyering  <meyering@redhat.com>
13902
13903         doc: update users.txt
13904         * users.txt: Update iwhd's URL.
13905
13906 2011-02-13  Bruno Haible  <bruno@clisp.org>
13907
13908         Consistent macro naming for macros that use GCC __attribute__.
13909         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13910         _ATTRIBUTE_NONNULL_.
13911         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13912         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13913         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13914         ATTRIBUTE_DEPRECATED.
13915         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13916         ATTRIBUTE_NORETURN.
13917         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13918         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13919         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13920         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13921         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13922         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13923         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13924         ATTRIBUTE_SENTINEL.
13925         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13926         ATTRIBUTE_RETURN_CHECK.
13927         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13928         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13929         ATTRIBUTE_NORETURN.
13930         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13931         Reported by Paul Eggert.
13932
13933 2011-02-13  Bruno Haible  <bruno@clisp.org>
13934
13935         Don't interfere with a program's definition of __attribute__.
13936         * lib/argp.h (__attribute__): Remove definition.
13937         (_GL_ATTRIBUTE_FORMAT): New macro.
13938         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13939         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13940         (_GL_ATTRIBUTE_FORMAT): New macro.
13941         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13942         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13943         GCC 3 or newer.
13944         * lib/error.h (__attribute__): Remove definition.
13945         (_GL_ATTRIBUTE_FORMAT): New macro.
13946         (error, error_at_line): Use it.
13947         * lib/hash.h (__attribute__): Remove definition.
13948         (ATTRIBUTE_WUR): Update definition. Define always.
13949         * lib/openat.h (__attribute__): Remove definition.
13950         (ATTRIBUTE_NORETURN): Update definition. Define always.
13951         * lib/sigpipe-die.h (__attribute__): Remove definition.
13952         (ATTRIBUTE_NORETURN): Update definition. Define always.
13953         * lib/vasnprintf.h (__attribute__): Remove definition.
13954         (_GL_ATTRIBUTE_FORMAT): New macro.
13955         (asnprintf, vasnprintf): Use it.
13956         * lib/xalloc.h (__attribute__): Remove definition.
13957         (ATTRIBUTE_NORETURN): Update definition. Define always.
13958         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13959         * lib/xmemdup0.h (__attribute__): Remove definition.
13960         (ATTRIBUTE_NORETURN): Update definition. Define always.
13961         * lib/xprintf.h (__attribute__): Remove definition.
13962         (_GL_ATTRIBUTE_FORMAT): New macro.
13963         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13964         * lib/xstrtol.h (__attribute__): Remove definition.
13965         (ATTRIBUTE_NORETURN): Update definition. Define always.
13966         * lib/xvasprintf.h (__attribute__): Remove definition.
13967         (_GL_ATTRIBUTE_FORMAT): New macro.
13968         (xasprintf, xvasprintf): Use it.
13969         * tests/test-argmatch.c (__attribute__): Remove definition.
13970         (ATTRIBUTE_NORETURN): Update definition. Define always.
13971         * tests/test-exclude.c (__attribute__): Remove definition.
13972         (ATTRIBUTE_NORETURN): Update definition. Define always.
13973         Reported by Paul Eggert.
13974
13975 2011-02-13  Bruno Haible  <bruno@clisp.org>
13976
13977         mbrtowc: Add more tests for native Windows platforms.
13978         * tests/test-mbrtowc-w32-1.sh: New file.
13979         * tests/test-mbrtowc-w32-2.sh: New file.
13980         * tests/test-mbrtowc-w32-3.sh: New file.
13981         * tests/test-mbrtowc-w32-4.sh: New file.
13982         * tests/test-mbrtowc-w32-5.sh: New file.
13983         * tests/test-mbrtowc-w32.c: New file.
13984         * modules/mbrtowc-tests (Files): Add them.
13985         (Makefile.am): Arrange to run these tests.
13986         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13987         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13988
13989 2011-02-13  Bruno Haible  <bruno@clisp.org>
13990
13991         mbrtowc: Work around native Windows bug.
13992         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13993         guess when no suitable locale for testing was found.
13994         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13995
13996 2011-02-13  Bruno Haible  <bruno@clisp.org>
13997
13998         mbsinit: Work around mingw bug.
13999         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14000         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14001         Windows.
14002         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14003
14004 2011-02-13  Bruno Haible  <bruno@clisp.org>
14005
14006         mbsinit: Don't crash for a NULL argument.
14007         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14008         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14009
14010 2011-02-13  Bruno Haible  <bruno@clisp.org>
14011
14012         Don't interfere with a program's definition of __attribute__.
14013         * lib/stdio.in.h (__attribute__): Remove definition.
14014         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14015         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14016         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14017         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14018         * lib/string.in.h (__attribute__): Remove definition.
14019         Reported by Paul Eggert.
14020
14021 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14022
14023         stdlib: don't get in the way of non-GCC __attribute__
14024         See thread starting at
14025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14026         Revert previous stdlib change, installing the following instead:
14027         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14028         to get in the way of a non-GCC compiler that supports __attribute__.
14029         (_GL_ATTRIBUTE_RETURN): New macro.
14030         (_Exit): Use it instead of __attribute__.
14031
14032 2011-02-12  Bruno Haible  <bruno@clisp.org>
14033
14034         quotearg test: Avoid test failure on mingw.
14035         * tests/test-quotearg.sh: Convert the locale identifier from native
14036         Windows syntax to Unix syntax.
14037
14038 2011-02-12  Bruno Haible  <bruno@clisp.org>
14039
14040         setlocale: Prefer gnulib's override over libintl's override.
14041         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14042         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14043         GNULIB_defined_setlocale is set.
14044
14045 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14046
14047         stdlib: support non-GCC __attribute__
14048
14049         Fix a serious and tricky problem encountered when attempting to
14050         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14051         5.5, but it crashed due to memory corruption on Solaris 10 with
14052         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14053         bits that are otherwise zero.  This tagging is optional inside
14054         Emacs but is preferred and is used when __attribute__ ((__aligned
14055         (8))) works, as it does with both recent-enough GCC and with Sun C
14056         5.11.  However, Sun C 5.11 is not GCC and does not #define
14057         __GNUC__ and __GNUC_MINOR__.
14058
14059         When I added the getloadavg module to Emacs, it brought in
14060         stdlib.in.h, which contained this fragment:
14061
14062            #ifndef __attribute__
14063            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14064            #  define __attribute__(Spec)   /* empty */
14065            # endif
14066            #endif
14067
14068         When files that include <stdlib.h> were compiled with Sun C 5.11,
14069         the above code disabled __attribute__ ((__aligned (8))), which
14070         caused variables to not be properly aligned, which eventually led
14071         to the pointer corruption mentioned above.  (This was a bit hard
14072         to diagnose, unfortunately.)
14073
14074         Several "#define __attribute__(X) /* empty */" code snippets need
14075         to be eradicated from Gnulib to work with non-GCC compilers that
14076         support __attribute__.  The Autoconf way to do this is to test for
14077         each kind of attribute that we want support for, and selectively
14078         enable that in source code.
14079
14080         Fix this problem just for stdlib.h, by adding a test for the
14081         __noreturn__ attribute, and change stdlib.in.h to use that test
14082         when needed.  This technique can be easily generalized to the
14083         other *.in.h files and attributes, and a similar technique can be
14084         used for *.h and *.c files.  This patch is enough to solve the
14085         problem for Emacs + getloadavg, and I thought I'd publish it for
14086         feedback before undertaking further, similar fixes in other
14087         modules.
14088
14089         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14090         because it's not needed for stdlib.h.  It merely substitutes the
14091         value directly into stdlib.h.  We may well need to #define it, or
14092         similar symbols, for other modules, but it's nice to also have an
14093         option to not #define it for applications like Emacs that do not
14094         need it.
14095
14096         * lib/stdlib.in.h (__attribute__): Do not #define.
14097         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14098         be defined only if the _Exit module is also used.
14099         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14101         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14102         platforms.
14103         * modules/_Exit (Files): Add m4/attribute.m4.
14104         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14105         * m4/attribute.m4: New file.
14106
14107 2011-02-12  Bruno Haible  <bruno@clisp.org>
14108
14109         wcsrtombs: Work around bug on native Windows.
14110         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14111         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14112         instead of len.
14113         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14114
14115 2011-02-12  Bruno Haible  <bruno@clisp.org>
14116
14117         mbsrtowcs: Work around bug on native Windows.
14118         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14119         against mingw bug.
14120         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14121
14122 2011-02-12  Bruno Haible  <bruno@clisp.org>
14123
14124         Avoid setlocale bugs in tests.
14125         * modules/btowc (Dependencies): Add setlocale.
14126         * modules/c-strcase (Dependencies): Likewise.
14127         * modules/mbmemcasecmp (Dependencies): Likewise.
14128         * modules/mbmemcasecoll (Dependencies): Likewise.
14129         * modules/mbrtowc (Dependencies): Likewise.
14130         * modules/mbscasecmp (Dependencies): Likewise.
14131         * modules/mbscasestr (Dependencies): Likewise.
14132         * modules/mbschr (Dependencies): Likewise.
14133         * modules/mbscspn (Dependencies): Likewise.
14134         * modules/mbsinit (Dependencies): Likewise.
14135         * modules/mbsncasecmp (Dependencies): Likewise.
14136         * modules/mbsnrtowcs (Dependencies): Likewise.
14137         * modules/mbspbrk (Dependencies): Likewise.
14138         * modules/mbspcasecmp (Dependencies): Likewise.
14139         * modules/mbsrchr (Dependencies): Likewise.
14140         * modules/mbsrtowcs (Dependencies): Likewise.
14141         * modules/mbsspn (Dependencies): Likewise.
14142         * modules/mbsstr (Dependencies): Likewise.
14143         * modules/nl_langinfo (Dependencies): Likewise.
14144         * modules/quotearg (Dependencies): Likewise.
14145         * modules/unicase/locale-language (Dependencies): Likewise.
14146         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14147         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14148         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14149         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14150         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14151         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14152         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14153         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14154         * modules/vasnprintf-posix (Dependencies): Likewise.
14155         * modules/wcrtomb (Dependencies): Likewise.
14156         * modules/wcsnrtombs (Dependencies): Likewise.
14157         * modules/wcsrtombs (Dependencies): Likewise.
14158
14159 2011-02-12  Bruno Haible  <bruno@clisp.org>
14160
14161         setlocale: Workaround native Windows bug.
14162         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14163         succeeds but sets LC_CTYPE to "C", report a failure.
14164         * tests/test-setlocale2.sh: New file.
14165         * tests/test-setlocale2.c: New file.
14166         * modules/setlocale-tests (Files): Add the new files.
14167         (Makefile.am): Enable test-setlocale2.sh test.
14168         * doc/posix-functions/setlocale.texi: Mention workaround.
14169
14170 2011-02-11  Bruno Haible  <bruno@clisp.org>
14171
14172         Tests for module 'setlocale'.
14173         * modules/setlocale-tests: New file.
14174         * tests/test-setlocale1.sh: New file.
14175         * tests/test-setlocale1.c: New file.
14176
14177         New module 'setlocale'.
14178         * lib/locale.in.h (setlocale): New declaration.
14179         * lib/setlocale.c: New file, based on
14180         gettext/gettext-runtime/intl/setlocale.c.
14181         * m4/setlocale.m4: New file.
14182         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14183         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14184         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14185         REPLACE_SETLOCALE.
14186         * modules/setlocale: New file.
14187         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14188         * doc/posix-functions/setlocale.texi: Mention the new module.
14189
14190 2011-02-11  Bruno Haible  <bruno@clisp.org>
14191
14192         Prepare for locale dependent tests on mingw.
14193         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14194         because it has the wrong locale encoding.
14195         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14196         French_France.1252 instead of "fr".
14197         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14198         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14199         because it has the wrong locale encoding.
14200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14201         native Windows, try Turkish_Turkey.65001.
14202         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14203         Chinese_China.54936.
14204
14205         Prepare for locale dependent tests on mingw.
14206         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14207         differently.
14208         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14209         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14210         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14211         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14212
14213 2011-02-11  Eric Blake  <eblake@redhat.com>
14214
14215         strptime: avoid compiler warnings
14216         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14217         compiler warnings about dead code.
14218         Reported by Daniel P. Berrange.
14219
14220 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14221
14222         doc: update users.txt
14223         * users.txt: Add rcs.
14224
14225 2011-02-10  John W. Eaton  <jwe@gnu.org>
14226
14227         doc: update users.txt
14228         * users.txt: Add octave.
14229
14230 2011-02-10  Jim Meyering  <meyering@redhat.com>
14231
14232         doc: update users.txt
14233         * users.txt: Add iwhd.
14234
14235 2011-02-09  Bruno Haible  <bruno@clisp.org>
14236
14237         gnulib-tool: Make copyright notice adjustment more robust.
14238         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14239         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14240         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14241         License".
14242         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14243
14244 2011-02-06  Bruno Haible  <bruno@clisp.org>
14245
14246         New module 'towctrans'.
14247         * modules/towctrans: New file.
14248         * lib/wctype.in.h (towctrans): New declaration.
14249         * lib/towctrans.c: New file.
14250         * lib/towctrans-impl.h: New file.
14251         * m4/towctrans.m4: New file.
14252         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14253         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14254         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14255         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14256         * doc/posix-functions/towctrans.texi: Mention the new module.
14257
14258 2011-02-06  Bruno Haible  <bruno@clisp.org>
14259
14260         New module 'wctrans'.
14261         * modules/wctrans: New file.
14262         * lib/wctype.in.h (wctrans): New declaration.
14263         * lib/wctrans.c: New file.
14264         * lib/wctrans-impl.h: New file.
14265         * m4/wctrans.m4: New file.
14266         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14267         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14268         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14269         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14270         * doc/posix-functions/wctrans.texi: Mention the new module.
14271
14272 2011-02-06  Bruno Haible  <bruno@clisp.org>
14273
14274         New module 'iswctype'.
14275         * modules/iswctype: New file.
14276         * lib/wctype.in.h (iswctype): New declaration.
14277         * lib/iswctype.c: New file.
14278         * lib/iswctype-impl.h: New file.
14279         * m4/iswctype.m4: New file.
14280         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14281         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14282         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14283         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14284         * doc/posix-functions/iswctype.texi: Mention the new module and the
14285         HP-UX 11.00 problem.
14286
14287 2011-02-06  Bruno Haible  <bruno@clisp.org>
14288
14289         New module 'wctype'.
14290         * modules/wctype: Change to represent the wctype() substitute.
14291         * lib/wctype.in.h (wctype): New declaration.
14292         * lib/wctype.c: New file.
14293         * lib/wctype-impl.h: New file.
14294         * m4/wctype.m4: New file.
14295         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14296         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14297         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14298         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14299         * doc/posix-functions/wctype.texi: Mention the new module and the
14300         HP-UX 11.00 problem.
14301
14302 2011-02-06  Bruno Haible  <bruno@clisp.org>
14303
14304         wctype-h: Ensure wctype_t and wctrans_t are defined.
14305         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14306         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14307         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14308         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14309         HAVE_WCTRANS_T.
14310         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14311
14312 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14313
14314         flock: fix license typo
14315
14316         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14317         omitted.
14318
14319 2011-02-08  Bruno Haible  <bruno@clisp.org>
14320
14321         Split large sed scripts, for HP-UX sed.
14322         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14323         to avoid HP-UX limit of 99 commands, in the near future.
14324         * modules/stdlib (Makefile.am): Likewise.
14325         * modules/unistd (Makefile.am): Likewise.
14326         * modules/wchar (Makefile.am): Likewise.
14327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14328         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14329         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14330
14331 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14332             Bruno Haible  <bruno@clisp.org>
14333
14334         stdlib: improve random_r modularization
14335         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14336         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14337         you also need the random_r module to get this material right.
14338         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14339         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14340         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14341
14342 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14343
14344         stdlib: don't depend on stdint
14345         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14346         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14347         be independent of whether stdint.h is needed.
14348         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14349         here, instead of ...
14350         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14351         struct random_data should be using the random_r module, not just
14352         the stdlib module (which wouldn't make sense: what package needs
14353         just struct random_data without also needing random_r?).
14354         * modules/stdlib (Depends-on): Remove stdint.
14355
14356         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14357         See the thread rooted at
14358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14359         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14360         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14361         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14362         __VMS)); previously it was always included (via fcntl--.h).
14363         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14364         hand; this is good enough for load averages.  Also, do not use
14365         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14366         flags directly if available and don't bother otherwise.  (Packages
14367         that need the extra reliability should use the modules that define
14368         these flags on older platforms that lack them.)
14369         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14370         fcntl-safer.
14371
14372 2011-02-08  Jim Meyering  <meyering@redhat.com>
14373
14374         di-set.h, ino-map.h: add multiple-inclusion guard
14375         Technically, the guard is required only for ino-map.h, due to its
14376         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14377         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14378         * lib/ino-map.h: Likewise.
14379
14380 2011-02-06  Bruno Haible  <bruno@clisp.org>
14381
14382         iswblank: Ensure declaration on glibc systems.
14383         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14384         * modules/iswblank (Dependencies): Add 'extensions'.
14385         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14386
14387 2011-02-06  Bruno Haible  <bruno@clisp.org>
14388
14389         New module 'iswblank'.
14390         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14391         * modules/iswblank: New file.
14392         * modules/wctype-h (Files): Remove lib/iswblank.c.
14393         (Makefile.am): Substitute GNULIB_ISWBLANK.
14394         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14395         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14396         (gl_WCTYPE_H_DEFAULTS): New macro.
14397         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14398         * modules/iswblank-tests: New file.
14399         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14400         * tests/test-wctype-h.c (main): Remove iswblank tests.
14401         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14402         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14403         of 'wctype-h'.
14404         * NEWS: Mention the change.
14405         * modules/mbchar (Depends-on): Add iswblank.
14406
14407 2011-02-08  Bruno Haible  <bruno@clisp.org>
14408
14409         di-set tests: Refactor.
14410         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14411         unnecessary includes.
14412         (ASSERT): Remove macro.
14413         (main): Make C90 compliant by avoiding variable declaration after
14414         statement.
14415         * modules/di-set-tests (Files): Add tests/macros.h.
14416
14417 2011-02-08  Bruno Haible  <bruno@clisp.org>
14418
14419         ino-map tests: Refactor.
14420         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14421         unnecessary includes.
14422         (ASSERT): Remove macro.
14423         (main): Make C90 compliant by avoiding variable declaration after
14424         statement.
14425         * modules/ino-map-tests (Files): Add tests/macros.h.
14426
14427 2011-02-08  Jim Meyering  <meyering@redhat.com>
14428
14429         di-set: add "const" to a cast
14430         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14431         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14432
14433 2011-02-06  Bruno Haible  <bruno@clisp.org>
14434
14435         Rename module 'wctype' to 'wctype-h'.
14436         * modules/wctype-h: Renamed from modules/wctype.
14437         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14438         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14439         (Files, Depends-on, Makefile.am): Update.
14440         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14441         (Files, Makefile.am): Update.
14442         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14443         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14444         * doc/posix-headers/wctype.texi: Update.
14445         * doc/posix-functions/iswalnum.texi: Update.
14446         * doc/posix-functions/iswalpha.texi: Update.
14447         * doc/posix-functions/iswblank.texi: Update.
14448         * doc/posix-functions/iswcntrl.texi: Update.
14449         * doc/posix-functions/iswdigit.texi: Update.
14450         * doc/posix-functions/iswgraph.texi: Update.
14451         * doc/posix-functions/iswlower.texi: Update.
14452         * doc/posix-functions/iswprint.texi: Update.
14453         * doc/posix-functions/iswpunct.texi: Update.
14454         * doc/posix-functions/iswspace.texi: Update.
14455         * doc/posix-functions/iswupper.texi: Update.
14456         * doc/posix-functions/iswxdigit.texi: Update.
14457         * doc/posix-functions/towlower.texi: Update.
14458         * doc/posix-functions/towupper.texi: Update.
14459         * NEWS: Mention the change.
14460         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14461         * modules/mbchar (Dependencies): Likewise.
14462         * modules/mbswidth (Dependencies): Likewise.
14463         * modules/quotearg (Dependencies): Likewise.
14464         * modules/regex (Dependencies): Likewise.
14465         * modules/wcscasecmp (Dependencies): Likewise.
14466         * modules/wcsncasecmp (Dependencies): Likewise.
14467         * modules/wcwidth (Dependencies): Likewise.
14468
14469 2011-02-06  Bruno Haible  <bruno@clisp.org>
14470
14471         New module 'wcswidth'.
14472         * modules/wcswidth: New file.
14473         * lib/wchar.in.h (wcswidth): New declaration.
14474         * lib/wcswidth.c: New file.
14475         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14476         * m4/wcswidth.m4: New file.
14477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14479         REPLACE_WCSWIDTH.
14480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14481         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14482         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14483         * doc/posix-functions/wcswidth.texi: Mention the new module.
14484
14485 2011-02-06  Bruno Haible  <bruno@clisp.org>
14486
14487         New module 'wcstok'.
14488         * modules/wcstok: New file.
14489         * lib/wchar.in.h (wcstok): New declaration.
14490         * lib/wcstok.c: New file.
14491         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14492         * m4/wcstok.m4: New file.
14493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14496         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14497         * doc/posix-functions/wcstok.texi: Mention the new module.
14498
14499 2011-02-06  Bruno Haible  <bruno@clisp.org>
14500
14501         New module 'wcsstr'.
14502         * modules/wcsstr: New file.
14503         * lib/wchar.in.h (wcsstr): New declaration.
14504         * lib/wcsstr.c: New file.
14505         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14506         * m4/wcsstr.m4: New file.
14507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14510         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14511         * doc/posix-functions/wcsstr.texi: Mention the new module.
14512
14513 2011-02-06  Bruno Haible  <bruno@clisp.org>
14514
14515         New module 'wcspbrk'.
14516         * modules/wcspbrk: New file.
14517         * lib/wchar.in.h (wcspbrk): New declaration.
14518         * lib/wcspbrk.c: New file.
14519         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14520         * m4/wcspbrk.m4: New file.
14521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14524         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14525         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14526
14527 2011-02-06  Bruno Haible  <bruno@clisp.org>
14528
14529         New module 'wcsspn'.
14530         * modules/wcsspn: New file.
14531         * lib/wchar.in.h (wcsspn): New declaration.
14532         * lib/wcsspn.c: New file.
14533         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14534         * m4/wcsspn.m4: New file.
14535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14538         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14539         * doc/posix-functions/wcsspn.texi: Mention the new module.
14540
14541 2011-02-06  Bruno Haible  <bruno@clisp.org>
14542
14543         New module 'wcscspn'.
14544         * modules/wcscspn: New file.
14545         * lib/wchar.in.h (wcscspn): New declaration.
14546         * lib/wcscspn.c: New file.
14547         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14548         * m4/wcscspn.m4: New file.
14549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14552         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14553         * doc/posix-functions/wcscspn.texi: Mention the new module.
14554
14555 2011-02-06  Bruno Haible  <bruno@clisp.org>
14556
14557         New module 'wcsrchr'.
14558         * modules/wcsrchr: New file.
14559         * lib/wchar.in.h (wcsrchr): New declaration.
14560         * lib/wcsrchr.c: New file.
14561         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14562         * m4/wcsrchr.m4: New file.
14563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14566         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14567         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14568
14569 2011-02-06  Bruno Haible  <bruno@clisp.org>
14570
14571         New module 'wcschr'.
14572         * modules/wcschr: New file.
14573         * lib/wchar.in.h (wcschr): New declaration.
14574         * lib/wcschr.c: New file.
14575         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14576         * m4/wcschr.m4: New file.
14577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14580         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14581         * doc/posix-functions/wcschr.texi: Mention the new module.
14582
14583 2011-02-06  Bruno Haible  <bruno@clisp.org>
14584
14585         New module 'wcsdup'.
14586         * modules/wcsdup: New file.
14587         * lib/wchar.in.h (wcsdup): New declaration.
14588         * lib/wcsdup.c: New file.
14589         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14590         * m4/wcsdup.m4: New file.
14591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14594         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14595         * doc/posix-functions/wcsdup.texi: Mention the new module.
14596
14597 2011-02-06  Bruno Haible  <bruno@clisp.org>
14598
14599         New module 'wcsxfrm'.
14600         * modules/wcsxfrm: New file.
14601         * lib/wchar.in.h (wcsxfrm): New declaration.
14602         * lib/wcsxfrm.c: New file.
14603         * lib/wcsxfrm-impl.h: New file.
14604         * m4/wcsxfrm.m4: New file.
14605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14608         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14609         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14610
14611 2011-02-06  Bruno Haible  <bruno@clisp.org>
14612
14613         New module 'wcscoll'.
14614         * modules/wcscoll: New file.
14615         * lib/wchar.in.h (wcscoll): New declaration.
14616         * lib/wcscoll.c: New file.
14617         * lib/wcscoll-impl.h: New file.
14618         * m4/wcscoll.m4: New file.
14619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14622         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14623         * doc/posix-functions/wcscoll.texi: Mention the new module.
14624
14625 2011-02-06  Bruno Haible  <bruno@clisp.org>
14626
14627         New module 'wcsncasecmp'.
14628         * modules/wcsncasecmp: New file.
14629         * lib/wchar.in.h (wcsncasecmp): New declaration.
14630         * lib/wcsncasecmp.c: New file.
14631         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14632         * m4/wcsncasecmp.m4: New file.
14633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14636         HAVE_WCSNCASECMP.
14637         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14638         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14639
14640 2011-02-06  Bruno Haible  <bruno@clisp.org>
14641
14642         New module 'wcscasecmp'.
14643         * modules/wcscasecmp: New file.
14644         * lib/wchar.in.h (wcscasecmp): New declaration.
14645         * lib/wcscasecmp.c: New file.
14646         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14647         * m4/wcscasecmp.m4: New file.
14648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14651         HAVE_WCSCASECMP.
14652         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14653         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14654
14655 2011-02-05  Bruno Haible  <bruno@clisp.org>
14656
14657         New module 'wcsncmp'.
14658         * modules/wcsncmp: New file.
14659         * lib/wchar.in.h (wcsncmp): New declaration.
14660         * lib/wcsncmp.c: New file.
14661         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14662         * m4/wcsncmp.m4: New file.
14663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14666         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14667         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14668
14669 2011-02-05  Bruno Haible  <bruno@clisp.org>
14670
14671         New module 'wcscmp'.
14672         * modules/wcscmp: New file.
14673         * lib/wchar.in.h (wcscmp): New declaration.
14674         * lib/wcscmp.c: New file.
14675         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14676         * m4/wcscmp.m4: New file.
14677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14680         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14681         * doc/posix-functions/wcscmp.texi: Mention the new module.
14682
14683 2011-02-05  Bruno Haible  <bruno@clisp.org>
14684
14685         New module 'wcsncat'.
14686         * modules/wcsncat: New file.
14687         * lib/wchar.in.h (wcsncat): New declaration.
14688         * lib/wcsncat.c: New file.
14689         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14690         * m4/wcsncat.m4: New file.
14691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14694         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14695         * doc/posix-functions/wcsncat.texi: Mention the new module.
14696
14697 2011-02-05  Bruno Haible  <bruno@clisp.org>
14698
14699         New module 'wcscat'.
14700         * modules/wcscat: New file.
14701         * lib/wchar.in.h (wcscat): New declaration.
14702         * lib/wcscat.c: New file.
14703         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14704         * m4/wcscat.m4: New file.
14705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14708         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14709         * doc/posix-functions/wcscat.texi: Mention the new module.
14710
14711 2011-02-05  Bruno Haible  <bruno@clisp.org>
14712
14713         New module 'wcpncpy'.
14714         * modules/wcpncpy: New file.
14715         * lib/wchar.in.h (wcpncpy): New declaration.
14716         * lib/wcpncpy.c: New file.
14717         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14718         * m4/wcpncpy.m4: New file.
14719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14721         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14722         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14723         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14724
14725 2011-02-05  Bruno Haible  <bruno@clisp.org>
14726
14727         New module 'wcsncpy'.
14728         * modules/wcsncpy: New file.
14729         * lib/wchar.in.h (wcsncpy): New declaration.
14730         * lib/wcsncpy.c: New file.
14731         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14732         * m4/wcsncpy.m4: New file.
14733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14736         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14737         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14738
14739 2011-02-05  Bruno Haible  <bruno@clisp.org>
14740
14741         New module 'wcpcpy'.
14742         * modules/wcpcpy: New file.
14743         * lib/wchar.in.h (wcpcpy): New declaration.
14744         * lib/wcpcpy.c: New file.
14745         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14746         * m4/wcpcpy.m4: New file.
14747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14749         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14750         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14751         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14752
14753 2011-02-05  Bruno Haible  <bruno@clisp.org>
14754
14755         New module 'wcscpy'.
14756         * modules/wcscpy: New file.
14757         * lib/wchar.in.h (wcscpy): New declaration.
14758         * lib/wcscpy.c: New file.
14759         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14760         * m4/wcscpy.m4: New file.
14761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14764         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14765         * doc/posix-functions/wcscpy.texi: Mention the new module.
14766
14767 2011-02-05  Bruno Haible  <bruno@clisp.org>
14768
14769         New module 'wcsnlen'.
14770         * modules/wcsnlen: New file.
14771         * lib/wchar.in.h (wcsnlen): New declaration.
14772         * lib/wcsnlen.c: New file.
14773         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14774         * m4/wcsnlen.m4: New file.
14775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14778         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14779         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14780
14781 2011-02-05  Bruno Haible  <bruno@clisp.org>
14782
14783         New module 'wcslen'.
14784         * modules/wcslen: New file.
14785         * lib/wchar.in.h (wcslen): New declaration.
14786         * lib/wcslen.c: New file.
14787         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14788         * m4/wcslen.m4: New file.
14789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14792         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14793         * doc/posix-functions/wcslen.texi: Mention the new module.
14794
14795 2011-02-05  Bruno Haible  <bruno@clisp.org>
14796
14797         New module 'wmemset'.
14798         * modules/wmemset: New file.
14799         * lib/wchar.in.h (wmemset): New declaration.
14800         * lib/wmemset.c: New file.
14801         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14802         * m4/wmemset.m4: New file.
14803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14805         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14806         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14807         * doc/posix-functions/wmemset.texi: Mention the new module.
14808
14809 2011-02-05  Bruno Haible  <bruno@clisp.org>
14810
14811         New module 'wmemmove'.
14812         * modules/wmemmove: New file.
14813         * lib/wchar.in.h (wmemmove): New declaration.
14814         * lib/wmemmove.c: New file.
14815         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14816         * m4/wmemmove.m4: New file.
14817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14819         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14820         HAVE_WMEMMOVE.
14821         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14822         * doc/posix-functions/wmemmove.texi: Mention the new module.
14823
14824 2011-02-05  Bruno Haible  <bruno@clisp.org>
14825
14826         New module 'wmemcpy'.
14827         * modules/wmemcpy: New file.
14828         * lib/wchar.in.h (wmemcpy): New declaration.
14829         * lib/wmemcpy.c: New file.
14830         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14831         * m4/wmemcpy.m4: New file.
14832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14834         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14835         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14836         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14837
14838 2011-02-05  Bruno Haible  <bruno@clisp.org>
14839
14840         New module 'wmemcmp'.
14841         * modules/wmemcmp: New file.
14842         * lib/wchar.in.h (wmemcmp): New declaration.
14843         * lib/wmemcmp.c: New file.
14844         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14845         * m4/wmemcmp.m4: New file.
14846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14848         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14849         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14850         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14851
14852 2011-02-07  Jim Meyering  <meyering@redhat.com>
14853
14854         di-set, ino-map: new modules, from coreutils
14855         * lib/di-set.c: New file.
14856         * lib/di-set.h: Likewise.
14857         * lib/ino-map.c: Likewise.
14858         * lib/ino-map.h: Likewise.
14859         * modules/di-set: Likewise.
14860         * modules/di-set-tests: Likewise.
14861         * modules/ino-map: Likewise.
14862         * modules/ino-map-tests: Likewise.
14863         * tests/test-di-set.c: Likewise.
14864         * tests/test-ino-map.c: Likewise.
14865
14866 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14867
14868         getloadavg: merge minor changes from Emacs
14869
14870         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14871         (getloadavg): Use memset, not bzero.
14872
14873         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14874         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14875         clash (bug#86).
14876
14877 2010-11-14  Bruno Haible  <bruno@clisp.org>
14878
14879         Allow multiple gnulib generated replacements to coexist.
14880         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14881         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14882         * lib/langinfo.in.h (nl_item): Likewise.
14883         * lib/math.in.h (_NaN, NAN): Likewise.
14884         * lib/netdb.in.h (struct addrinfo): Likewise.
14885         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14886         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14887         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14888         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14889         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14890         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14891         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14892         pthread_mutexattr_init, pthread_mutexattr_settype,
14893         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14894         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14895         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14896         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14897         * lib/sched.in.h (struct sched_param): Likewise.
14898         * lib/se-selinux.in.h (security_class_t, security_context_t,
14899         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14900         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14901         lsetfilecon, fsetfilecon, security_check_context,
14902         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14903         Likewise.
14904         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14905         Likewise.
14906         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14907         _gl_function_taking_int_returning_void_t, union sigval,
14908         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14909         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14910         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14911         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14912         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14913         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14914         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14915         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14916         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14917         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14918         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14919         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14920         socklen_t, rpl_fd_isset): Likewise.
14921         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14922         * lib/sys_time.in.h (struct timeval): Likewise.
14923         * lib/sys_times.in.h (struct tms): Likewise.
14924         * lib/sys_utsname.in.h (struct utsname):
14925         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14926         * lib/unistd.in.h (getpagesize): Likewise.
14927         * lib/wchar.in.h (mbstate_t): Likewise.
14928         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14929         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14930         towlower, towupper): Likewise.
14931         Reported by Sam Steingold <sds@gnu.org>.
14932
14933 2011-02-05  Eric Blake  <eblake@redhat.com>
14934
14935         unsetenv: work around Haiku issues
14936         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14937         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14938
14939 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14940
14941         libposix: avoid calling error() within libposix
14942         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14943         is defined.
14944
14945 2011-02-05  Eric Blake  <eblake@redhat.com>
14946
14947         strerror_r-posix: port to cygwin
14948         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14949         implementation.
14950         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14951         * tests/test-strerror_r.c (main): Fix test.
14952         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14953         issue.
14954
14955 2011-02-05  Bruno Haible  <bruno@clisp.org>
14956
14957         New module 'wmemchr'.
14958         * modules/wmemchr: New file.
14959         * lib/wchar.in.h (wmemchr): New declaration.
14960         * lib/wmemchr.c: New file.
14961         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14962         * m4/wmemchr.m4: New file.
14963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14965         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14966         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14967         * doc/posix-functions/wmemchr.texi: Mention the new module.
14968
14969 2011-02-04  Eric Blake  <eblake@redhat.com>
14970
14971         fdopendir: detect FreeBSD bug
14972         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14973         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14974
14975 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14976
14977         stdbool: do not define HAVE_STDBOOL_H
14978         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14979         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14980         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14981         imported from the latest Autoconf git.  It was motivated by Emacs,
14982         which uses gnulib but does not need HAVE_STDBOOL_H.
14983
14984 2011-02-04  Bruno Haible  <bruno@clisp.org>
14985
14986         wcsnrtombs: Prepare for new module wwcsnrtombs.
14987         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14988         * lib/wcsnrtombs.c: Include it.
14989         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14990
14991         wcsrtombs: Prepare for new module wwcsrtombs.
14992         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14993         * lib/wcsrtombs.c: Include it.
14994         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14995
14996         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14997         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14998         * lib/mbsnrtowcs.c: Include it.
14999         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15000
15001         mbsrtowcs: Prepare for new module mbsrtowwcs.
15002         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15003         * lib/mbsrtowcs.c: Include it.
15004         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15005
15006 2011-02-04  Bruno Haible  <bruno@clisp.org>
15007
15008         vasnprintf: Reduce use of malloc for small format strings.
15009         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15010         (arguments): Add room for the first 7 arguments.
15011         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15012         (char_directives, u8_directives, u16_directives, u32_directives): Add
15013         room for the first 7 directives.
15014         * lib/printf-parse.c: Include <string.h>.
15015         (PRINTF_PARSE): Change memory handling code so that it uses the first
15016         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15017         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15018         Reported by Pádraig Brady <P@draigbrady.com>.
15019
15020 2011-01-31  Eric Blake  <eblake@redhat.com>
15021
15022         dup2: work around Haiku bug
15023         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15024         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15025         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15026         * tests/test-dup2.c (main): Enhance test.
15027
15028 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15029
15030         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15031         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15032         declared by eglibc 2.11.2.
15033         * lib/stdio.in.h: Likewise.
15034
15035 2011-01-31  Eric Blake  <eblake@redhat.com>
15036
15037         ignore-value: add missing test dependency
15038         * tests/test-ignore-value.c: Revert previous change; stdio.h
15039         provides off_t.
15040         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15041
15042 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15043
15044         mktime: clarify long_int width checking
15045         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15046         the top level, to make it clearer that the assumption about
15047         long_int width is being checked.  See
15048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15049
15050 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15051
15052         ignore-value: Fix self-test.
15053         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15054
15055 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15056
15057         TYPE_MAXIMUM: avoid theoretically undefined behavior
15058         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15059         negative number, which the C Standard says has undefined behavior.
15060         In practice this is not a problem, but might as well do it by the book.
15061         Reported by Rich Felker and Eric Blake; see
15062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15063         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15064         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15066         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15067         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15068         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15069
15070         mktime: #undef mktime before #defining it
15071         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15072
15073         mktime: systematically normalize tm_isdst comparisons
15074         * lib/mktime.c (isdst_differ): New function.
15075         (__mktime_internal): Use it systematically for all isdst comparisons.
15076         This completes the fix for libc BZ #6723, and removes the need for
15077         normalizing tm_isdst.  See
15078         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15079         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15080
15081         mktime: fix some integer overflow issues and sidestep the rest
15082
15083         This was prompted by a bug report by Benjamin Lindner for MinGW
15084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15085         His bug is due to signed integer overflow (0 - INT_MIN), and I
15086         I scanned through mktime.c looking for other integer overflow
15087         problems, fixing all the bugs I found.
15088
15089         Although the C Standard says the resulting code is still not safe
15090         in the presence of integer overflow, in practice it should be good
15091         enough for all real-world two's-complement implementations, except
15092         for debugging environments that deliberately trap on integer
15093         overflow (e.g., gcc -ftrapv).
15094
15095         * lib/mktime.c (WRAPV): New macro.
15096         (SHR): Also check that long_int and time_t shift right in the
15097         usual way, before using the fast-but-unportable method.
15098         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15099         used.  The code already assumed two's complement, so there's
15100         no need to test for alternatives.  All uses removed.
15101         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15102         the C standard.  Problem reported by Rich Felker in
15103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15104         (twos_complement_arithmetic): Also check long_int and time_t.
15105         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15106         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15107         (__mktime_internal): Avoid integer overflow with unary subtraction
15108         in two instances where -1 - X is an adequate replacement for -X,
15109         since the calculations are approximate.
15110
15111 2011-01-29  Eric Blake  <eblake@redhat.com>
15112
15113         mktime: avoid infinite loop
15114         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15115         type; behavior is still undefined but portable to all known targets.
15116         Reported by Rich Felker.
15117
15118 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15119
15120         rename, unlink, same-inode: Relicense.
15121         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15122         * modules/unlink (License): Likewise.
15123         * modules/same-inode (License): Likewise.
15124
15125 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15126
15127         mktime: avoid problems on NetBSD 5 / i386
15128         * lib/mktime.c (long_int): New type.  This works around a problem
15129         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15130         but time_t is 64 bits, and where I expect the existing code is
15131         wrong in some cases.
15132         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15133         (ydhms_diff): Bring back the compile-time check for wide-enough
15134         year and yday.
15135
15136         mktime: fix misspelling in comment
15137         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15138         This merges all recent glibc changes of importance.
15139
15140 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15141
15142         move-if-change: cope with concurrent mv of identical file.
15143         * build-aux/move-if-change (CMPPROG): Accept environment
15144         variable as an override for `cmp'.
15145         (usage): Document CMPPROG.
15146         Adjust comparison to drop stdout.  Cope with failure of mv if
15147         the target file exists and is identical to the source, for
15148         parallel builds.
15149         Report from H.J. Lu against binutils in PR binutils/12283.
15150
15151 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15152
15153         * users.txt: Mention sharutils.
15154
15155 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15156
15157         * users.txt: Mention OATH Toolkit.
15158
15159 2011-01-27  Bruno Haible  <bruno@clisp.org>
15160
15161         Prepare for supporting FreeBSD 10.
15162         * build-aux/config.libpath: Remove handling of freebsd1*.
15163
15164 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15165
15166         Prepare for supporting FreeBSD 10.
15167         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15168         match FreeBSD 10.0.
15169
15170 2011-01-27  Bruno Haible  <bruno@clisp.org>
15171
15172         vma-iter, get-rusage-as: Add OpenBSD support.
15173         * modules/vma-iter (configure.ac): Test for mquery.
15174         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15175         * lib/vma-iter.c: Include <sys/mman.h>.
15176         (vma_iterate): Add an implementation based on mquery().
15177         * lib/resource-ext.h (get_rusage_as): Update comments.
15178         * lib/get-rusage-as.c: Likewise.
15179         * lib/get-rusage-data.c: Likewise.
15180
15181 2011-01-26  Karl Berry  <karl@gnu.org>
15182
15183         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15184         variables to make it easier to override the makeinfo program used.
15185
15186 2011-01-26  Eric Blake  <eblake@redhat.com>
15187
15188         fcntl: work around Haiku F_DUPFD bugs
15189         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15190         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15191         cloexec bit on duplication.
15192         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15193
15194 2011-01-26  Bruno Haible  <bruno@clisp.org>
15195
15196         Enable memory leak tests on AIX.
15197         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15198         * tests/test-fprintf-posix3.c (main): Likewise.
15199
15200 2011-01-26  Bruno Haible  <bruno@clisp.org>
15201
15202         Tests for module 'get-rusage-data'.
15203         * modules/get-rusage-data-tests: New file.
15204         * tests/test-get-rusage-data.c: New file.
15205
15206         New module 'get-rusage-data'.
15207         * lib/resource-ext.h (get_rusage_data): New declaration.
15208         * lib/get-rusage-data.c: New file.
15209         * modules/get-rusage-data: New file.
15210
15211 2011-01-25  Bruno Haible  <bruno@clisp.org>
15212
15213         get-rusage-as: Allow for easier testing.
15214         * lib/resource-ext.h (get_rusage_as): Add comment.
15215         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15216         (main): New function for interactive testing.
15217
15218 2011-01-25  Bruno Haible  <bruno@clisp.org>
15219
15220         vma-iter: Treat Haiku like BeOS.
15221         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15222         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15223
15224 2011-01-25  Eric Blake  <eblake@redhat.com>
15225
15226         c-stack: fix regression on cygwin when libsigsegv is present
15227         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15228
15229 2011-01-24  Bruno Haible  <bruno@clisp.org>
15230
15231         vma-iter: Avoid empty intervals.
15232         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15233         on an empty interval.
15234
15235 2011-01-24  Jim Meyering  <meyering@redhat.com>
15236
15237         u64: remove unnecessary #include
15238         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15239
15240 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15241
15242         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15243         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15244
15245 2011-01-23  Bruno Haible  <bruno@clisp.org>
15246
15247         New module 'vma-iter'.
15248         * lib/vma-iter.h: New file.
15249         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15250         * modules/vma-iter: New file.
15251         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15252         for get_rusage_as_via_iterator.
15253         (vma_iterate_callback): New function.
15254         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15255         * modules/get-rusage-as (Depends-on): Add vma-iter.
15256
15257 2011-01-23  Bruno Haible  <bruno@clisp.org>
15258
15259         uninorm: Tweak includes.
15260         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15261         Reported by Jim Meyering.
15262
15263 2011-01-23  Bruno Haible  <bruno@clisp.org>
15264
15265         get-rusage-as: Improve on NetBSD.
15266         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15267         /proc, like on FreeBSD.
15268
15269 2011-01-23  Jim Meyering  <meyering@redhat.com>
15270
15271         xreadlink.h: remove unnecessary #include
15272         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15273
15274         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15275         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15276
15277 2011-01-23  Bruno Haible  <bruno@clisp.org>
15278
15279         get-rusage-as: Fix bug.
15280         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15281         original limit when aborting the first loop.
15282
15283 2011-01-23  Bruno Haible  <bruno@clisp.org>
15284
15285         wctype: Ensure valid C syntax.
15286         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15287         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15288
15289 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15290
15291         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15293         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15294         as they are needed only for configure's test case.
15295         This removes two unnecessary symbols from config.h.
15296
15297         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15298         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15300         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15301         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15302         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15303         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15304         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15305         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15306         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15307         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15310         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15311         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15312         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15313         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15314         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15315
15316 2011-01-21  Eric Blake  <eblake@redhat.com>
15317
15318         maintainer-makefile: work with older git for submodule check
15319         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15320         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15321         Reported by Matthias Bolte.
15322
15323         bootstrap: minor portability fixes
15324         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15325         (usage): Omit leading capital and trailing . on help phrases, per
15326         GNU Coding Standards.
15327         (check_versions, top level): Prefix messages with script name.
15328
15329 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15330
15331         bootstrap: support --no-git option
15332         * build-aux/bootstrap: Add --no-git option, to be used when
15333         --gnulib-srcdir points to the exact desired checkout.
15334
15335 2011-01-21  Eric Blake  <eblake@redhat.com>
15336
15337         strerror_r-posix: work with glibc 2.13
15338         * lib/strerror_r.c (strerror_r): Fix return type.
15339
15340 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15341             Bruno Haible  <bruno@clisp.org>
15342
15343         uN_strstr: New unit tests.
15344         * modules/unistr/u8-strstr-tests: New file.
15345         * modules/unistr/u16-strstr-tests: New file.
15346         * modules/unistr/u32-strstr-tests: New file.
15347         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15348         * tests/unistr/test-u8-strstr.c: New file.
15349         * tests/unistr/test-u16-strstr.c: New file.
15350         * tests/unistr/test-u32-strstr.c: New file.
15351
15352 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15353             Bruno Haible  <bruno@clisp.org>
15354
15355         Make uN_strstr functions O(n) worst-case.
15356         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15357         16-bit and 32-bit unit cases, use the unibyte algorithm from
15358         lib/mbsstr.c.
15359         * lib/unistr/u8-strstr.c: Include <string.h>.
15360         (UNIT_IS_UINT8_T): New macro.
15361         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15362         (U_STRLEN, U_STRNLEN): New macros.
15363         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15364         (U_STRLEN, U_STRNLEN): New macros.
15365         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15366         (configure.ac): Update required libunistring version.
15367         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15368         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15369         malloca.
15370         (configure.ac): Update required libunistring version.
15371         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15372         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15373         malloca.
15374         (configure.ac): Update required libunistring version.
15375
15376 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15377             Bruno Haible  <bruno@clisp.org>
15378
15379         Prepare for faster uN_strstr functions.
15380         * lib/str-kmp.h: Support definable UNITs.
15381         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15382         needle_len argument.
15383         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15384         * lib/mbscasestr.c (mbscasestr): Likewise.
15385
15386 2011-01-21  Pádraig Brady <P@draigBrady.com>
15387
15388         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15389         * tests/test-malloca.c (main): Unset the environment variable
15390         to greatly speed up the test.
15391         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15392         * modules/malloca-tests: Depend on unsetenv.
15393
15394 2011-01-21  Pádraig Brady <P@draigBrady.com>
15395
15396         ignore-value: remove stdint dependency
15397         * lib/ignore-value.h: Remove <stdint.h>
15398         * modules/ignore-value: Remove stdint dependency.
15399
15400 2011-01-21  Jim Meyering  <meyering@redhat.com>
15401
15402         maint.mk: adjust variable name to be consistent with other gl_ vars
15403         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15404         to be lower case.
15405
15406 2011-01-20  Jim Meyering  <meyering@redhat.com>
15407
15408         maint.mk: make "check" depend on public-submodule-commit by default
15409         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15410
15411 2011-01-20  Bruno Haible  <bruno@clisp.org>
15412
15413         mbfile, mbiter: Complete change from 2008-12-21.
15414         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15415         * m4/mbiter.m4 (gl_MBITER): Likewise.
15416
15417 2011-01-20  Jim Meyering  <meyering@redhat.com>
15418
15419         init.sh: insert space between each function name and "()"
15420         * tests/init.sh: Make it a little easier to see that a function's
15421         name is "warn_", and not "warn" when looking at the first part of
15422         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15423
15424 2011-01-20  Jim Meyering  <meyering@redhat.com>
15425
15426         mountlist: clean up code formatting
15427         * lib/mountlist.c (read_file_system_list): Split a long line,
15428         correct bracing style, use NULL in place of "(struct statfs *)0",
15429         don't parenthesize return value, add spaces around "=" and after
15430         ";-in-for-stmt".
15431
15432 2011-01-14  Markus Duft <mduft@gentoo.org>
15433
15434         mountlist: add support for Interix
15435         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15436         Apply statvfs to all entries of /dev/fs.
15437         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15438         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15439
15440 2011-01-20  Jim Meyering  <meyering@redhat.com>
15441
15442         maint.mk: improve the public-submodule-commit rule
15443         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15444         to suppress printing of its commands... unless V=1.
15445         Add git submodule's --quiet option to suppress printing of e.g.,
15446         "Entering gnulib" output.
15447         "cd" into $(srcdir) before running git submodule.
15448
15449 2011-01-20  Bruno Haible  <bruno@clisp.org>
15450
15451         include_next: Fix bug introduced on 2011-01-18.
15452         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15453         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15454         ac_cv_header_... variable if the second argument is not 'check'.
15455         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15456         gl_NEXT_HEADERS_INTERNAL.
15457
15458 2011-01-20  Bruno Haible  <bruno@clisp.org>
15459
15460         Allow the user to avoid the GNULIB_TEST_* macros.
15461         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15462         Suggested by Paul Eggert.
15463
15464 2011-01-14  Jim Meyering  <meyering@redhat.com>
15465
15466         bootstrap: avoid failure when there is no .gitmodules file
15467         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15468         has been assigned to, even when its value is the empty string.
15469         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15470         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15471         Reported by John W. Eaton <jwe@gnu.org>.
15472
15473 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15474
15475         assume <ctype.h>, ..., <time.h> exist
15476         For years gnulib has been assuming the existence of the headers
15477         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15478         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15479         them, since they don't appear to be needed.
15480         * README (Portability guidelines): Document this.
15481         * lib/flock.c: Assume <fcntl.h> exists.
15482         * lib/regex_internal.h: Assume <locale.h> exists.
15483         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15484         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15485         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15486         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15487         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15488         * m4/regex.m4 (gl_REGEX): Likewise.
15489         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15490         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15491         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15492         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15493         * tests/test-argp.c: Likewise.
15494         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15495
15496         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15497         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15498         AA_APPLE_UNIVERSAL_BUILD.  See
15499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15500         * NEWS: Document this.
15501
15502 2011-01-19  Eric Blake  <eblake@redhat.com>
15503
15504         c-stack: assume stack overflow if SA_SIGINFO unsupported
15505         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15506         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15507         sigaction will work.
15508         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15509         behavior match Linux.
15510         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15511
15512         stdbool-tests: accomodate Haiku
15513         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15514
15515         binary-io: fix O_TEXT on Haiku
15516         * modules/binary-io (Depends-on): Add fcntl-h.
15517         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15518         than blindly undefining O_TEXT.
15519         Reported by Scott McCreary.
15520
15521 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15522
15523         include_next: do not check for standard headers like stddef.h
15524
15525         I found this problem when modifying Emacs to use gnulib.
15526         I noticed that it added HAVE_STDDEF_H to config.h, even though
15527         gnulib always assumes <stddef.h> exists as per README and this
15528         symbol is unnecessary.
15529         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15530         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15531         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15532         faster for headers like stddef.h that are known to exist.
15533         (gl_CHECK_NEXT_HEADERS): Use it.
15534         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15535         rather than gl_CHECK_NEXT_HEADERS.
15536         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15537         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15538
15539 2011-01-18  Eric Blake  <eblake@redhat.com>
15540
15541         ansi-c++-opt: skip C++ dependency style if C++ is unused
15542         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15543         tests when we know C++ compilation is not desired.
15544         Reported by Scott McCreary.
15545
15546 2011-01-18  Bruno Haible  <bruno@clisp.org>
15547
15548         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15549         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15550         (main): Perform test also when getrlimit and setrlimit don't exist or
15551         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15552         limiting the address space size using setrlimit, compare the address
15553         space size before and after the the test.
15554         * tests/test-dprintf-posix2.c: Likewise.
15555         * tests/test-fprintf-posix3.sh: Update skip messages.
15556         * tests/test-dprintf-posix2.sh: Likewise.
15557         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15558         * modules/dprintf-posix-tests (Depends-on): Likewise.
15559         Reported by Bruce Korb <bkorb@gnu.org> and
15560         Gary V. Vaughan <gary@gnu.org>.
15561
15562 2011-01-18  Bruno Haible  <bruno@clisp.org>
15563
15564         get-rusage-as: Improvement for Cygwin.
15565         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15566         areas that are merely reserved.
15567
15568 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15569
15570         strftime: remove dependencies on multibyte modules
15571
15572         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15573         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15574         only if __osf__ is defined, and I suspect OSF doesn't need these
15575         other modules.  If my guess is wrong, we'll need to come up with a
15576         variant of strftime that doesn't need the multibyte modules.
15577
15578         I discovered this problem when attempting modify Emacs to use the
15579         strftime module.  With the previous gnulib, this caused Emacs to
15580         need 31 new files, ranging from lib/config.charset to
15581         m4/wint_t.m4.  This was overkill and I expect would be offputting
15582         to the Emacs maintainers.  After this change, only 6 new files are
15583         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15584         stdbool.m4, and tm_gmtoff.m4.
15585
15586         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15587         Suggested by Bruno Haible in
15588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15589         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15590         and do not check for wchar.h.
15591         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15592         (Depends-on): Remove mbrlen, mbsinit, wchar.
15593
15594 2011-01-18  Bruno Haible  <bruno@clisp.org>
15595
15596         Tests for module 'get-rusage-as'.
15597         * modules/get-rusage-as-tests: New file.
15598         * tests/test-get-rusage-as.c: New file.
15599
15600         New module 'get-rusage-as'.
15601         * modules/get-rusage-as: New file.
15602         * lib/resource-ext.h: New file.
15603         * lib/get-rusage-as.c: New file.
15604
15605 2011-01-17  Eric Blake  <eblake@redhat.com>
15606
15607         sigaction: relax license from LGPLv3+ to LGPLv2+
15608         * modules/sigaction (License): Relax to LGPLv2+.
15609
15610 2011-01-14  Bruno Haible  <bruno@clisp.org>
15611
15612         filemode: Make function declarations usable in C++ mode.
15613         * lib/filemode.h: Enclose function declarations in extern "C" block.
15614         Reported by John W. Eaton <jwe@gnu.org>.
15615
15616 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15617
15618         save-cwd: no longer include "xgetcwd.h"
15619         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15620         This avoids a compilation failure in projects that use save-cwd
15621         without also using the xgetcwd module.
15622
15623 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15624
15625         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15626         This is so that a program like Emacs, which needs only dtoastr,
15627         does not have to bother with distributing and compiling ftoastr
15628         and ldtoastr.
15629         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15630         * modules/dtoastr, modules/ldtoastr: New files.
15631         * modules/ftoastr: Now works just for 'float'.
15632         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15633         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15634         dtoastr.c, ldtoastr.c.
15635
15636 2011-01-11  Jim Meyering  <meyering@redhat.com>
15637
15638         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15639         There is no need to work around the lack of the fchdir function,
15640         since gnulib can now provide a replacement when required.
15641         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15642         * modules/save-cwd (Depends-on): Add fchdir.
15643
15644 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15645
15646         openat, save-cwd: avoid xmalloc
15647
15648         This removes a direct (but undocumented) dependency of openat on
15649         xalloc, along with an indirect dependency via save-cwd.  It also
15650         removes a dependency of save-cwd on xgetcwd, and thereby
15651         indirectly on xalloc.  This change causes the openat substitute
15652         to fall back on save_cwd when memory is tight, and for save_cwd to
15653         fail instead of dying when memory is tight, but that's good enough.
15654         Problem and initial idea for fix reported by Bastien Roucaries in
15655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15656
15657         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15658         xalloc.h (for xmalloc).
15659         (openat_proc_name): Use malloc, not xmalloc.
15660         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15661         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15662
15663         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15664         This avoids heap allocation for file names whose lengths are in
15665         the range 512..1023, with the upper bound increasing to at most
15666         4031 depending on the platform's PATH_MAX.  (We do not want
15667         pathmax.h here as it might supply a non-constant PATH_MAX.)
15668         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15669         Perhaps they should be moved to malloca.h?
15670         (OPENAT_BUFFER_SIZE): Use them.
15671
15672 2011-01-10  Bruno Haible  <bruno@clisp.org>
15673
15674         doc: Update users.txt.
15675         * users.txt: Add recutils.
15676
15677 2011-01-09  Karl Berry  <karl@gnu.org>
15678
15679         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15680
15681         * doc/configmake.texi: New file.
15682         * doc/gnulib.texi: Include it.
15683         * modules/configmake: Move documentation from here.
15684
15685 2011-01-09  Bruno Haible  <bruno@clisp.org>
15686
15687         Update to Unicode 6.0.0.
15688         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15689         (get_lbp): Update for Unicode 6.0.0.
15690         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15691         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15692         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15693         U+11001, U+11038..U+11046. Remove U+06DE.
15694         (uc_width): Fix bounds of planes.
15695         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15696         lib/uniwidth/width.c.
15697         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15698         trailing whitespace removed.
15699         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15700         without comments, but with the original copyright notice.
15701         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15702         * lib/unicase/ignorable.h: Likewise.
15703         * lib/unicase/tocasefold.h: Likewise.
15704         * lib/unicase/tolower.h: Likewise.
15705         * lib/unicase/totitle.h: Likewise.
15706         * lib/unicase/toupper.h: Likewise.
15707         * lib/unictype/bidi_of.h: Likewise.
15708         * lib/unictype/blocks.h: Likewise.
15709         * lib/unictype/categ_C.h: Likewise.
15710         * lib/unictype/categ_Cn.h: Likewise.
15711         * lib/unictype/categ_L.h: Likewise.
15712         * lib/unictype/categ_Ll.h: Likewise.
15713         * lib/unictype/categ_Lm.h: Likewise.
15714         * lib/unictype/categ_Lo.h: Likewise.
15715         * lib/unictype/categ_Lu.h: Likewise.
15716         * lib/unictype/categ_M.h: Likewise.
15717         * lib/unictype/categ_Mc.h: Likewise.
15718         * lib/unictype/categ_Me.h: Likewise.
15719         * lib/unictype/categ_Mn.h: Likewise.
15720         * lib/unictype/categ_N.h: Likewise.
15721         * lib/unictype/categ_Nd.h: Likewise.
15722         * lib/unictype/categ_No.h: Likewise.
15723         * lib/unictype/categ_P.h: Likewise.
15724         * lib/unictype/categ_Po.h: Likewise.
15725         * lib/unictype/categ_S.h: Likewise.
15726         * lib/unictype/categ_Sc.h: Likewise.
15727         * lib/unictype/categ_Sk.h: Likewise.
15728         * lib/unictype/categ_Sm.h: Likewise.
15729         * lib/unictype/categ_So.h: Likewise.
15730         * lib/unictype/categ_of.h: Likewise.
15731         * lib/unictype/combining.h: Likewise.
15732         * lib/unictype/ctype_alnum.h: Likewise.
15733         * lib/unictype/ctype_alpha.h: Likewise.
15734         * lib/unictype/ctype_graph.h: Likewise.
15735         * lib/unictype/ctype_lower.h: Likewise.
15736         * lib/unictype/ctype_print.h: Likewise.
15737         * lib/unictype/ctype_punct.h: Likewise.
15738         * lib/unictype/ctype_upper.h: Likewise.
15739         * lib/unictype/decdigit.h: Likewise.
15740         * lib/unictype/digit.h: Likewise.
15741         * lib/unictype/numeric.h: Likewise.
15742         * lib/unictype/pr_alphabetic.h: Likewise.
15743         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15744         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15745         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15746         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15747         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15748         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15749         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15750         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15751         * lib/unictype/pr_case_ignorable.h: Likewise.
15752         * lib/unictype/pr_cased.h: Likewise.
15753         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15754         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15755         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15756         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15757         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15758         * lib/unictype/pr_combining.h: Likewise.
15759         * lib/unictype/pr_composite.h: Likewise.
15760         * lib/unictype/pr_currency_symbol.h: Likewise.
15761         * lib/unictype/pr_decimal_digit.h: Likewise.
15762         * lib/unictype/pr_deprecated.h: Likewise.
15763         * lib/unictype/pr_format_control.h: Likewise.
15764         * lib/unictype/pr_grapheme_base.h: Likewise.
15765         * lib/unictype/pr_grapheme_extend.h: Likewise.
15766         * lib/unictype/pr_grapheme_link.h: Likewise.
15767         * lib/unictype/pr_id_continue.h: Likewise.
15768         * lib/unictype/pr_id_start.h: Likewise.
15769         * lib/unictype/pr_ideographic.h: Likewise.
15770         * lib/unictype/pr_lowercase.h: Likewise.
15771         * lib/unictype/pr_math.h: Likewise.
15772         * lib/unictype/pr_numeric.h: Likewise.
15773         * lib/unictype/pr_other_alphabetic.h: Likewise.
15774         * lib/unictype/pr_other_id_continue.h: Likewise.
15775         * lib/unictype/pr_other_math.h: Likewise.
15776         * lib/unictype/pr_punctuation.h: Likewise.
15777         * lib/unictype/pr_sentence_terminal.h: Likewise.
15778         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15779         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15780         * lib/unictype/pr_unified_ideograph.h: Likewise.
15781         * lib/unictype/pr_uppercase.h: Likewise.
15782         * lib/unictype/pr_xid_continue.h: Likewise.
15783         * lib/unictype/pr_xid_start.h: Likewise.
15784         * lib/unictype/scripts.h: Likewise.
15785         * lib/unictype/scripts_byname.gperf: Likewise.
15786         * lib/unictype/sy_java_ident.h: Likewise.
15787         * lib/unigbrk/gbrkprop.h: Likewise.
15788         * lib/unilbrk/lbrkprop1.h: Likewise.
15789         * lib/unilbrk/lbrkprop2.h: Likewise.
15790         * lib/uninorm/decomposition-table2.h: Likewise.
15791         * lib/uniwbrk/wbrkprop.h: Likewise.
15792         * tests/unicase/test-cased.c: Likewise.
15793         * tests/unicase/test-ignorable.c: Likewise.
15794         * tests/unicase/test-uc_tolower.c: Likewise.
15795         * tests/unicase/test-uc_totitle.c: Likewise.
15796         * tests/unicase/test-uc_toupper.c: Likewise.
15797         * tests/unictype/test-categ_C.c: Likewise.
15798         * tests/unictype/test-categ_Cn.c: Likewise.
15799         * tests/unictype/test-categ_L.c: Likewise.
15800         * tests/unictype/test-categ_Ll.c: Likewise.
15801         * tests/unictype/test-categ_Lm.c: Likewise.
15802         * tests/unictype/test-categ_Lo.c: Likewise.
15803         * tests/unictype/test-categ_Lu.c: Likewise.
15804         * tests/unictype/test-categ_M.c: Likewise.
15805         * tests/unictype/test-categ_Mc.c: Likewise.
15806         * tests/unictype/test-categ_Me.c: Likewise.
15807         * tests/unictype/test-categ_Mn.c: Likewise.
15808         * tests/unictype/test-categ_N.c: Likewise.
15809         * tests/unictype/test-categ_Nd.c: Likewise.
15810         * tests/unictype/test-categ_No.c: Likewise.
15811         * tests/unictype/test-categ_P.c: Likewise.
15812         * tests/unictype/test-categ_Po.c: Likewise.
15813         * tests/unictype/test-categ_S.c: Likewise.
15814         * tests/unictype/test-categ_Sc.c: Likewise.
15815         * tests/unictype/test-categ_Sk.c: Likewise.
15816         * tests/unictype/test-categ_Sm.c: Likewise.
15817         * tests/unictype/test-categ_So.c: Likewise.
15818         * tests/unictype/test-ctype_alnum.c: Likewise.
15819         * tests/unictype/test-ctype_alpha.c: Likewise.
15820         * tests/unictype/test-ctype_graph.c: Likewise.
15821         * tests/unictype/test-ctype_lower.c: Likewise.
15822         * tests/unictype/test-ctype_print.c: Likewise.
15823         * tests/unictype/test-ctype_punct.c: Likewise.
15824         * tests/unictype/test-ctype_upper.c: Likewise.
15825         * tests/unictype/test-decdigit.h: Likewise.
15826         * tests/unictype/test-digit.h: Likewise.
15827         * tests/unictype/test-numeric.h: Likewise.
15828         * tests/unictype/test-pr_alphabetic.c: Likewise.
15829         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15830         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15832         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15833         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15834         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15835         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15836         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15837         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15838         * tests/unictype/test-pr_cased.c: Likewise.
15839         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15840         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15841         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15842         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15843         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15844         * tests/unictype/test-pr_combining.c: Likewise.
15845         * tests/unictype/test-pr_composite.c: Likewise.
15846         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15847         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15848         * tests/unictype/test-pr_deprecated.c: Likewise.
15849         * tests/unictype/test-pr_format_control.c: Likewise.
15850         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15851         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15852         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15853         * tests/unictype/test-pr_id_continue.c: Likewise.
15854         * tests/unictype/test-pr_id_start.c: Likewise.
15855         * tests/unictype/test-pr_ideographic.c: Likewise.
15856         * tests/unictype/test-pr_lowercase.c: Likewise.
15857         * tests/unictype/test-pr_math.c: Likewise.
15858         * tests/unictype/test-pr_numeric.c: Likewise.
15859         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15860         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15861         * tests/unictype/test-pr_other_math.c: Likewise.
15862         * tests/unictype/test-pr_punctuation.c: Likewise.
15863         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15864         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15865         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15866         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15867         * tests/unictype/test-pr_uppercase.c: Likewise.
15868         * tests/unictype/test-pr_xid_continue.c: Likewise.
15869         * tests/unictype/test-pr_xid_start.c: Likewise.
15870         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15871         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15872         changes.
15873         * lib/unictype/categ_Cc.h: Likewise.
15874         * lib/unictype/categ_Cf.h: Likewise.
15875         * lib/unictype/categ_Co.h: Likewise.
15876         * lib/unictype/categ_Cs.h: Likewise.
15877         * lib/unictype/categ_Lt.h: Likewise.
15878         * lib/unictype/categ_Nl.h: Likewise.
15879         * lib/unictype/categ_Pc.h: Likewise.
15880         * lib/unictype/categ_Pd.h: Likewise.
15881         * lib/unictype/categ_Pe.h: Likewise.
15882         * lib/unictype/categ_Pf.h: Likewise.
15883         * lib/unictype/categ_Pi.h: Likewise.
15884         * lib/unictype/categ_Ps.h: Likewise.
15885         * lib/unictype/categ_Z.h: Likewise.
15886         * lib/unictype/categ_Zl.h: Likewise.
15887         * lib/unictype/categ_Zp.h: Likewise.
15888         * lib/unictype/categ_Zs.h: Likewise.
15889         * lib/unictype/ctype_blank.h: Likewise.
15890         * lib/unictype/ctype_cntrl.h: Likewise.
15891         * lib/unictype/ctype_digit.h: Likewise.
15892         * lib/unictype/ctype_space.h: Likewise.
15893         * lib/unictype/ctype_xdigit.h: Likewise.
15894         * lib/unictype/mirror.h: Likewise.
15895         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15896         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15897         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15898         * lib/unictype/pr_bidi_control.h: Likewise.
15899         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15900         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15901         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15902         * lib/unictype/pr_bidi_pdf.h: Likewise.
15903         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15904         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15905         * lib/unictype/pr_dash.h: Likewise.
15906         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15907         * lib/unictype/pr_diacritic.h: Likewise.
15908         * lib/unictype/pr_extender.h: Likewise.
15909         * lib/unictype/pr_hex_digit.h: Likewise.
15910         * lib/unictype/pr_hyphen.h: Likewise.
15911         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15912         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15913         * lib/unictype/pr_ignorable_control.h: Likewise.
15914         * lib/unictype/pr_iso_control.h: Likewise.
15915         * lib/unictype/pr_join_control.h: Likewise.
15916         * lib/unictype/pr_left_of_pair.h: Likewise.
15917         * lib/unictype/pr_line_separator.h: Likewise.
15918         * lib/unictype/pr_logical_order_exception.h: Likewise.
15919         * lib/unictype/pr_non_break.h: Likewise.
15920         * lib/unictype/pr_not_a_character.h: Likewise.
15921         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15922         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15923         * lib/unictype/pr_other_id_start.h: Likewise.
15924         * lib/unictype/pr_other_lowercase.h: Likewise.
15925         * lib/unictype/pr_other_uppercase.h: Likewise.
15926         * lib/unictype/pr_paired_punctuation.h: Likewise.
15927         * lib/unictype/pr_paragraph_separator.h: Likewise.
15928         * lib/unictype/pr_pattern_syntax.h: Likewise.
15929         * lib/unictype/pr_pattern_white_space.h: Likewise.
15930         * lib/unictype/pr_private_use.h: Likewise.
15931         * lib/unictype/pr_quotation_mark.h: Likewise.
15932         * lib/unictype/pr_radical.h: Likewise.
15933         * lib/unictype/pr_soft_dotted.h: Likewise.
15934         * lib/unictype/pr_space.h: Likewise.
15935         * lib/unictype/pr_titlecase.h: Likewise.
15936         * lib/unictype/pr_variation_selector.h: Likewise.
15937         * lib/unictype/pr_white_space.h: Likewise.
15938         * lib/unictype/pr_zero_width.h: Likewise.
15939         * lib/unictype/sy_c_ident.h: Likewise.
15940         * lib/unictype/sy_c_whitespace.h: Likewise.
15941         * lib/unictype/sy_java_whitespace.h: Likewise.
15942         * lib/uninorm/composition-table.gperf: Likewise.
15943         * lib/uninorm/decomposition-table1.h: Likewise.
15944         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15945         LB8.
15946         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15947         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15948         * modules/unictype/*: Bump version number of expected libunistring
15949         version.
15950
15951 2011-01-09  Bruno Haible  <bruno@clisp.org>
15952
15953         Update to Unicode 5.2.0.
15954         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15955         trailing whitespace removed.
15956
15957 2011-01-09  Bruno Haible  <bruno@clisp.org>
15958
15959         New Unicode character properties, from Unicode 5.2.0.
15960         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15961         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15962         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15963         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15964         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15965         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15966         uc_is_property_cased, uc_is_property_case_ignorable,
15967         uc_is_property_changes_when_lowercased,
15968         uc_is_property_changes_when_uppercased,
15969         uc_is_property_changes_when_titlecased,
15970         uc_is_property_changes_when_casefolded,
15971         uc_is_property_changes_when_casemapped): New declarations.
15972         * lib/unictype/pr_byname.gperf: Add the new properties.
15973         * modules/unictype/property-byname (Depends-on): Depend on the new
15974         properties modules.
15975         * modules/unictype/property-all (Depends-on): Likewise.
15976         * MODULES.html.sh (Unicode string functions): Add
15977         unictype/property-case-ignorable, unictype/property-cased,
15978         unictype/property-changes-when-casefolded,
15979         unictype/property-changes-when-casemapped,
15980         unictype/property-changes-when-lowercased,
15981         unictype/property-changes-when-titlecased,
15982         unictype/property-changes-when-uppercased.
15983
15984         New module 'unictype/property-changes-when-casemapped'.
15985         * modules/unictype/property-changes-when-casemapped: New file.
15986         * lib/unictype/pr_changes_when_casemapped.c: New file.
15987         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15988         generated by gen-uni-tables.
15989         * modules/unictype/property-changes-when-casemapped-tests: New file.
15990         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15991         automatically generated by gen-uni-tables.
15992
15993         New module 'unictype/property-changes-when-casefolded'.
15994         * modules/unictype/property-changes-when-casefolded: New file.
15995         * lib/unictype/pr_changes_when_casefolded.c: New file.
15996         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15997         generated by gen-uni-tables.
15998         * modules/unictype/property-changes-when-casefolded-tests: New file.
15999         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16000         automatically generated by gen-uni-tables.
16001
16002         New module 'unictype/property-changes-when-titlecased'.
16003         * modules/unictype/property-changes-when-titlecased: New file.
16004         * lib/unictype/pr_changes_when_titlecased.c: New file.
16005         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16006         generated by gen-uni-tables.
16007         * modules/unictype/property-changes-when-titlecased-tests: New file.
16008         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16009         automatically generated by gen-uni-tables.
16010
16011         New module 'unictype/property-changes-when-uppercased'.
16012         * modules/unictype/property-changes-when-uppercased: New file.
16013         * lib/unictype/pr_changes_when_uppercased.c: New file.
16014         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16015         generated by gen-uni-tables.
16016         * modules/unictype/property-changes-when-uppercased-tests: New file.
16017         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16018         automatically generated by gen-uni-tables.
16019
16020         New module 'unictype/property-changes-when-lowercased'.
16021         * modules/unictype/property-changes-when-lowercased: New file.
16022         * lib/unictype/pr_changes_when_lowercased.c: New file.
16023         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16024         generated by gen-uni-tables.
16025         * modules/unictype/property-changes-when-lowercased-tests: New file.
16026         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16027         automatically generated by gen-uni-tables.
16028
16029         New module 'unictype/property-case-ignorable'.
16030         * modules/unictype/property-case-ignorable: New file.
16031         * lib/unictype/pr_case_ignorable.c: New file.
16032         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16033         by gen-uni-tables.
16034         * modules/unictype/property-case-ignorable-tests: New file.
16035         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16036         generated by gen-uni-tables.
16037
16038         New module 'unictype/property-cased'.
16039         * modules/unictype/property-cased: New file.
16040         * lib/unictype/pr_cased.c: New file.
16041         * lib/unictype/pr_cased.h: New file, automatically generated by
16042         gen-uni-tables.
16043         * modules/unictype/property-cased-tests: New file.
16044         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16045         gen-uni-tables.
16046
16047 2011-01-09  Bruno Haible  <bruno@clisp.org>
16048
16049         Update to Unicode 5.2.0.
16050         * lib/gen-uni-tables.c (output_predicate, output_category,
16051         output_combclass, output_bidi_category, output_decimal_digit_test,
16052         output_decimal_digit, output_digit_test, output_digit,
16053         output_numeric_test, output_numeric, output_mirror, output_scripts,
16054         output_scripts_byname, output_blocks, output_ident_category): Fix
16055         comment header.
16056         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16057         get_wbp.
16058         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16059         items.
16060         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16061         Changes_When_Lowercased, Changes_When_Uppercased,
16062         Changes_When_Titlecased, Changes_When_Casefolded,
16063         Changes_When_Casemapped.
16064         (is_property_alphabetic, is_property_default_ignorable_code_point):
16065         Update for Unicode 5.2.0.
16066         (is_property_cased, is_property_case_ignorable,
16067         is_property_changes_when_lowercased,
16068         is_property_changes_when_uppercased,
16069         is_property_changes_when_titlecased,
16070         is_property_changes_when_casefolded,
16071         is_property_changes_when_casemapped): New functions.
16072         (output_properties): Output also the properties cased, case_ignorable,
16073         changes_when_lowercased, changes_when_uppercased,
16074         changes_when_titlecased, changes_when_casefolded,
16075         changes_when_casemapped.
16076         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16077         Unicode TR#11 revision 17 -> 19.
16078         (LBP_CP): New enumeration value.
16079         (LBP_*): Adjust values accordingly.
16080         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16081         TR#14 revision 22 -> 24.
16082         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16083         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16084         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16085         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16086         is_WBP_MIDLETTER.
16087         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16088         the code1 and code2 of each composition rule.
16089         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16090         * lib/unicase/ignorable.h: Likewise.
16091         * lib/unicase/tocasefold.h: Likewise.
16092         * lib/unicase/tolower.h: Likewise.
16093         * lib/unicase/totitle.h: Likewise.
16094         * lib/unicase/toupper.h: Likewise.
16095         * lib/unictype/bidi_of.h: Likewise.
16096         * lib/unictype/blocks.h: Likewise.
16097         * lib/unictype/categ_C.h: Likewise.
16098         * lib/unictype/categ_Cf.h: Likewise.
16099         * lib/unictype/categ_Cn.h: Likewise.
16100         * lib/unictype/categ_L.h: Likewise.
16101         * lib/unictype/categ_Ll.h: Likewise.
16102         * lib/unictype/categ_Lm.h: Likewise.
16103         * lib/unictype/categ_Lo.h: Likewise.
16104         * lib/unictype/categ_Lu.h: Likewise.
16105         * lib/unictype/categ_M.h: Likewise.
16106         * lib/unictype/categ_Mc.h: Likewise.
16107         * lib/unictype/categ_Mn.h: Likewise.
16108         * lib/unictype/categ_N.h: Likewise.
16109         * lib/unictype/categ_Nd.h: Likewise.
16110         * lib/unictype/categ_Nl.h: Likewise.
16111         * lib/unictype/categ_No.h: Likewise.
16112         * lib/unictype/categ_P.h: Likewise.
16113         * lib/unictype/categ_Pd.h: Likewise.
16114         * lib/unictype/categ_Po.h: Likewise.
16115         * lib/unictype/categ_S.h: Likewise.
16116         * lib/unictype/categ_Sc.h: Likewise.
16117         * lib/unictype/categ_So.h: Likewise.
16118         * lib/unictype/categ_of.h: Likewise.
16119         * lib/unictype/combining.h: Likewise.
16120         * lib/unictype/ctype_alnum.h: Likewise.
16121         * lib/unictype/ctype_alpha.h: Likewise.
16122         * lib/unictype/ctype_graph.h: Likewise.
16123         * lib/unictype/ctype_lower.h: Likewise.
16124         * lib/unictype/ctype_print.h: Likewise.
16125         * lib/unictype/ctype_punct.h: Likewise.
16126         * lib/unictype/ctype_upper.h: Likewise.
16127         * lib/unictype/decdigit.h: Likewise.
16128         * lib/unictype/digit.h: Likewise.
16129         * lib/unictype/numeric.h: Likewise.
16130         * lib/unictype/pr_alphabetic.h: Likewise.
16131         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16132         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16133         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16134         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16135         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16136         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16137         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16138         * lib/unictype/pr_combining.h: Likewise.
16139         * lib/unictype/pr_composite.h: Likewise.
16140         * lib/unictype/pr_currency_symbol.h: Likewise.
16141         * lib/unictype/pr_dash.h: Likewise.
16142         * lib/unictype/pr_decimal_digit.h: Likewise.
16143         * lib/unictype/pr_deprecated.h: Likewise.
16144         * lib/unictype/pr_diacritic.h: Likewise.
16145         * lib/unictype/pr_extender.h: Likewise.
16146         * lib/unictype/pr_grapheme_base.h: Likewise.
16147         * lib/unictype/pr_grapheme_extend.h: Likewise.
16148         * lib/unictype/pr_grapheme_link.h: Likewise.
16149         * lib/unictype/pr_id_continue.h: Likewise.
16150         * lib/unictype/pr_id_start.h: Likewise.
16151         * lib/unictype/pr_ideographic.h: Likewise.
16152         * lib/unictype/pr_ignorable_control.h: Likewise.
16153         * lib/unictype/pr_logical_order_exception.h: Likewise.
16154         * lib/unictype/pr_lowercase.h: Likewise.
16155         * lib/unictype/pr_numeric.h: Likewise.
16156         * lib/unictype/pr_other_alphabetic.h: Likewise.
16157         * lib/unictype/pr_punctuation.h: Likewise.
16158         * lib/unictype/pr_sentence_terminal.h: Likewise.
16159         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16160         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16161         * lib/unictype/pr_unified_ideograph.h: Likewise.
16162         * lib/unictype/pr_uppercase.h: Likewise.
16163         * lib/unictype/pr_xid_continue.h: Likewise.
16164         * lib/unictype/pr_xid_start.h: Likewise.
16165         * lib/unictype/pr_zero_width.h: Likewise.
16166         * lib/unictype/scripts.h: Likewise.
16167         * lib/unictype/scripts_byname.gperf: Likewise.
16168         * lib/unictype/sy_java_ident.h: Likewise.
16169         * lib/unigbrk/gbrkprop.h: Likewise.
16170         * lib/unilbrk/lbrkprop1.h: Likewise.
16171         * lib/unilbrk/lbrkprop2.h: Likewise.
16172         * lib/unilbrk/lbrktables.h: Likewise.
16173         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16174         LBP_CP. Implement rule LB30.
16175         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16176         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16177         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16178         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16179         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16180         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16181         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16182         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16183         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16184         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16185         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16186         bits instead of 16 bits in the code1 and code2 of each composition
16187         rule.
16188         (uc_composition): Update for Unicode 5.2.0.
16189         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16190         * lib/uninorm/decomposition-table2.h: Likewise.
16191         * lib/uniwbrk/wbrkprop.h: Likewise.
16192         * tests/unicase/test-cased.c: Likewise.
16193         * tests/unicase/test-ignorable.c: Likewise.
16194         * tests/unicase/test-uc_tolower.c: Likewise.
16195         * tests/unicase/test-uc_totitle.c: Likewise.
16196         * tests/unicase/test-uc_toupper.c: Likewise.
16197         * tests/unictype/test-categ_C.c: Likewise.
16198         * tests/unictype/test-categ_Cf.c: Likewise.
16199         * tests/unictype/test-categ_Cn.c: Likewise.
16200         * tests/unictype/test-categ_L.c: Likewise.
16201         * tests/unictype/test-categ_Ll.c: Likewise.
16202         * tests/unictype/test-categ_Lm.c: Likewise.
16203         * tests/unictype/test-categ_Lo.c: Likewise.
16204         * tests/unictype/test-categ_Lu.c: Likewise.
16205         * tests/unictype/test-categ_M.c: Likewise.
16206         * tests/unictype/test-categ_Mc.c: Likewise.
16207         * tests/unictype/test-categ_Mn.c: Likewise.
16208         * tests/unictype/test-categ_N.c: Likewise.
16209         * tests/unictype/test-categ_Nd.c: Likewise.
16210         * tests/unictype/test-categ_Nl.c: Likewise.
16211         * tests/unictype/test-categ_No.c: Likewise.
16212         * tests/unictype/test-categ_P.c: Likewise.
16213         * tests/unictype/test-categ_Pd.c: Likewise.
16214         * tests/unictype/test-categ_Po.c: Likewise.
16215         * tests/unictype/test-categ_S.c: Likewise.
16216         * tests/unictype/test-categ_Sc.c: Likewise.
16217         * tests/unictype/test-categ_So.c: Likewise.
16218         * tests/unictype/test-ctype_alnum.c: Likewise.
16219         * tests/unictype/test-ctype_alpha.c: Likewise.
16220         * tests/unictype/test-ctype_graph.c: Likewise.
16221         * tests/unictype/test-ctype_lower.c: Likewise.
16222         * tests/unictype/test-ctype_print.c: Likewise.
16223         * tests/unictype/test-ctype_punct.c: Likewise.
16224         * tests/unictype/test-ctype_upper.c: Likewise.
16225         * tests/unictype/test-decdigit.h: Likewise.
16226         * tests/unictype/test-digit.h: Likewise.
16227         * tests/unictype/test-numeric.h: Likewise.
16228         * tests/unictype/test-pr_alphabetic.c: Likewise.
16229         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16231         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16232         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16233         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16234         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16235         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16236         * tests/unictype/test-pr_combining.c: Likewise.
16237         * tests/unictype/test-pr_composite.c: Likewise.
16238         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16239         * tests/unictype/test-pr_dash.c: Likewise.
16240         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16241         * tests/unictype/test-pr_deprecated.c: Likewise.
16242         * tests/unictype/test-pr_diacritic.c: Likewise.
16243         * tests/unictype/test-pr_extender.c: Likewise.
16244         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16245         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16246         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16247         * tests/unictype/test-pr_id_continue.c: Likewise.
16248         * tests/unictype/test-pr_id_start.c: Likewise.
16249         * tests/unictype/test-pr_ideographic.c: Likewise.
16250         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16251         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16252         * tests/unictype/test-pr_lowercase.c: Likewise.
16253         * tests/unictype/test-pr_numeric.c: Likewise.
16254         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16255         * tests/unictype/test-pr_punctuation.c: Likewise.
16256         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16257         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16258         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16259         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16260         * tests/unictype/test-pr_uppercase.c: Likewise.
16261         * tests/unictype/test-pr_xid_continue.c: Likewise.
16262         * tests/unictype/test-pr_xid_start.c: Likewise.
16263         * tests/unictype/test-pr_zero_width.c: Likewise.
16264         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16265         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16266         changed behaviour: line breaking is now disallowed between a letter
16267         or '=' and '('.
16268         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16269         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16270         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16271         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16272         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16273         lib/uniwidth/width.c.
16274         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16275         without comments, but with the original copyright notice.
16276         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16277         changes.
16278         * lib/unictype/categ_Cc.h: Likewise.
16279         * lib/unictype/categ_Co.h: Likewise.
16280         * lib/unictype/categ_Cs.h: Likewise.
16281         * lib/unictype/categ_Lt.h: Likewise.
16282         * lib/unictype/categ_Me.h: Likewise.
16283         * lib/unictype/categ_Pc.h: Likewise.
16284         * lib/unictype/categ_Pe.h: Likewise.
16285         * lib/unictype/categ_Pf.h: Likewise.
16286         * lib/unictype/categ_Pi.h: Likewise.
16287         * lib/unictype/categ_Ps.h: Likewise.
16288         * lib/unictype/categ_Sk.h: Likewise.
16289         * lib/unictype/categ_Sm.h: Likewise.
16290         * lib/unictype/categ_Z.h: Likewise.
16291         * lib/unictype/categ_Zl.h: Likewise.
16292         * lib/unictype/categ_Zp.h: Likewise.
16293         * lib/unictype/categ_Zs.h: Likewise.
16294         * lib/unictype/ctype_blank.h: Likewise.
16295         * lib/unictype/ctype_cntrl.h: Likewise.
16296         * lib/unictype/ctype_digit.h: Likewise.
16297         * lib/unictype/ctype_space.h: Likewise.
16298         * lib/unictype/ctype_xdigit.h: Likewise.
16299         * lib/unictype/mirror.h: Likewise.
16300         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16301         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16302         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16303         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16304         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16305         * lib/unictype/pr_bidi_control.h: Likewise.
16306         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16307         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16308         * lib/unictype/pr_bidi_pdf.h: Likewise.
16309         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16310         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16311         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16312         * lib/unictype/pr_format_control.h: Likewise.
16313         * lib/unictype/pr_hex_digit.h: Likewise.
16314         * lib/unictype/pr_hyphen.h: Likewise.
16315         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16316         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16317         * lib/unictype/pr_iso_control.h: Likewise.
16318         * lib/unictype/pr_join_control.h: Likewise.
16319         * lib/unictype/pr_left_of_pair.h: Likewise.
16320         * lib/unictype/pr_line_separator.h: Likewise.
16321         * lib/unictype/pr_math.h: Likewise.
16322         * lib/unictype/pr_non_break.h: Likewise.
16323         * lib/unictype/pr_not_a_character.h: Likewise.
16324         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16325         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16326         * lib/unictype/pr_other_id_continue.h: Likewise.
16327         * lib/unictype/pr_other_id_start.h: Likewise.
16328         * lib/unictype/pr_other_lowercase.h: Likewise.
16329         * lib/unictype/pr_other_math.h: Likewise.
16330         * lib/unictype/pr_other_uppercase.h: Likewise.
16331         * lib/unictype/pr_paired_punctuation.h: Likewise.
16332         * lib/unictype/pr_paragraph_separator.h: Likewise.
16333         * lib/unictype/pr_pattern_syntax.h: Likewise.
16334         * lib/unictype/pr_pattern_white_space.h: Likewise.
16335         * lib/unictype/pr_private_use.h: Likewise.
16336         * lib/unictype/pr_quotation_mark.h: Likewise.
16337         * lib/unictype/pr_radical.h: Likewise.
16338         * lib/unictype/pr_soft_dotted.h: Likewise.
16339         * lib/unictype/pr_space.h: Likewise.
16340         * lib/unictype/pr_titlecase.h: Likewise.
16341         * lib/unictype/pr_variation_selector.h: Likewise.
16342         * lib/unictype/pr_white_space.h: Likewise.
16343         * lib/unictype/sy_c_ident.h: Likewise.
16344         * lib/unictype/sy_c_whitespace.h: Likewise.
16345         * lib/unictype/sy_java_whitespace.h: Likewise.
16346         * modules/uni*/*: Bump version number of expected libunistring version.
16347         Reported by Simon Josefsson.
16348
16349 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16350
16351         useless-if-before-free: fix typo in --help and make the internal,
16352         automatic version date update process work once again.
16353         --help output contained a NUL character instead of the
16354         backslash-zero that was intended.  Also, the "must lie within
16355         the first 8 lines" line is on line 9, and hence not getting
16356         automatically updated.
16357         * build-aux/useless-if-before-free: Fix the former by adding a
16358         backslash, and the latter by condensing the three lines of what-it-does
16359         to a single line, leaving one line of slack for the future.
16360
16361 2011-01-09  Bruno Haible  <bruno@clisp.org>
16362
16363         uniwidth/width: Fix width of U+1D173..U+1D17A.
16364         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16365         symbolic_width, output_width_property_test): New functions.
16366         (main): Invoke output_nonspacing_property, output_width_property_test.
16367         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16368         U+1D173..U+1D17A.
16369         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16370         1.
16371         * modules/uniwidth/*: Bump version number of expected libunistring
16372         version.
16373         * modules/unilbrk/*: Likewise.
16374
16375 2011-01-08  Bruno Haible  <bruno@clisp.org>
16376
16377         uninorm tests: Preserve copyright of Unicode data file.
16378         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16379         Mention modifications.
16380
16381 2011-01-08  Bruno Haible  <bruno@clisp.org>
16382
16383         gen-uni-tables: Prepare for Unicode 5.2.0.
16384         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16385         (debug_output_lbp, output_lbp): Update.
16386
16387 2011-01-08  Bruno Haible  <bruno@clisp.org>
16388
16389         unilbrk: Clarify gen-uni-tables.c code.
16390         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16391         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16392         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16393
16394 2011-01-07  Bruno Haible  <bruno@clisp.org>
16395
16396         strtod: Restore errno when successfully parsing Infinity or NaN.
16397         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16398         restore the original errno.
16399
16400 2011-01-07  Bruno Haible  <bruno@clisp.org>
16401
16402         remove test: Avoid failure on HP-UX 11.
16403         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16404
16405 2011-01-07  Bruno Haible  <bruno@clisp.org>
16406
16407         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16408         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16409         error code.
16410
16411 2011-01-07  Pádraig Brady <P@draigBrady.com>
16412
16413         ignore-value: fixup comments, and add Eric Blake
16414         as an author since he rewrote the macros.
16415         * lib/ignore-value.h (ignore_value):  State that
16416         we now support aggregates.  Also specify exactly
16417         when the GCC warn_unused_result feature was added.
16418
16419 2011-01-06  Eric Blake  <eblake@redhat.com>
16420
16421         ignore-value: support aggregate types
16422         * lib/ignore-value.h (ignore_value): Provide separate gcc
16423         definition.
16424         * modules/ignore-value-tests: New test module.
16425         * tests/test-ignore-value.c: New test.
16426
16427         maint.mk: improve sc_prohibit_strcmp regex
16428         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16429         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16430         definition of STRNEQ.
16431
16432         signal: work around Haiku issue with SIGBUS
16433         * lib/siglist.h: Add comment.
16434         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16435         strsignal's favoring of SIGSEGV.
16436         * tests/test-signal.c (main): Avoid test failure.
16437         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16438         Reported by Scott McCreary.
16439
16440         maint.mk: add pre-release check to ensure submodule commits are public
16441         * top/maint.mk (public-submodule-commit): New rule.
16442         (submodule-checks): New variable.
16443         (alpha beta stable): Depend on the variable.
16444
16445 2011-01-05  Pádraig Brady <P@draigBrady.com>
16446         and Jim Meyering  <meyering@redhat.com>
16447
16448         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16449         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16450         (ATTRIBUTE_DEPRECATED): Define.
16451         (_ignore_case): New function.
16452         (ignore_value): New macro, to replace the old function.
16453         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16454         * modules/ignore-value (Depends-on): Add stdint.
16455
16456 2011-01-04  Eric Blake  <eblake@redhat.com>
16457
16458         doc: regenerate INSTALL
16459         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16460         @firstparagraphindent support, now that autoconf dropped it.
16461         (INSTALL_PRELUDE): Reinstate old macro.
16462         * doc/install.texi: Resync from autoconf.
16463         * doc/INSTALL: Reflect recent autoconf update.
16464         * doc/INSTALL.ISO: Likewise.
16465         * doc/INSTALL.UTF-8: Likewise.
16466         Reported by Karl Berry.
16467
16468 2011-01-04  Bruce Korb  <address@hidden>
16469
16470         git-version-gen: avoid a sub-shell
16471         * build-aux/git-version-gen: Redirect stderr in `...` via
16472         "exec 2>...", rather than via an added sub-shell.
16473
16474 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16475
16476         git-version-gen: use (...) rather than sh -c '...'
16477         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16478         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16479
16480 2011-01-03  Jim Meyering  <meyering@redhat.com>
16481
16482         git-version-gen: convert leading TABs to spaces
16483         * build-aux/git-version-gen: Expand leading TABs.
16484
16485         git-version-gen: handle failed "git rev-list"
16486         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16487         from git and proceeding as if it had succeeded but printed no SHA1
16488         checksums, suppress the diagnostic and handle the failure.
16489         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16490
16491         git-version-gen: include command name in one more diagnostic
16492         * build-aux/git-version-gen: When the required .tarball-version file
16493         was missing or unreadable, you might see the diagnostic from "cat",
16494         but no trace of the name of the invoking script.  Now, you still see
16495         the diagnostic from cat, but also get one from "git-version-gen: ".
16496         Inspired by a patch from Bruce Korb.
16497
16498         update-copyright: adjust test to match changed code
16499         * tests/test-update-copyright.sh: Change test's expected output
16500         to match new actual output.
16501
16502 2011-01-02  Bruno Haible  <bruno@clisp.org>
16503
16504         getlogin_r: Avoid test failure on HP-UX 11.
16505         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16506         ERANGE when the second argument is zero.
16507         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16508         portability problem.
16509
16510 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16511
16512         * build-aux/update-copyright: doc Simon's changes
16513
16514 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16515
16516         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16517         environment variable.
16518
16519 2011-01-02  Bruno Haible  <bruno@clisp.org>
16520
16521         unigbrk: Avoid gcc warnings.
16522         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16523         unused variable.
16524         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16525         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16526         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16527         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16528         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16529         Change type of first argument to 'const char *'.
16530         (main): Remove unused variable.
16531         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16532         type of first argument to 'const char *'.
16533         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16534         Likewise.
16535         (main): Change type of variable 's'.
16536         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16537         to 'int'.
16538
16539 2011-01-02  Bruno Haible  <bruno@clisp.org>
16540
16541         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16542         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16543         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16544         bug.
16545         * lib/pwrite.c: Undo 2010-12-31 patch.
16546         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16547
16548 2011-01-02  Bruno Haible  <bruno@clisp.org>
16549
16550         pread: Fix test whether it works.
16551         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16552
16553 2011-01-02  Bruno Haible  <bruno@clisp.org>
16554
16555         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16556         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16557         ends in "6". Don't require a specific month name. Try also the locale
16558         names found on HP-UX 11 and Solaris 7.
16559
16560 2011-01-02  Bruno Haible  <bruno@clisp.org>
16561
16562         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16563         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16564         C linkage.
16565         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16566
16567 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16568
16569         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16570         for consistency, since the "cluster" term is not used elsewhere.
16571         * lib/unigbrk.in.h: Update name.
16572         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16573         * lib/unigbrk/u16-grapheme-next.c: Update name.
16574         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16575         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16576         * lib/unigbrk/u32-grapheme-next.c: Update name.
16577         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16578         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16579         * lib/unigbrk/u8-grapheme-next.c: Update name.
16580         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16581         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16582         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16583         Suggested by Bruno Haible.
16584
16585 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16586
16587         Remove module 'u8-grapheme-len' as too redundant with
16588         'u8-grapheme-next'.
16589         * modules/unigbrk/u8-grapheme-len: Delete file.
16590         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16591         * lib/unigbrk.in.h: Remove prototype for deleted function.
16592         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16593         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16594
16595         Remove module 'u16-grapheme-len' as too redundant with
16596         'u16-grapheme-next'.
16597         * modules/unigbrk/u16-grapheme-len: Delete file.
16598         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16599         * lib/unigbrk.in.h: Remove prototype for deleted function.
16600         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16601         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16602
16603         Remove module 'u32-grapheme-len' as too redundant with
16604         'u32-grapheme-next'.
16605         * modules/unigbrk/u32-grapheme-len: Delete file.
16606         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16607         * lib/unigbrk.in.h: Remove prototype for deleted function.
16608         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16609         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16610
16611         Suggested by Bruno Haible.
16612
16613 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16614
16615         * unigbrk.in.h: Fix typo: "ben" => "been".
16616         Reported by Bruno Haible.
16617
16618 2011-01-01  Jim Meyering  <meyering@redhat.com>
16619
16620         maint: update almost all copyright ranges to include 2011
16621         Run the new "make update-copyright" rule.
16622
16623 2011-01-01  Jim Meyering  <meyering@redhat.com>
16624
16625         maint: update-copyright: exempt doc/INSTALL*
16626         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16627         since they are generated.  Suggested by Bruno Haible.
16628
16629 2011-01-01  Jim Meyering  <meyering@redhat.com>
16630
16631         maint: refine the update-copyright rule
16632         * Makefile (update-copyright): Also exclude any file that includes
16633         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16634         code that merely generates the comment.
16635
16636 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16637
16638         New module 'u8-grapheme-len'.
16639         * modules/unigbrk/u8-grapheme-len: New file.
16640         * modules/unigbrk/u8-grapheme-len-tests: New file.
16641         * lib/unigbrk.in.h: Add prototype for new function.
16642         * lib/unigbrk/u8-grapheme-len.c: New file.
16643         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16644
16645         New module 'u16-grapheme-len'.
16646         * modules/unigbrk/u16-grapheme-len: New file.
16647         * modules/unigbrk/u16-grapheme-len-tests: New file.
16648         * lib/unigbrk.in.h: Add prototype for new function.
16649         * lib/unigbrk/u16-grapheme-len.c: New file.
16650         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16651
16652         New module 'u32-grapheme-len'.
16653         * modules/unigbrk/u32-grapheme-len: New file.
16654         * modules/unigbrk/u32-grapheme-len-tests: New file.
16655         * lib/unigbrk.in.h: Add prototype for new function.
16656         * lib/unigbrk/u32-grapheme-len.c: New file.
16657         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16658
16659         New module 'u8-grapheme-next'.
16660         * modules/unigbrk/u8-grapheme-next: New file.
16661         * modules/unigbrk/u8-grapheme-next-tests: New file.
16662         * lib/unigbrk.in.h: Add prototype for new function.
16663         * lib/unigbrk/u8-grapheme-next.c: New file.
16664         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16665
16666         New module 'u16-grapheme-next'.
16667         * modules/unigbrk/u16-grapheme-next: New file.
16668         * modules/unigbrk/u16-grapheme-next-tests: New file.
16669         * lib/unigbrk.in.h: Add prototype for new function.
16670         * lib/unigbrk/u16-grapheme-next.c: New file.
16671         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16672
16673         New module 'u32-grapheme-next'.
16674         * modules/unigbrk/u32-grapheme-next: New file.
16675         * modules/unigbrk/u32-grapheme-next-tests: New file.
16676         * lib/unigbrk.in.h: Add prototype for new function.
16677         * lib/unigbrk/u32-grapheme-next.c: New file.
16678         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16679
16680         New module 'u8-grapheme-prev'.
16681         * modules/unigbrk/u8-grapheme-prev: New file.
16682         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16683         * lib/unigbrk.in.h: Add prototype for new function.
16684         * lib/unigbrk/u8-grapheme-prev.c: New file.
16685         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16686
16687         New module 'u16-grapheme-prev'.
16688         * modules/unigbrk/u16-grapheme-prev: New file.
16689         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16690         * lib/unigbrk.in.h: Add prototype for new function.
16691         * lib/unigbrk/u16-grapheme-prev.c: New file.
16692         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16693
16694         New module 'u32-grapheme-prev'.
16695         * modules/unigbrk/u32-grapheme-prev: New file.
16696         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16697         * lib/unigbrk.in.h: Add prototype for new function.
16698         * lib/unigbrk/u32-grapheme-prev.c: New file.
16699         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16700
16701         New module 'u8-grapheme-breaks'.
16702         * modules/unigbrk/u8-grapheme-breaks: New file.
16703         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16704         * lib/unigbrk.in.h: Add prototype for new function.
16705         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16706         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16707
16708         New module 'u16-grapheme-breaks'.
16709         * modules/unigbrk/u16-grapheme-breaks: New file.
16710         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16711         * lib/unigbrk.in.h: Add prototype for new function.
16712         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16713         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16714
16715         New module 'u32-grapheme-breaks'.
16716         * modules/unigbrk/u32-grapheme-breaks: New file.
16717         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16718         * lib/unigbrk.in.h: Add prototype for new function.
16719         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16720         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16721
16722         New module 'ulc-grapheme-breaks'.
16723         * modules/unigbrk/ulc-grapheme-breaks: New file.
16724         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16725         * m4/locale-ar.m4: New file.
16726         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16727         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16728         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16729
16730 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16731
16732         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16733         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16734         modified how this file was generated before I initially submitted
16735         the module, but failed to regenerate it.  This meant that several
16736         of the level2 entries were wrong.
16737         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16738         Remove the division-by-2 that is folded into the table now that
16739         gbrkprop.h has been regenerated properly.  Now -1 entries are
16740         handled correctly.
16741
16742         New module 'unigbrk/uc-gbrk-prop-tests'.
16743         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16744         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16745         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16746         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16747
16748 2011-01-01  Bruno Haible  <bruno@clisp.org>
16749
16750         Avoid use of hexadecimal escapes.
16751         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16752         instead of hexadecimal escapes.
16753
16754 2011-01-01  Jim Meyering  <meyering@redhat.com>
16755
16756         maint: new rule to update copyright year ranges
16757         * Makefile (update-copyright): New rule.
16758
16759         maint: indent with TABs in Makefile
16760         * Makefile: Expand leading sequences of spaces to TABs
16761
16762         version-etc: update the copyright year it reports
16763         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16764
16765 2010-12-31  Bruno Haible  <bruno@clisp.org>
16766
16767         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16768         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16769         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16770         zero.
16771
16772 2010-12-31  Bruno Haible  <bruno@clisp.org>
16773
16774         pwrite: Work around HP-UX 11.11 bug.
16775         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16776         works and set REPLACE_PWRITE if not.
16777         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16778         function.
16779         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16780
16781 2010-12-31  Bruno Haible  <bruno@clisp.org>
16782
16783         pread: Work around HP-UX 11 bugs.
16784         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16785         and set REPLACE_PREAD if not.
16786         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16787
16788 2010-12-31  Eric Blake  <eblake@redhat.com>
16789
16790         nl_langinfo: fix YESEXPR on Irix 6.5
16791         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16792         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16793         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16794         it.
16795
16796 2010-12-31  Bruno Haible  <bruno@clisp.org>
16797
16798         iconv: Document HP-UX 11 bug.
16799         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16800
16801 2010-12-31  Bruno Haible  <bruno@clisp.org>
16802
16803         ldexpl: Fix link error on HP-UX 11.
16804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16805         LDEXPL_LIBM, using $ISNANL_LIBM.
16806
16807 2010-12-31  Eric Blake  <eblake@redhat.com>
16808
16809         ftello: avoid compilation failure with SunStudio c89
16810         * lib/ftello.c (ftello): Use lseek, not llseek.
16811
16812         tests: avoid failing coreutils tests on cygwin
16813         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16814         (create_exe_shims_): Return 0 when skipping.
16815
16816 2010-12-31  Bruno Haible  <bruno@clisp.org>
16817
16818         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16819         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16820
16821 2010-12-31  Bruno Haible  <bruno@clisp.org>
16822
16823         waitpid: Fix link error in C++ mode.
16824         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16825
16826 2010-12-31  Bruno Haible  <bruno@clisp.org>
16827
16828         isnan: Use GCC built-ins when possible.
16829         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16830         __builtin_isnan.
16831         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16832         (isnan): Define using GCC built-ins for GCC >= 4.0.
16833
16834 2010-12-31  Bruno Haible  <bruno@clisp.org>
16835
16836         isnand: Fix mistake.
16837         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16838         __builtin_isnand.
16839
16840 2010-12-31  Bruno Haible  <bruno@clisp.org>
16841
16842         open: Avoid C++ error on HP-UX 11.
16843         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16844
16845 2010-12-31  Bruno Haible  <bruno@clisp.org>
16846
16847         time_r: Add missing declarations on HP-UX 11.
16848         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16849         instead of HAVE_LOCALTIME_R.
16850         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16851         HAVE_LOCALTIME_R always.
16852         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16853         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16854         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16855         HAVE_LOCALTIME_R.
16856         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16857         * doc/posix-functions/localtime_r.texi: Likewise.
16858
16859 2010-12-29  Eric Blake  <eblake@redhat.com>
16860
16861         mountlist: tweak previous commit
16862         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16863         Reported by Paul Eggert.
16864
16865         mountlist: fix local drive detection on cygwin
16866         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16867         that works for cygwin.
16868
16869 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16870
16871         ftoastr, snprintf: ftoastr + snprintf module
16872         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16873         since the snprintf module now should be good enough here.
16874         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16875         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16876         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16877         GNULIB_SNPRINTF only for the test directory, and the latter
16878         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16879         seems to suffice by itself.
16880
16881 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16882
16883         alloca: one step towards thread-safety
16884         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16885         need for a static variable.  All callers changed.  This does not
16886         make the alloca replacement thread-safe, but it's one step.
16887
16888         tests: minor indenting change
16889         * tests/init.sh: Sync from coreutils housekeeping patch
16890         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16891         to keep lines within 80 columns.
16892
16893 2010-12-28  Jim Meyering  <meyering@redhat.com>
16894
16895         regex: don't infloop on persistent failing calloc
16896         * lib/regexec.c (build_trtable): Return failure indication upon
16897         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16898         In glibc, this was fixed for version 2.13:
16899         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16900
16901 2010-12-28  Bruno Haible  <bruno@clisp.org>
16902             Paul Eggert <eggert@cs.ucla.edu>
16903
16904         linkat: Make implementation robust against system behaviour variations.
16905         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16906         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16907         way, and to -2 if it needs a generic runtime test.
16908         * lib/linkat.c (solaris_optimized_link_immediate,
16909         solaris_optimized_link_follow): New functions.
16910         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16911         (check_same_link): Use it.
16912
16913 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16914
16915         New module 'unigbrk/base'.
16916         * modules/unigbrk/base: New file.
16917         * lib/unigbrk.in.h: New file.
16918
16919         New module 'unigbrk/uc-gbrk-prop'.
16920         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16921         * modules/unigbrk/uc-gbrk-prop: New file.
16922         * lib/unigbrk/gbrkprop.h: New file.
16923         * lib/unigbrk/uc-gbrk-prop.c: New file.
16924
16925         New module 'unigbrk/uc-is-grapheme-break'.
16926         * modules/unigbrk/uc-is-grapheme-break: New file.
16927         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16928         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16929         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16930         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16931         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16932
16933         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16934
16935 2010-12-27  Bruno Haible  <bruno@clisp.org>
16936
16937         linkat test: Avoid failure on Solaris 11 2010-11.
16938         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16939
16940 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16941
16942         utimens: work around glibc rounding bug on more platforms
16943         * lib/utimens.c (fdutimens): Work around rounding bug even if
16944         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16945         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16946
16947 2010-12-27  Bruno Haible  <bruno@clisp.org>
16948
16949         select tests: Improve comments.
16950         * tests/test-select.c (do_select): Add comments.
16951
16952 2010-12-27  Bruno Haible  <bruno@clisp.org>
16953
16954         select tests: Safer way of handling timeout.
16955         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16956         at every invocation.
16957
16958 2010-12-27  Bruno Haible  <bruno@clisp.org>
16959
16960         select tests: Use 'bool' where appropriate.
16961         * tests/test-select.c (connect_to_socket): Change argument type to
16962         'bool'.
16963
16964 2010-12-27  Bruno Haible  <bruno@clisp.org>
16965
16966         select tests: Use existing modules.
16967         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16968         (configure.ac): Don't test for unistd.h.
16969         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16970         declared in <unistd.h>.
16971
16972 2010-12-27  Bruno Haible  <bruno@clisp.org>
16973
16974         mbrtowc: Work around a Solaris 7 bug.
16975         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16976         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16977         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16978         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16979         MBRTOWC_NULL_ARG1_BUG.
16980         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16981         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16982         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16983         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16984
16985 2010-12-27  Jim Meyering  <meyering@redhat.com>
16986
16987         read-file.c: tweak syntax
16988         * lib/read-file.c (fread_file): Remove space after "*" in function
16989         definitions.
16990
16991 2010-12-27  Bruno Haible  <bruno@clisp.org>
16992
16993         times test: Avoid gcc warnings on OSF/1.
16994         * tests/test-times.c (main): Cast printf arguments from clock_t to
16995         'long int'.
16996
16997 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         utimens: work around glibc rounding bug on older Linux kernels
17000         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17001         on Linux with a glibc whose utimes might not work, then work
17002         around a longstanding glibc bug involving rounding rather than
17003         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17005
17006 2010-12-26  Bruno Haible  <bruno@clisp.org>
17007
17008         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17009         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17010         _GL_CXXALIAS_SYS.
17011         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17012
17013 2010-12-26  Bruno Haible  <bruno@clisp.org>
17014
17015         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17016         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17017         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17018         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17019         looking for the declaration.
17020         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17021         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17022         problem.
17023         * doc/posix-functions/inet_pton.texi: Likewise.
17024
17025 2010-12-26  Bruno Haible  <bruno@clisp.org>
17026
17027         arpa_inet: Use the common idioms with C++ support.
17028         * lib/arpa_inet.in.h: Include c++defs.h.
17029         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17030         support.
17031         * modules/arpa_inet (Depends-on): Add c++defs.
17032         (Makefile.am): Substitute the contents of c++defs.h.
17033         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17034         * modules/arpa_inet-c++-tests: New file.
17035         * tests/test-arpa_inet-c++.cc: New file.
17036
17037 2010-12-25  Bruno Haible  <bruno@clisp.org>
17038
17039         Fix more C++ link errors on Solaris 8.
17040         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17041         $(LIB_EACCESS).
17042         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17043         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17044         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17045         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17046         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17047
17048 2010-12-25  Bruno Haible  <bruno@clisp.org>
17049
17050         printf-posix: Fix link error when a non-GCC compiler is used.
17051         * lib/stdio.in.h (printf): When not using GCC, override printf
17052         correctly.
17053         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17054
17055 2010-12-25  Bruno Haible  <bruno@clisp.org>
17056
17057         strerror_r-posix: Update doc.
17058         * doc/posix-functions/strerror_r.texi: Update doc about the return
17059         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17060
17061 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         utimens: simplify the logic of the previous change
17064         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17065         This should not affect whether the test succeeds or fails.
17066
17067         utimens: configure better on hosts with NFS clock skew
17068         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17069         uses the clock of the local host.  It might use the clock of the
17070         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17072
17073 2010-12-25  Bruno Haible  <bruno@clisp.org>
17074
17075         ptsname test: Avoid failure on Solaris.
17076         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17077         open a pseudo-terminal; don't use BSD-style ptys.
17078         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17079
17080 2010-12-25  Bruno Haible  <bruno@clisp.org>
17081
17082         ptsname: Avoid ERANGE failure on some systems.
17083         * lib/ptsname.c (buffer): Increase size.
17084
17085 2010-12-25  Bruno Haible  <bruno@clisp.org>
17086
17087         rename, renameat: Avoid test failures at NFS mounted locations.
17088         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17089         so that subsequent mkdir calls succeed.
17090
17091 2010-12-25  Bruno Haible  <bruno@clisp.org>
17092
17093         iswblank: Fix C++ link error on Solaris 8.
17094         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17095         _GL_FUNCDECL_SYS.
17096
17097 2010-12-25  Bruno Haible  <bruno@clisp.org>
17098
17099         unistd: Fix C++ link error on Solaris 8.
17100         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17101
17102 2010-12-25  Bruno Haible  <bruno@clisp.org>
17103
17104         readlink doc: Mention an old glibc bug.
17105         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17106
17107 2010-12-25  Bruno Haible  <bruno@clisp.org>
17108
17109         fcntl-h: Fix for use of C++ on glibc systems.
17110         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17111         also on glibc systems in C++ mode.
17112         Reported by Gary V. Vaughan <gary@gnu.org>.
17113
17114 2010-12-25  Bruno Haible  <bruno@clisp.org>
17115
17116         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17117         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17118
17119 2010-12-25  Bruno Haible  <bruno@clisp.org>
17120
17121         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17122         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17123         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17124         test whether truncl works according to ISO C 99 with IEC 60559.
17125         * m4/truncl-ieee.m4: New file.
17126         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17127         m4/signbit.m4.
17128         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17129
17130 2010-12-25  Bruno Haible  <bruno@clisp.org>
17131
17132         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17133         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17134         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17135         test whether ceill works according to ISO C 99 with IEC 60559.
17136         * m4/ceill-ieee.m4: New file.
17137         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17138         m4/signbit.m4.
17139         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17140
17141 2010-12-25  Bruno Haible  <bruno@clisp.org>
17142
17143         Ensure all prerequisites of <wchar.h> are included.
17144         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17145         before <wchar.h>.
17146         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17147         gl_MBRLEN_NUL_RETVAL): Likewise.
17148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17149         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17150         AC_FUNC_MBRTOWC): Likewise.
17151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17152         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17153         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17154         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17155         Likewise.
17156         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17157         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17158         (gl_WCHAR_H): Improve comments.
17159         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17160
17161 2010-12-25  Bruno Haible  <bruno@clisp.org>
17162
17163         strtok_r: Fix C syntax error in autoconf macro.
17164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17165         characters in test program.
17166
17167 2010-12-24  Bruno Haible  <bruno@clisp.org>
17168
17169         ceil, trunc, round: Fix gcc warnings.
17170         * lib/ceil.c (MIN): Undefine before redefining.
17171         * lib/trunc.c (MIN): Likewise.
17172         * lib/round.c (MIN): Likewise.
17173         Include <math.h> first.
17174
17175 2010-12-24  Bruno Haible  <bruno@clisp.org>
17176
17177         select tests: Avoid failures on OSF/1 5.1.
17178         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17179         failure of closing the last socket; it may fail with ECONNRESET.
17180
17181 2010-12-24  Eric Blake  <eblake@redhat.com>
17182
17183         stdint: avoid HP-UX 10.20 preprocessor bug
17184         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17185         than #if.
17186         * tests/test-floor2.c (main): Likewise.
17187         Reported by Peter O'Gorman.
17188
17189         pipe: make obsoletion transition easier
17190         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17191         * modules/pipe (Files): Include revived file.
17192         (Include): Drop reference, to mirror getdate's behavior.
17193
17194 2010-12-24  Bruno Haible  <bruno@clisp.org>
17195
17196         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17197         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17198         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17199         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17200
17201 2010-12-24  Bruno Haible  <bruno@clisp.org>
17202
17203         gethostname: Ensure declaration on NonStop Kernel.
17204         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17205         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17206
17207 2010-12-24  Bruno Haible  <bruno@clisp.org>
17208
17209         sys_select: Ensure all necessary types on NonStop Kernel.
17210         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17211         include <sys/time.h>.
17212         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17213         NonStop Kernel.
17214         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17215
17216 2010-12-24  Bruno Haible  <bruno@clisp.org>
17217
17218         sys_select: Remove unneeded include.
17219         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17220         have <sys/select.h>.
17221
17222 2010-12-24  Bruno Haible  <bruno@clisp.org>
17223
17224         gethostname: Provide a fallback for HOST_NAME_MAX.
17225         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17226         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17227         instead.
17228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17229
17230 2010-12-24  Bruno Haible  <bruno@clisp.org>
17231
17232         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17233         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17234         (SA_RESTART): Likewise.
17235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17236
17237 2010-12-24  Bruno Haible  <bruno@clisp.org>
17238
17239         signal: Define NSIG.
17240         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17241         * tests/test-signal.c (nsig): New variable.
17242         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17243
17244 2010-12-24  Bruno Haible  <bruno@clisp.org>
17245
17246         rename, renameat: Avoid test failures on OSF/1 5.1.
17247         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17248         alternative error codes.
17249         * tests/test-renameat.c (main): Likewise.
17250
17251 2010-12-24  Bruno Haible  <bruno@clisp.org>
17252
17253         *printf: Detect large precisions bug on Solaris 10/SPARC.
17254         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17255         by Paul Eggert.
17256         * tests/test-snprintf-posix.h (test_function): Add this test code here
17257         too.
17258         * tests/test-sprintf-posix.h (test_function): Likewise.
17259         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17260         * tests/test-vasprintf-posix.c (test_function): Likewise.
17261         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17262         around by gnulib.
17263         * doc/posix-functions/printf.texi: Likewise.
17264         * doc/posix-functions/snprintf.texi: Likewise.
17265         * doc/posix-functions/sprintf.texi: Likewise.
17266         * doc/posix-functions/vfprintf.texi: Likewise.
17267         * doc/posix-functions/vprintf.texi: Likewise.
17268         * doc/posix-functions/vsnprintf.texi: Likewise.
17269         * doc/posix-functions/vsprintf.texi: Likewise.
17270         * doc/posix-functions/dprintf.texi: Undo last commit.
17271         * doc/posix-functions/vdprintf.texi: Likewise.
17272
17273 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17274
17275         tests: port test-fdutimensat.c to Solaris 8
17276         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17277         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17278         On Solaris 8, it fails with errno == ENOSYS, because there is no
17279         futimens (so it can't use the fd), and there is no lutimens (so it
17280         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17281
17282         vsnprintf: make more consistent with snprintf; doc fixes
17283
17284         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17285         the byte count return problem was promoted from the snprintf-posix
17286         to the snprintf module.
17287         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17289         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17290         * tests/test-snprintf.c (main): Check the byte count returned.
17291         * tests/test-vsnprintf.c (main): Likewise.
17292
17293 2010-12-23  Eric Blake  <eblake@redhat.com>
17294
17295         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17296         * modules/sigpipe (License): Relax license.
17297
17298 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17299
17300         doc: document Solaris printf bug with large float precisions
17301         * doc/posix-functions/dprintf.texi (dprintf):
17302         * doc/posix-functions/fprintf.texi (fprintf):
17303         * doc/posix-functions/printf.texi (printf):
17304         * doc/posix-functions/snprintf.texi (snprintf):
17305         * doc/posix-functions/sprintf.texi (sprintf):
17306         * doc/posix-functions/vdprintf.texi (vdprintf):
17307         * doc/posix-functions/vfprintf.texi (vfprintf):
17308         * doc/posix-functions/vprintf.texi (vprintf):
17309         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17310         * doc/posix-functions/vsprintf.texi (vsprintf):
17311         Mention that these functions mishandle large floating point
17312         precisions on Solaris 10.  The same bug is also present in Solaris
17313         8, and I assume earlier.  This causes "cd gnulib-tests; make
17314         check" to fail on Solaris 8 (and I assume, later) when building
17315         the latest coreutils, in test-vasprintf-posix's call to
17316         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17317         the wide flavors (e.g., wprintf) so this patch just updates the
17318         documentation for the narrow ones.
17319
17320         test-posixtm.c: add two tests
17321         * tests/test-posixtm.c: Add two tests, to highlight the
17322         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17323         around this bug; this is merely to document it.
17324
17325 2010-12-22  Bruno Haible  <bruno@clisp.org>
17326
17327         getlogin_r: Work around portability problem on OSF/1.
17328         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17329         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17330         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17331         test for a truncated result.
17332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17333         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17334         * modules/getlogin_r (Depends-on): Add memchr.
17335         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17336
17337 2010-12-22  Bruno Haible  <bruno@clisp.org>
17338
17339         ptsname: Avoid test failure on OSF/1 5.1.
17340         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17341         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17342         (same_slave): New function.
17343         (main): Use it to compare ptsname's result with the expected file name.
17344
17345 2010-12-22  Bruno Haible  <bruno@clisp.org>
17346
17347         Port extended stdio modules to HP NonStop Kernel.
17348         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17349         macros.
17350         * lib/fbufmode.c: Update comments.
17351         * lib/fflush.c: Likewise.
17352         * lib/fpurge.c: Likewise.
17353         * lib/freadable.c: Likewise.
17354         * lib/freadahead.c: Likewise.
17355         * lib/freading.c: Likewise.
17356         * lib/freadptr.c: Likewise.
17357         * lib/freadseek.c: Likewise.
17358         * lib/fseeko.c: Likewise.
17359         * lib/fseterr.c: Likewise.
17360         * lib/fwritable.c: Likewise.
17361         * lib/fwriting.c: Likewise.
17362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17363
17364 2010-12-22  Bruno Haible  <bruno@clisp.org>
17365
17366         ttyname_r: Work around bug on OSF/1 5.1.
17367         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17368         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17369         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17370         present.
17371         * lib/ttyname_r.c (ttyname_r): Update comments.
17372
17373 2010-12-22  Bruno Haible  <bruno@clisp.org>
17374
17375         round: Implement result sign according to IEEE 754.
17376         * lib/round.c (MIN, MINUS_ZERO): New macros.
17377         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17378         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17379         * tests/test-round-ieee.c (main): Likewise.
17380         * tests/test-roundl-ieee.c (main): Likewise.
17381
17382         trunc: Implement result sign according to IEEE 754.
17383         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17384         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17385         * tests/test-trunc2.c: Include minus-zero.h.
17386         (MINUS_ZERO): New macro.
17387         (trunc_reference): Keep in sync with lib/trunc.c.
17388         * tests/test-truncf2.c: Include minus-zero.h.
17389         (MINUS_ZERO): New macro.
17390         (truncf_reference): Keep in sync with lib/trunc.c.
17391         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17392         * tests/test-trunc-ieee.c (main): Likewise.
17393         * tests/test-truncl-ieee.c (main): Likewise.
17394
17395         ceil: Implement result sign according to IEEE 754.
17396         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17397         (FUNC): Return -0.0 for -1 < x < 0.
17398         * tests/test-ceil2.c: Include minus-zero.h.
17399         (MINUS_ZERO): New macro.
17400         (ceil_reference): Keep in sync with lib/ceil.c.
17401         * tests/test-ceilf2.c: Include minus-zero.h.
17402         (MINUS_ZERO): New macro.
17403         (ceilf_reference): Keep in sync with lib/ceil.c.
17404         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17405         * tests/test-ceil-ieee.c (main): Likewise.
17406         * tests/test-ceill-ieee.c (main): Likewise.
17407
17408         floor: Implement result sign according to IEEE 754.
17409         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17410         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17411         * tests/test-floorf2.c (floorf_reference): Likewise.
17412         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17413         * tests/test-floor-ieee.c (main): Likewise.
17414         * tests/test-floorl-ieee.c (main): Likewise.
17415
17416 2010-12-22  Bruno Haible  <bruno@clisp.org>
17417
17418         getaddrinfo: Update doc.
17419         * doc/posix-functions/gai_strerror.texi: Return type is also different
17420         on AIX and HP-UX.
17421
17422 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17423
17424         getaddrinfo, inet_ntop: Update doc for Solaris.
17425         * doc/posix-functions/gai_strerror.texi: Return type is also an
17426         issue on Solaris 9 and earlier.
17427         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17428         on Solaris 10 and earlier.
17429
17430 2010-12-21  Bruno Haible  <bruno@clisp.org>
17431
17432         New module 'roundl-ieee'.
17433         * modules/roundl-ieee: New file.
17434         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17435         test whether roundl works according to ISO C 99 with IEC 60559.
17436         * m4/roundl-ieee.m4: New file.
17437         * modules/roundl-ieee-tests: New file.
17438         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17439         * tests/test-roundl.c (main): Remove signbit tests.
17440         * modules/roundl-tests (Depends-on): Remove signbit.
17441         * doc/posix-functions/roundl.texi: Mention the new module.
17442
17443 2010-12-21  Bruno Haible  <bruno@clisp.org>
17444
17445         New module 'truncl-ieee'.
17446         * modules/truncl-ieee: New file.
17447         * modules/truncl-ieee-tests: New file.
17448         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17449         * tests/test-truncl.c (main): Remove signbit tests.
17450         * modules/truncl-tests (Depends-on): Remove signbit.
17451         * doc/posix-functions/truncl.texi: Mention the new module.
17452
17453 2010-12-21  Bruno Haible  <bruno@clisp.org>
17454
17455         New module 'ceill-ieee'.
17456         * modules/ceill-ieee: New file.
17457         * modules/ceill-ieee-tests: New file.
17458         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17459         * tests/test-ceill.c (main): Remove signbit tests.
17460         * modules/ceill-tests (Depends-on): Remove signbit.
17461         * doc/posix-functions/ceill.texi: Mention the new module.
17462
17463 2010-12-21  Bruno Haible  <bruno@clisp.org>
17464
17465         New module 'floorl-ieee'.
17466         * modules/floorl-ieee: New file.
17467         * modules/floorl-ieee-tests: New file.
17468         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17469         * tests/test-floorl.c (main): Remove signbit tests.
17470         * modules/floorl-tests (Depends-on): Remove signbit.
17471         * doc/posix-functions/floorl.texi: Mention the new module.
17472
17473 2010-12-21  Bruno Haible  <bruno@clisp.org>
17474
17475         New module 'round-ieee'.
17476         * modules/round-ieee: New file.
17477         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17478         whether round works according to ISO C 99 with IEC 60559.
17479         * m4/round-ieee.m4: New file.
17480         * modules/round-ieee-tests: New file.
17481         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17482         * tests/test-round1.c (main): Remove signbit tests.
17483         * modules/round-tests (Depends-on): Remove 'signbit'.
17484         * doc/posix-functions/round.texi: Mention the new module.
17485
17486 2010-12-21  Bruno Haible  <bruno@clisp.org>
17487
17488         New module 'trunc-ieee'.
17489         * modules/trunc-ieee: New file.
17490         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17491         whether trunc works according to ISO C 99 with IEC 60559.
17492         * m4/trunc-ieee.m4: New file.
17493         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17495         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17496         * modules/trunc-ieee-tests: New file.
17497         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17498         * tests/test-trunc1.c (main): Remove signbit tests.
17499         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17500         * doc/posix-functions/trunc.texi: Mention the new module.
17501
17502 2010-12-21  Bruno Haible  <bruno@clisp.org>
17503
17504         New module 'ceil-ieee'.
17505         * modules/ceil-ieee: New file.
17506         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17507         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17508         ISO C 99 with IEC 60559.
17509         * m4/ceil-ieee.m4: New file.
17510         * modules/ceil (Files): Add lib/ceil.c.
17511         (Depends-on): Add 'float'.
17512         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17513         * lib/math.in.h (ceil): New declaration.
17514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17515         REPLACE_CEIL.
17516         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17517         * modules/ceil-ieee-tests: New file.
17518         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17519         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17520         * doc/posix-functions/ceil.texi: Mention the new module.
17521
17522 2010-12-21  Bruno Haible  <bruno@clisp.org>
17523
17524         New module 'floor-ieee'.
17525         * modules/floor-ieee: New file.
17526         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17527         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17528         ISO C 99 with IEC 60559.
17529         * m4/floor-ieee.m4: New file.
17530         * modules/floor (Files): Add lib/floor.c.
17531         (Depends-on): Add 'float'.
17532         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17533         * lib/math.in.h (floor): New declaration.
17534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17535         REPLACE_FLOOR.
17536         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17537         * modules/floor-ieee-tests: New file.
17538         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17539         * tests/test-math-c++.cc: Check the signature of 'floor'.
17540         * doc/posix-functions/floor.texi: Mention the new module.
17541
17542 2010-12-21  Bruno Haible  <bruno@clisp.org>
17543
17544         New module 'roundf-ieee'.
17545         * modules/roundf-ieee: New file.
17546         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17547         test whether roundf works according to ISO C 99 with IEC 60559.
17548         * m4/roundf-ieee.m4: New file.
17549         * modules/roundf-ieee-tests: New file.
17550         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17551         * tests/test-roundf1.c (main): Remove signbit tests.
17552         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17553         * doc/posix-functions/roundf.texi: Mention the new module.
17554
17555 2010-12-21  Bruno Haible  <bruno@clisp.org>
17556
17557         New module 'truncf-ieee'.
17558         * modules/truncf-ieee: New file.
17559         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17560         test whether truncf works according to ISO C 99 with IEC 60559.
17561         * m4/truncf-ieee.m4: New file.
17562         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17564         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17565         * modules/truncf-ieee-tests: New file.
17566         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17567         * tests/test-truncf1.c (main): Remove signbit tests.
17568         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17569         * doc/posix-functions/truncf.texi: Mention the new module.
17570
17571 2010-12-21  Bruno Haible  <bruno@clisp.org>
17572
17573         New module 'ceilf-ieee'.
17574         * modules/ceilf-ieee: New file.
17575         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17576         test whether ceilf works according to ISO C 99 with IEC 60559.
17577         * m4/ceilf-ieee.m4: New file.
17578         * modules/ceilf-ieee-tests: New file.
17579         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17580         * tests/test-ceilf1.c (main): Remove signbit tests.
17581         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17582         * doc/posix-functions/ceilf.texi: Mention the new module.
17583
17584 2010-12-21  Bruno Haible  <bruno@clisp.org>
17585
17586         New module 'floorf-ieee'.
17587         * modules/floorf-ieee: New file.
17588         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17589         test whether floorf works according to ISO C 99 with IEC 60559.
17590         * m4/floorf-ieee.m4: New file.
17591         * modules/floorf-ieee-tests: New file.
17592         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17593         * tests/test-floorf1.c (main): Remove signbit tests.
17594         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17595         * doc/posix-functions/floorf.texi: Mention the new module.
17596
17597 2010-12-21  Bruno Haible  <bruno@clisp.org>
17598
17599         Support for minus zero in autoconf macros.
17600         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17601         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17602         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17603         * tests/minus-zero.h: Update comments.
17604
17605 2010-12-21  Bruno Haible  <bruno@clisp.org>
17606
17607         Tests for module 'ceil'.
17608         * modules/ceil-tests: New file.
17609         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17610         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17611
17612 2010-12-21  Bruno Haible  <bruno@clisp.org>
17613
17614         Tests for module 'floor'.
17615         * modules/floor-tests: New file.
17616         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17617         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17618
17619 2010-12-21  Bruno Haible  <bruno@clisp.org>
17620
17621         math: Fix indentation.
17622         * lib/math.in.h (floorf): Fix indentation.
17623
17624 2010-12-21  Bruno Haible  <bruno@clisp.org>
17625
17626         Fix cross-compilation guesses on Solaris.
17627         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17628         not match "solaris2.10".
17629         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17630         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17631         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17632
17633 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17634
17635         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17636         This fixes a problem observed with the latest coreutils snapshot
17637         that caused a test to fail on Solaris 8.  src/csplit.c's call
17638         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17639         earlier, instead of returning the number of bytes that would have
17640         been generated; this causes csplit to incorrectly report memory
17641         exhaustion.
17642         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17643         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17644         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17645         comments to match.
17646         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17647         Fix typo in matching older versions of Solaris: "solaris2.10"
17648         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17649         only for guessing while cross-compiling.
17650         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17651
17652 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17653
17654         ftoastr: fix comment again
17655         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17657         Also, simplify example a bit by using flags = 0.
17658
17659 2010-12-20  Bruno Haible  <bruno@clisp.org>
17660
17661         round*, trunc*: Update documentation regarding glibc.
17662         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17663         * doc/posix-functions/round.texi: Likewise.
17664         * doc/posix-functions/roundl.texi: Likewise.
17665         * doc/posix-functions/truncf.texi: Likewise.
17666         * doc/posix-functions/trunc.texi: Likewise.
17667         * doc/posix-functions/truncl.texi: Likewise.
17668
17669 2010-12-20  Bruno Haible  <bruno@clisp.org>
17670
17671         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17672         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17673         * doc/posix-functions/round.texi: Likewise.
17674         * doc/posix-functions/roundl.texi: Likewise.
17675
17676 2010-12-20  Bruno Haible  <bruno@clisp.org>
17677
17678         ttyname_r: Add missing declaration on HP-UX 11.
17679         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17680         HAVE_TTYNAME_R.
17681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17682         declared. Set HAVE_TTYNAME_R always.
17683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17684         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17685         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17686         HAVE_TTYNAME_R.
17687         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17688
17689 2010-12-20  Bruno Haible  <bruno@clisp.org>
17690
17691         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17692         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17693         * doc/posix-functions/getlogin_r.texi: Likewise.
17694         * tests/test-getlogin.c: Include <errno.h>.
17695         (main): Avoid test failure on HP-UX 11.11.
17696         * tests/test-getlogin_r.c (main): Likewise.
17697
17698 2010-12-20  Bruno Haible  <bruno@clisp.org>
17699
17700         getlogin_r: Add missing declaration on HP-UX 11.
17701         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17702         declared also when it exists as a function.
17703         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17704
17705 2010-12-20  Bruno Haible  <bruno@clisp.org>
17706
17707         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17708         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17709         through wcrtomb.
17710
17711 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         ftoastr: fix comment
17714         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17716
17717 2010-12-19  Bruno Haible  <bruno@clisp.org>
17718
17719         isnan: Ensure it is a macro.
17720         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17721         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17722         Solaris.
17723
17724 2010-12-19  Bruno Haible  <bruno@clisp.org>
17725
17726         ldexpl test: Fix link error on OSF/1 5.1.
17727         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17728
17729 2010-12-19  Bruno Haible  <bruno@clisp.org>
17730
17731         wctype: Make it work in C++ mode on OSF/1 5.1.
17732         * lib/wctype.in.h (iswblank): Declare but not define here.
17733         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17734         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17735         * modules/wctype (Files): Add lib/iswblank.c.
17736
17737 2010-12-19  Bruno Haible  <bruno@clisp.org>
17738
17739         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17740         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17741         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17742
17743 2010-12-19  Bruno Haible  <bruno@clisp.org>
17744
17745         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17747         _POSIX_PII_SOCKET.
17748         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17749         * doc/posix-functions/recvfrom.texi: Likewise.
17750         * doc/posix-functions/send.texi: Likewise.
17751         * doc/posix-functions/sendto.texi: Likewise.
17752
17753 2010-12-19  Bruno Haible  <bruno@clisp.org>
17754
17755         tcgetsid: Add missing declaration on OSF/1 5.1.
17756         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17757         HAVE_TCGETSID.
17758         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17759         Don't set HAVE_TCGETSID.
17760         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17761         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17762         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17763         HAVE_TCGETSID.
17764         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17765
17766 2010-12-19  Bruno Haible  <bruno@clisp.org>
17767
17768         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17769         * lib/stdio.in.h: During the include_next statement, let recursive
17770         includes of this file include only the system header file.
17771
17772 2010-12-19  Bruno Haible  <bruno@clisp.org>
17773
17774         iconv_open: Fix regression from 2010-12-04.
17775         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17776         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17777
17778 2010-12-19  Bruno Haible  <bruno@clisp.org>
17779
17780         stdbool test: Avoid a gcc warning.
17781         * tests/test-stdbool.c (main): Fail if e1 is false.
17782         Reported by Jim Meyering.
17783
17784 2010-12-19  Jim Meyering  <meyering@redhat.com>
17785
17786         setenv: restore to working order
17787         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17788         mistakenly removed.
17789         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17790         HAVE_SETENV.
17791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17792         HAVE_SETENV.
17793
17794 2010-12-19  Bruno Haible  <bruno@clisp.org>
17795
17796         Document some different function declarations on OSF/1 5.1.
17797         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17798         * doc/posix-functions/inet_ntop.texi: Likewise.
17799         * doc/posix-functions/gethostname.texi: Likewise.
17800         * lib/unistd.in.h (gethostname): Update comment.
17801
17802 2010-12-19  Bruno Haible  <bruno@clisp.org>
17803
17804         doc: Mention vasprintf-posix module.
17805         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17806         the 'vasprintf-posix' module.
17807         * doc/glibc-functions/vasprintf.texi: Likewise.
17808
17809 2010-12-19  Bruno Haible  <bruno@clisp.org>
17810
17811         unsetenv: Add missing declaration on OSF/1 5.1.
17812         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17813         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17814         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17816         not HAVE_UNSETENV.
17817         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17818         HAVE_UNSETENV.
17819         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17820
17821 2010-12-19  Bruno Haible  <bruno@clisp.org>
17822
17823         setenv: Add missing declaration on OSF/1 5.1.
17824         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17826         declared. Don't set HAVE_SETENV.
17827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17828         not HAVE_SETENV.
17829         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17830         HAVE_SETENV.
17831         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17832
17833 2010-12-19  Bruno Haible  <bruno@clisp.org>
17834
17835         nl_langinfo tests: Avoid gcc warning.
17836         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17837
17838 2010-12-19  Bruno Haible  <bruno@clisp.org>
17839
17840         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17841         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17842         _GL_CXXALIAS_SYS.
17843
17844 2010-12-19  Bruno Haible  <bruno@clisp.org>
17845
17846         stdbool: Relax test.
17847         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17848         address to 'bool' work in static initializer, for compilers other than
17849         GCC.
17850
17851 2010-12-19  Bruno Haible  <bruno@clisp.org>
17852
17853         ftello: Add missing declaration on OSF/1 5.1.
17854         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17855         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17857         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17858         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17859
17860 2010-12-19  Bruno Haible  <bruno@clisp.org>
17861
17862         fseeko: Add missing declaration on OSF/1 5.1.
17863         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17866         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17867         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17868
17869 2010-12-19  Bruno Haible  <bruno@clisp.org>
17870
17871         fchdir: Add missing declaration on OSF/1 5.1.
17872         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17875         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17876         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17877
17878 2010-12-19  Bruno Haible  <bruno@clisp.org>
17879
17880         relocatable-prog-wrapper: Separate from relocatable-prog.
17881         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17882         uninstall-relocwrapper rule here.
17883         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17884         Reported by Ian Beckwith <ianb@erislabs.net>.
17885
17886 2010-12-19  Bruno Haible  <bruno@clisp.org>
17887
17888         unistr/u8-mbsnlen: Add missing dependency.
17889         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17890         Reported by Ian Beckwith <ianb@erislabs.net>.
17891
17892 2010-12-19  Bruno Haible  <bruno@clisp.org>
17893
17894         iconv: Make it possible again to use this module without 'iconv-h'.
17895         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17896         if it is not defined.
17897         Reported by Ian Beckwith <ianb@erislabs.net>.
17898
17899 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17900
17901         acl: port to Solaris 8 when copying from tmpfs to ufs
17902         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17903         error number.  Problem observed on Solaris 8 with latest
17904         coreutils, with "mv A B", where A is on a tmpfs file system and B
17905         is on a ufs file system.  This caused coreutils' mv/part-symlink
17906         test to fail.
17907
17908         tests: set fail=0 at start
17909         * tests/init.sh (setup_): Move fail=0 initialization here ...
17910         (mktempd_): ... from here, so that tests can rely on fail being
17911         set to 0 initially.  This fixes a problem in coreutils; see:
17912         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17913
17914 2010-12-18  Bruno Haible  <bruno@clisp.org>
17915
17916         memmem-simple: Stylistic changes.
17917         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17918         Fix preprocessor directive indentation.
17919
17920 2010-12-15  Pádraig Brady <P@draigBrady.com>
17921
17922         memmem, memmem-simple: reorganize and expand empty needle check
17923         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17924         functional checks to memmem-simple so that one has a fully functional
17925         memmem by using just this module.
17926         Restrict the performance only check to the memmem module.
17927         Also expand the empty needle check to ensure the correct
17928         pointer is returned, not just a non NULL pointer.
17929         * doc/glibc-functions/memmem.texi: Rearrange the portability
17930         documentation to correlate with the rearranged checks.
17931         Clarify exactly how the memmem and memmem-simple modules
17932         relate to each other.
17933
17934 2010-12-15  Pádraig Brady <P@draigBrady.com>
17935             Bruno Haible  <bruno@clisp.org>
17936
17937         Improve cross-compilation guesses for uClibc.
17938         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17939         that uClibc does not have the glibc bug.
17940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17941         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17942
17943 2010-12-14  Eric Blake  <eblake@redhat.com>
17944
17945         configmake: provide fallbacks for oldest supported autotools
17946         * m4/configmake.m4: New file.
17947         * modules/configmake (Files): Ship it.
17948         (configure.ac): Use it to guarantee fallbacks.
17949
17950 2010-12-13  Pádraig Brady <P@draigBrady.com>
17951
17952         read-file: Improve handling of large files
17953         * lib/read-file.c (fread_file): Minimize realloc()s
17954         for regular files, and better manage sizes around SIZE_MAX.
17955
17956 2010-12-13  Eric Blake  <eblake@redhat.com>
17957
17958         cloexec, fcntl: relax license
17959         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17960         consent from all contributors.
17961         * modules/fcntl (License): Likewise.
17962
17963 2010-12-10  Bruno Haible  <bruno@clisp.org>
17964
17965         Tests for module 'pipe-posix'.
17966         * modules/pipe-posix-tests: New file.
17967         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17968
17969 2010-12-10  Bruno Haible  <bruno@clisp.org>
17970
17971         pipe-posix: Make it work in C++ mode.
17972         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17973         (pipe): Use common idiom, not a macro definition.
17974         * lib/pipe.c: New file.
17975         * m4/pipe.m4: New file.
17976         * modules/pipe-posix (Description): Enhance.
17977         (Files): Add lib/pipe.c, m4/pipe.m4.
17978         (configure.ac): Invoke gl_FUNC_PIPE.
17979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17980         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17981         * tests/test-unistd-c++.cc: Check the signature of pipe.
17982
17983 2010-12-10  Bruno Haible  <bruno@clisp.org>
17984
17985         Rename module 'pipe' to 'spawn-pipe'.
17986         * modules/spawn-pipe: New file, renamed from modules/pipe.
17987         (Files, configure.ac, Makefile.am): Update.
17988         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17989         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17990         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17991         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17992         "spawn-pipe.h" instead of "pipe.h".
17993         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17994         to gl_SPAWN_PIPE.
17995         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17996         (Files, Makefile.am): Update.
17997         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17998         Update.
17999         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18000         Include "spawn-pipe.h" instead of "pipe.h".
18001         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18002         * lib/javacomp.c: Likewise.
18003         * lib/javaversion.c: Likewise.
18004         * lib/pipe-filter-gi.c: Likewise.
18005         * lib/pipe-filter-ii.c: Likewise.
18006         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18007         * modules/javacomp (Depends-on): Likewise.
18008         * modules/javaversion (Depends-on): Likewise.
18009         * modules/pipe-filter-gi (Depends-on): Likewise.
18010         * modules/pipe-filter-ii (Depends-on): Likewise.
18011         * MODULES.html.sh (Executing programs): Update.
18012         * NEWS: Mention the change.
18013
18014 2010-12-10  Eric Blake  <eblake@redhat.com>
18015
18016         pipe-posix: new module
18017         * modules/pipe-posix: New file.
18018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18019         (gl_UNISTD_H): Check for declaration.
18020         * modules/unistd (Makefile.am): Substitute it.
18021         * lib/unistd.in.h (pipe): Provide it for mingw.
18022         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18023         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18024
18025 2010-12-07  Bruno Haible  <bruno@clisp.org>
18026
18027         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18028         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18029         u8_strcmp_gnu.
18030         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18031
18032 2010-12-06  Bruno Haible  <bruno@clisp.org>
18033
18034         Update internal documentation.
18035         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18036
18037 2010-12-04  Bruno Haible  <bruno@clisp.org>
18038
18039         Put more information about failed tests into the test return codes.
18040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18041         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18042         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18044         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18045         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18046         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18047         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18048         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18050         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18051         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18052         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18053         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18054         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18055         returns a bit mask.
18056         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18057         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18058         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18059         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18060         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18064         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18065         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18067         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18070         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18071         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18072         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18073         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18074         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18077         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18079         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18080         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18081         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18082         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18083         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18084         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18085         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18086         gl_PRINTF_PRECISION): Likewise.
18087         * m4/regex.m4 (gl_REGEX): Likewise.
18088         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18089         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18090         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18091         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18095         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18096         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18097         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18098         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18099         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18100         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18101         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18102         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18103         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18104         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18108         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18109         enumerated value.
18110         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18111
18112 2010-12-04  Bruno Haible  <bruno@clisp.org>
18113
18114         Update for Solaris 11 2010-11.
18115         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18116         Express, released in November 2010.
18117
18118 2010-12-04  Bruno Haible  <bruno@clisp.org>
18119
18120         nproc: Relax license.
18121         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18122         and Paul Eggert.
18123         Requested by Ludovic Courtès <ludo@gnu.org>.
18124
18125 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18126
18127         utimecmp: fine-grained src to nearby coarse-grained dest
18128
18129         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18130         and the source is on a file system with higher-resolution time
18131         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18132         not work, and the time stamps are close together, the algorithm to
18133         determine the exact resolution from the read-back mtime was buggy:
18134         it had a "!=" where it should have had an "==".  This bug has been
18135         in the code ever since it was introduced to gnulib.
18136         Problem reported by Dan Jacobson in
18137         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18138
18139 2010-11-30  Bruno Haible  <bruno@clisp.org>
18140
18141         strerror_r-posix: Fix autoconf test.
18142         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18143
18144 2010-11-28  Bruno Haible  <bruno@clisp.org>
18145             Paul Eggert  <eggert@cs.ucla.edu>
18146
18147         Tests for module 'getdomainname'.
18148         * modules/getdomainname-tests: New file.
18149         * tests/test-getdomainname.c: New file, based on
18150         tests/test-gethostname.c.
18151
18152 2010-11-28  Bruno Haible  <bruno@clisp.org>
18153             Paul Eggert  <eggert@cs.ucla.edu>
18154
18155         getdomainname: Use the system function when possible.
18156         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18157         (getdomainname): Replace if needed. Provide the declaration if it is
18158         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18159         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18160         (getdomainname): When the system has getdomainname, call the system
18161         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18162         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18163         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18164         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18165         the function if its second argument is of type 'int' or if it is found
18166         in libnsl.
18167         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18168         <sys/systeminfo.h> and sysinfo().
18169         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18171         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18172         HAVE_GETDOMAINNAME.
18173         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18174         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18175         * doc/glibc-functions/getdomainname.texi: Document the problems with
18176         the getdomainname declaration.
18177
18178 2010-11-28  Bruno Haible  <bruno@clisp.org>
18179
18180         sys_socket: Ensure ss_family field on AIX.
18181         * lib/sys_socket.in.h (ss_family): New macro definition.
18182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18183         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18184         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18185         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18186         * modules/sys_socket (Makefile.am): Substitute
18187         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18188         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18189
18190 2010-11-27  Bruno Haible  <bruno@clisp.org>
18191
18192         readline: Improve configure output.
18193         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18194         "checking for readline..." result understandable.
18195
18196 2010-11-27  Bruno Haible  <bruno@clisp.org>
18197
18198         *printf-posix: Detect a bug on Solaris 10/x86.
18199         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18200         for floating-point output.
18201         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18202         directive.
18203         * tests/test-snprintf-posix.h (test_function): Likewise.
18204         * tests/test-sprintf-posix.h (test_function): Likewise.
18205         * tests/test-vasprintf-posix.c (test_function): Likewise.
18206         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18207         * doc/posix-functions/printf.texi: Likewise.
18208         * doc/posix-functions/snprintf.texi: Likewise.
18209         * doc/posix-functions/sprintf.texi: Likewise.
18210         * doc/posix-functions/vfprintf.texi: Likewise.
18211         * doc/posix-functions/vprintf.texi: Likewise.
18212         * doc/posix-functions/vsnprintf.texi: Likewise.
18213         * doc/posix-functions/vsprintf.texi: Likewise.
18214         * doc/glibc-functions/obstack_printf.texi: Likewise.
18215         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18216
18217 2010-11-27  Bruno Haible  <bruno@clisp.org>
18218
18219         Fix link error when module libunistring-optional is in use.
18220         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18221         * modules/striconveha-tests (Makefile.am): Likewise.
18222
18223 2010-11-27  Bruno Haible  <bruno@clisp.org>
18224
18225         regex: Mention link dependencies.
18226         * modules/regex (Link): New section.
18227         * modules/rpmatch (Link): Likewise.
18228         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18229
18230 2010-11-27  Bruno Haible  <bruno@clisp.org>
18231
18232         ftoastr: Fix compilation error on Solaris.
18233         * lib/ftoastr.c: Include <config.h>.
18234
18235 2010-11-27  Bruno Haible  <bruno@clisp.org>
18236
18237         getloadavg: Update documentation.
18238         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18239
18240 2010-11-27  Bruno Haible  <bruno@clisp.org>
18241
18242         sys_socket: Fix test whether the functions are declared.
18243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18244         not <sys/select.h>.
18245
18246 2010-11-27  Bruno Haible  <bruno@clisp.org>
18247
18248         getpass: Make sure to get system declaration on some platforms.
18249         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18250         gl_USE_SYSTEM_EXTENSIONS.
18251         * modules/getpass (Depends-on): Add extensions.
18252
18253 2010-11-26  Bruno Haible  <bruno@clisp.org>
18254
18255         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18256         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18257         'iconv' module is present.
18258         (ICONV_CONST): New macro.
18259         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18260         ICONV_CONST.
18261         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18262         set ICONV_CONST.
18263         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18264         here.
18265         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18266         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18267         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18268         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18269         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18270         present.
18271
18272 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         ftoastr: comment fix
18275         * lib/ftoastr.c: "little" -> "little or no" in comment
18276
18277 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18278
18279         stdint: port to GCC 4.3 + OSX + Octave
18280         On this platform, stdint.h is buggy and defines int64_t to long
18281         long int.  The replacement defined it to long int, causing
18282         problems with C++ style name mangling.  Instead, trust the system
18283         definition if INT64_MAX is defined, and likewise for the unsigned
18284         variant.   Problem reported by Jarno Rajahalme in
18285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18286         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18287         and don't mess with int64_t and INT64_MAX in this case.
18288         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18289
18290 2010-11-24  Bruno Haible  <bruno@clisp.org>
18291
18292         doc: Corrections regarding MacOS X 10.4 and 10.5.
18293         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18294         MacOS X.
18295         Reported by Simon Josefsson.
18296
18297 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18298
18299         Uninstall ".bin" files installed by relocwrapper.
18300         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18301         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18302         unless it is already there.
18303
18304 2010-11-21  Bruno Haible  <bruno@clisp.org>
18305
18306         Update for NetBSD 5.0.
18307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18308         NetBSD; the test fails on NetBSD 5.0.
18309         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18310         about NetBSD.
18311
18312 2010-11-21  Bruno Haible  <bruno@clisp.org>
18313
18314         Update for HP-UX 11.23 and HP-UX 11.31.
18315         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18316         HP-UX.
18317
18318 2010-11-21  Bruno Haible  <bruno@clisp.org>
18319
18320         Update for MacOS X 10.5.
18321         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18322         MacOS X; the test fails on MacOS X 10.5.8.
18323         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18324         about MacOS X.
18325
18326 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18327
18328         bootstrap: add bootstrap_sync option.
18329         See discussion at
18330         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18332         * build-aux/bootstrap: Accept --bootstrap-sync to update
18333         bootstrap if it is not identical to the local gnulib's
18334         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18335         enable this by default.  Accept --no-bootstrap-sync to disable
18336         it.
18337
18338 2010-11-20  Bruno Haible  <bruno@clisp.org>
18339
18340         Ensure that <features.h> is included before __GLIBC__ is tested.
18341         * lib/printf-parse.h: Include <features.h>.
18342         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18343         Reported by Mike Frysinger <vapier@gentoo.org>.
18344
18345         Ensure that <features.h> is included before __GLIBC__ is tested.
18346         * lib/wchar.in.h: Include <features.h>.
18347         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18348         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18349         Reported by Mike Frysinger <vapier@gentoo.org>.
18350
18351         Ensure that <features.h> is included before __GLIBC__ is tested.
18352         * lib/arpa_inet.in.h: Include <features.h>.
18353         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18354         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18355         Reported by Mike Frysinger <vapier@gentoo.org>.
18356
18357         Ensure that <features.h> is included before __GLIBC__ is tested.
18358         * build-aux/link-warning.h: Include <features.h>.
18359         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18360         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18361         Reported by Mike Frysinger <vapier@gentoo.org>.
18362
18363         Ensure that <features.h> is included before __GLIBC__ is tested.
18364         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18365         Reported by Mike Frysinger <vapier@gentoo.org>.
18366
18367 2010-11-20  Bruno Haible  <bruno@clisp.org>
18368
18369         memmem: Fix autoconf test.
18370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18371
18372 2010-11-20  Bruno Haible  <bruno@clisp.org>
18373
18374         Port to uClibc.
18375         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18376         * lib/fcntl.in.h: Likewise.
18377         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18378         * lib/mbrtowc.c (mbrtowc): Likewise.
18379         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18380         * lib/strerror_r.c: Likewise.
18381         * lib/unistr/u8-strnlen.c: Likewise.
18382         * lib/vasnprintf.c (decimal_point_char): Likewise.
18383         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18385         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18386         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18387         * tests/test-sigaction.c (handler, main): Likewise.
18388         * lib/freading.h: Treat uClibc like a non-glibc platform.
18389         * lib/freading.c: Likewise.
18390         * lib/gettext.h: Likewise.
18391         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18392         Likewise.
18393         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18394         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18395         * lib/propername.c (proper_name_utf8): Likewise.
18396         * lib/spawn.in.h: Likewise.
18397         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18398         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18399         mem_cd_iconveh_internal): Likewise.
18400         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18401         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18402         strstr, strcasestr): Likewise.
18403         * lib/unicodeio.c (unicode_to_mb): Likewise.
18404         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18405         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18406         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18407         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18408         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18409         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18410         * lib/unistr/u8-stpncpy.c: Likewise.
18411         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18412         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18415         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18416         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18417         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18420         Likewise.
18421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18422         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18423         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18426         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18428         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18429         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18430         * tests/test-striconveha.c (main): Likewise.
18431         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18432         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18433         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18434         * doc/posix-functions/getline.texi: Likewise.
18435         Reported by Mike Frysinger <vapier@gentoo.org>.
18436
18437 2010-11-20  Bruno Haible  <bruno@clisp.org>
18438
18439         nproc: Fix condition.
18440         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18441         HAVE_PTHREAD_AFFINITY_NP.
18442
18443 2010-11-20  Bruno Haible  <bruno@clisp.org>
18444
18445         Fix a comment.
18446         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18447
18448 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18449
18450         ftoastr: don't assume snprintf
18451         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18452         Implement a subset of snprintf here, by using sprintf safely.
18453         * modules/ftoastr (Depends-on): Remove snprintf.
18454
18455 2010-11-19  Jim Meyering  <meyering@redhat.com>
18456
18457         test-rename.h: fix compilation failure
18458         * tests/test-rename.h (test_rename): Add omitted "}".
18459
18460 2010-11-17  Jim Meyering  <meyering@redhat.com>
18461
18462         maint.mk: add a URL discussing the no-@acronym policy
18463         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18464
18465 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18466
18467         ftoastr: depend on snprintf, improve comments
18468         * lib/ftoastr.c: Also mention Loitsch's draft.
18469         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18470         needed in the current implementation, but it might simplify
18471         speeding up the code later.
18472         * modules/ftoastr: Depend on snprintf; this improves portability.
18473         Suggested by Bruno Haible in the same email.
18474
18475         ftoastr: port to hosts lacking strtof and strtold
18476         Problem reported by Bruno Haible in
18477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18478         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18479         environment and strtold (and presumably strtof) are not available.
18480         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18481         (configure.ac): Require gl_C99_STRTOLD.
18482
18483 2010-11-18  Bruno Haible  <bruno@clisp.org>
18484
18485         c-strtold: Avoid link error on AIX 7.
18486         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18487         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18488         (gl_C_STRTOLD): Test whether strtold_l exists.
18489         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18490
18491 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18492
18493         intprops: new macro INT_BITS_STRLEN_BOUND
18494         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18495         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18496         not exposed.  Also, it uses a slightly tighter bound than before;
18497         though this makes no practical difference, we might as well be as
18498         tight as we easily can.
18499
18500         ftoastr: new module, for lossless conversion of floats to short strings
18501         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18502         * modules/ftoastr: New files.
18503
18504 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18505
18506         bootstrap: port to Solaris sed
18507         * build-aux/bootstrap (get_version): Port to Solaris sed.
18508         See Ralf Wildenhues's note in
18509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18510
18511 2010-11-14  Jim Meyering  <meyering@redhat.com>
18512
18513         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18514         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18515         and move definition closer to sole use.
18516
18517 2010-11-13  Jim Meyering  <meyering@redhat.com>
18518
18519         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18520         Now we require at least autoconf-2.59, which means the work-around
18521         is no longer needed.
18522         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18523         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18524         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18525         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18527
18528 2010-11-13  Bruno Haible  <bruno@clisp.org>
18529
18530         rename, renameat: Avoid test failures at NFS mounted locations.
18531         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18532         functions.
18533         (test_rename): Use assert_nonexistent.
18534         * tests/test-rename.c: Include <dirent.h>.
18535         * tests/test-renameat.c: Likewise.
18536         Reported by Gary V. Vaughan <gary@gnu.org>.
18537
18538         rename, renameat: Document Linux bug with NFS
18539         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18540         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18541         * doc/posix-functions/renameat.texi: Likewise.
18542         Suggested by Eric Blake.
18543
18544 2010-11-13  Bruno Haible  <bruno@clisp.org>
18545
18546         rename test: Add comments.
18547         * tests/test-rename.h (test_rename): Add structure and comments.
18548
18549 2010-11-13  Eric Blake  <eblake@redhat.com>
18550
18551         maintainer-makefile: cover a few more files
18552         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18553         scripts generated within C files, for libvirt.
18554
18555 2010-11-13  Bruno Haible  <bruno@clisp.org>
18556
18557         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18558         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18559         character, return the number of bytes that belong together, not always
18560         1.
18561         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18562         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18563         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18564         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18565         number of bytes of an invalid character.
18566         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18567         (main): Invoke it.
18568         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18569         results.
18570         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18571         malformed byte sequences.
18572         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18573         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18574         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18575         Reported by Ben Pfaff and Paolo Bonzini.
18576
18577 2010-11-13  Bruno Haible  <bruno@clisp.org>
18578
18579         openat: Work around glibc bug with fchownat() and empty file names.
18580         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18581         (gl_FUNC_FCHOWNAT): Invoke it.
18582         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18583         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18584         Reported by Gary V. Vaughan <gary@gnu.org>.
18585
18586 2010-11-13  Bruno Haible  <bruno@clisp.org>
18587
18588         openat: Ensure autoconf macro ordering.
18589         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18590         gl_USE_SYSTEM_EXTENSIONS.
18591         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18592
18593 2010-11-13  Bruno Haible  <bruno@clisp.org>
18594
18595         Update comments.
18596         * lib/unistr/u8-check.c: Update file name in comments.
18597         * lib/unistr/u8-mblen.c: Likewise.
18598         * lib/unistr/u8-prev.c: Likewise.
18599         * lib/unistr/u8-strmblen.c: Likewise.
18600         * lib/unistr/u8-strmbtouc.c: Likewise.
18601
18602 2010-11-13  Jim Meyering  <meyering@redhat.com>
18603
18604         tests: avoid test failure on Solaris 10 due to lack of PATH export
18605         * tests/test-update-copyright.sh: Don't forget to export PATH.
18606
18607         init.sh: ensure that IFS is defined, just in case...
18608         * tests/init.sh (setup_): Ensure that IFS is defined,
18609         so that saving and restoring it works as expected.  This
18610         appears to be useful at least for an old version of dash
18611         from a long time ago (RH 6).  See here for details:
18612         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18613
18614         maint.mk: tighten "test a == b" check
18615         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18616         test to files that contain something like #!/bin/sh.
18617         Without this, coreutils would get two false positives in
18618         the comments of C source files.
18619
18620 2010-11-12  Eric Blake  <eblake@redhat.com>
18621
18622         bootstrap: fix typo in previous attempt
18623         * build-aux/bootstrap (buildreq): Correct the grouping.
18624         Reported by Paul Eggert.
18625
18626         maintainer-makefile: prohibit test x == x
18627         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18628         Based on a report by Matthias Bolte.
18629
18630         bootstrap: allow FreeBSD gzip
18631         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18632         which has no '.' and goes to stderr.
18633         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18634         Reported by Matthias Bolte.
18635
18636         maintainer-makefile: check for i18n setup
18637         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18638         will likely work.
18639
18640 2010-11-12  Bruno Haible  <bruno@clisp.org>
18641
18642         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18643         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18644         * lib/nanosleep.c (nanosleep): Likewise.
18645
18646 2010-11-11  Bruno Haible  <bruno@clisp.org>
18647
18648         fcntl-h: Fix for use of C++ on glibc systems.
18649         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18650         also on glibc systems in C++ mode.
18651         Reported by Gary V. Vaughan <gary@gnu.org>.
18652
18653 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18654
18655         mknod: avoid false failure with dash
18656         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18657
18658 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18659
18660         unlink: Fix "is it should" typo in diagnostic.
18661         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18663
18664 2010-11-11  Bruno Haible  <bruno@clisp.org>
18665
18666         Tests for module 'strerror_r-posix'.
18667         * modules/strerror_r-posix-tests: New file.
18668         * tests/test-strerror_r.c: New file.
18669         * tests/test-string-c++.cc: Check the signature of strerror_r.
18670
18671         New module 'strerror_r-posix'.
18672         * lib/string.in.h (strerror_r): New declaration.
18673         * lib/strerror_r.c: New file.
18674         * m4/strerror_r.m4: New file.
18675         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18676         of strerror_r.
18677         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18678         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18679         * modules/strerror_r-posix: New file.
18680         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18681         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18682         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18683         portability problems.
18684
18685 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18686
18687         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18688         line is also considered for output. Quoted function name in shell
18689         command, so temporary files for functions like MyClass::operator()
18690         are removed correctly without errors.
18691
18692 2010-11-09  Bruno Haible  <bruno@clisp.org>
18693
18694         * doc/posix-functions/strerror.texi: List more failing platforms.
18695
18696         * doc/posix-functions/strerror.texi: Add a comment.
18697
18698 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18699
18700         fdopendir: fix bug on MacOS X when low on file descriptors
18701
18702         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18703         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18704         All callers changed.
18705         (fdopendir): Invoke save_cwd at the top level, not after using
18706         multiple dup() calls to use up file descriptors.  Then retry
18707         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18708         less than the maximum number of open file descriptors, because
18709         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18710         on Mac OS X 10.6.4 for tar 1.24
18711         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18712         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18713         and for tar 1.25
18714         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18715
18716 2010-11-07  Bruno Haible  <bruno@clisp.org>
18717
18718         vasnprintf: Support I flag on glibc systems.
18719         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18720         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18721         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18722         snprintf function.
18723         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18724         glibc systems.
18725         * tests/test-vasnprintf-posix3.c: New file.
18726         * modules/vasnprintf-posix-tests (Files): Add it.
18727         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18728
18729 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18730
18731         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18732         * MODULES.html.sh: For compiler warnings, use name
18733         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18734
18735 2010-11-05  Eric Blake  <eblake@redhat.com>
18736
18737         ceil, floor: avoid spurious failure with icc
18738         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18739         [denormals-as-zero] when optimizing without -mieee-fp option.
18740         * tests/test-floorf2.c (floorf_reference): Likewise.
18741         * tests/test-ceilf1.c (dummy): New function.
18742         (main): Use it to outsmart icc's optimization.
18743         * tests/test-floorf1.c (dummy, main): Likewise.
18744
18745         tests: require working signbit
18746         * modules/ceilf-tests (Depends-on): Add signbit.
18747         * modules/ceill-tests (Depends-on): Likewise.
18748         * modules/floorf-tests (Depends-on): Likewise.
18749         * modules/floorl-tests (Depends-on): Likewise.
18750         * modules/round-tests (Depends-on): Likewise.
18751         * modules/roundf-tests (Depends-on): Likewise.
18752         * modules/roundl-tests (Depends-on): Likewise.
18753         * modules/trunc-tests (Depends-on): Likewise.
18754         * modules/truncf-tests (Depends-on): Likewise.
18755         * modules/truncl-tests (Depends-on): Likewise.
18756
18757         strtod: work around icc bug
18758         * lib/strtod.c (minus_zero): Define to working value.
18759         (strtod): Use it to avoid icc bug.
18760
18761         copysign: enhance tests
18762         * modules/copysign-tests (Files): Add minus-zero.h.
18763         * tests/test-copysign.c (main): Also test zeros.
18764
18765 2010-11-04  Eric Blake  <eblake@redhat.com>
18766
18767         ceil, floor, round, trunc: enhance tests of -0
18768         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18769         * tests/test-ceill.c (main): Likewise.
18770         * tests/test-floorf1.c (main): Likewise.
18771         * tests/test-floorl.c (main): Likewise.
18772         * tests/test-round1.c (main): Likewise.
18773         * tests/test-roundf1.c (main): Likewise.
18774         * tests/test-roundl.c (main): Likewise.
18775         * tests/test-trunc1.c (main): Likewise.
18776         * tests/test-truncf1.c (main): Likewise.
18777         * tests/test-truncl.c (main): Likewise.
18778
18779 2010-11-04  Eric Blake  <eblake@redhat.com>
18780
18781         frexp, tests: work around ICC bug with -zero
18782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18783         works with more compilers.
18784         * tests/minus-zero.h: New file.
18785         * modules/ceilf-tests (Files): Include it.
18786         * modules/ceill-tests (Files): Likewise.
18787         * modules/floorf-tests (Files): Likewise.
18788         * modules/floorl-tests (Files): Likewise.
18789         * modules/frexp-nolibm-tests (Files): Likewise.
18790         * modules/frexp-tests (Files): Likewise.
18791         * modules/frexpl-nolibm-tests (Files): Likewise.
18792         * modules/frexpl-tests (Files): Likewise.
18793         * modules/isnan-tests (Files): Likewise.
18794         * modules/isnand-nolibm-tests (Files): Likewise.
18795         * modules/isnand-tests (Files): Likewise.
18796         * modules/isnanf-nolibm-tests (Files): Likewise.
18797         * modules/isnanf-tests (Files): Likewise.
18798         * modules/isnanl-nolibm-tests (Files): Likewise.
18799         * modules/isnanl-tests (Files): Likewise.
18800         * modules/round-tests (Files): Likewise.
18801         * modules/roundf-tests (Files): Likewise.
18802         * modules/roundl-tests (Files): Likewise.
18803         * modules/ldexpl-tests (Files): Likewise.
18804         * modules/signbit-tests (Files): Likewise.
18805         * modules/snprintf-posix-tests (Files): Likewise.
18806         * modules/sprintf-posix-tests (Files): Likewise.
18807         * modules/strtod-tests (Files): Likewise.
18808         * modules/trunc-tests (Files): Likewise.
18809         * modules/truncf-tests (Files): Likewise.
18810         * modules/truncl-tests (Files): Likewise.
18811         * modules/vsnprintf-posix-tests (Files): Likewise.
18812         * modules/vsprintf-posix-tests (Files): Likewise.
18813         * modules/vasnprintf-posix-tests (Files): Likewise.
18814         * modules/vasprintf-posix-tests (Files): Likewise.
18815         * tests/test-ceilf1.c (main): Use it.
18816         * tests/test-ceill.c (main): Likewise.
18817         * tests/test-floorf1.c (main): Likewise.
18818         * tests/test-floorl.c (main): Likewise.
18819         * tests/test-frexp.c (main): Likewise.
18820         * tests/test-frexpl.c (main): Likewise.
18821         * tests/test-isnan.c (main): Likewise.
18822         * tests/test-isnand.h (main): Likewise.
18823         * tests/test-isnanf.h (main): Likewise.
18824         * tests/test-isnanl.h (main): Likewise.
18825         * tests/test-ldexpl.c (main): Likewise.
18826         * tests/test-round.c (main): Likewise.
18827         * tests/test-roundf.c (main): Likewise.
18828         * tests/test-roundl.c (main): Likewise.
18829         * tests/test-signbit.c (test_signbitf, test_signbitd)
18830         (test_signbitl): Likewise.
18831         * tests/test-snprintf-posix.h (test_function): Likewise.
18832         * tests/test-sprintf-posix.h (test_function): Likewise.
18833         * tests/test-strtod.c (main): Likewise.
18834         * tests/test-trunc1.c (main): Likewise.
18835         * tests/test-truncf1.c (main): Likewise.
18836         * tests/test-truncl.c (main): Likewise.
18837
18838         isnanl: work around icc bug
18839         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18840
18841 2010-11-03  Eric Blake  <eblake@redhat.com>
18842
18843         tests: fix compiler warnings
18844         * tests/test-getopt.h (test_getopt): Fix condition.
18845         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18846         * tests/test-pipe2.c (main): Likewise.
18847         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18848
18849         utimens: fix broken m4 test
18850         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18851
18852 2010-10-28  Bruno Haible  <bruno@clisp.org>
18853
18854         posix_spawn*, getdtablesize: Relax license.
18855         * modules/posix_spawn (License): Change to LGPLv2+.
18856         * modules/posix_spawnp (License): Likewise.
18857         * modules/posix_spawn-internal (License): Likewise.
18858         * modules/posix_spawnattr_init (License): Likewise.
18859         * modules/posix_spawnattr_getflags (License): Likewise.
18860         * modules/posix_spawnattr_setflags (License): Likewise.
18861         * modules/posix_spawnattr_getpgroup (License): Likewise.
18862         * modules/posix_spawnattr_setpgroup (License): Likewise.
18863         * modules/posix_spawnattr_getschedparam (License): Likewise.
18864         * modules/posix_spawnattr_setschedparam (License): Likewise.
18865         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18866         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18867         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18868         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18869         * modules/posix_spawnattr_getsigmask (License): Likewise.
18870         * modules/posix_spawnattr_setsigmask (License): Likewise.
18871         * modules/posix_spawnattr_destroy (License): Likewise.
18872         * modules/posix_spawn_file_actions_init (License): Likewise.
18873         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18874         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18875         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18876         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18877         * modules/getdtablesize (License): Likewise.
18878         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18879
18880 2010-10-26  Bruno Haible  <bruno@clisp.org>
18881
18882         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18883         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18884         Cygwin and mingw.
18885         Suggested by Eric Blake.
18886
18887 2010-10-26  Bruno Haible  <bruno@clisp.org>
18888
18889         stdio: Work around compilation error due to renameat() on Solaris 10.
18890         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18891         * lib/renameat.c: Don't include <unistd.h> here.
18892         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18893         Reported by Paul Eggert and Eric Blake.
18894
18895 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18896
18897         renameat: port to Solaris 10, which declares renameat in unistd.h
18898
18899         * lib/renameat.c: Include unistd.h before stdio.h, because
18900         Solaris 10 declares renameat in unistd.h.  Problem encountered
18901         when building GNU tar 1.24 on Solaris 10.
18902
18903 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18904
18905         fdopendir: fix C89 compilation
18906         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18907         compilers.
18908
18909 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18910
18911         inttostr: simplify by removing unnecessary redundancy
18912         * lib/anytostr.c: Don't include verify.h.
18913         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18914         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18915         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18916         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18917         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18918         Likewise.
18919         * modules/inttostr (Depends-on): Remove 'verify'.
18920
18921 2010-10-23  Bruno Haible  <bruno@clisp.org>
18922
18923         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18924         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18925         Reported by Eric Blake.
18926
18927 2010-10-23  Bruno Haible  <bruno@clisp.org>
18928
18929         Tests: Fix LOCALE_JA on MirBSD 10.
18930         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18931         to an UTF-8 locale.
18932         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18934         Reported by Eric Blake.
18935
18936 2010-10-21  Bruno Haible  <bruno@clisp.org>
18937
18938         nl_langinfo test: Avoid test failure on NetBSD 5.
18939         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18940         Reported by Eric Blake.
18941
18942 2010-10-21  Eric Blake  <eblake@redhat.com>
18943
18944         c-stack: work around libsigsegv 2.8 bug
18945         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18946         overflow on at least PowerPC64.
18947
18948 2010-10-17  Bruno Haible  <bruno@clisp.org>
18949
18950         userspec: Drop redundant file.
18951         * modules/userspec (Files): Remove lib/inttostr.h.
18952
18953 2010-10-17  Bruno Haible  <bruno@clisp.org>
18954
18955         nl_langinfo tests: Silence some warnings.
18956         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18957         Reported by Jim Meyering.
18958
18959 2010-10-17  Bruno Haible  <bruno@clisp.org>
18960
18961         Make use of GCC's attribute __alloc_size__.
18962         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18963         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18964         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18965         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18966         __alloc_size__.
18967         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18968         Suggested by Jim Meyering.
18969
18970 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18971
18972         bootstrap: anchor .gitignore entries.
18973         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18974         with...
18975         (insert_vc_ignore): ... this new function, which prepends `/' to
18976         all .gitignore entries before passing them to
18977         insert_sorted_if_absent.
18978
18979 2010-10-16  Bruno Haible  <bruno@clisp.org>
18980
18981         nextafter: Fix configure check.
18982         * modules/nextafter (configure.ac): Correct expected prototype.
18983
18984 2010-10-16  Bruno Haible  <bruno@clisp.org>
18985
18986         termios: Update documentation.
18987         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18988
18989 2010-10-16  Bruno Haible  <bruno@clisp.org>
18990
18991         tests: Make them compile with TinyCC.
18992         * tests/test-strstr.c (main): Remove parentheses around array
18993         initializer.
18994
18995 2010-10-15  Eric Blake  <eblake@redhat.com>
18996
18997         ignore-value: make header idempotent
18998         * lib/ignore-value.h: Add double-inclusion guards.
18999         Reported by Stefan Berger.
19000
19001 2010-10-15  Jim Meyering  <meyering@redhat.com>
19002
19003         GNUmakefile: handle "stable" target, not "major"
19004         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19005         lists in maint.mk and announce-gen.  Without this, "make stable"
19006         would fail to ensure that $(VERSION) is up to date.
19007
19008 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19009
19010         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19011         & co.
19012
19013 2010-10-14  Bruno Haible  <bruno@clisp.org>
19014
19015         vasnprintf: Don't set errno to 0.
19016         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19017         block that sets it to 0.
19018         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19019
19020 2010-10-14  Bruno Haible  <bruno@clisp.org>
19021
19022         socketlib: Fix.
19023         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19024         gl_PREREQ_SYS_H_WINSOCK2.
19025         Reported by Ian Beckwith <ianb@erislabs.net>.
19026
19027 2010-10-13  Jim Meyering  <meyering@redhat.com>
19028
19029         test-select-stdin.c: avoid warn_unused_result warnings
19030         * tests/test-select-stdin.c: Include "macros.h".
19031         ASSERT that read and fflush succeed.
19032
19033 2010-10-13  Jim Meyering  <meyering@redhat.com>
19034
19035         git-version-gen: do require git-VC'd files in cwd
19036         * build-aux/git-version-gen: Reject a git version string
19037         if there are no commits associated with the current directory.
19038         This avoids an unlikely false-positive (unrelated dir whose parent
19039         repository also contains a tag matching v*), as pointed out
19040         by Giuseppe Scrivano in
19041         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19042
19043 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         argv-iter: omit nonconforming declaration
19046         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19047         enum arg_iter_err declaration, which doesn't conform to C99.
19048         Solaris 10 cc warns about this.
19049
19050 2010-10-13  Eric Blake  <eblake@redhat.com>
19051
19052         termios: fix compilation on mingw
19053         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19054         (gl_TERMIOS_H): Adjust it on mingw.
19055         * modules/termios (Makefile.am): Substitute new key.
19056         * lib/termios.in.h (includes): Make include_next conditional.
19057         * doc/posix-headers/termios.texi (termios.h): Update
19058         documentation.
19059         Reported by Daniel P. Berrange.
19060
19061 2010-10-13  Jim Meyering  <meyering@redhat.com>
19062
19063         git-version-gen: don't require that .git/ be in the current dir
19064         * build-aux/git-version-gen: Adjust this script so that it works
19065         when run from any working directory beneath the top-level .git/-
19066         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19068
19069         test-select: avoid warn_unused_result warnings
19070         * tests/test-select.c: Include "macros.h".
19071         ASSERT that each call to read, write, and pipe succeeds.
19072         While not technically required, also check each "close".
19073         * modules/select-tests (Files): Add tests/macros.h.
19074
19075         test-symlinkat: remove declaration of unused local
19076         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19077
19078         test-inttostr: avoid shadowing warnings
19079         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19080         and use malloc rather than the stack for the same reason as
19081         mentioned in the comment justifying the other allocation.
19082
19083 2010-10-11  Bruno Haible  <bruno@clisp.org>
19084
19085         stdlib: Allow multiple gnulib generated replacements to coexist.
19086         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19087         Reported by Sam Steingold <sds@gnu.org>.
19088
19089 2010-10-11  Jim Meyering  <meyering@redhat.com>
19090
19091         fix a documentation typo
19092         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19093
19094 2010-10-11  Eric Blake  <eblake@redhat.com>
19095
19096         futimens: work around Solaris 11 bug
19097         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19098         * tests/test-futimens.h (test_futimens): Enhance, rather than
19099         weaken test.
19100         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19101
19102 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19103
19104         Indentation.
19105         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19106         higher-level operators more to the left.
19107
19108 2010-10-11  Jim Meyering  <meyering@redhat.com>
19109
19110         test-futimens: avoid unwarranted test failure on Solaris 5.11
19111         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19112         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19113         because it tries to dereference the NULL name argument.
19114
19115 2010-10-11  Bruno Haible  <bruno@clisp.org>
19116
19117         Indentation.
19118         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19119         indentation.
19120
19121 2010-10-11  Jim Meyering  <meyering@redhat.com>
19122
19123         spawn.in.h: make indentation consistent with parentheses
19124         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19125         Make indentation consistent with parentheses.
19126
19127 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19128
19129         Fix mismatched parens in previous commit
19130         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19131         parens.
19132
19133 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19134
19135         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19136
19137         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19138         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19139         * lib/malloca.c: Include "verify.h".
19140         (verify1): Remove, replacing with a verify call.
19141         * lib/relocwrapper.c (verify1): Likewise.
19142         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19143         Likewise.
19144         * modules/malloca (Depends-on): Add 'verify'.
19145         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19146         * modules/vasnprintf (Depends-on): Add 'verify'.
19147         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19148         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19149         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19150         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19151         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19152         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19153         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19154
19155         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19156
19157         Formerly the style was sometimes 2*X - 1, because the C standard
19158         was wrongly thought to disallow ?: in integral constant expressions.
19159         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19160         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19161         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19162         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19163         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19164         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19165         verify that time_t cannot be floating.
19166
19167 2010-10-08  Eric Blake  <eblake@redhat.com>
19168
19169         time: enforce recent POSIX ruling that time_t is integral
19170         * lib/time.in.h (__time_t_must_be_integral): Detect any
19171         problematic systems, allowing the rest of gnulib to assume POSIX.
19172
19173 2010-10-08  Jim Meyering  <meyering@redhat.com>
19174
19175         fdopendir: fix a bug on systems lacking openat and /proc support
19176         OpenBSD 4.7 is one such system.  The most noticeable effect was
19177         failure of any application making nontrivial use of fts: rm, du,
19178         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19179           ./rm: traversal failed: `a': Bad file descriptor
19180         Debugging that, you see that even though FD 6 was closed just
19181         prior to the opendir call in fd_clone_opendir, its resulting
19182         dir->dd_fd was 8, rather than the expected value of 6:
19183
19184         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19185         93                close (fd);
19186         (gdb) n
19187         94                dir = fd_clone_opendir (dupfd);
19188         (gdb) n
19189         95                saved_errno = errno;
19190         (gdb) p dir->dd_fd
19191         $11 = 8
19192
19193         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19194         The problem is that on OpenBSD, fd_clone_opendir has to resort
19195         to using the old-style save/restore CWD mechanism, due to its
19196         lack of openat/proc support, and *that* would steal the FD (6)
19197         that opendir was supposed to use.
19198
19199         The fix is to squirrel away the desired FD so that save_cwd uses a
19200         different one, and then free the dest FD right before calling opendir.
19201         That guarantees opendir will use the required file descriptor.
19202
19203         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19204
19205 2010-10-08  Bruno Haible  <bruno@clisp.org>
19206
19207         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19208         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19209
19210 2010-10-08  Bruno Haible  <bruno@clisp.org>
19211
19212         nanosleep: Make replacement POSIX compliant.
19213         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19214         is out of range.
19215         Reported by Jim Meyering.
19216
19217 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19218
19219         bootstrap: add hook for altering gnulib.mk, for Bison
19220         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19221         the Bison bootstrapping process can rewrite file names and variables
19222         in this file before later parts of 'bootstrap' use the file.
19223         Bison wants to include lib/gnulib.mk from the top-level makefile,
19224         so it needs the file names in this file to be relative to the top
19225         level, not relative to lib; plus it needs variable names to be
19226         rewritten.
19227         (slurp): Use the new function.
19228
19229         bootstrap: reformat for readability
19230         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19231
19232 2010-10-08  Eric Blake  <eblake@redhat.com>
19233
19234         docs: update cygwin progress
19235         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19236         1.7.7.
19237         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19238         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19239         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19240         * doc/posix-functions/carg.texi (carg): Likewise.
19241         * doc/posix-functions/cargf.texi (cargf): Likewise.
19242         * doc/posix-functions/casin.texi (casin): Likewise.
19243         * doc/posix-functions/casinf.texi (casinf): Likewise.
19244         * doc/posix-functions/casinh.texi (casinh): Likewise.
19245         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19246         * doc/posix-functions/catan.texi (catan): Likewise.
19247         * doc/posix-functions/catanf.texi (catanf): Likewise.
19248         * doc/posix-functions/catanh.texi (catanh): Likewise.
19249         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19250         * doc/posix-functions/ccos.texi (ccos): Likewise.
19251         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19252         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19253         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19254         * doc/posix-functions/cexp.texi (cexp): Likewise.
19255         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19256         * doc/posix-functions/cimag.texi (cimag): Likewise.
19257         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19258         * doc/posix-functions/clog.texi (clog): Likewise.
19259         * doc/posix-functions/clogf.texi (clogf): Likewise.
19260         * doc/posix-functions/conj.texi (conj): Likewise.
19261         * doc/posix-functions/conjf.texi (conjf): Likewise.
19262         * doc/posix-functions/cpow.texi (cpow): Likewise.
19263         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19264         * doc/posix-functions/cproj.texi (cproj): Likewise.
19265         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19266         * doc/posix-functions/creal.texi (creal): Likewise.
19267         * doc/posix-functions/crealf.texi (crealf): Likewise.
19268         * doc/posix-functions/csin.texi (csin): Likewise.
19269         * doc/posix-functions/csinf.texi (csinf): Likewise.
19270         * doc/posix-functions/csinh.texi (csinh): Likewise.
19271         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19272         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19273         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19274         * doc/posix-functions/ctan.texi (ctan): Likewise.
19275         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19276         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19277         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19278         * doc/posix-headers/complex.texi (complex.h): Likewise.
19279
19280 2010-10-07  Jim Meyering  <meyering@redhat.com>
19281
19282         parse-datetime: avoid compilation failure on OpenBSD 4.7
19283         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19284         This works around a compilation failure on OpenBSD 4.7:
19285         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19286
19287 2010-10-07  Eric Blake  <eblake@redhat.com>
19288
19289         docs: update cygwin progress
19290         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19291         1.7.6.
19292         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19293         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19294         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19295         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19296         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19297         Likewise.
19298         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19299         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19300         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19301         Likewise.
19302         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19303         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19304         Likewise.
19305         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19306         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19307         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19308         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19309         Likewise.
19310         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19311         Likewise.
19312         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19313
19314         docs: update parse-datetime history
19315         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19316         documentation of this function's history and alternatives.
19317
19318         cygwin: use more robust version check
19319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19320         exclude an eventual cygwin 1.9.1.
19321         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19323         (gl_FUNC_STRCASESTR): Likewise.
19324         Reported by Bruno Haible.
19325
19326 2010-10-06  Bruno Haible  <bruno@clisp.org>
19327
19328         string, sys_select: Avoid #including large headers unless necessary.
19329         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19330         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19331         OSF/1, BeOS, Haiku.
19332         Reported by Jim Meyering.
19333
19334 2010-10-05  Eric Blake  <eblake@redhat.com>
19335
19336         memmem, strstr, strcasestr: fix bug with long periodic needle
19337         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19338         periodic needle having false positive.
19339         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19340         and cygwin 1.7.7.
19341         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19343         (gl_FUNC_STRCASESTR): Likewise.
19344         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19345         * tests/test-memmem.c (main): Expose the bug.
19346         * tests/test-strcasestr.c (main): Likewise.
19347         * tests/test-strstr.c (main): Likewise.
19348         * tests/test-c-strcasestr.c (main): Likewise.
19349         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19350         * doc/posix-functions/strstr.texi (strstr): Likewise.
19351         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19352         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19353
19354 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19355
19356         parse-datetime: do some more renaming
19357         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19358         parse_datetime, not get_date.  Mention the renaming.
19359         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19360         in comments.
19361         * m4/bison.m4: Likewise.
19362
19363 2010-10-05  Eric Blake  <eblake@redhat.com>
19364
19365         parse-datetime: better name than get_date
19366         * NEWS: Reword the deprecation notice.
19367         * modules/get_date: Rename to modules/parse-datetime.
19368         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19369         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19370         * lib/get_date.y: Rename to lib/parse-datetime.y.
19371         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19372         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19373         * doc/getdate.texi: Provide fallback wrapper.
19374         * lib/getdate.h: Move guts, and wrap...
19375         * lib/parse-datetime.h: ...new file.
19376         * lib/parse-datetime.y (get_date): Rename...
19377         (parse_datetime): ...to this.
19378         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19379         (gl_PARSE_DATETIME): ...to this.
19380         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19381         documentation.
19382         * modules/getdate (Files): Provide fallback docs and header.
19383         (Notice, Depends-on): Update references.
19384         * tests/test-parse-datetime.c: Likewise.
19385         * DEPENDENCIES: Likewise.
19386         * MODULES.html.sh (Date and time <time.h>): Likewise.
19387         * doc/parse-datetime.texi (Date input formats)
19388         (Authors of parse_datetime): Likewise.
19389         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19390         (Include): Likewise.
19391         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19392         * gnulib-tool: Likewise.
19393         * m4/bison.m4 (gl_BISON): Likewise.
19394         Suggested by Bruno Haible.
19395
19396 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19397
19398         more ports to Solaris tr, which needs [] around ranges
19399         * gnulib-tool: Solaris tr needs [] around ranges.
19400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19401         * tests/test-pipe-filter-gi1.c (main): Likewise.
19402         * tests/test-pipe-filter-ii1.c (main): Likewise.
19403
19404 2010-10-05  Eric Blake  <eblake@redhat.com>
19405
19406         bootstrap: fix Solaris regression
19407         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19408         around ranges.
19409         Reported by Pádraig Brady.
19410
19411         bootstrap: work with pkg-config
19412         * build-aux/bootstrap (check_versions): Also transliterate - in
19413         prerequisite name.
19414         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19415         prerequisites that were already found, to avoid confusion.
19416         Reported by Justin Clift.
19417
19418         faccessat: remove unused wrappers
19419         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19420         presence of these wrappers dragged in -lgen on Solaris.
19421         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19422
19423 2010-10-05  Jim Meyering  <meyering@redhat.com>
19424
19425         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19426         * Makefile (sc_pragma_columns): New syntax-check rule.
19427
19428 2010-10-04  Bruno Haible  <bruno@clisp.org>
19429
19430         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19431         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19432         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19433         Reported by Bruce Korb and Eric Blake.
19434
19435 2010-10-04  Bruno Haible  <bruno@clisp.org>
19436
19437         threadlib: Make option --with-libpth-prefix work.
19438         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19439         use $LIBPTH, not just -lpth.
19440
19441 2010-10-04  Bruno Haible  <bruno@clisp.org>
19442
19443         Avoid line length limitation from HP NonStop system header files.
19444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19445         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19446         * lib/ctype.in.h: Likewise.
19447         * lib/dirent.in.h: Likewise.
19448         * lib/errno.in.h: Likewise.
19449         * lib/fcntl.in.h: Likewise.
19450         * lib/float.in.h: Likewise.
19451         * lib/getopt.in.h: Likewise.
19452         * lib/iconv.in.h: Likewise.
19453         * lib/inttypes.in.h: Likewise.
19454         * lib/langinfo.in.h: Likewise.
19455         * lib/locale.in.h: Likewise.
19456         * lib/math.in.h: Likewise.
19457         * lib/netdb.in.h: Likewise.
19458         * lib/netinet_in.in.h: Likewise.
19459         * lib/poll.in.h: Likewise.
19460         * lib/pthread.in.h: Likewise.
19461         * lib/pty.in.h: Likewise.
19462         * lib/sched.in.h: Likewise.
19463         * lib/se-selinux.in.h: Likewise.
19464         * lib/search.in.h: Likewise.
19465         * lib/signal.in.h: Likewise.
19466         * lib/spawn.in.h: Likewise.
19467         * lib/stdarg.in.h: Likewise.
19468         * lib/stddef.in.h: Likewise.
19469         * lib/stdint.in.h: Likewise.
19470         * lib/stdio.in.h: Likewise.
19471         * lib/stdlib.in.h: Likewise.
19472         * lib/string.in.h: Likewise.
19473         * lib/strings.in.h: Likewise.
19474         * lib/sys_file.in.h: Likewise.
19475         * lib/sys_ioctl.in.h: Likewise.
19476         * lib/sys_select.in.h: Likewise.
19477         * lib/sys_socket.in.h: Likewise.
19478         * lib/sys_stat.in.h: Likewise.
19479         * lib/sys_time.in.h: Likewise.
19480         * lib/sys_times.in.h: Likewise.
19481         * lib/sys_utsname.in.h: Likewise.
19482         * lib/sys_wait.in.h: Likewise.
19483         * lib/sysexits.in.h: Likewise.
19484         * lib/termios.in.h: Likewise.
19485         * lib/time.in.h: Likewise.
19486         * lib/unistd.in.h: Likewise.
19487         * lib/wchar.in.h: Likewise.
19488         * lib/wctype.in.h: Likewise.
19489         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19490         * modules/ctype (Makefile.am): Likewise.
19491         * modules/dirent (Makefile.am): Likewise.
19492         * modules/errno (Makefile.am): Likewise.
19493         * modules/fcntl-h (Makefile.am): Likewise.
19494         * modules/float (Makefile.am): Likewise.
19495         * modules/getopt-posix (Makefile.am): Likewise.
19496         * modules/iconv-h (Makefile.am): Likewise.
19497         * modules/inttypes (Makefile.am): Likewise.
19498         * modules/langinfo (Makefile.am): Likewise.
19499         * modules/locale (Makefile.am): Likewise.
19500         * modules/math (Makefile.am): Likewise.
19501         * modules/netdb (Makefile.am): Likewise.
19502         * modules/netinet_in (Makefile.am): Likewise.
19503         * modules/poll-h (Makefile.am): Likewise.
19504         * modules/pthread (Makefile.am): Likewise.
19505         * modules/pty (Makefile.am): Likewise.
19506         * modules/sched (Makefile.am): Likewise.
19507         * modules/search (Makefile.am): Likewise.
19508         * modules/selinux-h (Makefile.am): Likewise.
19509         * modules/signal (Makefile.am): Likewise.
19510         * modules/spawn (Makefile.am): Likewise.
19511         * modules/stdarg (Makefile.am): Likewise.
19512         * modules/stddef (Makefile.am): Likewise.
19513         * modules/stdint (Makefile.am): Likewise.
19514         * modules/stdio (Makefile.am): Likewise.
19515         * modules/stdlib (Makefile.am): Likewise.
19516         * modules/string (Makefile.am): Likewise.
19517         * modules/strings (Makefile.am): Likewise.
19518         * modules/sys_file (Makefile.am): Likewise.
19519         * modules/sys_ioctl (Makefile.am): Likewise.
19520         * modules/sys_select (Makefile.am): Likewise.
19521         * modules/sys_socket (Makefile.am): Likewise.
19522         * modules/sys_stat (Makefile.am): Likewise.
19523         * modules/sys_time (Makefile.am): Likewise.
19524         * modules/sys_times (Makefile.am): Likewise.
19525         * modules/sys_utsname (Makefile.am): Likewise.
19526         * modules/sys_wait (Makefile.am): Likewise.
19527         * modules/sysexits (Makefile.am): Likewise.
19528         * modules/termios (Makefile.am): Likewise.
19529         * modules/time (Makefile.am): Likewise.
19530         * modules/unistd (Makefile.am): Likewise.
19531         * modules/wchar (Makefile.am): Likewise.
19532         * modules/wctype (Makefile.am): Likewise.
19533
19534 2010-10-04  Bruno Haible  <bruno@clisp.org>
19535
19536         read-file tests: Avoid a test failure on NonStop Kernel.
19537         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19538         a regular file.
19539         Reported by Joachim Schmitz <schmitz@hp.com>.
19540
19541 2010-10-03  Bruno Haible  <bruno@clisp.org>
19542
19543         gnulib-tool: Fixes for --create-testdir with --libtool.
19544         * gnulib-tool (func_get_automake_snippet): Don't augment
19545         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19546         an executable.
19547         (func_create_testdir): Handle module 'alloca' like func_import.
19548         Reported by Bruce Korb <bruce.korb@gmail.com>.
19549
19550 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         Avoid some lines longer than 80 characters.
19553         * lib/stdint.in.h: Break long comment lines.
19554         * lib/math.in.h: Likewise.
19555         (_GL_NUM_UINT_WORDS): New macro, for readability.
19556         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19557         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19558         * lib/stdlib.in.h: Likewise.
19559         * lib/spawn.in.h: Likewise.
19560         * lib/sys_socket.in.h: Update an URL.
19561         * lib/sys_stat.in.h: Break long line.
19562
19563 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19564
19565         Improve pmccabe2html.
19566         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19567         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19568         when the sources change. Remove the line in the HTML about "Used
19569         ranges" (which implied that there might be other unused ranges),
19570         rename "Resume" to "Summary" (easier to understand for more users).
19571         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19572         styles, and some unnecessary blank lines.
19573
19574 2010-10-03  Bruno Haible  <bruno@clisp.org>
19575             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19576
19577         acl: Add support for ACLs on NonStop Kernel.
19578         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19579         Check whether the function aclsort() exists.
19580         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19581         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19582         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19583         (acl_nontrivial [HAVE_ACLSORT]: New function.
19584         (file_has_acl): Implement for NonStop Kernel.
19585         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19586         (qset_acl): Implement for NonStop Kernel.
19587         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19588         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19589         (main): Implement for NonStop Kernel.
19590         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19591         Kernel. Handle this flavor.
19592         * tests/test-set-mode-acl.sh: Likewise.
19593         * tests/test-copy-acl.sh: Likewise.
19594         * tests/test-copy-file.sh: Likewise.
19595
19596 2010-10-03  Bruno Haible  <bruno@clisp.org>
19597
19598         Info about ACLs on NonStop Kernel.
19599         * doc/acl-resources.txt: Add info about NonStop Kernel.
19600         References by Joachim Schmitz <schmitz@hp.com>.
19601
19602 2010-10-02  Bruno Haible  <bruno@clisp.org>
19603
19604         Define missing EDQUOT on NonStop Kernel.
19605         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19606         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19608         missing.
19609         * doc/posix-headers/errno.texi: Mention the NSK bug.
19610         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19611         Reported by Joachim Schmitz <schmitz@hp.com>.
19612
19613 2010-10-02  Bruno Haible  <bruno@clisp.org>
19614
19615         Update doc for POSIX:2008.
19616         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19617         Update URL of POSIX specification.
19618
19619 2010-10-02  Bruno Haible  <bruno@clisp.org>
19620
19621         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19622         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19623         from gnulib, not from Automake.
19624
19625 2010-10-02  Bruno Haible  <bruno@clisp.org>
19626
19627         New module 'system-posix'.
19628         * modules/system-posix: New file.
19629         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19630         module is present.
19631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19632         GNULIB_SYSTEM_POSIX.
19633         * modules/stdlib (Depends-on): Remove sys_wait.
19634         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19635         * doc/posix-functions/system.texi: Mention the new module.
19636         * doc/posix-headers/stdlib.texi: Likewise.
19637         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19638         define test_sys_wait_macros to a no-op.
19639         Reported by Sam Steingold <sds@gnu.org>.
19640
19641 2010-09-30  Bruno Haible  <bruno@clisp.org>
19642
19643         More renaming from 'getdate' to 'get_date'.
19644         * doc/get_date.texi: Renamed from doc/getdate.texi.
19645         * modules/get_date (Files): Update.
19646         * MODULES.html.sh (Date and time <time.h>): Update.
19647         * DEPENDENCIES: Update.
19648         * gnulib-tool: Update comment.
19649         * m4/bison.m4 (gl_BISON): Likewise.
19650         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19651
19652 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19653
19654         bootstrap: support ACLOCAL_FLAGS during aclocal
19655         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19656         can add additional -I dir for third-party .m4 files.
19657
19658 2010-09-30  Eric Blake  <eblake@redhat.com>
19659
19660         bootstrap: use glibtoolize on MacOS
19661         * build-aux/bootstrap (check_versions): Convert libtool into
19662         libtoolize.
19663         (tool search): Move libtool check earlier, and look for
19664         glibtoolize for MacOS.
19665         (gnulib_tool_options): Auto-add --libtool when appropriate.
19666         Reported by Justin Clift.
19667
19668         poll: fix typo that broke test on MacOS
19669         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19670         Reported by Justin Clift.
19671
19672         getdate: rename to get_date
19673         Note: getdate.h is not renamed, to minimize client impact.
19674         * modules/getdate: Mark obsolete.  Move old contents...
19675         * modules/get_date: ...to new module name.
19676         * modules/getdate-tests: Move...
19677         * modules/get_date-tests: ...here.
19678         * m4/getdate.m4: Move...
19679         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19680         * lib/getdate.y: Move...
19681         * lib/get_date.y: ...here.
19682         * tests/test-getdate.c: Move...
19683         * tests/test-get_date.c: ...here.
19684         * doc/posix-functions/getdate.texi (getdate): Update name.
19685         * NEWS: Mention the change.
19686
19687 2010-09-29  Bruno Haible  <bruno@clisp.org>
19688
19689         Separate the module 'waitpid' from the module 'sys_wait'.
19690         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19691         present.
19692         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19693         gl_MODULE_INDICATOR_FOR_TESTS.
19694         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19695         * modules/sys_wait (Depends-on): Remove waitpid.
19696         (Makefile.am): Substitute GNULIB_WAITPID.
19697         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19698         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19699         signature only if the 'waitpid' module is present.
19700         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19701         * NEWS: Mention the change.
19702         * modules/grantpt (Depends-on): Add waitpid.
19703         * modules/wait-process (Depends-on): Likewise.
19704
19705 2010-09-29  Bruno Haible  <bruno@clisp.org>
19706
19707         More tests for module 'sys_wait'.
19708         * modules/sys_wait-c++-tests: New file.
19709         * tests/test-sys_wait-c++.cc: New file.
19710         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19711         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19712
19713 2010-09-29  Bruno Haible  <bruno@clisp.org>
19714
19715         New module 'waitpid'.
19716         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19717         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19718         Don't include <process.h>.
19719         (waitpid): Declare only, using modern idiom.
19720         * m4/waitpid.m4: New file.
19721         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19722         * modules/waitpid: New file.
19723         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19724         (Makefile.am): Update.
19725         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19726
19727 2010-09-28  Bruno Haible  <bruno@clisp.org>
19728
19729         poll: Assume ANSI C.
19730         * lib/poll.c (poll): Use an ANSI C declaration.
19731
19732 2010-09-28  Bruno Haible  <bruno@clisp.org>
19733
19734         poll-h: Create poll.h on all platforms.
19735         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19736         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19737         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19738         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19739         (gl_REPLACE_POLL_H): Don't set POLL_H.
19740         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19741         * modules/poll-h (Depends-on): Add include_next.
19742         (Makefile.am): Create poll.h unconditionally. Substitute also
19743         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19744
19745 2010-09-28  Bruno Haible  <bruno@clisp.org>
19746
19747         Tests for module 'poll-h'.
19748         * modules/poll-h-c++-tests: New file.
19749         * tests/test-poll-h-c++.cc: New file.
19750
19751         Tests for module 'poll-h'.
19752         * modules/poll-h-tests: New file.
19753         * tests/test-poll-h.c: New file.
19754
19755 2010-09-28  Bruno Haible  <bruno@clisp.org>
19756
19757         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19758         * modules/poll-h (Depends-on): Add 'extensions'.
19759
19760 2010-09-28  Bruno Haible  <bruno@clisp.org>
19761
19762         New module 'poll-h'.
19763         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19764         (poll): Use modern idiom.
19765         * modules/poll-h: New file.
19766         * modules/poll (Files): Remove lib/poll.in.h.
19767         (Depends-on): Add poll-h.
19768         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19769         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19770         * m4/poll_h.m4: New file.
19771         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19772         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19773         and invoke gl_REPLACE_POLL_H.
19774         * lib/poll.c: Use common idiom.
19775         * tests/test-poll.c: Likewise.
19776         * doc/posix-headers/poll.texi: Mention the poll-h module.
19777         Suggested by Eric Blake.
19778
19779 2010-09-26  Bruno Haible  <bruno@clisp.org>
19780
19781         sys_wait: Implement WSTOPSIG.
19782         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19783         Reported by Simon Josefsson.
19784
19785 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19786
19787         stdlib, sys_wait: Avoid compilation error on mingw.
19788         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19789
19790 2010-09-26  Bruno Haible  <bruno@clisp.org>
19791
19792         stdlib tests: Avoid code duplication.
19793         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19794         * modules/sys_wait-tests (Files): Likewise.
19795         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19796         * tests/test-stdlib.c: Include test-sys_wait.h.
19797         (main): Invoke test_sys_wait_macros.
19798         * tests/test-sys_wait.c: Include test-sys_wait.h.
19799         (main): Invoke test_sys_wait_macros.
19800
19801 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19802
19803         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19804         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19805         sure Windows sockets are working before calling getaddrinfo.
19806         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19807         * doc/gnulib.texi (Windows sockets): Fix typo.
19808
19809 2010-09-25  Bruno Haible  <bruno@clisp.org>
19810
19811         Tests for module 'regex-quote'.
19812         * modules/regex-quote-tests: New file.
19813         * tests/test-regex-quote.c: New file.
19814
19815         New module 'regex-quote'.
19816         * lib/regex-quote.h: New file.
19817         * lib/regex-quote.c: New file.
19818         * modules/regex-quote: New file.
19819         Suggested by Reuben Thomas <rrt@sc3d.org>.
19820
19821 2010-09-24  Bruno Haible  <bruno@clisp.org>
19822
19823         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19824         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19825
19826 2010-09-23  Bruno Haible  <bruno@clisp.org>
19827
19828         setenv: Relax license.
19829         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19830         Blake.
19831         Requested by Eric Blake.
19832
19833 2010-09-22  Bruno Haible  <bruno@clisp.org>
19834
19835         termios: Relax license.
19836         * modules/termios (License): Change to LGPLv2+.
19837         Requested by Eric Blake.
19838
19839 2010-09-22  Bruno Haible  <bruno@clisp.org>
19840
19841         threadlib: Allow the package to change the default to 'no'.
19842         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19843         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19844         Reported by Paul Eggert.
19845
19846 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19847             Bruno Haible  <bruno@clisp.org>
19848
19849         Fix endless loop in mbmemcasecoll.
19850         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19851         byte.
19852         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19853
19854 2010-09-22  Bruno Haible  <bruno@clisp.org>
19855
19856         Tests for module 'memcoll'.
19857         * modules/memcoll-tests: New file.
19858         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19859
19860         memcoll, xmemcoll: Clarify size vs. length.
19861         * modules/memcoll.c (memcoll0): Clarify specification.
19862         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19863         passed to collate_error.
19864
19865 2010-09-22  Bruno Haible  <bruno@clisp.org>
19866
19867         Tests for module 'memcasecmp'.
19868         * modules/memcasecmp-tests: New file.
19869         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19870
19871 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19872
19873         * lib/pthread.in.h: Add split double-inclusion guard, and include
19874         system <pthread.h> if there is one.  Use @@-style as in other
19875         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19876         pthread.h doesn't.
19877         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19878         (pthread_mutexattr_settype, pthread_mutex_trylock):
19879         New static inline functions, if there's no system <pthread.h>.
19880         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19881         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19882         Approximate with mutexes if the system lacks spinlocks, as in
19883         MacOS.
19884         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19885         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19886         @@-style.  Check for spinlocks separately.
19887         (gl_PTHREAD_DEFAULTS): New macro.
19888         * modules/pthread: Redo to use a more typical style for in.h files.
19889
19890 2010-09-21  Eric Blake  <eblake@redhat.com>
19891
19892         net_if: enhance tests
19893         * tests/test-net_if.c (main): Move signature checks earlier.
19894         Print failures to stderr.
19895         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19896         Document the bug that we do not yet fix.
19897
19898 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19899
19900         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19901         about gnulib, not GSS.
19902
19903 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19904
19905         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19906         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19907         for Emacs.
19908         * build-aux/pmccabe2html: Make Makefile.am example code more
19909         cut-and-paste friendly.
19910
19911 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19912
19913         * tests/test-net_if.c: New file.
19914         * modules/net_if-tests: New file.
19915
19916 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         pthread: add pthread_spin_destroy
19919         * lib/pthread.in.h (pthread_spin_destroy): New function.
19920
19921 2010-09-19  Bruno Haible  <bruno@clisp.org>
19922
19923         gnulib-tool: Fix --help output.
19924         * gnulib-tool (func_usage): Fix help message.
19925         Reported by Reuben Thomas <rrt@sc3d.org>.
19926
19927 2010-09-18  Jim Meyering  <meyering@redhat.com>
19928
19929         maint.mk: avoid unexpanded \n in two diagnostics
19930         * top/maint.mk (sc_prohibit_always_true_header_tests):
19931         Don't use a literal \n in a halt=... assignment.  It would not be
19932         expanded, and the two \n bytes would appear in the diagnostic output
19933         rather than the desired newline.  Use halt=$$(printf ... instead.
19934         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19935
19936 2010-09-18  Bruno Haible  <bruno@clisp.org>
19937
19938         netinet_in: Doc tweak.
19939         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19940         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19941
19942 2010-09-18  Jim Meyering  <meyering@redhat.com>
19943
19944         init.sh: correct an outdated comment
19945         * tests/init.sh (create_exe_shims_):  s/function/alias/
19946
19947         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19948         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19949         a file named "*.exe" is removed between the glob expansion and the
19950         processing of that oddly named file.
19951
19952 2010-09-17  Eric Blake  <eblake@redhat.com>
19953
19954         mirbsd: add some more support
19955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19956         in BSD family.
19957         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19958         devices as OpenBSD.
19959         * m4/host-os.m4 (mirbsd): Add MirBSD.
19960
19961         tests: fix unportable assumption on sys/wait.h
19962         * tests/test-sys_wait.c (main): Relax test.
19963         * tests/test-stdlib.c (main): Likewise.
19964
19965         init.sh: accomodate directory with no .exes
19966         * tests/init.sh: Accomodate directory containing only scripts.
19967
19968         tests: avoid compiler warning
19969         * tests/test-stdlib.c (main): Use the variable.
19970
19971         fdutimens, fdutimensat: update signature, again
19972         * lib/utimens.h (gl_futimens): Delete, and move signature...
19973         (fdutimens): ...here.
19974         (fdutimensat): Rearrange signature.
19975         (lutimensat): Rename variable for clarity.
19976         * lib/fdutimensat.c (fdutimensat): Update signature.
19977         * lib/utimens.c (fdutimens): Likewise.
19978         (gl_futimens): Delete.
19979         (utimens, lutimens): Update callers.
19980         * lib/futimens.c (futimens): Likewise.
19981         * tests/test-fdutimensat.c: Likewise.
19982         * tests/test-utimens.c: Likewise.
19983         * tests/test-futimens.h: Update comment.
19984         * NEWS: Mention this.
19985         Suggested by Paul Eggert.
19986
19987 2010-09-17  Bruno Haible  <bruno@clisp.org>
19988
19989         Take over the maintenance of some older macros from Autoconf.
19990         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19991         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19992         GNU Autoconf.
19993         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19994         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19995
19996 2010-09-17  Eric Blake  <eblake@redhat.com>
19997
19998         fdutimensat: drop atflag validation
19999         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20000         with valid fd, to close a race scenario where futimens is
20001         unsupported and FILE was replaced by a symlink.
20002         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20003         accordingly.
20004         Suggested by Paul Eggert.
20005
20006 2010-09-16  Bruno Haible  <bruno@clisp.org>
20007
20008         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20009         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20010
20011 2010-09-16  Bruno Haible  <bruno@clisp.org>
20012
20013         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20014         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20015         login_tty exists.
20016         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20017
20018 2010-09-16  Bruno Haible  <bruno@clisp.org>
20019
20020         login_tty: Make the replacement code work on BSD systems.
20021         * lib/login_tty.c: Include <sys/ioctl.h>.
20022         (login_tty): Use ioctl TIOCSCTTY when available.
20023         * modules/login_tty (Depends-on): Add sys_ioctl.
20024         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20025
20026 2010-09-16  Bruno Haible  <bruno@clisp.org>
20027
20028         login_tty: Stricter unit test.
20029         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20030         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20031         and tcgetsid() after login_tty.
20032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20033
20034 2010-09-16  Bruno Haible  <bruno@clisp.org>
20035
20036         New module 'tcgetsid'.
20037         * lib/tcgetsid.c: New file.
20038         * m4/tcgetsid.m4: New file.
20039         * modules/tcgetsid: New file.
20040         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20041         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20042         GNULIB_TCGETSID, HAVE_TCGETSID.
20043         * lib/termios.in.h: Include <sys/types.h>.
20044         (tcgetsid): New declaration.
20045         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20046         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20047         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20048         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20049
20050 2010-09-16  Bruno Haible  <bruno@clisp.org>
20051
20052         Tests for module 'termios'.
20053         * modules/termios-c++-tests: New file.
20054         * modules/termios-tests: New file.
20055         * tests/test-termios-c++.cc: New file.
20056         * tests/test-termios.c: New file.
20057
20058         New module 'termios'.
20059         * modules/termios: New file.
20060         * lib/termios.in.h: New file.
20061         * m4/termios_h.m4: New file.
20062         * doc/posix-headers/termios.texi: Mention the new module.
20063
20064 2010-09-16  Eric Blake  <eblake@redhat.com>
20065
20066         fdutimensat: add an atflag parameter
20067         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20068         * lib/utimens.h (fdutimensat): Update prototype.
20069         * tests/test-fdutimensat.c: Adjust test to match.
20070         * NEWS: Document the change.
20071         Suggested by Paul Eggert.
20072
20073 2010-09-16  Bruno Haible  <bruno@clisp.org>
20074
20075         Fix typos in comments.
20076         * lib/striconveh.h: Fix typo in comment.
20077         * lib/login_tty.c (login_tty): Likewise.
20078
20079 2010-09-15  Bruno Haible  <bruno@clisp.org>
20080
20081         stdlib: clarify MirBSD WEXITSTATUS bug
20082         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20083         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20084
20085 2010-09-15  Eric Blake  <eblake@redhat.com>
20086
20087         stdlib: work around MirBSD WEXITSTATUS bug
20088         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20089         * modules/stdlib (Depends-on): Add sys_wait.
20090         * tests/test-sys_wait.c (main): Enhance test.
20091         * tests/test-stdlib.c (main): Likewise.
20092         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20093
20094         docs: mention MacOS issue with WEXITSTATUS(constant)
20095         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20096         issue.
20097         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20098
20099         strnlen: add tests
20100         * modules/strnlen-tests: New file.
20101         * tests/test-strnlen.c: Likewise.
20102
20103 2010-09-14  Bruno Haible  <bruno@clisp.org>
20104
20105         unistr/base: Avoid link errors when module 'libunistring' is also used.
20106         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20107         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20108         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20109         Declare also when HAVE_LIBUNISTRING is set.
20110         Reported by Pádraig Brady <P@draigbrady.com>.
20111
20112 2010-09-14  Eric Blake  <eblake@redhat.com>
20113
20114         test-rawmemchr: make more robust
20115         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20116         (Depends-on, configure.ac): Add needed prerequisites to use it.
20117         * modules/memchr-tests (Files, Depends-on, configure.ac):
20118         Likewise, to avoid implicit reliance on memchr module prereqs.
20119         * tests/test-memchr.c (main): Ensure proper masking.
20120         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20121         reads.
20122
20123         memchr: detect glibc Alpha bug
20124         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20125         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20126         Alpha.
20127         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20128         * tests/test-memchr.c (main): Enhance test.
20129         Reported by Nelson H. F. Beebe.
20130
20131 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20132
20133         fts, getcwd, glob: audit for dirfd returning -1
20134         * lib/fts.c (opendir): Remove #define; no longer used.
20135         (opendirat): New arg PDIR_FD.  All callers changed.
20136         (fts_build, _opendir2): Use new opendirat to avoid the need for
20137         dirfd, or for checking whether dirfd returns a negative value.
20138         Don't use opendir; always use openat followed by fdopendir.
20139         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20140         it.
20141         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20142         returns -1 here.
20143         * modules/fts (Depends-on): Remove dirfd.
20144         * modules/getcwd (Depends-on): Likewise.
20145
20146 2010-09-13  Eric Blake  <eblake@redhat.com>
20147
20148         float: fix broken MirBSD header
20149         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20150         * doc/posix-headers/float.texi (float.h): Document it.
20151
20152 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20153
20154         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20155         * lib/fts.c (opendirat): New arg extra_flags.
20156         (__opendir2): Use it to avoid following symlinks when opening
20157         a directory, if symlinks are not supposed to be followed.  See
20158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20159
20160         fdopendir: preserve argument fd before returning
20161         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20162         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20163         (fdopendir): Use them, arranging for FD to be open to the same
20164         directory that it was when it started.  (It might be temporarily
20165         closed while fdopendir is running, so this not thread- or
20166         signal-safe.)  Be careful to do the right thing even when file
20167         descriptors are scarce and dup fails with errno == EMFILE.  See
20168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20169
20170 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20171
20172         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20173         * NEWS: Document change.
20174         * m4/regex.m4: Disable test for regoff_t size.
20175
20176 2010-09-13  Jim Meyering  <meyering@redhat.com>
20177
20178         fts: don't operate on an invalid file descriptor after failed dup
20179         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20180         negative file descriptor.
20181
20182 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20183
20184         savedir: add streamsavedir, deprecate fdsavedir
20185         * NEWS: Mention deprecation of fdsavedir.
20186         * lib/savedir.c (streamsavedir): New extern function, whose name
20187         ends in "savedir" to be consistent with the others.  This differs
20188         from savedirstream in that it doesn't close its argument.  The
20189         next version of GNU tar will use this instead of fdsavedir, to
20190         avoid some race conditions and conserve file descriptors.
20191         (savedirstream): Reimplement as a wrapper around streamsavedir.
20192         (fdsavedir): Add a comment deprecating this function.  As far as
20193         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20194         * lib/savedir.h (streamsavedir): New decl.
20195         (fdsavedir): Add a comment deprecating this.
20196
20197 2010-09-10  Bruno Haible  <bruno@clisp.org>
20198
20199         langinfo: Fix last commit.
20200         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20201         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20203
20204 2010-09-10  Bruno Haible  <bruno@clisp.org>
20205
20206         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20207         * lib/progreloc.c (O_EXEC): Define fallback.
20208
20209 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20210
20211         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20212         * NEWS: Document recent changes to fcntl-h.
20213         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20214         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20215         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20216         Similarly for O_SEARCH; this last was already true, but not documented.
20217         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20218         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20219         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20220         Likewise.
20221         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20222         is zero, not whether it is defined.
20223         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20224         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20225         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20226
20227 2010-09-10  Bruno Haible  <bruno@clisp.org>
20228
20229         langinfo, nl_langinfo: Fix for IRIX 5.3.
20230         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20231         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20232         HAVE_LANGINFO_YESEXPR.
20233         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20234         HAVE_LANGINFO_YESEXPR.
20235         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20236         HAVE_LANGINFO_T_FMT_AMPM is 0.
20237         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20238         HAVE_LANGINFO_YESEXPR is 0.
20239         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20240         NOEXPR.
20241         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20242         * doc/posix-functions/nl_langinfo.texi: Likewise.
20243         Reported by Eric Blake.
20244
20245 2010-09-10  Bruno Haible  <bruno@clisp.org>
20246
20247         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20248         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20249         on FreeBSD 8.0 and OpenBSD 4.6.
20250         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20251         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20252         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20253         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20254         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20255         ac_includes_default.
20256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20257
20258 2010-09-09  Eric Blake  <eblake@redhat.com>
20259
20260         strsignal: work around NetBSD bug
20261         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20262         * lib/string.in.h (includes): Likewise.
20263         * doc/posix-functions/strsignal.texi (strsignal): Document the
20264         bug.
20265         Reported by Nelson H. F. Beebe.
20266
20267         gnulib-tool: work with NetBSD /bin/sh
20268         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20269         (func_get_description, func_get_comment, func_get_status)
20270         (func_get_notice, func_get_applicability, func_get_filelist)
20271         (func_get_dependencies, func_get_autoconf_early_snippet)
20272         (func_get_autoconf_snippet, func_get_automake_snippet)
20273         (func_get_include_directive, func_get_link_directive)
20274         (func_get_license, func_get_maintainer, func_import): Avoid
20275         shell syntax errors from parsing syntax extensions.
20276
20277 2010-09-09  Bruno Haible  <bruno@clisp.org>
20278
20279         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20280         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20281         a reliable way to determine whether the 'alias' command works.
20282
20283 2010-09-08  Jim Meyering  <meyering@redhat.com>
20284
20285         init.sh: penalize a set-x-impaired shell; don't disqualify it
20286         * tests/init.sh: Too many shells corrupt application stderr when
20287         you set -x, so we can't afford to disqualify them, since at least
20288         on Irix-6.5, that would disqualify all bourne shells.
20289         Instead, use a two-pass approach.
20290         On the first pass, try to find a shell that meets the stricter
20291         condition that set -x does not corrupt stderr.
20292         If no shell meets the stricter condition, retest each candidate
20293         shell, but without that extra condition.  Finally, when
20294         VERBOSE=yes is requested and set -x might cause trouble, simply
20295         issue a warning and refrain from enabling debug output.
20296
20297 2010-09-08  Eric Blake  <eblake@redhat.com>
20298
20299         unsetenv: fix OpenBSD bug
20300         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20301         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20302         documentation.
20303         Reported by Jim Meyering.
20304
20305         strtod: work around IRIX 6.5 bug
20306         * lib/strtod.c (strtod): Reparse number on shorter string if
20307         exponent parse was invalid.
20308         * tests/test-strtod.c (main): Add check for "0x1p 2".
20309         Reported by Tom G. Christensen.
20310
20311         getopt: optimize previous patch
20312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20313         empty variable.  Speed up awk script.
20314         Reported by Paolo Bonzini.
20315
20316 2010-09-08  Jim Meyering  <meyering@redhat.com>
20317
20318         test.sh: disqualify shells for which set -x corrupts stderr
20319         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20320         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20321         appear in stderr output.  For example, this command:
20322             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20323         prints "P=1" on those two systems:
20324
20325 2010-09-08  Bruno Haible  <bruno@clisp.org>
20326
20327         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20328         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20329         commands, because some shells ignore redirections when there is an
20330         error in the command lookup.
20331         Reported by Eric Blake.
20332
20333 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20334
20335         * lib/regex.h: Fix a mention of `regex_compile' (should be
20336         `re_compile_pattern').
20337         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20338         (re_set_registers): Correct name of parameter in comment.
20339
20340         * doc/regex.texi: Add documentation for missing syntax flags.
20341         Remove commented-out documentation of defunct syntax option
20342         RE_NO_EMPTY_ALTS.
20343         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20344         Add documentation of re_set_registers.
20345         Document trick to re-use a pattern buffer by setting fastmap manually.
20346         Update documentation of struct re_pattern_buffer per public members.
20347         Uncomment documentation of equivalence class operators and
20348         collating symbol operators, since they are now implemented,
20349         Explain leftmost-longest matching in relation to alternatives.
20350         Tidy documentation of substring matching.
20351         Remove POSIX documentation, which is done better in
20352         glibc, and refer the reader there. Keep BSD API documentation, as
20353         that is not readily available elsewhere.
20354
20355 2010-09-07  Eric Blake  <eblake@redhat.com>
20356
20357         getopt: handle POSIXLY_CORRECT set but not exported
20358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20359         export state of POSIXLY_CORRECT, due to bash set -o posix.
20360         Reported by Dustin J. Mitchell.
20361
20362 2010-09-05  Bruno Haible  <bruno@clisp.org>
20363
20364         gnulib-tool: Highlight the changed options.
20365         * gnulib-tool (func_usage): Display the --import, --add-import,
20366         --remove-import explanations in bold font.
20367
20368 2010-09-06  Karl Berry  <karl@gnu.org>
20369
20370         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20371
20372 2010-09-05  Bruno Haible  <bruno@clisp.org>
20373
20374         uniwidth/width: Update comment.
20375         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20376         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20377
20378 2010-09-05  Bruno Haible  <bruno@clisp.org>
20379
20380         isinf, isnan: Relax license.
20381         * modules/isinf (License): Change from GPL to LGPL, with consent from
20382         Ben Pfaff.
20383         * modules/isnan (License): Likewise.
20384         Requested by Ludovic Courtès.
20385
20386 2010-09-04  Bruno Haible  <bruno@clisp.org>
20387
20388         gnulib-tool: Help migration from --import to --add-import or --update.
20389         * gnulib-tool: Emit a verbose error message when --import is used
20390         without any module name.
20391
20392 2010-09-04  Bruno Haible  <bruno@clisp.org>
20393
20394         Update doc about gnulib-tool.
20395         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20396         'gnulib-tool --update' in more detail.
20397         Reported by Eric Blake.
20398
20399 2010-09-04  Bruno Haible  <bruno@clisp.org>
20400
20401         gnulib-tool: Change --import. New options --add/remove-import.
20402         * gnulib-tool: New options --add-import, --remove-import.
20403         (func_usage): Document them.
20404         (have_associative): Define always.
20405         (func_import): In import mode, don't merge the specified settings with
20406         the cached settings. Implement remove-import mode.
20407         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20408         Explain when to use them versus --import.
20409         (Simple update): Use --add-import instead of --import.
20410         * NEWS: Mention the change.
20411
20412 2010-09-04  Bruno Haible  <bruno@clisp.org>
20413
20414         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20415         separate gnulib.mk.
20416
20417 2010-09-04  Bruno Haible  <bruno@clisp.org>
20418
20419         gnulib-tool: Don't talk about CVS any more.
20420         * gnulib-tool (func_usage, func_import): Write "version control"
20421         instead of CVS.
20422
20423 2010-09-04  Jim Meyering  <meyering@redhat.com>
20424
20425         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20426         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20427         false positives (whose names may be ill-chosen) when searching
20428         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20429         would cause a false-positive.
20430
20431         avoid coreutils "make distcheck" failure
20432         Coreutils tests with an absolute build directory name that contains
20433         a space.  Not quoting this directory name caused a failure.
20434         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20435         * tests/test-vc-list-files-cvs.sh: Likewise.
20436
20437 2010-09-04  Bruno Haible  <bruno@clisp.org>
20438
20439         gnulib-tool: Avoid error when run in a package without Makefile.am.
20440         * gnulib-tool: When collecting the m4dirs in a package that does not
20441         have a Makefile.am, eliminate those directories that contain no
20442         gnulib-cache.m4. Fix expression that counts these directories.
20443
20444 2010-09-04  Bruno Haible  <bruno@clisp.org>
20445
20446         update-copyright test: Improve output when perl is missing or too old.
20447         * tests/test-update-copyright.sh: Move test of Perl version down after
20448         the test whether Perl exists. Provide an explanation relating Perl's
20449         error message to Automake's SKIP: message.
20450
20451 2010-09-04  Bruno Haible  <bruno@clisp.org>
20452
20453         Don't augment PATH in TESTS_ENVIRONMENT.
20454         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20455         set abs_aux_dir instead of augmenting PATH.
20456         * modules/vc-list-files-tests (Makefile.am): Likewise.
20457         * tests/test-update-copyright.sh: Augment PATH here.
20458         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20459         path_prepend_.
20460         * tests/test-vc-list-files-git.sh: Likewise.
20461
20462 2010-09-04  Jim Meyering  <meyering@redhat.com>
20463
20464         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20465         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20466
20467 2010-09-04  Bruno Haible  <bruno@clisp.org>
20468
20469         strdup: Fix compilation error in C++ mode.
20470         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20471         the macro.
20472
20473 2010-09-04  Bruno Haible  <bruno@clisp.org>
20474
20475         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20476         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20477         macro into a function.
20478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20479
20480 2010-09-04  Bruno Haible  <bruno@clisp.org>
20481
20482         Set PATH_SEPARATOR the same way autoconf does.
20483         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20484         the value of PATH_SEPARATOR the same way autoconf-generated configure
20485         scripts do.
20486         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20487         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20488
20489 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20490
20491         Set PATH_SEPARATOR the same way autoconf does.
20492         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20493         the same way autoconf-generated configure scripts do.
20494         * posix-modules: Likewise.
20495
20496 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20497
20498         hash: fix safe_hasher const typo
20499         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20500         const; otherwise, there is a type error later.
20501
20502 2010-09-02  Jim Meyering  <meyering@redhat.com>
20503
20504         test-update-copyright.sh: require perl 5.8.0
20505         * tests/test-update-copyright.sh: Require 5.8.0,
20506         which Tom G. Christensen has confirmed is adequate,
20507         while 5.6.1 is not.
20508
20509 2010-09-02  Eric Blake  <eblake@redhat.com>
20510
20511         tests: init.sh improvements for re-exec'ing with zsh
20512         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20513         -vx through shell re-exec.
20514         Reported by Tom G. Christensen.
20515
20516         wctype: fix typo in previous commit
20517         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20518         Reported by Ludovic Courtès.
20519
20520 2010-09-02  Jim Meyering  <meyering@redhat.com>
20521
20522         test-update-copyright.sh: skip test if Perl is too old
20523         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20524         Reported by Tom G. Christensen.
20525
20526 2010-09-02  Bruno Haible  <bruno@clisp.org>
20527
20528         wctype: Avoid compilation error on IRIX 6.5.30.
20529         * lib/wctype.in.h (iswblank): Declare with a replacement if
20530         REPLACE_ISWBLANK is set.
20531         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20532         declared. Set REPLACE_ISWBLANK.
20533         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20534         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20535         * doc/posix-headers/wctype.texi: Likewise.
20536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20537
20538 2010-09-01  Bruno Haible  <bruno@clisp.org>
20539
20540         New module 'socketlib'.
20541         * modules/socketlib: New file.
20542         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20543         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20544         * modules/sockets (Depends-on): Add socketlib.
20545         Suggested by Sam Steingold <sds@gnu.org>.
20546
20547 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20550
20551         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20552         when one needs search access to a directory but not read access.
20553         On systems where it is available, it works in some cases where
20554         O_RDONLY does not, namely on directories that are searchable but
20555         not readable, and which need only to be searchable.  If O_SEARCH
20556         is not available, fall back to the traditional method of using
20557         O_RDONLY.
20558
20559         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20560         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20561         when opening a directory that needs only to be searchable.
20562         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20563         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20564         * lib/openat-proc.c (openat_proc_name): Likewise.
20565         * lib/openat.c (openat_needs_fchdir): Likewise.
20566         * lib/save-cwd.c (save_cwd): Likewise.
20567         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20568
20569 2010-08-28  Bruno Haible  <bruno@clisp.org>
20570
20571         New module 'host-cpu-c-abi'.
20572         * modules/host-cpu-c-abi: New file.
20573         * m4/host-cpu-c-abi.m4: New file, based on part of
20574         clisp/src/m4/general.m4.
20575         Requested by Sam Steingold <sds@gnu.org>.
20576
20577 2010-08-31  Eric Blake  <eblake@redhat.com>
20578         and Jim Meyering  <meyering@redhat.com>
20579
20580         hash: factor, and guard against misbehaving hasher function
20581         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20582         of table->hasher's return value.  Also protect against a hash value
20583         so large that adding it to table->bucket results in a NULL pointer.
20584         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20585         Use it in place of open-coded check-and-abort.
20586
20587 2010-08-30  Bruno Haible  <bruno@clisp.org>
20588
20589         hash: silence spurious clang warning
20590         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20591         Reported by Eric Blake.
20592
20593 2010-08-30  Eric Blake  <eblake@redhat.com>
20594
20595         strstr, memmem, strcasestr: avoid leaked shell message
20596         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20597         FreeBSD.
20598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20600
20601         tests: silence clang warning
20602         * tests/test-malloca.c (do_allocation): Avoid dead store.
20603
20604 2010-08-29  Bruno Haible  <bruno@clisp.org>
20605
20606         gettext: Fix recent mistake.
20607         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20608
20609 2010-08-29  Bruno Haible  <bruno@clisp.org>
20610
20611         selinux-h: Offer a --without-selinux option.
20612         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20613         --without-selinux was specified, skip all tests and define
20614         HAVE_SELINUX_SELINUX_H to 0.
20615         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20616         set LIB_SELINUX to empty.
20617         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20618         gl_LIBSELINUX. If --without-selinux was specified, replace
20619         selinux/context.h.
20620         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20621
20622 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20623             Bruno Haible  <bruno@clisp.org>
20624
20625         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20626         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20627         of HAVE_REALLOC.
20628         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20629         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20630         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20631         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20632
20633 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20634             Bruno Haible  <bruno@clisp.org>
20635
20636         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20637         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20638         HAVE_CALLOC.
20639         * lib/xmalloc.c: Update accordingly.
20640         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20641         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20642         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20643
20644 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20645             Bruno Haible  <bruno@clisp.org>
20646
20647         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20648         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20649         HAVE_MALLOC.
20650         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20651         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20652         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20653
20654 2010-08-29  Bruno Haible  <bruno@clisp.org>
20655
20656         Update modules list.
20657         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20658         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20659         (String handling <string.h>): Add astrxfrm.
20660         (File system functions): Add readlinkat.
20661
20662 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20663
20664         Tests for module 'realloc-gnu'.
20665         * modules/realloc-gnu-tests: New file.
20666         * tests/test-realloc-gnu.c: New file.
20667
20668         Tests for module 'calloc-gnu'.
20669         * modules/calloc-gnu-tests: New file.
20670         * tests/test-calloc-gnu.c: New file.
20671
20672         Tests for module 'malloc-gnu'.
20673         * modules/malloc-gnu-tests: New file.
20674         * tests/test-malloc-gnu.c: New file.
20675
20676 2010-08-28  Bruno Haible  <bruno@clisp.org>
20677
20678         Rename module 'realloc' -> 'realloc-gnu'.
20679         * modules/realloc-gnu: New file, copied from modules/realloc.
20680         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20681         obsolete.
20682         * modules/mgetgroups (Depends-on): Update.
20683         * doc/posix-functions/realloc.texi: Update.
20684         * NEWS: Mention the change.
20685
20686         Rename module 'calloc' -> 'calloc-gnu'.
20687         * modules/calloc-gnu: New file, copied from modules/calloc.
20688         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20689         obsolete.
20690         * doc/posix-functions/calloc.texi: Update.
20691         * NEWS: Mention the change.
20692
20693         Rename module 'malloc' -> 'malloc-gnu'.
20694         * modules/malloc-gnu: New file, copied from modules/malloc.
20695         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20696         obsolete.
20697         * modules/argp (Depends-on): Update.
20698         * modules/regex (Depends-on): Update.
20699         * doc/posix-functions/malloc.texi: Update.
20700         * NEWS: Mention the change.
20701
20702 2010-08-28  Eric Blake  <eblake@redhat.com>
20703
20704         pread, pwrite: add missing dependency
20705         * modules/pread (Depends-on): Add extensions.
20706         * modules/pwrite (Depends-on): Likewise.
20707
20708 2010-08-28  Bruno Haible  <bruno@clisp.org>
20709
20710         unistr/u*-strchr: Fix tests dependencies.
20711         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20712         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20713         Reported by Ian Beckwith <ianb@erislabs.net>.
20714
20715 2010-08-28  Bruno Haible  <bruno@clisp.org>
20716
20717         read-file: Don't occupy too much unused memory.
20718         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20719
20720 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20721             Eric Blake  <eblake@redhat.com>
20722             Bruno Haible  <bruno@clisp.org>
20723
20724         read-file: Avoid memory reallocations with regular files.
20725         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20726         (fread_file): With regular files, use the remaining length as the
20727         initial buffer size.  Check against overflow.
20728         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20729         sys_stat.
20730
20731 2010-08-28  Bruno Haible  <bruno@clisp.org>
20732
20733         ftello: Relax license.
20734         * modules/ftello (License): Relax to LGPLv2+.
20735         Reported by Eric Blake.
20736
20737 2010-08-28  Bruno Haible  <bruno@clisp.org>
20738
20739         Avoid relocwrapper link errors due to gnulib replacement functions.
20740         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20741         function.
20742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20743
20744 2010-08-28  Bruno Haible  <bruno@clisp.org>
20745
20746         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20747         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20748         defined.
20749         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20750         Suggested by Eric Blake.
20751
20752 2010-08-28  Bruno Haible  <bruno@clisp.org>
20753
20754         sys_socket, netdb: Ensure socklen_t gets defined.
20755         * modules/sys_socket (Depends-on): Add socklen.
20756         * modules/netdb (Depends-on): Likewise.
20757         * modules/getaddrinfo (Depends-on): Remove socklen.
20758         * modules/getsockopt (Depends-on): Likewise.
20759         * modules/setsockopt (Depends-on): Likewise.
20760         * tests/test-sys_socket.c: Check that socklen_t is defined.
20761         * tests/test-netdb.c: Likewise.
20762         * m4/socklen.m4: Update comments.
20763         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20764
20765 2010-08-27  Eric Blake  <eblake@redhat.com>
20766
20767         login_tty: add missing dependency
20768         * modules/login_tty (Depends-on): Add pty.
20769
20770 2010-08-26  Eric Blake  <eblake@redhat.com>
20771
20772         lib-symbol-versions: fix m4 quoting
20773         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20774         format for AC_LINK_IFELSE.
20775
20776         glob: fix compile test
20777         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20778
20779         btowc: fix missing file
20780         * modules/btowc (Files): Also ship locale-fr.m4.
20781
20782         lseek: fix link test
20783         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20784         AC_LINK_IFELSE.
20785
20786         include_next: silence autoconf 2.68 warning
20787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20788         AC_COMPILE_IFELSE as special.
20789         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20790         autoconf < 2.68.
20791
20792         acl: fix compilation test
20793         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20794         AC_COMPILE_IFELSE.
20795
20796 2010-08-26  Bruno Haible  <bruno@clisp.org>
20797
20798         Modernize AC_TRY_RUN invocations.
20799         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20800         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20801         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20802         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20803         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20804         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20805         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20807         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20808         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20810         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20811         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20812         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20813         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20814         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20815         gl_MBRLEN_NUL_RETVAL): Likewise.
20816         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20817         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20818         Likewise.
20819         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20820         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20821         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20822         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20823         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20824         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20825         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20826         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20827         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20828         Likewise.
20829         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20830         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20832         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20833         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20834         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20835         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20836         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20837         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20839
20840 2010-08-26  Bruno Haible  <bruno@clisp.org>
20841
20842         Modernize AC_TRY_LINK invocations.
20843         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20844         AC_TRY_LINK.
20845         * m4/argp.m4 (gl_ARGP): Likewise.
20846         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20847         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20848         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20849         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20850         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20851         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20852         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20853         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20854         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20855         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20856         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20857         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20858         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20859         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20860         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20861         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20862         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20863         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20864         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20865         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20866         Likewise.
20867         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20868         Likewise.
20869         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20870         Likewise.
20871         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20873         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20874         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20875         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20876         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20877         * m4/servent.m4 (gl_SERVENT): Likewise.
20878         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20879         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20880         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20881         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20882         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20883         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20885         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20886         * modules/tsearch-tests (configure.ac): Likewise.
20887
20888 2010-08-26  Bruno Haible  <bruno@clisp.org>
20889
20890         Modernize AC_TRY_COMPILE invocations.
20891         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20892         AC_TRY_COMPILE.
20893         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20894         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20895         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20896         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20897         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20898         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20899         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20900         * m4/lock.m4 (gl_LOCK): Likewise.
20901         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20902         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20903         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20904         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20905         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20906         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20907         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20909         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20910         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20911         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20912         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20913         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20914         extraneous semicolon.
20915
20916 2010-08-26  Jim Meyering  <meyering@redhat.com>
20917
20918         stat-time: relax license LGPL
20919         * modules/stat-time (License): Change from GPL to LGPL,
20920         with consent from all contributors, for use in libguile.
20921         Requested by Ludovic Courtès.
20922
20923 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20924
20925         poll: return immediately on POLLHUP.
20926         * lib/poll.c (poll): Always set timeout before wait_timeout is
20927         computed.
20928
20929 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20930
20931         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20932         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20933         rmdir ("dir/.//"), unlinkat.
20934
20935 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20936
20937         stdbool: avoid spurious failure with modern xlc
20938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20939
20940 2010-08-24  Bruno Haible  <bruno@clisp.org>
20941
20942         getloadavg: simplify code
20943         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20944         gl_have_func. Update comments.
20945
20946 2010-08-24  Eric Blake  <eblake@redhat.com>
20947
20948         getloadavg: don't define SVR4 on cygwin
20949         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20950         only define SVR4 when -lkvm is required.
20951         Reported by Yaakov Selkowitz.
20952
20953 2010-08-24  Bruno Haible  <bruno@clisp.org>
20954
20955         priv-set: fix comment
20956         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20957
20958 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20959
20960         priv-set: fix comments
20961         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20962         to match code, as suggested by David Bartley in:
20963         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20964
20965 2010-08-23  Eric Blake  <eblake@redhat.com>
20966
20967         stdbool: avoid rejecting clang
20968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20969         * tests/test-stdbool.c: Enable more tests if using the system
20970         <stdbool.h> instead of the gnulib replacement.
20971         (main): Move xlc bug test to a runtime test for all compilers.
20972         Reported by Anders Kaseorg.
20973
20974         argz: fix shell quoting issue
20975         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20976         Reported by Charles Wilson.
20977
20978 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20979             Erik Faye-Lund <kusmabite@gmail.com>
20980
20981         poll, select: handle ERROR_BROKEN_PIPE.
20982         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20983         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20984         * lib/select.c (win32_compute_revents): Do not mark a pipe
20985         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20986
20987 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20988
20989         fts: allow compilation with C++
20990         * lib/fts_.h: Specify extern "C" linkage with C++.
20991
20992 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20993
20994         Fix gnulib-tool sed script de-commentation for AIX sed.
20995         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20996         sed.
20997
20998 2010-08-17  Eric Blake  <eblake@redhat.com>
20999
21000         test-stddef: test for (some) offsetof bugs
21001         * tests/test-stddef.c: Enhance test to ensure correct type of
21002         offsetof.
21003         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21004         that we are not fixing at this time.
21005
21006 2010-08-15  Bruno Haible  <bruno@clisp.org>
21007
21008         stpncpy: Allow stpncpy to be defined as a macro.
21009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21010         if it's already correctly declared.
21011         * lib/string.in.h (stpncpy): Undefine before redefining.
21012         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21013
21014 2010-08-14  Bruno Haible  <bruno@clisp.org>
21015
21016         Rename module 'memxfrm' to 'amemxfrm'.
21017         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21018         (amemxfrm): Renamed from memxfrm.
21019         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21020         (amemxfrm): Renamed from memxfrm.
21021         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21022         * NEWS: Mention the change.
21023         * MODULES.html.sh (String handling <string.h>): Update.
21024         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21025         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21026         * lib/unicase/u16-casexfrm.c: Likewise.
21027         * lib/unicase/u32-casexfrm.c: Likewise.
21028         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21029         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21030         * lib/uninorm/u16-normxfrm.c: Likewise.
21031         * lib/uninorm/u32-normxfrm.c: Likewise.
21032         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21033         memxfrm.
21034         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21035         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21036         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21037         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21038         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21039         Suggested by Paul Eggert.
21040
21041 2010-08-14  Bruno Haible  <bruno@clisp.org>
21042
21043         Tests for module 'astrxfrm'.
21044         * modules/astrxfrm-tests: New file.
21045         * tests/test-astrxfrm.c: New file.
21046
21047         New module 'astrxfrm'.
21048         * lib/astrxfrm.h: New file.
21049         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21050         * modules/astrxfrm: New file.
21051
21052 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21053
21054         regex: Tweak doc.
21055         * doc/regex.texi (Overview): Don't mention regex.c.
21056         (GNU Regular Expression Compiling): Likewise.
21057         (Match-end-of-line Operator): Mention 'not_eol'.
21058
21059 2010-08-14  Brian Gough  <bjg@gnu.org>
21060             Bruno Haible  <bruno@clisp.org>
21061
21062         git-merge-changelog: add doc relating to use with bzr and hg.
21063         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21064
21065 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21066
21067         pthread: fix pthread.h creation for srcdir != builddir
21068         * modules/pthread (Makefile.am): Fix the rule to work also in a
21069         non-srcdir build.
21070
21071 2010-08-13  Karl Berry  <karl@gnu.org>
21072
21073         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21074         * doc/posix-*/*: force line break before @url of POSIX
21075         specifications.
21076         Suggested by Werner Lemberg.
21077
21078 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21079
21080         strtod: fix const diagnostic
21081         * lib/strtod.c (strtod): Don't assign const char * to char *,
21082         as this elicits a warning from GCC when warnings are enabled.
21083
21084 2010-08-10  Pádraig Brady <P@draigbrady.com>
21085         and Eric Blake  <eblake@redhat.com>
21086
21087         copy-acl: ignore ENOTSUP on HP-UX
21088         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21089         so that it is available for HP-UX.
21090         * lib/copy-acl.c (qcopy_acl): Use it.
21091         Reported by Patrick M. Callahan.
21092
21093 2010-08-10  Eric Blake  <eblake@redhat.com>
21094
21095         open, chown: relax license
21096         * modules/open (License): Change to LGPLv2+, with consent by all
21097         authors, for use in augeas.
21098         * modules/chown (License): Likewise.
21099         * modules/lchown (Likewise): Likewise.
21100         Requested by Adam Stokes.
21101
21102 2010-08-09  Karl Berry  <karl@gnu.org>
21103
21104         * build-aux/ar-lib: new file, import from Automake.
21105         * config/srclist.txt: autocheck for updates.
21106
21107 2010-08-09  Eric Blake  <eblake@redhat.com>
21108
21109         readlinkat: adjust client modules
21110         * modules/areadlinkat (Depends-on): Use readlinkat, not
21111         symlinkat.
21112         * modules/areadlinkat-with-size (Depends-on): Likewise.
21113
21114         mknod: be more vocal about danger of running tests as root
21115         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21116         root, since that is just asking for problems.
21117         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21118
21119         readlinkat: split into its own module
21120         * modules/symlinkat: Split readlinkat...
21121         * modules/readlinkat: ...into separate module.
21122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21123         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21124         * lib/symlinkat.c (readlinkat): Move...
21125         * lib/readlinkat.c: ...into new file.
21126         * modules/symlinkat-tests: Split readlinkat test...
21127         * modules/readlinkat-tests: ...into separate module.
21128         * tests/test-symlinkat.c: Split...
21129         * tests/test-readlinkat.c: ...into new file.
21130         * NEWS: Document the split.
21131         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21132         * lib/unistd.in.h (readlinkat): Likewise.
21133         Suggested by Bruno Haible.
21134
21135 2010-08-08  Bruno Haible  <bruno@clisp.org>
21136
21137         memxfrm: Speed up.
21138         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21139         that usually only one call to strxfrm is necessary for each string
21140         part.
21141         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21142
21143 2010-08-07  Karl Berry  <karl@gnu.org>
21144
21145         * doc/posix-headers/limits.texi,
21146         * doc/posix-functions/malloc.texi,
21147         * doc/posix-functions/strsignal.texi: missing @item.
21148         * doc/ld-version-script.texi: spurious leading i.
21149         * doc/regex.texi (Interval Operators): no commas inside @var.
21150
21151 2010-08-01  Bruno Haible  <bruno@clisp.org>
21152
21153         Integrate the regex documentation.
21154         * doc/gnulib.texi: Define 'cn' index.
21155         (Regular expressions): New a chapter that includes regex.texi and
21156         regexprops-generic.texi.
21157         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21158         syntax.
21159
21160         Whitespace cleanup.
21161         * doc/regex.texi: Remove trailing spaces.
21162
21163         Add regex documentation.
21164         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21165         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21166         Written by Kathy A. Hargreaves and Karl Berry.
21167
21168 2010-08-01  Bruno Haible  <bruno@clisp.org>
21169
21170         link: Update documentation.
21171         * doc/posix-functions/link.texi: Update regarding Solaris.
21172
21173 2010-07-31  Bruno Haible  <bruno@clisp.org>
21174
21175         Update modules list.
21176         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21177         (String handling <string.h>): Add memcmp2, memxfrm.
21178         (Container data structures): Add xlist, xsublist, xoset.
21179         (Core language properties): Add alignof, unused-parameter.
21180         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21181         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21182         (Unibyte characters <ctype.h>): New section.
21183         (String handling <string.h>): New section.
21184         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21185         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21186         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21187         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21188         tan, tanh, tanl, y0, y1, yn.
21189         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21190         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21191         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21192         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21193         unlockpt, vdprintf, vdprintf-posix.
21194         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21195         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21196         xconcat-filename.
21197         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21198         getdtablesize, pipe2, pipe2-safer.
21199         (Security): New section.
21200         (Networking functions): Add accept4.
21201         (Signal handling): Add sigpipe.
21202         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21203         mbmemcasecoll.
21204         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21205         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21206         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21207         pipe-filter-ii.
21208         (Misc): Add argp-version-etc, login_tty, parse-duration.
21209
21210 2010-07-31  Bruno Haible  <bruno@clisp.org>
21211
21212         Improve doc in MODULES.html.
21213         * modules/linkat (Description): Add the word "function".
21214         * modules/mkfifo (Description): Likewise.
21215         * modules/mknod (Description): Likewise.
21216         * modules/remove (Description): Likewise.
21217         * modules/renameat (Description): Likewise.
21218         * modules/stat (Description): Likewise.
21219         * modules/symlink (Description): Likewise.
21220         * modules/unlink (Description): Likewise.
21221
21222 2010-07-31  Bruno Haible  <bruno@clisp.org>
21223
21224         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21225         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21226         option --enable/disable-c++ instead of --enable/disable-cxx.
21227         * NEWS: Mention the change.
21228
21229 2010-07-31  Bruno Haible  <bruno@clisp.org>
21230
21231         readlink, areadlink: Relax test a bit.
21232         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21233         alternative to ENOTDIR.
21234         * tests/test-areadlink.h (test_areadlink): Likewise.
21235         Reported by Rainer Tammer.
21236
21237 2010-07-31  Bruno Haible  <bruno@clisp.org>
21238
21239         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21240         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21241         character, perform the search using U_STRCHR.
21242         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21243         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21244         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21245         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21246         Suggested by Paolo Bonzini.
21247
21248 2010-07-31  Bruno Haible  <bruno@clisp.org>
21249
21250         unistr/u*-strstr: Fix dependencies.
21251         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21252         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21253         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21254
21255 2010-07-31  Bruno Haible  <bruno@clisp.org>
21256
21257         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21258         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21259         the beginning of the loop.
21260         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21261         cases in 'switch' statement.
21262
21263         unistr/u8-strchr: Fix several bugs.
21264         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21265         the string. When not found, return NULL, not a pointer near the end.
21266
21267         More tests for unistr/u8-strchr.
21268         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21269         that the function does not read past the first occurrence of the byte
21270         being searched.
21271         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21272         * tests/unistr/test-u16-strchr.c (main): New function.
21273         * tests/unistr/test-u32-strchr.c (main): New function.
21274
21275 2010-07-31  Bruno Haible  <bruno@clisp.org>
21276
21277         posix-modules: Ignore backup files of documentation files.
21278         * posix-modules: grep only through files named *.texi.
21279
21280 2010-07-31  Bruno Haible  <bruno@clisp.org>
21281
21282         symlinkat: Fix documentation.
21283         * doc/posix-functions/readlinkat.texi: Fix module name.
21284
21285 2010-07-31  Bruno Haible  <bruno@clisp.org>
21286
21287         fchownat: Replace also when chown has the trailing slash bug.
21288         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21289         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21290         introduced on 2010-04-10.
21291         Reported by Rainer Tammer.
21292
21293 2010-07-31  Bruno Haible  <bruno@clisp.org>
21294
21295         linkat: Work around AIX 7.1 bug.
21296         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21297         whether linkat handles trailing slash correctly. If not, replace linkat
21298         and define LINKAT_TRAILING_SLASH_BUG.
21299         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21300         check whether (fd1,file1) points to a directory if file1 or file2 ends
21301         in a slash. Code taken from lib/link.c.
21302         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21303         Reported by Rainer Tammer.
21304
21305 2010-07-31  Bruno Haible  <bruno@clisp.org>
21306
21307         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21308         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21309         This disables an xlc optimization that was causing wrong test results.
21310         Reported by Rainer Tammer.
21311
21312 2010-07-31  Bruno Haible  <bruno@clisp.org>
21313
21314         iconv: Work around AIX 6.1..7.1 bug.
21315         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21316         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21317         cross-compiling, guess no on all versions of AIX.
21318         Reported by Rainer Tammer.
21319
21320 2010-07-31  Bruno Haible  <bruno@clisp.org>
21321
21322         readlink: Relax test a bit.
21323         * tests/test-readlink.h (test_readlink): Allow different errno value
21324         when readlink is called with a file name that ends in / and refers to
21325         a file.
21326         Suggested by Eric Blake.
21327         Reported by Rainer Tammer.
21328
21329 2010-07-31  Bruno Haible  <bruno@clisp.org>
21330
21331         copysign: Does not require -lm on glibc systems.
21332         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21333         gl_COMMON_DOUBLE_MATHFUNC.
21334         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21335
21336 2010-07-31  Bruno Haible  <bruno@clisp.org>
21337
21338         duplocale: Work around AIX 7.1 bug.
21339         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21340         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21341         * lib/duplocale.c (rpl_duplocale): Update comment.
21342         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21343         Reported by Rainer Tammer.
21344
21345 2010-07-30  Bruno Haible  <bruno@clisp.org>
21346
21347         dirfd: Avoid link error on AIX 7.1.
21348         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21349         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21350         exist, set REPLACE_DIRFD.
21351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21352         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21353         * doc/posix-functions/dirfd.texi: Update.
21354         Reported by Rainer Tammer.
21355
21356 2010-07-30  Eric Blake  <eblake@redhat.com>
21357
21358         strtod: next round of AIX fixes
21359         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21360         exponent.
21361         * tests/test-strtod.c (main): Enhance tests.
21362         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21363         Reported by Rainer Tammer.
21364
21365         futimens: fix configure check
21366         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21367         Reported by Bruno Haible.
21368
21369 2010-07-30  Bruno Haible  <bruno@clisp.org>
21370
21371         getline: Update regarding AIX.
21372         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21373         Reported by Rainer Tammer.
21374
21375 2010-07-30  Bruno Haible  <bruno@clisp.org>
21376
21377         wcwidth: Drop replacement on AIX 7.
21378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21379         AIX 7.
21380         Reported by Rainer Tammer.
21381
21382 2010-07-30  Bruno Haible  <bruno@clisp.org>
21383
21384         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21386         a 'char *'.
21387         Reported by Rainer Tammer.
21388
21389 2010-07-30  Bruno Haible  <bruno@clisp.org>
21390
21391         unlink: Update regarding AIX.
21392         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21393         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21394         Reported by Rainer Tammer.
21395
21396 2010-07-30  Bruno Haible  <bruno@clisp.org>
21397
21398         symlink: Update regarding AIX.
21399         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21400         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21401         Reported by Rainer Tammer.
21402
21403 2010-07-30  Bruno Haible  <bruno@clisp.org>
21404
21405         strndup: Update regarding AIX.
21406         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21407         AIX 7.
21408         Reported by Rainer Tammer.
21409
21410 2010-07-30  Bruno Haible  <bruno@clisp.org>
21411
21412         stat: Update regarding AIX.
21413         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21414         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21415         Reported by Rainer Tammer.
21416
21417 2010-07-30  Bruno Haible  <bruno@clisp.org>
21418
21419         truncl: Fix autoconf test.
21420         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21421         whether truncl works.
21422         Reported by Rainer Tammer.
21423
21424 2010-07-30  Bruno Haible  <bruno@clisp.org>
21425
21426         round: Update regarding AIX.
21427         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21428         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21429         Reported by Rainer Tammer.
21430
21431 2010-07-30  Bruno Haible  <bruno@clisp.org>
21432
21433         rename: Update regarding AIX.
21434         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21435         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21436         Reported by Rainer Tammer.
21437
21438 2010-07-30  Bruno Haible  <bruno@clisp.org>
21439
21440         printf.m4: Update regarding AIX.
21441         * m4/printf.m4: Update comments regarding AIX.
21442         Reported by Rainer Tammer.
21443
21444 2010-07-30  Bruno Haible  <bruno@clisp.org>
21445
21446         iconv: Update regarding AIX.
21447         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21448         AIX 7.
21449         Reported by Rainer Tammer.
21450
21451 2010-07-30  Bruno Haible  <bruno@clisp.org>
21452
21453         getopt: Update regarding AIX.
21454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21455         no on AIX.
21456         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21457         Reported by Rainer Tammer.
21458
21459 2010-07-30  Bruno Haible  <bruno@clisp.org>
21460
21461         ldexpl; Update regarding AIX.
21462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21463         on AIX 7.
21464         Reported by Rainer Tammer.
21465
21466 2010-07-30  Bruno Haible  <bruno@clisp.org>
21467
21468         frexpl: Update regarding AIX.
21469         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21470         on AIX 7.
21471         Reported by Rainer Tammer.
21472
21473 2010-07-30  Bruno Haible  <bruno@clisp.org>
21474
21475         open, fopen: Update regarding AIX.
21476         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21477         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21478         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21479         * doc/posix-functions/fopen.texi: Likewise.
21480         Reported by Rainer Tammer.
21481
21482 2010-07-30  Bruno Haible  <bruno@clisp.org>
21483
21484         chown: Update doc regarding AIX.
21485         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21486         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21487         Reported by Rainer Tammer.
21488
21489 2010-07-30  Eric Blake  <eblake@redhat.com>
21490
21491         strtod: fix bug in replacement function on AIX
21492         * lib/strtod.c (strtod): Special case broken "0x" parse in
21493         underlying strtod.
21494         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21495         * doc/posix-functions/strtod.texi (strtod): Likewise.
21496         Reported by Rainer Tammer.
21497
21498 2010-07-30  Bruno Haible  <bruno@clisp.org>
21499
21500         mbrlen: Fix cross-compilation guess for AIX.
21501         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21502         guess. Leftover from 2008-12-22.
21503
21504 2010-07-30  Bruno Haible  <bruno@clisp.org>
21505
21506         mbrtowc: Fix cross-compilation guess for AIX.
21507         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21508         guess. Leftover from 2008-12-21.
21509
21510 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21511
21512         init.sh: work around trap limitation of some shells
21513         * tests/init.sh (setup_): Move exit trap outside of shell function.
21514
21515 2010-07-29  Eric Blake  <eblake@redhat.com>
21516
21517         strtod: aid debugging
21518         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21519         understanding why strtod is rejected.
21520
21521 2010-07-28  Bruno Haible  <bruno@clisp.org>
21522
21523         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21524         * lib/unistr/u8-chr.c: Include <string.h>.
21525         * tests/unistr/test-u8-chr.c: Likewise.
21526         * tests/unistr/test-u16-chr.c: Likewise.
21527         * tests/unistr/test-u32-chr.c: Likewise.
21528         * tests/unistr/test-u8-strchr.c: Likewise.
21529         * tests/unistr/test-u16-strchr.c: Likewise.
21530         * tests/unistr/test-u32-strchr.c: Likewise.
21531         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21532         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21533         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21534         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21535
21536 2010-07-28  Bruno Haible  <bruno@clisp.org>
21537
21538         Use spaces for indentation, not tabs.
21539         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21540
21541 2010-07-27  Bruno Haible  <bruno@clisp.org>
21542
21543         mbspcasecmp: Fix function specification.
21544         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21545         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21546         Reported by Eric Blake <eblake@redhat.com>.
21547
21548 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21549
21550         timespec: use cast and not conditional, as truncation isn't possible
21551         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21552         instead of a conditional.  Comment about the situation in more detail.
21553         This undoes most of the 2009-10-29 patch.
21554
21555 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21556
21557         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21558         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21559         * lib/unistr/u8-strchr.c: Likewise.
21560         * modules/unistr/u8-chr: Depend on memchr.
21561
21562         unistr/u*-strchr: add tests
21563         * modules/unistr/u8-strchr-tests: New file.
21564         * modules/unistr/u16-strchr-tests: New file.
21565         * modules/unistr/u32-strchr-tests: New file.
21566         * tests/unistr/test-strchr.h: New file.
21567         * tests/unistr/test-u8-strchr.c: New file.
21568         * tests/unistr/test-u16-strchr.c: New file.
21569         * tests/unistr/test-u32-strchr.c: New file.
21570
21571         unistr/u*-chr: test multibyte sequences more
21572         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21573         test vector.
21574         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21575         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21576         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21577
21578         unistr/u*-chr: test multibyte sequences
21579         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21580
21581         unistr/u*-chr: prepare for multibyte tests
21582         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21583         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21584         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21585         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21586         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21587         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21588
21589 2010-07-18  Bruno Haible  <bruno@clisp.org>
21590
21591         unistr/u8-strchr: Optimize non-ASCII argument case.
21592         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21593         because the first byte often matches anyway.
21594         Reported by Pádraig Brady <P@draigbrady.com>.
21595
21596 2010-07-15  Karl Berry  <karl@gnu.org>
21597
21598         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21599
21600 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21601
21602         getcwd: on Solaris, work better if ancestors are inaccessible
21603         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21604         buffer and size, try again with a large buffer.  This works better
21605         on Solaris, since its getcwd succeeds even if the path to the root
21606         is inaccessible, and this is helpful in common cases such as .zfs
21607         hidden directories.  Problem reported by J Chapman Flack in
21608         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21609         Use system getcwd if it's declared, not merely if it's partly
21610         working; use the partly-working test only to avoid needless effort
21611         if the system getcwd fails.
21612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21613         comment that was already obsolete and is now even more obsolete.
21614         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21615         now might call strdup.
21616
21617 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21618
21619         pthread: Add enough so that coreutils/src/sort.c compiles.
21620         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21621         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21622         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21623         Include <sys/types.h>, in case it defines pthread_t.
21624         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21625         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21626         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21627         (pthread_rwlockattr_t, pthread_spinlock_t):
21628         New typedefs, if HAVE_PTHREAD_T is not defined.
21629         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21630         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21631         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21632         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21633         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21634         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21635         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21636         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21637         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21638         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21639         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21640         New macros.
21641         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21642         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21643         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21644         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21645         (pthread_spin_unlock): New dummy functions.
21646         (pthread_create): Return EAGAIN; don't set errno.
21647         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21648         require AC_C_INLINE.
21649         * modules/pthread (Depends-on): Add sched, time.
21650         (pthread.h): Use AM_V_GEN.
21651
21652 2010-07-13  Bruno Haible  <bruno@clisp.org>
21653
21654         striconveh: Don't malloc memory if the result buffer is sufficient.
21655         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21656         buffer if its size is sufficient.
21657         Reported by Ludovic Courtès <ludo@gnu.org>.
21658
21659 2010-07-13  Bruno Haible  <bruno@clisp.org>
21660
21661         strtod: Add safety check.
21662         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21663
21664 2010-07-12  Bruno Haible  <bruno@clisp.org>
21665
21666         Unify tests that set gl_cv_func_ldexpl_no_libm.
21667         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21668         gl_FUNC_LDEXPL.
21669         (gl_FUNC_LDEXPL): Invoke it.
21670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21671
21672 2010-07-12  Bruno Haible  <bruno@clisp.org>
21673
21674         Unify tests that set gl_cv_func_ldexp_no_libm.
21675         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21676         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21677         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21678         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21679         * modules/strtod (Files): Add m4/ldexp.m4.
21680
21681 2010-07-12  Bruno Haible  <bruno@clisp.org>
21682
21683         Unify tests that set gl_cv_func_frexpl_no_libm.
21684         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21685         gl_FUNC_FREXPL_NO_LIBM.
21686         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21688
21689 2010-07-12  Bruno Haible  <bruno@clisp.org>
21690
21691         Unify tests that set gl_cv_func_frexp_no_libm.
21692         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21693         gl_FUNC_FREXP_NO_LIBM.
21694         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21695         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21696
21697 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21698
21699         memcoll: clarify sizes versus lengths, document better, and tweak perf
21700         * lib/memcoll.c (strcoll_loop, memcoll0):
21701         Improve quality of descriptive comments.  Name variables
21702         consistently as to whether they are lengths (which do not include
21703         terminating null) versus sizes (which do).
21704         * lib/xmemcoll.c (xmemcoll0): Likewise.
21705         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21706         returned when s1size == 0; this is easier to compile and saves
21707         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21708
21709 2010-07-12  Bruno Haible  <bruno@clisp.org>
21710
21711         Tests for module '_Exit'.
21712         * modules/_Exit-tests: New file.
21713         * tests/test-_Exit.sh: New file.
21714         * tests/test-_Exit.c: New file.
21715
21716         New module '_Exit'.
21717         * lib/stdlib.in.h (__attribute__): New macro.
21718         (_Exit): New declaration.
21719         * lib/_Exit.c: New file.
21720         * m4/_Exit.m4: New file.
21721         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21722         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21723         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21724         * modules/_Exit: New file.
21725         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21726         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21727
21728 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21729
21730         strtod: make it more-accurate typically, and don't require libm
21731         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21732         Include limits.h.  Don't include string.h.
21733         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21734         (locale_isspace): New function, so that no casts are needed to
21735         check whether *s is a space.
21736         (ldexp): Provide an unused dummy if not available.
21737         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21738         (strtod): Use them.  This implementation prefers to use the
21739         underlying strtod if available, falling back on our own code
21740         only to fix known bugs.  This is more likely to produce an
21741         accurate result.  Also, it avoids the use of libm functions.
21742         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21743         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21744         was absent, but it caused a test failure with coreutils.
21745         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21746         with libm.
21747         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21748         * modules/strtod-tests (Makefile.am): Likewise.
21749
21750 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21751             Bruno Haible  <bruno@clisp.org>
21752
21753         unistr/u8-strchr: Optimize ASCII argument case.
21754         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21755
21756 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21757
21758         (x)memcoll: minor tweaks
21759         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21760         is after the type that it qualifies.
21761         (memcoll0): Likewise.
21762         * lib/memcoll.h (memcoll0): Likewise.
21763         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21764         * lib/xmemcoll.h (xmemcoll0): Likewise.
21765         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21766         differs from memcoll in that the NUL byte is part of the argument.
21767         Omit the abort-checks, as performance is a real issue here.  Plus,
21768         the checks were wrong anyway (an off-by-one error).  Omit local
21769         variable 'diff', as it's a bit clearer that way.
21770         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21771         no longer needed.
21772
21773 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21774
21775         (x)memcoll: speedup when input is known to be NUL delimited
21776         * lib/memcoll.c: Include stdlib.
21777         (memcoll0): New function.
21778         (strcoll_loop): New function, refactored for use in both memcoll
21779         and memcoll0.
21780         * lib/memcoll.h (memcoll0): Add prototype.
21781         * lib/xmemcoll.c (xmemcoll0): New function.
21782         (collate_error): New function, refactored for use in both xmemcoll
21783         and xmemcoll0.
21784         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21785         * m4/memcoll.m4: add inline invocation.
21786
21787 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21788
21789         * build-aux/bootstrap: Remove any local translations
21790         from the translation project synchronization directory,
21791         so that local only translations are not distributed.
21792
21793 2010-07-04  Bruno Haible  <bruno@clisp.org>
21794
21795         fsusage: Clarify which code applies to which platforms.
21796         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21797         platform.
21798         * lib/fsusage.c (get_fs_usage): Likewise.
21799
21800 2010-07-04  Bruno Haible  <bruno@clisp.org>
21801
21802         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21803         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21804         Reported by Martin Lambers <marlam@marlam.de>.
21805
21806 2010-07-04  Jim Meyering  <meyering@redhat.com>
21807
21808         hash: once again explicitly disallow insertion of NULL
21809         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21810         inserting a NULL pointer cannot work with these functions.
21811         Add a comment with details.
21812         This reverts part of the 2010-07-01 commit, 5bef1a35
21813         "hash: extend module to deal with non-pointer keys".
21814
21815 2010-07-01  Bruno Haible  <bruno@clisp.org>
21816
21817         stdbool: Update doc.
21818         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21819         Info from Christian Weisgerber <naddy@mips.inka.de>.
21820
21821 2010-07-01  Jim Meyering  <meyering@redhat.com>
21822
21823         hash: extend module to deal with non-pointer keys
21824         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21825         but that allows insertion of non-pointer entries.
21826         Do not disallow an ENTRY value of NULL.
21827         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21828         * lib/hash.h (hash_insert0): Declare.
21829
21830 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21831
21832         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21833         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21834         not present (i.e. with autoconf 2.59 and when using gettextize, not
21835         gnulib), require AC_GNU_SOURCE instead.
21836
21837 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21838
21839         idpriv-drop: Fix tests.
21840         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21841         not to the test-idpriv-droptemp program.
21842
21843 2010-06-29  Bruno Haible  <bruno@clisp.org>
21844
21845         string: Fix syntax error with g++ 2.96.
21846         * lib/string.in.h (__pure__): Remove definition.
21847         (_GL_ATTRIBUTE_PURE): New macro.
21848         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21849         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21850         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21851
21852 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21853
21854         unitypes: Fix bug introduced on 2010-05-18.
21855         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21856
21857 2010-06-22  Eric Blake  <eblake@redhat.com>
21858
21859         memmem: slight optimization
21860         * lib/str-two-way.h (critical_factorization): Update comments.
21861         Reduce work during factorization phase.
21862         Reported by Carlos Bueno <carlos@bueno.org>.
21863
21864 2010-06-21  Bruno Haible  <bruno@clisp.org>
21865
21866         Fix HAVE_CALLOC_POSIX misnomer.
21867         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21868         !HAVE_CALLOC_POSIX.
21869         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21870         HAVE_CALLOC_POSIX.
21871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21872         instead of HAVE_CALLOC_POSIX.
21873         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21874         HAVE_CALLOC_POSIX.
21875
21876         Use modern idiom for calloc() replacement.
21877         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21878         AC_FUNC_CALLOC.
21879         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21880         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21881         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21882         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21883         (gl_REPLACE_CALLOC): New macro.
21884
21885 2010-06-21  Bruno Haible  <bruno@clisp.org>
21886
21887         Fix HAVE_REALLOC_POSIX misnomer.
21888         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21889         !HAVE_REALLOC_POSIX.
21890         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21891         HAVE_REALLOC_POSIX.
21892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21893         instead of HAVE_REALLOC_POSIX.
21894         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21895         HAVE_REALLOC_POSIX.
21896
21897         Use modern idiom for realloc() replacement.
21898         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21899         AC_FUNC_REALLOC.
21900         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21901         Autoconf's AC_FUNC_REALLOC.
21902         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21903         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21904         (gl_REPLACE_REALLOC): New macro.
21905         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21906
21907 2010-06-21  Bruno Haible  <bruno@clisp.org>
21908
21909         Fix HAVE_MALLOC_POSIX misnomer.
21910         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21911         !HAVE_MALLOC_POSIX.
21912         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21913         HAVE_MALLOC_POSIX.
21914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21915         instead of HAVE_MALLOC_POSIX.
21916         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21917         HAVE_MALLOC_POSIX.
21918
21919         Use modern idiom for malloc() replacement.
21920         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21921         AC_FUNC_MALLOC.
21922         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21923         Autoconf's AC_FUNC_MALLOC.
21924         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21925         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21926         (gl_REPLACE_MALLOC): New macro.
21927         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21928
21929 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21930
21931         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21932         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21933         This macro takes 3 arguments, not 4.
21934
21935 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21936
21937         ipv6: fix detection under mingw
21938         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21939         in6_addr.
21940
21941 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21942
21943         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21944         that strtod() works when cross-compiling to a glibc version known
21945         to work.
21946
21947 2010-06-15  Bruno Haible  <bruno@clisp.org>
21948
21949         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21950
21951 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21952
21953         select: Correct timeout.
21954         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21955
21956 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21957
21958         git-version-gen: init shell var to avoid env var influence
21959         * build-aux/git-version-gen (v): Init shell var to empty.
21960
21961 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21962
21963         priv-set: Don't assume that priv.h exists merely because getppriv does.
21964         See Jan Andersen's bug report about AIX 5L in
21965         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21966         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21967         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21968         * lib/priv-set.h: Likewise.
21969         * tests/test-priv-set.c: Likewise.
21970
21971 2010-06-13  Bruno Haible  <bruno@clisp.org>
21972
21973         relocatable: Make it easier to test whether to install wrappers.
21974         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21975         RELOCATABLE_VIA_WRAPPER.
21976
21977 2010-06-13  Bruno Haible  <bruno@clisp.org>
21978
21979         gnulib-tool: Display specified modules and dependencies differently.
21980         * gnulib-tool (func_show_module_list): New function.
21981         (func_import, func_create_testdir): Invoke it.
21982         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21983
21984 2010-06-13  Bruno Haible  <bruno@clisp.org>
21985
21986         gnulib-tool: Align code of func_import and func_create_testdir.
21987         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21988         specified_modules.
21989
21990 2010-06-12  Jim Meyering  <meyering@redhat.com>
21991
21992         test-inttostr: avoid spurious failure on Solaris 9
21993         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21994         to accept "%ju".  Reported by Bruno Haible.
21995
21996 2010-06-11  Jim Meyering  <meyering@redhat.com>
21997
21998         test-sys_socket: mark variables as used more readably
21999         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22000         as "used" explicitly via (void) statement casts.  This is more
22001         readable than using them in an artificial return expression.
22002         Suggestion from Bruno Haible.
22003
22004 2010-06-11  Bruno Haible  <bruno@clisp.org>
22005
22006         Avoid some more warnings from "gcc -Wwrite-strings".
22007         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22008         to 'const char *'.
22009         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22010         * tests/test-c-strcasestr.c (main): Likewise.
22011         * tests/test-mbscasestr1.c (main): Likewise.
22012         * tests/test-mbscasestr2.c (main): Likewise.
22013         * tests/test-memmem.c (main): Likewise.
22014         * tests/test-strstr.c (main): Likewise.
22015         * tests/test-strcasestr.c (main): Likewise.
22016
22017 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22018
22019         init.sh: change framework_failure_ to fail with status 99, not 1
22020         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22021         automake's parallel-tests rule that this is an unexpected failure,
22022         even if the test is listed in XFAIL_TESTS.
22023
22024 2010-06-11  Jim Meyering  <meyering@redhat.com>
22025
22026         test-inttostr: avoid warnings about 4-6KB literal strings
22027         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22028         Include "macros.h", for its definition of ASSERT.
22029         (CK): s/assert/ASSERT/
22030         * modules/inttostr-tests (Files): Add macros.h.
22031
22032         init.sh: don't use $ME_ or skip_ before they are defined
22033         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22034         their first uses.  Also hoist their companions: warn_, fail_,
22035         framework_failure_, $stderr_fileno.  Prompted by a patch from
22036         Stefano Lattarini.
22037
22038         test-sys_socket: avoid set-but-not-used warnings from gcc
22039         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22040         avoid warning about set-but-not-used variables.
22041
22042         test-xvasprintf: avoid 'const' discard warnings
22043         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22044         "const" when assigning from literal strings.
22045         (test_xasprintf): Add "void" in function argument list to placate
22046         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22047
22048         tests: avoid compilation warnings in argmatch and exclude tests...
22049         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22050         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22051         Since it always exits, declare with the "noreturn" attribute.
22052         * tests/test-argmatch.c: Likewise.
22053
22054         tests: avoid 'const' discard warnings in mbsstr tests
22055         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22056         * tests/test-mbsstr2.c (main): Likewise.
22057
22058         test-verify: avoid warning from gcc's -Wmissing-declarations
22059         * tests/test-verify.c (function): Declare to be static.
22060
22061         test-inttostr.c: include <string.h> for use of strcmp
22062         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22063
22064         test-linkat: avoid failed assertion on "other" architectures
22065         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22066         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22067         sparc: https://bugs.launchpad.net/bugs/591968
22068
22069 2010-06-11  Jim Meyering  <meyering@redhat.com>
22070
22071         printf.m4: avoid autoconf's "Expanded Before Required" warning
22072         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22073         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22074         autoconf warning.
22075
22076 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22077
22078         Replacement header templates are now named with ".in", not "_".
22079         * doc/gnulib-intro.texi: Correct.
22080
22081 2010-06-10  Jim Meyering  <meyering@redhat.com>
22082
22083         inttostr-tests: depend on snprintf, not snprintf-posix
22084         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22085         snprintf-posix, to avoid this aclocal failure:
22086           missing file gnulib-tests/vasnprintf.c
22087           configure.ac:45: error: expected source file, required through \
22088           AC_LIBSOURCES, not found
22089
22090 2010-06-10  Jim Meyering  <meyering@redhat.com>
22091
22092         inttostr: add a new function, inttostr, and tests
22093         The namesake function was not available.  The existence of the
22094         template file, inttostr.c makes its addition nontrivial.
22095         * lib/anytostr.c: Rename from inttostr.c.
22096         (anytostr): Rename from inttostr.
22097         * lib/inttostr.c: New file.
22098         * modules/inttostr (Files): Add anytostr.c.
22099         (Makefile.am): Set lib_SOURCES instead of ...
22100         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22101         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22102         * lib/offtostr.c: Likewise.
22103         * lib/uinttostr.c: Likewise.
22104         * lib/umaxtostr.c: Likewise.
22105         * modules/inttostr-tests: New file.
22106         * tests/test-inttostr.c: New file.  Test these functions.
22107
22108 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22109             Bruno Haible  <bruno@clisp.org>
22110
22111         Add "Extending Gnulib" chapter to manual.
22112         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22113         chapter.
22114         (Extending Gnulib): New chapter.
22115         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22116         chapter.
22117
22118 2010-06-09  Bruno Haible  <bruno@clisp.org>
22119
22120         Avoid relocwrapper link errors due to gnulib replacement functions.
22121         * lib/areadlink.c: Use the system's malloc, realloc functions.
22122         (areadlink): Set errno to ENOMEM explicitly.
22123         * modules/areadlink (Depends-on): Remove malloc-posix.
22124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22125
22126 2010-06-09  Bruno Haible  <bruno@clisp.org>
22127
22128         Avoid relocwrapper link errors due to gnulib replacement functions.
22129         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22130         * lib/malloca.c: Likewise.
22131         * lib/relocatable.c: Likewise.
22132         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22133         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22134         * lib/setenv.c: Use the system's malloc, realloc functions.
22135         * lib/strerror.c: Use the system's sprintf function.
22136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22137
22138 2010-06-04  Bruno Haible  <bruno@clisp.org>
22139
22140         Prefer documented low-level autoconf macro names.
22141         * m4/lib-link.m4: Use m4_translit instead of translit.
22142         * m4/environ.m4: Likewise.
22143         * m4/mathfunc.m4: Likewise.
22144         * m4/onceonly.m4: Likewise.
22145         * m4/stdint.m4: Likewise.
22146         Suggested by Eric Blake.
22147
22148 2010-06-04  Martin Lambers  <marlam@marlam.de>
22149             Bruno Haible  <bruno@clisp.org>
22150
22151         havelib: Allow library names with '+' characters.
22152         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22153         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22154
22155 2010-06-09  Bruno Haible  <bruno@clisp.org>
22156
22157         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22158         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22159         realloc failed.
22160
22161 2010-06-08  Peter Simons  <simons@cryp.to>
22162
22163         maint.mk: make the news-check rule more configurable
22164         * top/maint.mk (news-check-lines-spec): New variable.
22165         (news-check): Use "sed -n 1,10p" in place of "head".
22166
22167 2010-06-07  Jim Meyering  <meyering@redhat.com>
22168
22169         do-release-commit-and-tag: fix typo in --help
22170         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22171
22172         regex: avoid new dead-code warning with gcc-4.6.0
22173         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22174         if-block containing a while-loop.  It's been unused for at least
22175         5 years.
22176
22177 2010-06-05  Bruno Haible  <bruno@clisp.org>
22178
22179         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22180         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22181
22182 2010-06-04  Bruno Haible  <bruno@clisp.org>
22183
22184         Update to GNU gettext 0.18.1.
22185         * modules/gettext (configure.ac): Require gettext infrastructure from
22186         version 0.18.1.
22187
22188 2010-06-03  Bruno Haible  <bruno@clisp.org>
22189
22190         Don't use AC_LIBOBJ with file names in subdirectories.
22191         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22192         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22193         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22194         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22195         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22196         gl_LIBUNISTRING_LIBSOURCE.
22197         (Makefile.am): Augment lib_SOURCES here, conditionally.
22198         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22199
22200 2010-06-03  Bruno Haible  <bruno@clisp.org>
22201
22202         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22203         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22204         expansion does not end with a newline.
22205         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22206         unnecessary newline.
22207
22208 2010-06-03  Bruno Haible  <bruno@clisp.org>
22209
22210         Reduce dependencies.
22211         * tests/test-quotearg.h: New file, extracted from
22212         tests/test-quotearg.c.
22213         * tests/test-quotearg-simple.c: New file, extracted from
22214         tests/test-quotearg.c.
22215         * tests/test-quotearg.c: Don't include <ctype.h>.
22216         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22217         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22218         use_quote_double_quotes, use_quotearg_colon): Moved to
22219         tests/test-quotearg.h.
22220         (results_g, flag_results, custom_quotes, custom_results): Moved
22221         to tests/test-quotearg-simple.c.
22222         (main): Moved the part that does not depend on gettext to
22223         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22224         performed.
22225         * modules/quotearg-simple: New file.
22226         * modules/quotearg-simple-tests: New file.
22227         * modules/quotearg (Depends-on): Add quotearg-simple.
22228         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22229         (Files): Add tests/test-quotearg.h.
22230         Reported by Paolo Bonzini.
22231
22232 2010-06-03  Bruno Haible  <bruno@clisp.org>
22233
22234         Reduce dependencies.
22235         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22236
22237 2010-06-03  Bruno Haible  <bruno@clisp.org>
22238
22239         time: Undefine more broken macros.
22240         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22241         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22242         Reported by Eric Blake.
22243
22244 2010-06-03  Bruno Haible  <bruno@clisp.org>
22245
22246         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22247         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22248         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22249         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22250         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22251         Reported by Ludovic Courtès <ludo@gnu.org>.
22252
22253 2010-06-02  Eric Blake  <eblake@redhat.com>
22254
22255         time: work with mingw + pthreads-win32 library
22256         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22257         if timespec is defined only in pthread.h.
22258         * modules/time (Makefile.am): Substitute it.
22259         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22260         <pthread.h>, when needed.
22261         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22262         from the library.
22263
22264 2010-05-31  Bruno Haible  <bruno@clisp.org>
22265
22266         Avoid expanding two macros in the wrong order.
22267         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22268         gl_LIBUNISTRING if it is defined.
22269         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22270         autoconf >= 2.64.
22271         Reported by Ludovic Courtès <ludo@gnu.org>.
22272
22273 2010-05-27  Jim Meyering  <meyering@redhat.com>
22274
22275         maint.mk: also prohibit "#undef" of always-defined symbols
22276         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22277         Allow more than one space before the symbol name.
22278         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22279         the regexp uses alternation.
22280
22281 2010-05-26  Eric Blake  <eblake@redhat.com>
22282
22283         maint.mk: avoid echo -e
22284         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22285         Convert all uses of echo -* to printf.
22286         Reported by Matthias Bolte.
22287
22288 2010-05-25  Bruno Haible  <bruno@clisp.org>
22289
22290         Update to GNU gettext 0.18, part 2.
22291         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22292         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22293
22294 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22295
22296         Add missing include in test-pwrite.c.
22297         * tests/test-pwrite.c: Include string.h, for strcmp.
22298
22299 2010-05-24  Bruno Haible  <bruno@clisp.org>
22300
22301         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22302
22303 2010-05-24  Bruno Haible  <bruno@clisp.org>
22304
22305         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22306         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22307         iconveh_error argument.
22308         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22309         U_STRCONV_TO_LOCALE.
22310         * lib/unistr/u16-strcoll.c: Likewise.
22311         * lib/unistr/u32-strcoll.c: Likewise.
22312         * modules/unistr/u8-strcoll (Depends-on): Add
22313         uniconv/u8-strconv-to-enc, localcharset. Remove
22314         uniconv/u8-strconv-to-locale.
22315         (configure.ac): Bump version number.
22316         * modules/unistr/u16-strcoll (Depends-on): Add
22317         uniconv/u16-strconv-to-enc, localcharset. Remove
22318         uniconv/u16-strconv-to-locale.
22319         (configure.ac): Bump version number.
22320         * modules/unistr/u32-strcoll (Depends-on): Add
22321         uniconv/u32-strconv-to-enc, localcharset. Remove
22322         uniconv/u32-strconv-to-locale.
22323         (configure.ac): Bump version number.
22324
22325 2010-05-24  Bruno Haible  <bruno@clisp.org>
22326
22327         Avoid a test failure on NetBSD 5.0.
22328         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22329         an iconv() bug.
22330
22331 2010-05-24  Bruno Haible  <bruno@clisp.org>
22332
22333         Adjust #include directive style.
22334         * modules/regex (Includes): Recommend to write <regex.h>.
22335
22336 2010-05-24  Bruno Haible  <bruno@clisp.org>
22337
22338         regex: Don't require alloca.
22339         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22340         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22341         only inside if (0).
22342
22343 2010-05-23  Jim Meyering  <meyering@redhat.com>
22344
22345         test-renameat.c: include <sys/stat.h>
22346         * tests/test-renameat.c: Include <sys/stat.h>; required for
22347         definition of S_IS* macros.
22348
22349 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22350
22351         Update maintainer documentation for 'relocatable-prog' module.
22352         * doc/relocatable-maint.texi: Update.
22353         Comments by Bruno Haible.
22354
22355 2010-05-23  Bruno Haible  <bruno@clisp.org>
22356
22357         git-merge-changelog: Enable --split-merged-entry by default.
22358         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22359         (usage): Don't mention this option any more.
22360         Reported by Ralf Wildenhues.
22361
22362 2010-05-23  Jim Meyering  <meyering@redhat.com>
22363
22364         test-pwrite: do not leave behind a test file named "out"
22365         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22366         The trivial-looking use of init.sh is really necessary.
22367         It ensures that the temporary file, "out", is created in
22368         a temporary directory, and removed upon termination.
22369         * tests/test-pwrite.sh: Re-add file.
22370         * modules/pwrite-tests: Reference it.
22371
22372 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22373
22374         Fix output redirection buglet in init.sh.
22375         * tests/init.sh: Fix redirection of stderr.
22376
22377 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22378
22379         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22380
22381 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22382
22383         * modules/valgrind-tests: New file.
22384         * m4/valgrind-tests.m4: New file.
22385         * doc/valgrind-tests.texi: New file.
22386         * doc/gnulib.texi (Running self-tests under valgrind): New
22387         section.
22388
22389 2010-05-19  Bruno Haible  <bruno@clisp.org>
22390
22391         Clean up dead code in recent commit.
22392         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22393         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22394         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22395         Suggested by Paolo Bonzini.
22396
22397 2010-05-19  Bruno Haible  <bruno@clisp.org>
22398
22399         Avoid valgrind error reports from libunistring.
22400         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22401         * modules/libunistring (Files): Add it.
22402         * modules/libunistring-optional (Files): Likewise.
22403
22404 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22405             Bruno Haible  <bruno@clisp.org>
22406
22407         New module 'libunistring-optional'.
22408         * modules/libunistring-optional: New file.
22409         * m4/libunistring-base.m4: New file.
22410         * m4/libunistring-optional.m4: New file.
22411         * lib/unicase.in.h: Renamed from lib/unicase.h.
22412         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22413         * lib/unictype.in.h: Renamed from lib/unictype.h.
22414         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22415         * lib/uniname.in.h: Renamed from lib/uniname.h.
22416         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22417         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22418         * lib/unistr.in.h: Renamed from lib/unistr.h.
22419         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22420         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22421         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22422         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22423         gl_LIBUNISTRING. If the library was found, determine the installed
22424         version and set LIBUNISTRING_VERSION.
22425         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22426         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22427         handle a configuration option --with-included-libunistring.
22428         * modules/libunistring (Files): Add m4/absolute-header.m4.
22429         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22430         Add m4/libunistring-base.m4.
22431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22432         (Makefile.am): Build unicase.h from unicase.in.h.
22433         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22434         Add m4/libunistring-base.m4.
22435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22436         (Makefile.am): Build uniconv.h from uniconv.in.h.
22437         * modules/unictype/base (Files): Use unictype.in.h instead of
22438         unictype.h. Add m4/libunistring-base.m4.
22439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22440         (Makefile.am): Build unictype.h from unictype.in.h.
22441         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22442         Add m4/libunistring-base.m4.
22443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22444         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22445         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22446         Add m4/libunistring-base.m4.
22447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22448         (Makefile.am): Build uniname.h from uniname.in.h.
22449         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22450         Add m4/libunistring-base.m4.
22451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22452         (Makefile.am): Build uninorm.h from uninorm.in.h.
22453         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22454         unistdio.h. Add m4/libunistring-base.m4.
22455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22456         (Makefile.am): Build unistdio.h from unistdio.in.h.
22457         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22458         Add m4/libunistring-base.m4.
22459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22460         (Makefile.am): Build unistr.h from unistr.in.h.
22461         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22462         Add m4/libunistring-base.m4.
22463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22464         (Makefile.am): Build unitypes.h from unitypes.in.h.
22465         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22466         Add m4/libunistring-base.m4.
22467         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22468         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22469         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22470         uniwidth.h. Add m4/libunistring-base.m4.
22471         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22472         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22473         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22474         instead of augmenting lib_SOURCES.
22475         * modules/unicase/empty-suffix-context: Likewise.
22476         * modules/unicase/locale-language: Likewise.
22477         * modules/unicase/tolower: Likewise.
22478         * modules/unicase/totitle: Likewise.
22479         * modules/unicase/toupper: Likewise.
22480         * modules/unicase/u8-casecmp: Likewise.
22481         * modules/unicase/u8-casecoll: Likewise.
22482         * modules/unicase/u8-casefold: Likewise.
22483         * modules/unicase/u8-casexfrm: Likewise.
22484         * modules/unicase/u8-ct-casefold: Likewise.
22485         * modules/unicase/u8-ct-tolower: Likewise.
22486         * modules/unicase/u8-ct-totitle: Likewise.
22487         * modules/unicase/u8-ct-toupper: Likewise.
22488         * modules/unicase/u8-is-cased: Likewise.
22489         * modules/unicase/u8-is-casefolded: Likewise.
22490         * modules/unicase/u8-is-lowercase: Likewise.
22491         * modules/unicase/u8-is-titlecase: Likewise.
22492         * modules/unicase/u8-is-uppercase: Likewise.
22493         * modules/unicase/u8-prefix-context: Likewise.
22494         * modules/unicase/u8-suffix-context: Likewise.
22495         * modules/unicase/u8-tolower: Likewise.
22496         * modules/unicase/u8-totitle: Likewise.
22497         * modules/unicase/u8-toupper: Likewise.
22498         * modules/unicase/u16-casecmp: Likewise.
22499         * modules/unicase/u16-casecoll: Likewise.
22500         * modules/unicase/u16-casefold: Likewise.
22501         * modules/unicase/u16-casexfrm: Likewise.
22502         * modules/unicase/u16-ct-casefold: Likewise.
22503         * modules/unicase/u16-ct-tolower: Likewise.
22504         * modules/unicase/u16-ct-totitle: Likewise.
22505         * modules/unicase/u16-ct-toupper: Likewise.
22506         * modules/unicase/u16-is-cased: Likewise.
22507         * modules/unicase/u16-is-casefolded: Likewise.
22508         * modules/unicase/u16-is-lowercase: Likewise.
22509         * modules/unicase/u16-is-titlecase: Likewise.
22510         * modules/unicase/u16-is-uppercase: Likewise.
22511         * modules/unicase/u16-prefix-context: Likewise.
22512         * modules/unicase/u16-suffix-context: Likewise.
22513         * modules/unicase/u16-tolower: Likewise.
22514         * modules/unicase/u16-totitle: Likewise.
22515         * modules/unicase/u16-toupper: Likewise.
22516         * modules/unicase/u32-casecmp: Likewise.
22517         * modules/unicase/u32-casecoll: Likewise.
22518         * modules/unicase/u32-casefold: Likewise.
22519         * modules/unicase/u32-casexfrm: Likewise.
22520         * modules/unicase/u32-ct-casefold: Likewise.
22521         * modules/unicase/u32-ct-tolower: Likewise.
22522         * modules/unicase/u32-ct-totitle: Likewise.
22523         * modules/unicase/u32-ct-toupper: Likewise.
22524         * modules/unicase/u32-is-cased: Likewise.
22525         * modules/unicase/u32-is-casefolded: Likewise.
22526         * modules/unicase/u32-is-lowercase: Likewise.
22527         * modules/unicase/u32-is-titlecase: Likewise.
22528         * modules/unicase/u32-is-uppercase: Likewise.
22529         * modules/unicase/u32-prefix-context: Likewise.
22530         * modules/unicase/u32-suffix-context: Likewise.
22531         * modules/unicase/u32-tolower: Likewise.
22532         * modules/unicase/u32-totitle: Likewise.
22533         * modules/unicase/u32-toupper: Likewise.
22534         * modules/unicase/ulc-casecmp: Likewise.
22535         * modules/unicase/ulc-casecoll: Likewise.
22536         * modules/unicase/ulc-casexfrm: Likewise.
22537         * modules/uniconv/u8-conv-from-enc: Likewise.
22538         * modules/uniconv/u8-conv-to-enc: Likewise.
22539         * modules/uniconv/u8-strconv-from-enc: Likewise.
22540         * modules/uniconv/u8-strconv-from-locale: Likewise.
22541         * modules/uniconv/u8-strconv-to-enc: Likewise.
22542         * modules/uniconv/u8-strconv-to-locale: Likewise.
22543         * modules/uniconv/u16-conv-from-enc: Likewise.
22544         * modules/uniconv/u16-conv-to-enc: Likewise.
22545         * modules/uniconv/u16-strconv-from-enc: Likewise.
22546         * modules/uniconv/u16-strconv-from-locale: Likewise.
22547         * modules/uniconv/u16-strconv-to-enc: Likewise.
22548         * modules/uniconv/u16-strconv-to-locale: Likewise.
22549         * modules/uniconv/u32-conv-from-enc: Likewise.
22550         * modules/uniconv/u32-conv-to-enc: Likewise.
22551         * modules/uniconv/u32-strconv-from-enc: Likewise.
22552         * modules/uniconv/u32-strconv-from-locale: Likewise.
22553         * modules/uniconv/u32-strconv-to-enc: Likewise.
22554         * modules/uniconv/u32-strconv-to-locale: Likewise.
22555         * modules/unictype/bidicategory-byname: Likewise.
22556         * modules/unictype/bidicategory-name: Likewise.
22557         * modules/unictype/bidicategory-of: Likewise.
22558         * modules/unictype/bidicategory-test: Likewise.
22559         * modules/unictype/block-list: Likewise.
22560         * modules/unictype/block-test: Likewise.
22561         * modules/unictype/category-C: Likewise.
22562         * modules/unictype/category-Cc: Likewise.
22563         * modules/unictype/category-Cf: Likewise.
22564         * modules/unictype/category-Cn: Likewise.
22565         * modules/unictype/category-Co: Likewise.
22566         * modules/unictype/category-Cs: Likewise.
22567         * modules/unictype/category-L: Likewise.
22568         * modules/unictype/category-Ll: Likewise.
22569         * modules/unictype/category-Lm: Likewise.
22570         * modules/unictype/category-Lo: Likewise.
22571         * modules/unictype/category-Lt: Likewise.
22572         * modules/unictype/category-Lu: Likewise.
22573         * modules/unictype/category-M: Likewise.
22574         * modules/unictype/category-Mc: Likewise.
22575         * modules/unictype/category-Me: Likewise.
22576         * modules/unictype/category-Mn: Likewise.
22577         * modules/unictype/category-N: Likewise.
22578         * modules/unictype/category-Nd: Likewise.
22579         * modules/unictype/category-Nl: Likewise.
22580         * modules/unictype/category-No: Likewise.
22581         * modules/unictype/category-P: Likewise.
22582         * modules/unictype/category-Pc: Likewise.
22583         * modules/unictype/category-Pd: Likewise.
22584         * modules/unictype/category-Pe: Likewise.
22585         * modules/unictype/category-Pf: Likewise.
22586         * modules/unictype/category-Pi: Likewise.
22587         * modules/unictype/category-Po: Likewise.
22588         * modules/unictype/category-Ps: Likewise.
22589         * modules/unictype/category-S: Likewise.
22590         * modules/unictype/category-Sc: Likewise.
22591         * modules/unictype/category-Sk: Likewise.
22592         * modules/unictype/category-Sm: Likewise.
22593         * modules/unictype/category-So: Likewise.
22594         * modules/unictype/category-Z: Likewise.
22595         * modules/unictype/category-Zl: Likewise.
22596         * modules/unictype/category-Zp: Likewise.
22597         * modules/unictype/category-Zs: Likewise.
22598         * modules/unictype/category-and: Likewise.
22599         * modules/unictype/category-and-not: Likewise.
22600         * modules/unictype/category-byname: Likewise.
22601         * modules/unictype/category-name: Likewise.
22602         * modules/unictype/category-none: Likewise.
22603         * modules/unictype/category-of: Likewise.
22604         * modules/unictype/category-or: Likewise.
22605         * modules/unictype/category-test: Likewise.
22606         * modules/unictype/combining-class: Likewise.
22607         * modules/unictype/ctype-alnum: Likewise.
22608         * modules/unictype/ctype-alpha: Likewise.
22609         * modules/unictype/ctype-blank: Likewise.
22610         * modules/unictype/ctype-cntrl: Likewise.
22611         * modules/unictype/ctype-digit: Likewise.
22612         * modules/unictype/ctype-graph: Likewise.
22613         * modules/unictype/ctype-lower: Likewise.
22614         * modules/unictype/ctype-print: Likewise.
22615         * modules/unictype/ctype-punct: Likewise.
22616         * modules/unictype/ctype-space: Likewise.
22617         * modules/unictype/ctype-upper: Likewise.
22618         * modules/unictype/ctype-xdigit: Likewise.
22619         * modules/unictype/decimal-digit: Likewise.
22620         * modules/unictype/digit: Likewise.
22621         * modules/unictype/mirror: Likewise.
22622         * modules/unictype/numeric: Likewise.
22623         * modules/unictype/property-alphabetic: Likewise.
22624         * modules/unictype/property-ascii-hex-digit: Likewise.
22625         * modules/unictype/property-bidi-arabic-digit: Likewise.
22626         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22627         * modules/unictype/property-bidi-block-separator: Likewise.
22628         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22629         * modules/unictype/property-bidi-common-separator: Likewise.
22630         * modules/unictype/property-bidi-control: Likewise.
22631         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22632         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22633         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22634         * modules/unictype/property-bidi-european-digit: Likewise.
22635         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22636         * modules/unictype/property-bidi-left-to-right: Likewise.
22637         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22638         * modules/unictype/property-bidi-other-neutral: Likewise.
22639         * modules/unictype/property-bidi-pdf: Likewise.
22640         * modules/unictype/property-bidi-segment-separator: Likewise.
22641         * modules/unictype/property-bidi-whitespace: Likewise.
22642         * modules/unictype/property-byname: Likewise.
22643         * modules/unictype/property-combining: Likewise.
22644         * modules/unictype/property-composite: Likewise.
22645         * modules/unictype/property-currency-symbol: Likewise.
22646         * modules/unictype/property-dash: Likewise.
22647         * modules/unictype/property-decimal-digit: Likewise.
22648         * modules/unictype/property-default-ignorable-code-point: Likewise.
22649         * modules/unictype/property-deprecated: Likewise.
22650         * modules/unictype/property-diacritic: Likewise.
22651         * modules/unictype/property-extender: Likewise.
22652         * modules/unictype/property-format-control: Likewise.
22653         * modules/unictype/property-grapheme-base: Likewise.
22654         * modules/unictype/property-grapheme-extend: Likewise.
22655         * modules/unictype/property-grapheme-link: Likewise.
22656         * modules/unictype/property-hex-digit: Likewise.
22657         * modules/unictype/property-hyphen: Likewise.
22658         * modules/unictype/property-id-continue: Likewise.
22659         * modules/unictype/property-id-start: Likewise.
22660         * modules/unictype/property-ideographic: Likewise.
22661         * modules/unictype/property-ids-binary-operator: Likewise.
22662         * modules/unictype/property-ids-trinary-operator: Likewise.
22663         * modules/unictype/property-ignorable-control: Likewise.
22664         * modules/unictype/property-iso-control: Likewise.
22665         * modules/unictype/property-join-control: Likewise.
22666         * modules/unictype/property-left-of-pair: Likewise.
22667         * modules/unictype/property-line-separator: Likewise.
22668         * modules/unictype/property-logical-order-exception: Likewise.
22669         * modules/unictype/property-lowercase: Likewise.
22670         * modules/unictype/property-math: Likewise.
22671         * modules/unictype/property-non-break: Likewise.
22672         * modules/unictype/property-not-a-character: Likewise.
22673         * modules/unictype/property-numeric: Likewise.
22674         * modules/unictype/property-other-alphabetic: Likewise.
22675         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22676         * modules/unictype/property-other-grapheme-extend: Likewise.
22677         * modules/unictype/property-other-id-continue: Likewise.
22678         * modules/unictype/property-other-id-start: Likewise.
22679         * modules/unictype/property-other-lowercase: Likewise.
22680         * modules/unictype/property-other-math: Likewise.
22681         * modules/unictype/property-other-uppercase: Likewise.
22682         * modules/unictype/property-paired-punctuation: Likewise.
22683         * modules/unictype/property-paragraph-separator: Likewise.
22684         * modules/unictype/property-pattern-syntax: Likewise.
22685         * modules/unictype/property-pattern-white-space: Likewise.
22686         * modules/unictype/property-private-use: Likewise.
22687         * modules/unictype/property-punctuation: Likewise.
22688         * modules/unictype/property-quotation-mark: Likewise.
22689         * modules/unictype/property-radical: Likewise.
22690         * modules/unictype/property-sentence-terminal: Likewise.
22691         * modules/unictype/property-soft-dotted: Likewise.
22692         * modules/unictype/property-space: Likewise.
22693         * modules/unictype/property-terminal-punctuation: Likewise.
22694         * modules/unictype/property-test: Likewise.
22695         * modules/unictype/property-titlecase: Likewise.
22696         * modules/unictype/property-unassigned-code-value: Likewise.
22697         * modules/unictype/property-unified-ideograph: Likewise.
22698         * modules/unictype/property-uppercase: Likewise.
22699         * modules/unictype/property-variation-selector: Likewise.
22700         * modules/unictype/property-white-space: Likewise.
22701         * modules/unictype/property-xid-continue: Likewise.
22702         * modules/unictype/property-xid-start: Likewise.
22703         * modules/unictype/property-zero-width: Likewise.
22704         * modules/unictype/scripts: Likewise.
22705         * modules/unictype/syntax-c-ident: Likewise.
22706         * modules/unictype/syntax-c-whitespace: Likewise.
22707         * modules/unictype/syntax-java-ident: Likewise.
22708         * modules/unictype/syntax-java-whitespace: Likewise.
22709         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22710         * modules/unilbrk/u8-width-linebreaks: Likewise.
22711         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22712         * modules/unilbrk/u16-width-linebreaks: Likewise.
22713         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22714         * modules/unilbrk/u32-width-linebreaks: Likewise.
22715         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22716         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22717         * modules/uniname/uniname: Likewise.
22718         * modules/uninorm/canonical-decomposition: Likewise.
22719         * modules/uninorm/composition: Likewise.
22720         * modules/uninorm/decomposing-form: Likewise.
22721         * modules/uninorm/decomposition: Likewise.
22722         * modules/uninorm/filter: Likewise.
22723         * modules/uninorm/nfc: Likewise.
22724         * modules/uninorm/nfd: Likewise.
22725         * modules/uninorm/nfkc: Likewise.
22726         * modules/uninorm/nfkd: Likewise.
22727         * modules/uninorm/u8-normalize: Likewise.
22728         * modules/uninorm/u8-normcmp: Likewise.
22729         * modules/uninorm/u8-normcoll: Likewise.
22730         * modules/uninorm/u8-normxfrm: Likewise.
22731         * modules/uninorm/u16-normalize: Likewise.
22732         * modules/uninorm/u16-normcmp: Likewise.
22733         * modules/uninorm/u16-normcoll: Likewise.
22734         * modules/uninorm/u16-normxfrm: Likewise.
22735         * modules/uninorm/u32-normalize: Likewise.
22736         * modules/uninorm/u32-normcmp: Likewise.
22737         * modules/uninorm/u32-normcoll: Likewise.
22738         * modules/uninorm/u32-normxfrm: Likewise.
22739         * modules/unistdio/u8-asnprintf: Likewise.
22740         * modules/unistdio/u8-asprintf: Likewise.
22741         * modules/unistdio/u8-snprintf: Likewise.
22742         * modules/unistdio/u8-sprintf: Likewise.
22743         * modules/unistdio/u8-u8-asnprintf: Likewise.
22744         * modules/unistdio/u8-u8-asprintf: Likewise.
22745         * modules/unistdio/u8-u8-snprintf: Likewise.
22746         * modules/unistdio/u8-u8-sprintf: Likewise.
22747         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22748         * modules/unistdio/u8-u8-vasprintf: Likewise.
22749         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22750         * modules/unistdio/u8-u8-vsprintf: Likewise.
22751         * modules/unistdio/u8-vasnprintf: Likewise.
22752         * modules/unistdio/u8-vasprintf: Likewise.
22753         * modules/unistdio/u8-vsnprintf: Likewise.
22754         * modules/unistdio/u8-vsprintf: Likewise.
22755         * modules/unistdio/u16-asnprintf: Likewise.
22756         * modules/unistdio/u16-asprintf: Likewise.
22757         * modules/unistdio/u16-snprintf: Likewise.
22758         * modules/unistdio/u16-sprintf: Likewise.
22759         * modules/unistdio/u16-u16-asnprintf: Likewise.
22760         * modules/unistdio/u16-u16-asprintf: Likewise.
22761         * modules/unistdio/u16-u16-snprintf: Likewise.
22762         * modules/unistdio/u16-u16-sprintf: Likewise.
22763         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22764         * modules/unistdio/u16-u16-vasprintf: Likewise.
22765         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22766         * modules/unistdio/u16-u16-vsprintf: Likewise.
22767         * modules/unistdio/u16-vasnprintf: Likewise.
22768         * modules/unistdio/u16-vasprintf: Likewise.
22769         * modules/unistdio/u16-vsnprintf: Likewise.
22770         * modules/unistdio/u16-vsprintf: Likewise.
22771         * modules/unistdio/u32-asnprintf: Likewise.
22772         * modules/unistdio/u32-asprintf: Likewise.
22773         * modules/unistdio/u32-snprintf: Likewise.
22774         * modules/unistdio/u32-sprintf: Likewise.
22775         * modules/unistdio/u32-u32-asnprintf: Likewise.
22776         * modules/unistdio/u32-u32-asprintf: Likewise.
22777         * modules/unistdio/u32-u32-snprintf: Likewise.
22778         * modules/unistdio/u32-u32-sprintf: Likewise.
22779         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22780         * modules/unistdio/u32-u32-vasprintf: Likewise.
22781         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22782         * modules/unistdio/u32-u32-vsprintf: Likewise.
22783         * modules/unistdio/u32-vasnprintf: Likewise.
22784         * modules/unistdio/u32-vasprintf: Likewise.
22785         * modules/unistdio/u32-vsnprintf: Likewise.
22786         * modules/unistdio/u32-vsprintf: Likewise.
22787         * modules/unistdio/ulc-asnprintf: Likewise.
22788         * modules/unistdio/ulc-asprintf: Likewise.
22789         * modules/unistdio/ulc-fprintf: Likewise.
22790         * modules/unistdio/ulc-snprintf: Likewise.
22791         * modules/unistdio/ulc-sprintf: Likewise.
22792         * modules/unistdio/ulc-vasnprintf: Likewise.
22793         * modules/unistdio/ulc-vasprintf: Likewise.
22794         * modules/unistdio/ulc-vfprintf: Likewise.
22795         * modules/unistdio/ulc-vsnprintf: Likewise.
22796         * modules/unistdio/ulc-vsprintf: Likewise.
22797         * modules/unistr/u8-check: Likewise.
22798         * modules/unistr/u8-chr: Likewise.
22799         * modules/unistr/u8-cmp: Likewise.
22800         * modules/unistr/u8-cmp2: Likewise.
22801         * modules/unistr/u8-cpy: Likewise.
22802         * modules/unistr/u8-cpy-alloc: Likewise.
22803         * modules/unistr/u8-endswith: Likewise.
22804         * modules/unistr/u8-mblen: Likewise.
22805         * modules/unistr/u8-mbsnlen: Likewise.
22806         * modules/unistr/u8-mbtouc: Likewise.
22807         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22808         * modules/unistr/u8-mbtoucr: Likewise.
22809         * modules/unistr/u8-move: Likewise.
22810         * modules/unistr/u8-next: Likewise.
22811         * modules/unistr/u8-prev: Likewise.
22812         * modules/unistr/u8-set: Likewise.
22813         * modules/unistr/u8-startswith: Likewise.
22814         * modules/unistr/u8-stpcpy: Likewise.
22815         * modules/unistr/u8-stpncpy: Likewise.
22816         * modules/unistr/u8-strcat: Likewise.
22817         * modules/unistr/u8-strchr: Likewise.
22818         * modules/unistr/u8-strcmp: Likewise.
22819         * modules/unistr/u8-strcoll: Likewise.
22820         * modules/unistr/u8-strcpy: Likewise.
22821         * modules/unistr/u8-strcspn: Likewise.
22822         * modules/unistr/u8-strdup: Likewise.
22823         * modules/unistr/u8-strlen: Likewise.
22824         * modules/unistr/u8-strmblen: Likewise.
22825         * modules/unistr/u8-strmbtouc: Likewise.
22826         * modules/unistr/u8-strncat: Likewise.
22827         * modules/unistr/u8-strncmp: Likewise.
22828         * modules/unistr/u8-strncpy: Likewise.
22829         * modules/unistr/u8-strnlen: Likewise.
22830         * modules/unistr/u8-strpbrk: Likewise.
22831         * modules/unistr/u8-strrchr: Likewise.
22832         * modules/unistr/u8-strspn: Likewise.
22833         * modules/unistr/u8-strstr: Likewise.
22834         * modules/unistr/u8-strtok: Likewise.
22835         * modules/unistr/u8-to-u16: Likewise.
22836         * modules/unistr/u8-to-u32: Likewise.
22837         * modules/unistr/u8-uctomb: Likewise.
22838         * modules/unistr/u16-check: Likewise.
22839         * modules/unistr/u16-chr: Likewise.
22840         * modules/unistr/u16-cmp: Likewise.
22841         * modules/unistr/u16-cmp2: Likewise.
22842         * modules/unistr/u16-cpy: Likewise.
22843         * modules/unistr/u16-cpy-alloc: Likewise.
22844         * modules/unistr/u16-endswith: Likewise.
22845         * modules/unistr/u16-mblen: Likewise.
22846         * modules/unistr/u16-mbsnlen: Likewise.
22847         * modules/unistr/u16-mbtouc: Likewise.
22848         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22849         * modules/unistr/u16-mbtoucr: Likewise.
22850         * modules/unistr/u16-move: Likewise.
22851         * modules/unistr/u16-next: Likewise.
22852         * modules/unistr/u16-prev: Likewise.
22853         * modules/unistr/u16-set: Likewise.
22854         * modules/unistr/u16-startswith: Likewise.
22855         * modules/unistr/u16-stpcpy: Likewise.
22856         * modules/unistr/u16-stpncpy: Likewise.
22857         * modules/unistr/u16-strcat: Likewise.
22858         * modules/unistr/u16-strchr: Likewise.
22859         * modules/unistr/u16-strcmp: Likewise.
22860         * modules/unistr/u16-strcoll: Likewise.
22861         * modules/unistr/u16-strcpy: Likewise.
22862         * modules/unistr/u16-strcspn: Likewise.
22863         * modules/unistr/u16-strdup: Likewise.
22864         * modules/unistr/u16-strlen: Likewise.
22865         * modules/unistr/u16-strmblen: Likewise.
22866         * modules/unistr/u16-strmbtouc: Likewise.
22867         * modules/unistr/u16-strncat: Likewise.
22868         * modules/unistr/u16-strncmp: Likewise.
22869         * modules/unistr/u16-strncpy: Likewise.
22870         * modules/unistr/u16-strnlen: Likewise.
22871         * modules/unistr/u16-strpbrk: Likewise.
22872         * modules/unistr/u16-strrchr: Likewise.
22873         * modules/unistr/u16-strspn: Likewise.
22874         * modules/unistr/u16-strstr: Likewise.
22875         * modules/unistr/u16-strtok: Likewise.
22876         * modules/unistr/u16-to-u32: Likewise.
22877         * modules/unistr/u16-to-u8: Likewise.
22878         * modules/unistr/u16-uctomb: Likewise.
22879         * modules/unistr/u32-check: Likewise.
22880         * modules/unistr/u32-chr: Likewise.
22881         * modules/unistr/u32-cmp: Likewise.
22882         * modules/unistr/u32-cmp2: Likewise.
22883         * modules/unistr/u32-cpy: Likewise.
22884         * modules/unistr/u32-cpy-alloc: Likewise.
22885         * modules/unistr/u32-endswith: Likewise.
22886         * modules/unistr/u32-mblen: Likewise.
22887         * modules/unistr/u32-mbsnlen: Likewise.
22888         * modules/unistr/u32-mbtouc: Likewise.
22889         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22890         * modules/unistr/u32-mbtoucr: Likewise.
22891         * modules/unistr/u32-move: Likewise.
22892         * modules/unistr/u32-next: Likewise.
22893         * modules/unistr/u32-prev: Likewise.
22894         * modules/unistr/u32-set: Likewise.
22895         * modules/unistr/u32-startswith: Likewise.
22896         * modules/unistr/u32-stpcpy: Likewise.
22897         * modules/unistr/u32-stpncpy: Likewise.
22898         * modules/unistr/u32-strcat: Likewise.
22899         * modules/unistr/u32-strchr: Likewise.
22900         * modules/unistr/u32-strcmp: Likewise.
22901         * modules/unistr/u32-strcoll: Likewise.
22902         * modules/unistr/u32-strcpy: Likewise.
22903         * modules/unistr/u32-strcspn: Likewise.
22904         * modules/unistr/u32-strdup: Likewise.
22905         * modules/unistr/u32-strlen: Likewise.
22906         * modules/unistr/u32-strmblen: Likewise.
22907         * modules/unistr/u32-strmbtouc: Likewise.
22908         * modules/unistr/u32-strncat: Likewise.
22909         * modules/unistr/u32-strncmp: Likewise.
22910         * modules/unistr/u32-strncpy: Likewise.
22911         * modules/unistr/u32-strnlen: Likewise.
22912         * modules/unistr/u32-strpbrk: Likewise.
22913         * modules/unistr/u32-strrchr: Likewise.
22914         * modules/unistr/u32-strspn: Likewise.
22915         * modules/unistr/u32-strstr: Likewise.
22916         * modules/unistr/u32-strtok: Likewise.
22917         * modules/unistr/u32-to-u16: Likewise.
22918         * modules/unistr/u32-to-u8: Likewise.
22919         * modules/unistr/u32-uctomb: Likewise.
22920         * modules/uniwbrk/u8-wordbreaks: Likewise.
22921         * modules/uniwbrk/u16-wordbreaks: Likewise.
22922         * modules/uniwbrk/u32-wordbreaks: Likewise.
22923         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22924         * modules/uniwbrk/wordbreak-property: Likewise.
22925         * modules/uniwidth/u8-strwidth: Likewise.
22926         * modules/uniwidth/u8-width: Likewise.
22927         * modules/uniwidth/u16-strwidth: Likewise.
22928         * modules/uniwidth/u16-width: Likewise.
22929         * modules/uniwidth/u32-strwidth: Likewise.
22930         * modules/uniwidth/u32-width: Likewise.
22931         * modules/uniwidth/width: Likewise.
22932         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22933         with $(LIBUNISTRING).
22934         * modules/unicase/ignorable-tests: Likewise.
22935         * modules/unicase/locale-language-tests: Likewise.
22936         * modules/unicase/tolower-tests: Likewise.
22937         * modules/unicase/totitle-tests: Likewise.
22938         * modules/unicase/toupper-tests: Likewise.
22939         * modules/unicase/u8-casecmp-tests: Likewise.
22940         * modules/unicase/u8-casecoll-tests: Likewise.
22941         * modules/unicase/u8-casefold-tests: Likewise.
22942         * modules/unicase/u8-is-cased-tests: Likewise.
22943         * modules/unicase/u8-is-casefolded-tests: Likewise.
22944         * modules/unicase/u8-is-lowercase-tests: Likewise.
22945         * modules/unicase/u8-is-titlecase-tests: Likewise.
22946         * modules/unicase/u8-is-uppercase-tests: Likewise.
22947         * modules/unicase/u8-tolower-tests: Likewise.
22948         * modules/unicase/u8-totitle-tests: Likewise.
22949         * modules/unicase/u8-toupper-tests: Likewise.
22950         * modules/unicase/u16-casecmp-tests: Likewise.
22951         * modules/unicase/u16-casecoll-tests: Likewise.
22952         * modules/unicase/u16-casefold-tests: Likewise.
22953         * modules/unicase/u16-is-cased-tests: Likewise.
22954         * modules/unicase/u16-is-casefolded-tests: Likewise.
22955         * modules/unicase/u16-is-lowercase-tests: Likewise.
22956         * modules/unicase/u16-is-titlecase-tests: Likewise.
22957         * modules/unicase/u16-is-uppercase-tests: Likewise.
22958         * modules/unicase/u16-tolower-tests: Likewise.
22959         * modules/unicase/u16-totitle-tests: Likewise.
22960         * modules/unicase/u16-toupper-tests: Likewise.
22961         * modules/unicase/u32-casecmp-tests: Likewise.
22962         * modules/unicase/u32-casecoll-tests: Likewise.
22963         * modules/unicase/u32-casefold-tests: Likewise.
22964         * modules/unicase/u32-is-cased-tests: Likewise.
22965         * modules/unicase/u32-is-casefolded-tests: Likewise.
22966         * modules/unicase/u32-is-lowercase-tests: Likewise.
22967         * modules/unicase/u32-is-titlecase-tests: Likewise.
22968         * modules/unicase/u32-is-uppercase-tests: Likewise.
22969         * modules/unicase/u32-tolower-tests: Likewise.
22970         * modules/unicase/u32-totitle-tests: Likewise.
22971         * modules/unicase/u32-toupper-tests: Likewise.
22972         * modules/unicase/ulc-casecmp-tests: Likewise.
22973         * modules/unicase/ulc-casecoll-tests: Likewise.
22974         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22975         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22976         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22977         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22978         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22979         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22980         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22981         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22982         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22983         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22984         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22985         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22986         * modules/unictype/bidicategory-byname-tests: Likewise.
22987         * modules/unictype/bidicategory-name-tests: Likewise.
22988         * modules/unictype/bidicategory-of-tests: Likewise.
22989         * modules/unictype/bidicategory-test-tests: Likewise.
22990         * modules/unictype/block-list-tests: Likewise.
22991         * modules/unictype/block-of-tests: Likewise.
22992         * modules/unictype/block-test-tests: Likewise.
22993         * modules/unictype/category-C-tests: Likewise.
22994         * modules/unictype/category-Cc-tests: Likewise.
22995         * modules/unictype/category-Cf-tests: Likewise.
22996         * modules/unictype/category-Cn-tests: Likewise.
22997         * modules/unictype/category-Co-tests: Likewise.
22998         * modules/unictype/category-Cs-tests: Likewise.
22999         * modules/unictype/category-L-tests: Likewise.
23000         * modules/unictype/category-Ll-tests: Likewise.
23001         * modules/unictype/category-Lm-tests: Likewise.
23002         * modules/unictype/category-Lo-tests: Likewise.
23003         * modules/unictype/category-Lt-tests: Likewise.
23004         * modules/unictype/category-Lu-tests: Likewise.
23005         * modules/unictype/category-M-tests: Likewise.
23006         * modules/unictype/category-Mc-tests: Likewise.
23007         * modules/unictype/category-Me-tests: Likewise.
23008         * modules/unictype/category-Mn-tests: Likewise.
23009         * modules/unictype/category-N-tests: Likewise.
23010         * modules/unictype/category-Nd-tests: Likewise.
23011         * modules/unictype/category-Nl-tests: Likewise.
23012         * modules/unictype/category-No-tests: Likewise.
23013         * modules/unictype/category-P-tests: Likewise.
23014         * modules/unictype/category-Pc-tests: Likewise.
23015         * modules/unictype/category-Pd-tests: Likewise.
23016         * modules/unictype/category-Pe-tests: Likewise.
23017         * modules/unictype/category-Pf-tests: Likewise.
23018         * modules/unictype/category-Pi-tests: Likewise.
23019         * modules/unictype/category-Po-tests: Likewise.
23020         * modules/unictype/category-Ps-tests: Likewise.
23021         * modules/unictype/category-S-tests: Likewise.
23022         * modules/unictype/category-Sc-tests: Likewise.
23023         * modules/unictype/category-Sk-tests: Likewise.
23024         * modules/unictype/category-Sm-tests: Likewise.
23025         * modules/unictype/category-So-tests: Likewise.
23026         * modules/unictype/category-Z-tests: Likewise.
23027         * modules/unictype/category-Zl-tests: Likewise.
23028         * modules/unictype/category-Zp-tests: Likewise.
23029         * modules/unictype/category-Zs-tests: Likewise.
23030         * modules/unictype/category-and-not-tests: Likewise.
23031         * modules/unictype/category-and-tests: Likewise.
23032         * modules/unictype/category-byname-tests: Likewise.
23033         * modules/unictype/category-name-tests: Likewise.
23034         * modules/unictype/category-none-tests: Likewise.
23035         * modules/unictype/category-of-tests: Likewise.
23036         * modules/unictype/category-or-tests: Likewise.
23037         * modules/unictype/category-test-withtable-tests: Likewise.
23038         * modules/unictype/combining-class-tests: Likewise.
23039         * modules/unictype/ctype-alnum-tests: Likewise.
23040         * modules/unictype/ctype-alpha-tests: Likewise.
23041         * modules/unictype/ctype-blank-tests: Likewise.
23042         * modules/unictype/ctype-cntrl-tests: Likewise.
23043         * modules/unictype/ctype-digit-tests: Likewise.
23044         * modules/unictype/ctype-graph-tests: Likewise.
23045         * modules/unictype/ctype-lower-tests: Likewise.
23046         * modules/unictype/ctype-print-tests: Likewise.
23047         * modules/unictype/ctype-punct-tests: Likewise.
23048         * modules/unictype/ctype-space-tests: Likewise.
23049         * modules/unictype/ctype-upper-tests: Likewise.
23050         * modules/unictype/ctype-xdigit-tests: Likewise.
23051         * modules/unictype/decimal-digit-tests: Likewise.
23052         * modules/unictype/digit-tests: Likewise.
23053         * modules/unictype/mirror-tests: Likewise.
23054         * modules/unictype/numeric-tests: Likewise.
23055         * modules/unictype/property-alphabetic-tests: Likewise.
23056         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23057         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23058         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23059         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23060         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23061         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23062         * modules/unictype/property-bidi-control-tests: Likewise.
23063         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23064         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23065         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23066         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23067         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23068         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23069         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23070         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23071         * modules/unictype/property-bidi-pdf-tests: Likewise.
23072         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23073         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23074         * modules/unictype/property-byname-tests: Likewise.
23075         * modules/unictype/property-combining-tests: Likewise.
23076         * modules/unictype/property-composite-tests: Likewise.
23077         * modules/unictype/property-currency-symbol-tests: Likewise.
23078         * modules/unictype/property-dash-tests: Likewise.
23079         * modules/unictype/property-decimal-digit-tests: Likewise.
23080         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23081         * modules/unictype/property-deprecated-tests: Likewise.
23082         * modules/unictype/property-diacritic-tests: Likewise.
23083         * modules/unictype/property-extender-tests: Likewise.
23084         * modules/unictype/property-format-control-tests: Likewise.
23085         * modules/unictype/property-grapheme-base-tests: Likewise.
23086         * modules/unictype/property-grapheme-extend-tests: Likewise.
23087         * modules/unictype/property-grapheme-link-tests: Likewise.
23088         * modules/unictype/property-hex-digit-tests: Likewise.
23089         * modules/unictype/property-hyphen-tests: Likewise.
23090         * modules/unictype/property-id-continue-tests: Likewise.
23091         * modules/unictype/property-id-start-tests: Likewise.
23092         * modules/unictype/property-ideographic-tests: Likewise.
23093         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23094         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23095         * modules/unictype/property-ignorable-control-tests: Likewise.
23096         * modules/unictype/property-iso-control-tests: Likewise.
23097         * modules/unictype/property-join-control-tests: Likewise.
23098         * modules/unictype/property-left-of-pair-tests: Likewise.
23099         * modules/unictype/property-line-separator-tests: Likewise.
23100         * modules/unictype/property-logical-order-exception-tests: Likewise.
23101         * modules/unictype/property-lowercase-tests: Likewise.
23102         * modules/unictype/property-math-tests: Likewise.
23103         * modules/unictype/property-non-break-tests: Likewise.
23104         * modules/unictype/property-not-a-character-tests: Likewise.
23105         * modules/unictype/property-numeric-tests: Likewise.
23106         * modules/unictype/property-other-alphabetic-tests: Likewise.
23107         * modules/unictype/property-other-default-ignorable-code-point-tests:
23108         Likewise.
23109         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23110         * modules/unictype/property-other-id-continue-tests: Likewise.
23111         * modules/unictype/property-other-id-start-tests: Likewise.
23112         * modules/unictype/property-other-lowercase-tests: Likewise.
23113         * modules/unictype/property-other-math-tests: Likewise.
23114         * modules/unictype/property-other-uppercase-tests: Likewise.
23115         * modules/unictype/property-paired-punctuation-tests: Likewise.
23116         * modules/unictype/property-paragraph-separator-tests: Likewise.
23117         * modules/unictype/property-pattern-syntax-tests: Likewise.
23118         * modules/unictype/property-pattern-white-space-tests: Likewise.
23119         * modules/unictype/property-private-use-tests: Likewise.
23120         * modules/unictype/property-punctuation-tests: Likewise.
23121         * modules/unictype/property-quotation-mark-tests: Likewise.
23122         * modules/unictype/property-radical-tests: Likewise.
23123         * modules/unictype/property-sentence-terminal-tests: Likewise.
23124         * modules/unictype/property-soft-dotted-tests: Likewise.
23125         * modules/unictype/property-space-tests: Likewise.
23126         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23127         * modules/unictype/property-test-tests: Likewise.
23128         * modules/unictype/property-titlecase-tests: Likewise.
23129         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23130         * modules/unictype/property-unified-ideograph-tests: Likewise.
23131         * modules/unictype/property-uppercase-tests: Likewise.
23132         * modules/unictype/property-variation-selector-tests: Likewise.
23133         * modules/unictype/property-white-space-tests: Likewise.
23134         * modules/unictype/property-xid-continue-tests: Likewise.
23135         * modules/unictype/property-xid-start-tests: Likewise.
23136         * modules/unictype/property-zero-width-tests: Likewise.
23137         * modules/unictype/scripts-tests: Likewise.
23138         * modules/unictype/syntax-c-ident-tests: Likewise.
23139         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23140         * modules/unictype/syntax-java-ident-tests: Likewise.
23141         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23142         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23143         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23144         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23145         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23146         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23147         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23148         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23149         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23150         * modules/uniname/uniname-tests: Likewise.
23151         * modules/uninorm/canonical-decomposition-tests: Likewise.
23152         * modules/uninorm/compat-decomposition-tests: Likewise.
23153         * modules/uninorm/composition-tests: Likewise.
23154         * modules/uninorm/decomposing-form-tests: Likewise.
23155         * modules/uninorm/decomposition-tests: Likewise.
23156         * modules/uninorm/filter-tests: Likewise.
23157         * modules/uninorm/nfc-tests: Likewise.
23158         * modules/uninorm/nfd-tests: Likewise.
23159         * modules/uninorm/nfkc-tests: Likewise.
23160         * modules/uninorm/nfkd-tests: Likewise.
23161         * modules/uninorm/u8-normcmp-tests: Likewise.
23162         * modules/uninorm/u8-normcoll-tests: Likewise.
23163         * modules/uninorm/u16-normcmp-tests: Likewise.
23164         * modules/uninorm/u16-normcoll-tests: Likewise.
23165         * modules/uninorm/u32-normcmp-tests: Likewise.
23166         * modules/uninorm/u32-normcoll-tests: Likewise.
23167         * modules/unistdio/u8-asnprintf-tests: Likewise.
23168         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23169         * modules/unistdio/u8-vasprintf-tests: Likewise.
23170         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23171         * modules/unistdio/u8-vsprintf-tests: Likewise.
23172         * modules/unistdio/u16-asnprintf-tests: Likewise.
23173         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23174         * modules/unistdio/u16-vasprintf-tests: Likewise.
23175         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23176         * modules/unistdio/u16-vsprintf-tests: Likewise.
23177         * modules/unistdio/u32-asnprintf-tests: Likewise.
23178         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23179         * modules/unistdio/u32-vasprintf-tests: Likewise.
23180         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23181         * modules/unistdio/u32-vsprintf-tests: Likewise.
23182         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23183         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23184         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23185         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23186         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23187         * modules/unistr/u8-check-tests: Likewise.
23188         * modules/unistr/u8-chr-tests: Likewise.
23189         * modules/unistr/u8-cmp-tests: Likewise.
23190         * modules/unistr/u8-cmp2-tests: Likewise.
23191         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23192         * modules/unistr/u8-cpy-tests: Likewise.
23193         * modules/unistr/u8-mblen-tests: Likewise.
23194         * modules/unistr/u8-mbsnlen-tests: Likewise.
23195         * modules/unistr/u8-mbtouc-tests: Likewise.
23196         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23197         * modules/unistr/u8-mbtoucr-tests: Likewise.
23198         * modules/unistr/u8-move-tests: Likewise.
23199         * modules/unistr/u8-next-tests: Likewise.
23200         * modules/unistr/u8-prev-tests: Likewise.
23201         * modules/unistr/u8-set-tests: Likewise.
23202         * modules/unistr/u8-stpcpy-tests: Likewise.
23203         * modules/unistr/u8-stpncpy-tests: Likewise.
23204         * modules/unistr/u8-strcat-tests: Likewise.
23205         * modules/unistr/u8-strcmp-tests: Likewise.
23206         * modules/unistr/u8-strcoll-tests: Likewise.
23207         * modules/unistr/u8-strcpy-tests: Likewise.
23208         * modules/unistr/u8-strdup-tests: Likewise.
23209         * modules/unistr/u8-strlen-tests: Likewise.
23210         * modules/unistr/u8-strmblen-tests: Likewise.
23211         * modules/unistr/u8-strmbtouc-tests: Likewise.
23212         * modules/unistr/u8-strncat-tests: Likewise.
23213         * modules/unistr/u8-strncmp-tests: Likewise.
23214         * modules/unistr/u8-strncpy-tests: Likewise.
23215         * modules/unistr/u8-strnlen-tests: Likewise.
23216         * modules/unistr/u8-to-u16-tests: Likewise.
23217         * modules/unistr/u8-to-u32-tests: Likewise.
23218         * modules/unistr/u8-uctomb-tests: Likewise.
23219         * modules/unistr/u16-check-tests: Likewise.
23220         * modules/unistr/u16-chr-tests: Likewise.
23221         * modules/unistr/u16-cmp-tests: Likewise.
23222         * modules/unistr/u16-cmp2-tests: Likewise.
23223         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23224         * modules/unistr/u16-cpy-tests: Likewise.
23225         * modules/unistr/u16-mblen-tests: Likewise.
23226         * modules/unistr/u16-mbsnlen-tests: Likewise.
23227         * modules/unistr/u16-mbtouc-tests: Likewise.
23228         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23229         * modules/unistr/u16-mbtoucr-tests: Likewise.
23230         * modules/unistr/u16-move-tests: Likewise.
23231         * modules/unistr/u16-next-tests: Likewise.
23232         * modules/unistr/u16-prev-tests: Likewise.
23233         * modules/unistr/u16-set-tests: Likewise.
23234         * modules/unistr/u16-stpcpy-tests: Likewise.
23235         * modules/unistr/u16-stpncpy-tests: Likewise.
23236         * modules/unistr/u16-strcat-tests: Likewise.
23237         * modules/unistr/u16-strcmp-tests: Likewise.
23238         * modules/unistr/u16-strcoll-tests: Likewise.
23239         * modules/unistr/u16-strcpy-tests: Likewise.
23240         * modules/unistr/u16-strdup-tests: Likewise.
23241         * modules/unistr/u16-strlen-tests: Likewise.
23242         * modules/unistr/u16-strmblen-tests: Likewise.
23243         * modules/unistr/u16-strmbtouc-tests: Likewise.
23244         * modules/unistr/u16-strncat-tests: Likewise.
23245         * modules/unistr/u16-strncmp-tests: Likewise.
23246         * modules/unistr/u16-strncpy-tests: Likewise.
23247         * modules/unistr/u16-strnlen-tests: Likewise.
23248         * modules/unistr/u16-to-u32-tests: Likewise.
23249         * modules/unistr/u16-to-u8-tests: Likewise.
23250         * modules/unistr/u16-uctomb-tests: Likewise.
23251         * modules/unistr/u32-check-tests: Likewise.
23252         * modules/unistr/u32-chr-tests: Likewise.
23253         * modules/unistr/u32-cmp-tests: Likewise.
23254         * modules/unistr/u32-cmp2-tests: Likewise.
23255         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23256         * modules/unistr/u32-cpy-tests: Likewise.
23257         * modules/unistr/u32-mblen-tests: Likewise.
23258         * modules/unistr/u32-mbsnlen-tests: Likewise.
23259         * modules/unistr/u32-mbtouc-tests: Likewise.
23260         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23261         * modules/unistr/u32-mbtoucr-tests: Likewise.
23262         * modules/unistr/u32-move-tests: Likewise.
23263         * modules/unistr/u32-next-tests: Likewise.
23264         * modules/unistr/u32-prev-tests: Likewise.
23265         * modules/unistr/u32-set-tests: Likewise.
23266         * modules/unistr/u32-stpcpy-tests: Likewise.
23267         * modules/unistr/u32-stpncpy-tests: Likewise.
23268         * modules/unistr/u32-strcat-tests: Likewise.
23269         * modules/unistr/u32-strcmp-tests: Likewise.
23270         * modules/unistr/u32-strcoll-tests: Likewise.
23271         * modules/unistr/u32-strcpy-tests: Likewise.
23272         * modules/unistr/u32-strdup-tests: Likewise.
23273         * modules/unistr/u32-strlen-tests: Likewise.
23274         * modules/unistr/u32-strmblen-tests: Likewise.
23275         * modules/unistr/u32-strmbtouc-tests: Likewise.
23276         * modules/unistr/u32-strncat-tests: Likewise.
23277         * modules/unistr/u32-strncmp-tests: Likewise.
23278         * modules/unistr/u32-strncpy-tests: Likewise.
23279         * modules/unistr/u32-strnlen-tests: Likewise.
23280         * modules/unistr/u32-to-u16-tests: Likewise.
23281         * modules/unistr/u32-to-u8-tests: Likewise.
23282         * modules/unistr/u32-uctomb-tests: Likewise.
23283         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23284         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23285         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23286         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23287         * modules/uniwidth/u8-strwidth-tests: Likewise.
23288         * modules/uniwidth/u8-width-tests: Likewise.
23289         * modules/uniwidth/u16-strwidth-tests: Likewise.
23290         * modules/uniwidth/u16-width-tests: Likewise.
23291         * modules/uniwidth/u32-strwidth-tests: Likewise.
23292         * modules/uniwidth/u32-width-tests: Likewise.
23293         * modules/uniwidth/width-tests: Likewise.
23294
23295 2010-05-18  Richard Jones  <rjones@redhat.com>
23296
23297         doc: users.txt: list hivex
23298         * users.txt: Add hivex.
23299
23300 2010-05-18  Richard Jones  <rjones@redhat.com>
23301
23302         doc: users.txt: list febootstrap
23303         * users.txt: Add febootstrap.
23304
23305 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23306
23307         bootstrap: fix an error when gnulib is not used as a git submodule
23308         * build-aux/bootstrap (gnulib_path): If its length is zero then
23309         assign "gnulib" to it.
23310         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23311
23312 2010-05-16  Bruno Haible  <bruno@clisp.org>
23313
23314         Avoid autoconf warnings about AM_ICONV.
23315         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23316         2.64.
23317
23318 2010-05-16  Bruno Haible  <bruno@clisp.org>
23319
23320         absolute-header: Make the macro usable in more situations.
23321         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23322         from gl_ABSOLUTE_HEADER.
23323         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23324
23325 2010-05-16  James Youngman  <jay@gnu.org>
23326
23327         doc: update users.txt
23328         * users.txt: Add CSSC.
23329
23330 2010-05-16  Jim Meyering  <meyering@redhat.com>
23331
23332         init.sh: fix an error in the previous change; add more comments
23333         * tests/init.sh: Compare exit code in loop against 9, not 2.
23334         Patch by Bruno Haible.
23335         Make the two tests more similar by adding an empty "then" clause.
23336         Add comments.
23337
23338         init.sh: avoid unnecessary shell re-exec
23339         * tests/init.sh: Improve the re-exec-required check to first test the
23340         current shell.  If it passes the test, do not search for a shell that
23341         does pass, and do not re-exec.  This test is particularly contorted to
23342         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23343         of $(...) evokes a syntax error and causes immediate shell exit with
23344         status 2.  Bruno Haible reported that the re-exec made it impossible
23345         to single-step through any init.sh-using script.
23346
23347 2010-05-16  Bruno Haible  <bruno@clisp.org>
23348
23349         Fix collision between gnulib's and libintl's printf replacements.
23350         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23351         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23352         (printf): When using GNU C, map the __printf__ function to rpl_printf
23353         via __asm__. When not using GNU C, define rpl_printf instead of
23354         __printf__.
23355         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23356         commit.
23357         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23358         commit.
23359         * m4/asm-underscore.m4: New file.
23360         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23361         * modules/stdio (Files): Add m4/asm-underscore.m4.
23362         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23363         Reported by Ben Pfaff.
23364
23365 2010-05-16  Bruno Haible  <bruno@clisp.org>
23366
23367         verify: Avoid skipping the test on openSUSE 11.0.
23368         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23369
23370 2010-05-13  Bruno Haible  <bruno@clisp.org>
23371
23372         Avoid useless warnings from G++.
23373         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23374         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23375         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23376
23377 2010-05-11  Jim Meyering  <meyering@redhat.com>
23378
23379         maint.mk: tweak preceding change
23380         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23381         regexps tighter by anchoring at EOL, and make the new group "shy"
23382         for slightly decreased overhead.
23383
23384 2010-05-11  Eric Blake  <eblake@redhat.com>
23385
23386         maint.mk: gnulib doesn't guarantee NSIG
23387         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23388
23389 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23390
23391         test-pwrite.c: Remove unused variable declaration.
23392         * tests/test-pwrite.c (main): Remove read_buf declaration.
23393
23394         Remove useless test-pwrite.sh file.
23395         * tests/test-pwrite.sh: Delete file.
23396         * modules/pwrite-tests: Remove references.
23397         Reported by Bruno Haible.
23398
23399 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23400
23401         init.sh: fix a typo
23402         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23403
23404 2010-05-10  Jim Meyering  <meyering@redhat.com>
23405
23406         maint.mk: avoid using a temporary file in the always-defined-macros check
23407         * top/maint.mk (.re-defmac): Remove rule.
23408         (gl_trap_): Remove definition.
23409         (sc_prohibit_always-defined_macros): Rewrite not to create and
23410         depend on a temporary file.  Instead, depend on GNU grep's ability
23411         to read a list of regular expressions from stdin when given "-f -".
23412
23413 2010-05-09  Bruno Haible  <bruno@clisp.org>
23414
23415         Update to GNU gettext 0.18, part 1.
23416         * m4/gettext.m4: Update to GNU gettext 0.18.
23417         * m4/intl.m4: Likewise.
23418         * m4/po.m4: Likewise.
23419         * modules/gettext (Files): Add m4/fcntl-o.m4.
23420         (configure.ac): Require gettext infrastructure from version 0.18.
23421
23422 2010-05-09  Jim Meyering  <meyering@redhat.com>
23423
23424         init.sh: enable MALLOC_PERTURB_
23425         * tests/init.sh: Enable glibc's malloc-perturbing option.
23426
23427         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23428         With my recent change in init.sh from the two-line form:
23429             -#   : ${srcdir=.}
23430             -#   . "$srcdir/init.sh"; path_prepend_ .
23431             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23432         I noticed that using the one-line form would cause this test
23433         to fail with a false-positive, or to stop working altogether,
23434         depending on whether help-version changed or all the tests did.
23435         * top/maint.mk (_hv_regex): Remove this definition.
23436         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23437         (_hv_regex_strong): Use a stronger regex to check for conformance.
23438         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23439         Give a separate diagnostic for lack of conforming use.
23440
23441         maint.mk: prohibit definition of symbols defined by gnulib
23442         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23443         definition of symbols defined by gnulib.
23444
23445 2010-05-09  Bruno Haible  <bruno@clisp.org>
23446
23447         acl: Avoid test failure on Cygwin-hosted mingw.
23448         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23449
23450 2010-05-09  Bruno Haible  <bruno@clisp.org>
23451
23452         error: Use system's fcntl function.
23453         * lib/error.c (fcntl): Undefine.
23454
23455 2010-05-09  Jim Meyering  <meyering@redhat.com>
23456
23457         verify: adjust formatting to be more consistent
23458         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23459         argument-list '('s, and after one comma.
23460
23461 2010-05-09  Bruno Haible  <bruno@clisp.org>
23462
23463         error: More reliable output on mingw.
23464         * lib/error.c: Include <windows.h>.
23465         (is_open): New function.
23466         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23467         defined.
23468
23469 2010-05-09  Bruno Haible  <bruno@clisp.org>
23470
23471         vasnprintf: Fix syntax errors in libintl build on mingw.
23472         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23473         pad_ourselves and prec_ourselves after use.
23474
23475 2010-05-08  Bruno Haible  <bruno@clisp.org>
23476
23477         * lib/config.charset: Update comments for Cygwin 1.7.
23478         * lib/localcharset.c: Likewise.
23479
23480 2010-05-07  Jim Meyering  <meyering@redhat.com>
23481
23482         init.sh: improve comments
23483         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23484         . "${srcdir=.}/init.sh"; path_prepend_ .
23485         Add a note about path_prepend_ and the alternative of using
23486         TESTS_ENVIRONMENT.
23487
23488 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23489
23490         exclude: Unescape hashed patterns in wildcard mode.
23491         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23492         to the hash list.
23493         * tests/test-exclude8.sh: New test case.
23494         * modules/exclude-tests: Add new test.
23495
23496 2010-05-05  Eric Blake  <eblake@redhat.com>
23497
23498         verify: automate tests
23499         * modules/verify-tests: New module.
23500         * tests/test-verify.sh: New file.
23501         * tests/test-verify.c: Guard each negative test with a unique id.
23502         Also avoid warning about unused left hand of comma expressions.
23503
23504 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23505
23506         Further improvements to verify.h, suggested by Eric Blake.
23507         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23508         the GL_* versions, to avoid collision with OpenGL.
23509         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23510         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23511         than testing merely whether it's defined.
23512
23513         Modify verify.h to pacify gcc -Wredundant_decls.
23514         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23515         These use the prefix "GL_" since they're likely to be useful elsewhere.
23516         We may need to break them out into a different .h file.
23517         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23518         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23519         of verify_function__.
23520
23521 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23522
23523         Tests for module pwrite.
23524         * modules/pwrite-tests: New file.
23525         * tests/test-pwrite.sh: New file.
23526         * tests/test-pwrite.c: New file.
23527
23528         New module pwrite.
23529         * lib/unistd.in.h (pwrite): New declaration.
23530         * lib/pwrite.c: New file, from glibc with modifications.
23531         * m4/pwrite.m4: New file.
23532         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23533         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23534         REPLACE_PWRITE.
23535         * modules/pwrite: New file.
23536         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23537         REPLACE_PWRITE.
23538         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23539         * doc/posix-functions/pwrite.texi: Mention the new module.
23540
23541 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23542
23543         pread: Update documentation.
23544         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23545
23546 2010-05-04  Eric Blake  <eblake@redhat.com>
23547
23548         docs: update cygwin progress
23549         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23550         this bug.
23551         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23552         Added in cygwin 1.7.2.
23553         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23554         Likewise.
23555         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23556         Likewise.
23557         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23558         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23559         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23560         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23561         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23562         Mention nproc module.
23563         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23564         bug in cygwin 1.7.5 addition.
23565         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23566         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23567         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23568         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23569         1.7.5.
23570         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23571         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23572         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23573         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23574         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23575         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23576         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23577         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23578         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23579         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23580         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23581         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23582         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23583         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23584         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23585         Likewise.
23586         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23587         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23588         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23589         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23590         Likewise.
23591         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23592         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23593         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23594         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23595         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23596         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23597         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23598         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23599         Likewise.
23600         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23601         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23602         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23603         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23604         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23605         Likewise.
23606         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23607         Likewise.
23608         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23609         Likewise.
23610         * doc/glibc-functions/xdrrec_endofrecord.texi
23611         (xdrrec_endofrecord): Likewise.
23612         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23613         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23614         Likewise.
23615         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23616         Likewise.
23617
23618 2010-05-04  Jim Meyering  <meyering@redhat.com>
23619
23620         gendocs.sh: make its "-s FILE" option more useful
23621         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23622         $PACKAGE to reflect the probably-different basename of "FILE".
23623
23624 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23625
23626         bootstrap: don't ignore download_po_files failure
23627         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23628         failure.
23629
23630 2010-05-03  Jim Meyering  <meyering@redhat.com>
23631
23632         maint.mk: allow to pass options to gendocs.sh
23633         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23634         (gendocs_options_): New overridable variable.
23635
23636         gnu-web-doc-update: don't ignore configure or build failure
23637         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23638
23639         announce-gen: backslash-escape '@'s in --help output
23640         * build-aux/announce-gen: Fix syntax errors.
23641
23642         maint.mk, announce-gen: allow project-specific announcement mail headers
23643         * top/maint.mk (translation_project_): Define default.
23644         (announcement_Cc_, announcement_mail_headers_): Likewise.
23645         (announcement): Invoke announce-gen with new --mail-headers option.
23646         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23647
23648         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23649         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23650         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23651         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23652         line in the "err2" output file when running "make check" in verbose
23653         mode (i.e., with set -x enabled).
23654
23655 2010-05-03  Bruno Haible  <bruno@clisp.org>
23656
23657         wctob: Fix for weird platforms.
23658         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23659         argument value.
23660
23661 2010-05-03  Jim Meyering  <meyering@redhat.com>
23662
23663         maint.mk: prohibit unwarranted use of <strings.h>
23664         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23665         strings.h in a file that does not also use strcasecmp, strncasecmp,
23666         ffs or ffsll.
23667
23668         maint.mk: remove obsolete comments
23669         * top/maint.mk: Remove stale, commented-out rules.
23670
23671 2010-05-02  Bruno Haible  <bruno@clisp.org>
23672
23673         wcwidth: Declare also when it's aliased.
23674         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23675         macro.
23676
23677 2010-05-02  Bruno Haible  <bruno@clisp.org>
23678
23679         Fix regression from 2010-04-25.
23680         * gnulib-tool (func_modules_transitive_closure): Check the status of
23681         all modules, not only of the tests that are of the form foo-tests where
23682         foo is a module.
23683
23684 2010-05-02  Bruno Haible  <bruno@clisp.org>
23685
23686         wctob: Work around nasty Cygwin 1.7.2 bug.
23687         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23688         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23689
23690 2010-05-01  Bruno Haible  <bruno@clisp.org>
23691
23692         fpurge: Sharper test.
23693         * tests/test-fpurge.c (main): Add one more ftell check.
23694         * modules/fpurge-tests (Depends-on): Add ftell.
23695         Suggested by Eric Blake.
23696
23697 2010-05-01  Bruno Haible  <bruno@clisp.org>
23698
23699         ftello: Another test.
23700         * tests/test-ftello3.c: New file.
23701         * modules/ftello-tests (Files): Add it.
23702         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23703         MOSTLYCLEANFILES.
23704
23705         ftell: Another test.
23706         * tests/test-ftell3.c: New file.
23707         * modules/ftell-tests (Files): Add it.
23708         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23709         MOSTLYCLEANFILES.
23710
23711 2010-05-01  Bruno Haible  <bruno@clisp.org>
23712
23713         ftell, ftello: Work around Solaris bug.
23714         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23715         * lib/ftello.c: Include stdio-impl.h.
23716         (ftello): On Solaris, when _IOWRT is set, compute the result without
23717         looking at _IOREAD.
23718         * modules/ftello (Files): Add lib/stdio-impl.h.
23719         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23720         * doc/posix-functions/ftello.texi: Likewise.
23721         Reported by Eric Blake.
23722
23723 2010-05-01  Bruno Haible  <bruno@clisp.org>
23724
23725         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23726         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23727         the _IOWRT flag is also set.
23728
23729 2010-05-01  Bruno Haible  <bruno@clisp.org>
23730
23731         Fix doc about a HP-UX stdio bug.
23732         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23733         * doc/posix-functions/ftello.texi: Likewise.
23734
23735 2010-05-01  Bruno Haible  <bruno@clisp.org>
23736
23737         lseek test: Fix failure on Solaris.
23738         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23739         output.
23740
23741 2010-04-30  Jim Meyering  <meyering@redhat.com>
23742
23743         bootstrap: don't ignore failure to generate po*/Makevars
23744         * build-aux/bootstrap (with_gettext): Don't ignore failure
23745         to create po/Makevars or runtime-po/Makevars.
23746
23747 2010-04-29  Eric Blake  <eblake@redhat.com>
23748
23749         headers: relax license to LGPLv2+
23750         * modules/fcntl-h (License): Relax license.
23751         * modules/getopt-posix (License): Likewise.
23752         * modules/locale (License): Likewise.
23753         * modules/math (License): Likewise.
23754         * modules/pty (License): Likewise.
23755         * modules/sched (License): Likewise.
23756         * modules/search (License): Likewise.
23757         * modules/spawn (License): Likewise.
23758         * modules/stdarg (License): Likewise.
23759         * modules/sysexits (License): Likewise.
23760
23761 2010-04-29  Jim Meyering  <meyering@redhat.com>
23762
23763         inttypes: relax license to LGPLv2+
23764         * modules/inttypes (License): Relax license.
23765
23766 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23767
23768         * top/maint.mk (indent): Run twice to produce idempotent results.
23769
23770 2010-04-28  Bruno Haible  <bruno@clisp.org>
23771
23772         getdate: Generate getdate.c in the source directory.
23773         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23774         MOSTLYCLEANFILES.
23775         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23776
23777 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23778
23779         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23780         is not declared as a const *; avoid warnings in that case.
23781
23782 2010-04-28  Eric Blake  <eblake@redhat.com>
23783
23784         canonicalize-lgpl: avoid compiler warning
23785         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23786         declaration' / 'extraneous semicolon' warning with some compilers.
23787         Reported by Andreas Gruenbacher.
23788
23789 2010-04-28  Jim Meyering  <meyering@redhat.com>
23790
23791         init.sh: ensure a more reliable exit status when exiting via trap
23792         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23793         Inspired by patches from Dmitry V. Levin.
23794         Also trap on signal 3 (SIGQUIT).
23795
23796 2010-04-27  Bruno Haible  <bruno@clisp.org>
23797
23798         Update doc about utimes().
23799         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23800         'utimens' module.
23801         Reported by Andreas Gruenbacher <agruen@suse.de>.
23802
23803 2010-04-27  Eric Blake  <eblake@redhat.com>
23804
23805         full-read, full-write: relax license
23806         * modules/full-read (License): Drop to LGPLv2+.
23807         * modules/full-write (License): Likewise.
23808         * modules/safe-read (License): Likewise.
23809         * modules/safe-write (License): Likewise.
23810
23811         pthread: mention library for linking
23812         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23813
23814 2010-04-27  Jim Meyering  <meyering@redhat.com>
23815
23816         maint.mk: fix a bug introduced in last change
23817         * top/maint.mk (gl_assured_headers_): Now that all names are on
23818         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23819         is not anchored to end of word, it should be adequate.
23820
23821         maint.mk: avoid side-effect in latest syntax-check
23822         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23823         to run commands via $(shell...), and hence to incur cost only when
23824         the new rule is actually run.
23825
23826         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23827         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23828         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23829         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23830         (gl_assured_headers_, az_, AZ_): Define.
23831         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23832
23833 2010-04-26  Jim Meyering  <jim@meyering.net>
23834             Bruno Haible  <bruno@clisp.org>
23835
23836         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23838         Prompted by an exchange with Gilles Espinasse.
23839
23840 2010-04-26  Jim Meyering  <meyering@redhat.com>
23841
23842         git-version-gen: aesthetic tweak
23843         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23844         so that the command remains on a single line.
23845
23846 2010-04-26  Eric Blake  <eblake@redhat.com>
23847
23848         git-version-gen: allow use on EBCDIC hosts
23849         * build-aux/git-version-gen (dirty): Use literal rather than tying
23850         ourselves to ascii.
23851         Reported by Steve Goetze.
23852
23853 2010-04-25  Bruno Haible  <bruno@clisp.org>
23854
23855         netdb: Add support for GNULIB_POSIXCHECK.
23856         * lib/netdb.in.h: Include warn-on-use.h.
23857         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23858         functions are used when GNULIB_POSIXCHECK is defined and the
23859         getaddrinfo module is not in use.
23860         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23861         freeaddrinfo, gai_strerror, getnameinfo are declared.
23862         * modules/netdb (Depends-on): Add warn-on-use.
23863         (Makefile.am): Include warn-on-use.h in netdb.h.
23864
23865 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23866
23867         build: avoid "make check" failure without .git/ directory
23868         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23869         there is no .git/ directory.
23870
23871 2010-04-25  Bruno Haible  <bruno@clisp.org>
23872
23873         ptsname: Fix misuse of ttyname_r.
23874         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23875         of errno.
23876
23877 2010-04-25  Bruno Haible  <bruno@clisp.org>
23878
23879         ttyname_r: Make it work on Solaris 10.
23880         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23881         if the system function has the POSIX declaration. Test whether the
23882         function fails if the buffer is less than 128 bytes large.
23883         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23884         system's ttyname_r function. Provide a reasonably large buffer.
23885         * modules/ttyname_r (Depends-on): Add extensions.
23886         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23887
23888 2010-04-25  Bruno Haible  <bruno@clisp.org>
23889
23890         Use the 'extensions' module for some more functions on Solaris.
23891         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23892         module.
23893         * doc/posix-functions/ctime_r.texi: Likewise.
23894         * doc/posix-functions/getgrgid_r.texi: Likewise.
23895         * doc/posix-functions/getgrnam_r.texi: Likewise.
23896         * doc/posix-functions/getpwnam_r.texi: Likewise.
23897         * doc/posix-functions/getpwuid_r.texi: Likewise.
23898         * doc/posix-functions/readdir_r.texi: Likewise.
23899         * doc/posix-functions/sigwait.texi: Likewise.
23900         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23901         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23902
23903 2010-04-25  Bruno Haible  <bruno@clisp.org>
23904
23905         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23906         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23907         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23908         * lib/ttyname_r.c: Include <limits.h>.
23909         (ttyname_r): Define using the system's ttyname_r function, if it exists
23910         and not on Solaris.
23911         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23912         set.
23913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23914         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23915         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23916         Reported by Simon Josefsson.
23917
23918 2010-04-25  Bruno Haible  <bruno@clisp.org>
23919
23920         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23921         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23922         * doc/posix-functions/ctime_r.texi: Likewise.
23923         * doc/posix-functions/getgrgid_r.texi: Likewise.
23924         * doc/posix-functions/getgrnam_r.texi: Likewise.
23925         * doc/posix-functions/getlogin_r.texi: Likewise.
23926         * doc/posix-functions/getpwnam_r.texi: Likewise.
23927         * doc/posix-functions/getpwuid_r.texi: Likewise.
23928         * doc/posix-functions/readdir_r.texi: Likewise.
23929         * doc/posix-functions/sigwait.texi: Likewise.
23930         * doc/posix-functions/ttyname_r.texi: Likewise.
23931         Reported by Simon Josefsson.
23932
23933 2010-04-25  Bruno Haible  <bruno@clisp.org>
23934
23935         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23936         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23937         also to --create-testdir.
23938         (func_acceptable): Don't consider the status of *-tests modules here.
23939         (func_modules_transitive_closure): Consider it here, before including a
23940         test module.
23941         (func_import, func_create_testdir): Set inc_all_direct_tests,
23942         inc_all_indirect_tests.
23943         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23944         --create-testdir and --create-megatestdir.
23945
23946 2010-04-25  Bruno Haible  <bruno@clisp.org>
23947
23948         gnulib-tool: Add --without-*-tests options.
23949         * gnulib-tool (func_usage): Document the --without-*-tests options.
23950         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23951         excl_unportable_tests): New variables.
23952         Fail if they are specified with --import or --update.
23953         (func_acceptable): Respect the excl_*_tests variables.
23954         (func_import): Set the excl_*_tests variables to empty.
23955
23956 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23957             Bruno Haible  <bruno@clisp.org>
23958
23959         Work around a MacOS X 10.4 bug with openpty.
23960         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23961         * tests/test-openpty.c (main): Close the master side explicitly.
23962
23963 2010-04-25  Bruno Haible  <bruno@clisp.org>
23964
23965         strnlen: Fix a C++ test error on MacOS X and Solaris.
23966         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23967         the function is not declared.
23968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23969         Simon Josefsson.
23970
23971 2010-04-24  Bruno Haible  <bruno@clisp.org>
23972
23973         Avoid a gcc warning.
23974         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23975         of correct type for %08lx directive.
23976         Reported by Eric Blake.
23977
23978 2010-04-24  Bruno Haible  <bruno@clisp.org>
23979
23980         vasnprintf: Correct errno value in case of out-of-memory.
23981         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23982         or sprintf. Use the errno value from SNPRINTF or sprintf.
23983         Reported by Ian Beckwith <ianb@erislabs.net>.
23984
23985 2010-04-24  Bruno Haible  <bruno@clisp.org>
23986
23987         ansi-c++-opt: Find correct compiler when cross-compiling.
23988         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23989         AC_CHECK_PROGS.
23990         Reported by Simon Josefsson.
23991
23992 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23993
23994         vc-list-files: Add support for subversion
23995         * build-aux/vc-list-files: Use "svn list" to generate the list of
23996         files controlled by subversion.
23997
23998 2010-04-23  Jim Meyering  <meyering@redhat.com>
23999
24000         vc-list-files tests: convert to use init.sh
24001         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24002         path_prepend_.
24003         Use Exit, not exit.
24004         Use skip_ rather than open coding it.
24005         Remove trap set-up and compare definitions.
24006         * tests/test-vc-list-files-git.sh: Likewise.
24007         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24008
24009 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24010
24011         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24012         backup files.
24013
24014 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24015
24016         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24017
24018 2010-04-20  Eric Blake  <eblake@redhat.com>
24019
24020         tests: be robust to ignored SIGPIPE
24021         * tests/test-select-in.sh: Consume all output.
24022         * tests/test-lseek.sh: Check correct exit status, while avoiding
24023         EPIPE.
24024
24025 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24026             Bruno Haible  <bruno@clisp.org>
24027
24028         visibility: Don't use -fvisibility if it leads to a warning.
24029         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24030         yes, don't pretend that visibility works if it leads to a warning.
24031         Reported by Mike Gran <spk121@yahoo.com>.
24032
24033 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24034
24035         * build-aux/bootstrap: Use "git -h" for testing for supported options
24036         instead of "git --help".  The short-form option only shows a summary,
24037         and doesn't layout the full man page.  Grep for the full option name
24038         in the summary, too.
24039
24040 2010-04-19  Bruno Haible  <bruno@clisp.org>
24041
24042         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24043         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24044         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24045         mention of RELOCATABLE_STRIP.
24046         Reported by Sylvain Beucler <beuc@beuc.net>.
24047
24048 2010-04-19  Bruno Haible  <bruno@clisp.org>
24049
24050         * lib/diffseq.h: Fix typo in comment.
24051         Reported by Eric Blake.
24052
24053 2010-04-19  Bruno Haible  <bruno@clisp.org>
24054
24055         ioctl: Move autoconf macro to a .m4 file.
24056         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24057         * modules/ioctl (Files): Add it.
24058         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24059         Reported by Ian Beckwith <ianb@erislabs.net>.
24060
24061 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24062             Bruno Haible  <bruno@clisp.org>
24063
24064         diffseq: Accommodate use-case with abstract arrays.
24065         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24066         is not defined.
24067         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24068         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24069
24070 2010-04-18  Bruno Haible  <bruno@clisp.org>
24071
24072         * doc/posix-headers/stdbool.texi: More precise wording.
24073
24074 2010-04-17  Jim Meyering  <meyering@redhat.com>
24075
24076         maint.mk: use gnu-style indentation in an embedded perl script
24077         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24078         Rename variable: s/two/last_two_bytes/
24079
24080 2010-04-16  Eric Blake  <eblake@redhat.com>
24081
24082         test-stdbool: skip test that fails with Solaris CC
24083         * tests/test-stdbool.c (f): Skip test that causes compilation
24084         error under buggy C++ compiler.
24085         * lib/stdbool.in.h: Document the limitation.
24086         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24087
24088         setenv: allow compilation with C++
24089         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24090         register keyword.
24091
24092         stdint: allow test to pass with C++
24093         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24094
24095         getopt: allow compilation with C++
24096         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24097         struct.
24098         * lib/getopt.c (_getopt_internal_r): Use correct type.
24099         Reported by Dagobert Michelson, via Joel E. Denny.
24100
24101 2010-04-16  Bruno Haible  <bruno@clisp.org>
24102
24103         Override netdb.h always.
24104         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24106         Reported by Ludovic Courtès <ludo@gnu.org>.
24107
24108 2010-04-15  Bruno Haible  <bruno@clisp.org>
24109
24110         openpty: Fix mistake from 2010-03-21.
24111         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24112         Reported by Simon Josefsson.
24113
24114 2010-04-15  Eric Blake  <eblake@redhat.com>
24115
24116         test-forkpty: fix expected signature
24117         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24118         Reported by Simon Josefsson.
24119
24120 2010-04-15  Jim Meyering  <meyering@redhat.com>
24121
24122         maint.mk: texinfo_suffix_re_: correct the default regexp
24123         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24124
24125         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24126         make it configurable via texinfo_suffix_re_.
24127
24128 2010-04-14  Eric Blake  <eblake@redhat.com>
24129
24130         strtok_r: relax license to LGPLv2+
24131         * modules/strtok_r (License): Relax license.
24132         Reported by Matthias Bolte.
24133
24134 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24135
24136         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24137         version 1.4.4 by default instead of requiring the libgcrypt
24138         version used during build.  This makes it possible to use the
24139         application with older but still binary compatible libgcrypt
24140         versions.
24141
24142 2010-04-13  Eric Blake  <eblake@redhat.com>
24143
24144         getopt-gnu: match recent glibc fixes and posix ruling
24145         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24146         '+' handling, when requesting extensions.
24147         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24148         'W;' handling.
24149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24150         * doc/posix-functions/getopt.texi (getopt): Document this.
24151         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24152         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24153         Likewise.
24154
24155         getopt: merge bug fixes from glibc
24156         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24157         diagnostics.  Honor '+:' correctly.  Reject ';'.
24158
24159         getopt-posix: detect MacOS bug
24160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24161         optind when missing a required argument.
24162         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24163         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24164         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24165         Likewise.
24166
24167         getopt-posix: avoid spurious failure on Solaris
24168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24169         an indicator that setting optind=1 is sufficient for reset.
24170
24171         getopt-posix: avoid spurious failure on FreeBSD
24172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24173         in POSIX mode, since the m4 test uses it.
24174
24175         gnulib-tool: silence warning on BSD sh
24176         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24177
24178 2010-04-13  Jim Meyering  <meyering@redhat.com>
24179
24180         doc: users.txt: GNU patch now uses gnulib
24181         * users.txt: Add patch.
24182
24183 2010-04-12  Jim Meyering  <meyering@redhat.com>
24184
24185         maint.mk: generate more concise timing data for syntax-check rules
24186         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24187         " done" from each line that reports a syntax-check test duration.
24188
24189 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24190
24191         git-version-gen: use "git update-index..." rather than "git status"
24192         * build-aux/git-version-gen: Use git update-index --refresh, not
24193         "git status".  With some versions of git, "git status" would fail
24194         to update the index and result in an unwarranted "-dirty" suffix.
24195
24196 2010-04-11  Jim Meyering  <meyering@redhat.com>
24197
24198         openat: correct formatting (no semantic change)
24199         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24200         Suggested by Bruno Haible.
24201
24202 2010-04-11  Bruno Haible  <bruno@clisp.org>
24203
24204         Stricter declaration checking in testdirs.
24205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24206         If for_tests is true, augment AM_CPPFLAGS to define
24207         GNULIB_STRICT_CHECKING.
24208         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24209         GNULIB_STRICT_CHECKING is defined, verify that the function is
24210         declared.
24211
24212 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24213             Bruno Haible  <bruno@clisp.org>
24214
24215         libunistring: Improve configure output.
24216         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24217         Don't say "consider installing GNU libunistring" when checking again
24218         with libiconv.
24219
24220 2010-04-11  Bruno Haible  <bruno@clisp.org>
24221
24222         libunistring: Correct value of $LTLIBUNISTRING.
24223         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24224         correct the value of $LTLIBUNISTRING.
24225
24226 2010-04-11  Bruno Haible  <bruno@clisp.org>
24227
24228         havelib: Add static libraries to LIBS in the right order.
24229         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24230         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24231
24232 2010-04-11  Bruno Haible  <bruno@clisp.org>
24233
24234         libunistring: Detect libunistring also when it depends on libiconv.
24235         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24236         the second AC_LIB_HAVE_LINKFLAGS invocation.
24237
24238 2010-04-11  James Youngman  <jay@gnu.org>
24239
24240         close-stream: declare local scalars to be "const"
24241         * lib/close-stream.c (close_stream): Make boolean variables const
24242         to document the fact that we set but do not change them.
24243
24244 2010-04-11  Bruno Haible  <bruno@clisp.org>
24245
24246         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24247
24248 2010-04-11  Jim Meyering  <meyering@redhat.com>
24249
24250         maint.mk: don't include dist-check.mk
24251         * top/maint.mk: Remove bogus include directive.
24252
24253         maint.mk: improve empty-line-at-EOF check
24254         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24255         solution, rather than tail+Perl-based one.  The latter would read
24256         a few kilobytes from the end of each file, and did not handle empty
24257         files properly.
24258
24259         maint.mk: print the elapsed time for each syntax-check rule
24260         * top/maint.mk (sc_m_rules_): Save start time in a file.
24261         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24262         (local-check): Interpose the .z rules
24263
24264 2010-04-11  Jim Meyering  <meyering@redhat.com>
24265
24266         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24267         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24268         empty file with one that ends in an empty line.
24269
24270 2010-04-10  Bruno Haible  <bruno@clisp.org>
24271
24272         mkdir: Make it work on mingw64.
24273         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24274         * lib/mkdir.c: Update comment.
24275         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24276
24277 2010-04-10  Bruno Haible  <bruno@clisp.org>
24278
24279         Don't override improved macro from newer autoconf.
24280         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24281         autoconf >= 2.62.
24282         Reported by Joel E. Denny <jdenny@clemson.edu>.
24283
24284 2010-04-10  Jim Meyering  <meyering@redhat.com>
24285
24286         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24287         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24288
24289         maint.mk: correct a diagnostic
24290         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24291         in diagnostic; now use $prohibit.
24292
24293 2010-04-10  Bruno Haible  <address@hidden>
24294
24295         fchownat: Fix a C++ test error on Solaris 8.
24296         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24297         the function does not exist.
24298
24299 2010-04-10  Bruno Haible  <bruno@clisp.org>
24300
24301         vasnprintf: Add more tests.
24302         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24303         (test_function): Test converting an invalid wide string.
24304
24305         vasnprintf: Correct handling of unconvertible wide string arguments.
24306         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24307         VASNPRINTF.
24308         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24309         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24310         smaller than the expected maximum need for the directive. Set errno to
24311         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24312         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24314         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24315         * modules/vasnprintf (Files): Add m4/printf.m4.
24316         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24317
24318 2010-04-10  Bruno Haible  <bruno@clisp.org>
24319
24320         vasnprintf: Fix crash in %ls directive.
24321         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24322         string is passed as argument to %ls, with no precision and no width.
24323         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24324
24325 2010-04-10  Bruno Haible  <bruno@clisp.org>
24326
24327         vasnprintf: Fix multiple test failures on mingw.
24328         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24329         _snprintf, or snwprintf, not _snwprintf.
24330
24331 2010-04-10  Bruno Haible  <bruno@clisp.org>
24332
24333         write: Fix a C++ test error on mingw.
24334         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24335
24336 2010-04-10  Bruno Haible  <bruno@clisp.org>
24337
24338         vasnprintf test: Reduce code duplication.
24339         * tests/test-vasnprintf.c (test_function): New function, extracted from
24340         test_vasnprintf.
24341         (test_vasnprintf, test_asnprintf): Invoke it.
24342
24343 2010-04-10  Bruno Haible  <bruno@clisp.org>
24344
24345         strnlen: Fix warning in C++ mode on MacOS X.
24346         * lib/string.in.h (strnlen): Use the modern idiom.
24347         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24348         defining strnlen as a macro already in <config.h>.
24349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24350         REPLACE_STRNLEN.
24351         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24352         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24353
24354 2010-04-08  James Youngman  <jay@gnu.org>
24355
24356         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24357         the example.
24358
24359 2010-04-09  Jim Meyering  <meyering@redhat.com>
24360
24361         maint.mk: print better diagnostic when there is no $(_hv_file)
24362         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24363         announce that when $(_hv_file) (aka help-version) does not exist.
24364
24365         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24366         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24367         not try to interpret its random input bytes.  Jarno Rajahalme reported
24368         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24369         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24370         (mktempd_): Likewise, just in case.
24371
24372         ftruncate: add two years to projected module removal date: 2012
24373         * m4/ftruncate.m4: Adjust comments.
24374
24375         ftruncate: mark module as obsolete; even MinGW provides it, now
24376         * modules/ftruncate (Status): Obsolete.
24377         (Notice): Say that.
24378         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24379         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24380
24381 2010-04-08  Bruno Haible  <bruno@clisp.org>
24382
24383         Fix side effects from tests-related modules.
24384         * modules/dprintf-posix (Comment): New section.
24385         * modules/fprintf-posix (Comment): Likewise.
24386         * modules/obstack-printf-posix (Comment): Likewise.
24387         * modules/printf-posix (Comment): Likewise.
24388         * modules/snprintf-posix (Comment): Likewise.
24389         * modules/sprintf-posix (Comment): Likewise.
24390         * modules/vasnprintf-posix (Comment): Likewise.
24391         * modules/vasprintf-posix (Comment): Likewise.
24392         * modules/vdprintf-posix (Comment): Likewise.
24393         * modules/vfprintf-posix (Comment): Likewise.
24394         * modules/vprintf-posix (Comment): Likewise.
24395         * modules/vsnprintf-posix (Comment): Likewise.
24396         * modules/vsprintf-posix (Comment): Likewise.
24397         * modules/xprintf-posix (Comment): Likewise.
24398         * modules/xvasprintf-posix (Comment): Likewise.
24399         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24400         * modules/floorf-tests (Depends-on): Likewise.
24401         * modules/round-tests (Depends-on): Likewise.
24402         * modules/roundf-tests (Depends-on): Likewise.
24403         * modules/trunc-tests (Depends-on): Likewise.
24404         * modules/truncf-tests (Depends-on): Likewise.
24405         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24406         'fprintf-posix' module is not present.
24407         * tests/test-floorf2.c (check): Likewise.
24408         * tests/test-trunc2.c (check): Likewise.
24409         * tests/test-truncf2.c (check): Likewise.
24410         * tests/test-round2.c (equal): Likewise.
24411         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24412
24413 2010-04-07  Karl Berry  <karl@gnu.org>
24414
24415         * config/srclist.txt,
24416         * config/srclistvars.sh,
24417         * config/srclist-update: doc fixes.
24418
24419 2010-04-07  Jim Meyering  <meyering@redhat.com>
24420
24421         maint.mk: add a PATH crosschecking syntax-check rule
24422         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24423         Useful if you use a test like the one in help-version (coreutils,
24424         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24425         printed by prog --version.
24426
24427 2010-04-06  Bruno Haible  <bruno@clisp.org>
24428
24429         Fix link error on mingw.
24430         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24431         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24432
24433 2010-04-06  Bruno Haible  <bruno@clisp.org>
24434
24435         Assume rmdir exists.
24436         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24437
24438 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24439
24440         doc: update users.txt
24441         * users.txt: Add gcal.
24442
24443 2010-04-06  Jim Meyering  <meyering@redhat.com>
24444
24445         init.sh: simply unset TMPDIR rather than risking env -i
24446         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24447         although it probably works fine on all Unix-based systems, some
24448         systems (Cygwin?) cannot tolerate a totally cleared environment.
24449         Suggestion from Eric Blake.
24450
24451 2010-04-06  Jim Meyering  <meyering@redhat.com>
24452
24453         init.sh: portability fix: use env's POSIX-specified -i option not -u
24454         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24455         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24456
24457 2010-04-05  Bruno Haible  <bruno@clisp.org>
24458
24459         btowc: Work around Cygwin 1.7.2 bug.
24460         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24461         does not map NUL to 0.
24462         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24463
24464 2010-04-05  Bruno Haible  <bruno@clisp.org>
24465
24466         Make the multithread modules work on Cygwin 1.7.2.
24467         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24468         imported symbols can be declared weak, so that it returns "no" on
24469         Cygwin 1.7.2.
24470
24471 2010-04-05  Bruno Haible  <bruno@clisp.org>
24472
24473         Use the module 'strncat'.
24474         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24475
24476         Tests for module 'strncat'.
24477         * modules/strncat-tests: New file.
24478         * tests/test-strncat.c: New file.
24479
24480         New module 'strncat'.
24481         * lib/string.in.h (strncat): New declaration.
24482         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24483         * m4/strncat.m4: New file, based on m4/memchr.m4.
24484         * modules/strncat: New file.
24485         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24486         is declared.
24487         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24488         REPLACE_STRNCAT.
24489         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24490         REPLACE_STRNCAT.
24491         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24492         module.
24493         * tests/test-string-c++.cc: Check signature of strncat.
24494
24495 2010-04-05  Jim Meyering  <meyering@redhat.com>
24496
24497         xstrtoumax-tests: convert to use init.sh
24498         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24499         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24500         Use Exit, not exit.
24501         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24502
24503         xstrtoimax-tests: convert to use init.sh
24504         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24505         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24506         Use Exit, not exit.
24507         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24508
24509 2010-04-05  Bruno Haible  <bruno@clisp.org>
24510
24511         sys_socket: Avoid #define replacements in C++ mode.
24512         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24513         warning to the function if possible, rather than #defining the symbol
24514         to a dysfunctional alias.
24515
24516 2010-04-05  Bruno Haible  <bruno@clisp.org>
24517
24518         fseeko: Fix C++ test error on mingw.
24519         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24520         gl_FUNC_FSEEKO.
24521         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24522         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24523         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24524         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24525
24526 2010-04-05  Bruno Haible  <bruno@clisp.org>
24527
24528         duplocale: Improve test output.
24529         * tests/test-duplocale.c (main): Print reason for skipped test.
24530
24531 2010-04-05  Bruno Haible  <bruno@clisp.org>
24532
24533         Assume rmdir exists.
24534         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24535         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24536
24537 2010-04-05  Bruno Haible  <bruno@clisp.org>
24538
24539         Fix link error on Solaris 8 with cc.
24540         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24541
24542 2010-04-05  Bruno Haible  <bruno@clisp.org>
24543
24544         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24545         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24546
24547 2010-04-05  Bruno Haible  <bruno@clisp.org>
24548
24549         vasprintf: Update documentation.
24550         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24551
24552 2010-04-05  Bruno Haible  <bruno@clisp.org>
24553
24554         ptsname: Improve test.
24555         * tests/test-ptsname.c (main): Also try the various master names of BSD
24556         systems.
24557
24558 2010-04-05  Bruno Haible  <bruno@clisp.org>
24559
24560         memchr: Avoid a possible C++ test error.
24561         * lib/string.in.h (memchr): Provide declaration if function is missing.
24562         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24563         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24565         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24566
24567 2010-04-05  Bruno Haible  <bruno@clisp.org>
24568
24569         strtok_r: Improve idiom.
24570         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24571         AC_LIBOBJ is used.
24572
24573 2010-04-05  Bruno Haible  <bruno@clisp.org>
24574
24575         strdup: Improve idiom.
24576         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24577         AC_LIBOBJ is used.
24578         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24579         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24580         when AC_LIBOBJ is used.
24581
24582 2010-04-05  Bruno Haible  <bruno@clisp.org>
24583
24584         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24585         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24586         don't set REPLACE_MBSINIT to 1.
24587         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24588         don't set REPLACE_MBRTOWC to 1.
24589         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24590         exist, don't set REPLACE_MBSRTOWCS to 1.
24591         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24592         exist, don't set REPLACE_MBSNRTOWCS to 1.
24593         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24594         don't set REPLACE_WCRTOMB to 1.
24595         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24596         exist, don't set REPLACE_WCSRTOMBS to 1.
24597         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24598         exist, don't set REPLACE_WCSNRTOMBS to 1.
24599
24600 2010-04-05  Bruno Haible  <bruno@clisp.org>
24601
24602         ldexpl: Improve idiom.
24603         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24604         make sure to set HAVE_DECL_LDEXPL to 0.
24605
24606 2010-04-05  Jim Meyering  <meyering@redhat.com>
24607
24608         xstrtol-tests: convert to use init.sh
24609         * modules/xstrtol-tests (Files): Add tests/init.sh.
24610         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24611         Use Exit, not exit.
24612         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24613
24614         atexit-tests: convert to use init.sh
24615         * modules/atexit-tests (Files): Add tests/init.sh.
24616         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24617         Use Exit, not exit.
24618         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24619
24620         init.sh: fix typo
24621         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24622
24623         init.sh: make it easier for a test script to write to the tty, ...
24624         when using automake's parallel-tests mode.
24625         * tests/init.sh (stderr_fileno_): Define overridable variable.
24626         (warn_): New function, to use it.
24627         (fail_, skip_, framework_failure_): Use warn_.
24628
24629 2010-04-04  Bruno Haible  <bruno@clisp.org>
24630
24631         btowc: Avoid warning.
24632         * lib/btowc.c: Include <stdlib.h>.
24633         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24634
24635 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24636             Bruno Haible  <bruno@clisp.org>
24637
24638         wchar: Port to NetBSD 1.5.
24639         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24640         * lib/wctype.in.h (WEOF): Likewise.
24641
24642 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24643             Bruno Haible  <bruno@clisp.org>
24644
24645         Port extended stdio to NetBSD 1.5.
24646         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24647         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24648         older.
24649
24650 2010-04-04  Bruno Haible  <bruno@clisp.org>
24651
24652         string: Remove unused substitution.
24653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24654         HAVE_DECL_STRERROR.
24655         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24656
24657 2010-04-04  Bruno Haible  <bruno@clisp.org>
24658
24659         strtod: Avoid a possible C++ test error.
24660         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24661         set REPLACE_STRTOD.
24662
24663 2010-04-04  Bruno Haible  <bruno@clisp.org>
24664
24665         strerror: Update documentation.
24666         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24667
24668 2010-04-04  Bruno Haible  <bruno@clisp.org>
24669
24670         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24671         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24672         _GL_CXXALIAS_SYS_CAST.
24673
24674 2010-04-04  Bruno Haible  <bruno@clisp.org>
24675
24676         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24677         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24678         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24679         REPLACE_FREXPL to 1.
24680         * doc/posix-functions/frexpl.texi: Update documentation.
24681
24682 2010-04-04  Bruno Haible  <bruno@clisp.org>
24683
24684         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24685         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24686
24687 2010-04-04  Bruno Haible  <bruno@clisp.org>
24688
24689         Implement nanosleep for native Windows.
24690         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24691
24692 2010-04-04  Bruno Haible  <bruno@clisp.org>
24693
24694         math: Fix some C++ test errors on Solaris 8.
24695         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24696
24697 2010-04-04  Bruno Haible  <bruno@clisp.org>
24698
24699         math: Fix some C++ test errors on Cygwin.
24700         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24701         truncl): Provide declaration if the system does not have it.
24702         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24703         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24704         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24705         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24706         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24707         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24708         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24709         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24710         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24711         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24712         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24713         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24714         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24715         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24716         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24717         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24719         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24720         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24721         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24722         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24723         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24724
24725 2010-04-04  Bruno Haible  <bruno@clisp.org>
24726
24727         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24728         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24729         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24730         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24731         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24732         * m4/isinf.m4 (gl_ISINF): Likewise.
24733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24734
24735 2010-04-04  Bruno Haible  <bruno@clisp.org>
24736
24737         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24738         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24739
24740 2010-04-04  Bruno Haible  <bruno@clisp.org>
24741
24742         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24743         * modules/tmpfile (configure.ac): Update.
24744
24745         tmpfile: Fix C++ test error on mingw.
24746         * lib/stdio.in.h (tmpfile): New declaration.
24747         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24748         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24749         * modules/tmpfile (Depends-on): Add stdio.
24750         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24751         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24752         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24753         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24754         REPLACE_TMPFILE.
24755         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24756
24757 2010-04-04  Bruno Haible  <bruno@clisp.org>
24758
24759         ioctl: Fix C++ test error on mingw.
24760         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24761         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24762         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24763
24764 2010-04-03  Bruno Haible  <bruno@clisp.org>
24765
24766         wcwidth: Fix C++ test error on mingw.
24767         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24769         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24770
24771 2010-04-03  Bruno Haible  <bruno@clisp.org>
24772
24773         nanosleep: Fix C++ test error on mingw.
24774         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24775         * lib/time.in.h (nanosleep): Use modern idiom.
24776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24777         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24778         REPLACE_NANOSLEEP to 1.
24779         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24780         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24781
24782 2010-04-03  Bruno Haible  <bruno@clisp.org>
24783
24784         strptime: Fix C++ test error on mingw.
24785         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24786         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24787         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24788         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24790         not REPLACE_STRPTIME.
24791         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24792         REPLACE_STRPTIME.
24793
24794 2010-04-03  Bruno Haible  <bruno@clisp.org>
24795
24796         timegm: Fix C++ test error on mingw.
24797         * lib/time.in.h (timegm): Use modern idiom.
24798         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24799         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24800         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24801         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24802
24803 2010-04-03  Bruno Haible  <bruno@clisp.org>
24804
24805         timegm: Assume declaration if function exists.
24806         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24807         if it exists. Don't clobber ac_cv_func_timegm.
24808
24809 2010-04-03  Bruno Haible  <bruno@clisp.org>
24810
24811         time_r: Fix C++ test error on mingw.
24812         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24813         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24814         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24816         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24817
24818 2010-04-03  Bruno Haible  <bruno@clisp.org>
24819
24820         time_r: Minor updates.
24821         * modules/time_r (Description): Mention the provided functions.
24822         * lib/time_r.c: Don't include <string.h>.
24823         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24824         * doc/posix-functions/localtime_r.texi: Likewise.
24825
24826 2010-04-03  Bruno Haible  <bruno@clisp.org>
24827
24828         time: Fix regression introduced on 2010-03-08.
24829         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24830         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24831
24832 2010-04-03  Jim Meyering  <meyering@redhat.com>
24833
24834         maint.mk: don't silently disable project-specific syntax-check rules
24835         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24836         that they need to convert their project-specific syntax-check rules
24837         to use the new _sc_search_regexp.
24838
24839 2010-04-03  Bruno Haible  <bruno@clisp.org>
24840
24841         fchdir: Fix regression introduced on 2010-03-08.
24842         * lib/unistd.in.h (fchdir): Fix declaration.
24843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24845         REPLACE_FCHDIR.
24846         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24847         REPLACE_FCHDIR.
24848
24849 2010-04-03  Bruno Haible  <bruno@clisp.org>
24850
24851         getpagesize: Fix C++ test error on mingw.
24852         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24853         system does not declare the function.
24854         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24855         declared.
24856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24857         HAVE_DECL_GETPAGESIZE.
24858         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24859
24860 2010-04-03  Bruno Haible  <bruno@clisp.org>
24861
24862         stdio: Make C++ tests work on mingw.
24863         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24864         does not declare the function.
24865
24866 2010-04-03  Bruno Haible  <bruno@clisp.org>
24867
24868         ftello: Fix C++ test error on mingw.
24869         * lib/stdio.in.h (ftello): Use modern idiom.
24870         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24871         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24872         is missing and that it needs to be replaced.
24873         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24875         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24876
24877 2010-04-03  Bruno Haible  <bruno@clisp.org>
24878
24879         fseeko: Fix C++ test error on mingw.
24880         * lib/stdio.in.h (fseeko): Use modern idiom.
24881         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24883         is missing and that it needs to be replaced.
24884         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24885         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24886         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24887
24888 2010-04-03  Bruno Haible  <bruno@clisp.org>
24889
24890         mkstemp: Fix C++ test error on mingw.
24891         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24893         function is missing and that it needs to be replaced.
24894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24895         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24896
24897 2010-04-03  Bruno Haible  <bruno@clisp.org>
24898
24899         stpncpy: Fix C++ test error on mingw.
24900         * lib/string.in.h (stpncpy): Use modern idiom.
24901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24902         function is missing and that it needs to be replaced.
24903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24904         REPLACE_STPNCPY.
24905         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24906
24907 2010-04-03  Bruno Haible  <bruno@clisp.org>
24908
24909         sys_stat: Fix C++ test error on mingw.
24910         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24911         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24912
24913 2010-04-03  Bruno Haible  <bruno@clisp.org>
24914
24915         pty: Update doc.
24916         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24917
24918 2010-04-03  Bruno Haible  <bruno@clisp.org>
24919
24920         unistd: Fix C++ test error on mingw.
24921         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24922
24923 2010-04-03  Bruno Haible  <bruno@clisp.org>
24924
24925         Update doc regarding mingw.
24926         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24927         * doc/glibc-functions/login_tty.texi: Likewise.
24928         * doc/glibc-functions/forkpty.texi: Likewise.
24929
24930 2010-04-03  Bruno Haible  <bruno@clisp.org>
24931
24932         stdlib: Avoid compilation failure of c-strtold on mingw.
24933         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24934
24935 2010-04-03  Bruno Haible  <bruno@clisp.org>
24936
24937         locale: Make C++ tests work on Cygwin and mingw.
24938         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24939         cannot provide the function.
24940         Reported by Simon Josefsson.
24941
24942 2010-04-03  Bruno Haible  <bruno@clisp.org>
24943
24944         localename: Port to MacOS X 10.6.
24945         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24946         memory layout of the locales in MacOS X 10.6 as well.
24947         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24948
24949 2010-04-02  Bruno Haible  <bruno@clisp.org>
24950
24951         gnulib-tool: Ensure that long-running tests are executed last.
24952         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24953         running tests after the one for the other tests.
24954
24955 2010-04-02  Bruno Haible  <bruno@clisp.org>
24956
24957         gnulib-tool: Ensure the tests in the main directory are executed first.
24958         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24959         start with the current directory.
24960
24961 2010-04-02  Bruno Haible  <bruno@clisp.org>
24962
24963         Tests for module 'havelib', moved here from GNU gettext.
24964         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24965         modifications.
24966         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24967         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24968         with modifications.
24969         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24970         modifications.
24971         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24972         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24973         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24974         with modifications.
24975         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24976         with modifications.
24977         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24978         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24979         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24980         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24981         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24982         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24983         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24984         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24985         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24986         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24987         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24988         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24989         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24990         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24991         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24992         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24993         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24994         with modifications.
24995         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24996         with modifications.
24997         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24998         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24999         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25000         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25001         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25002         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25003         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25004         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25005         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25006         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25007         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25008         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25009         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25010         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25011         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25012         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25013         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25014         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25015         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25016         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25017         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25018         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25019         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25020         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25021         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25022         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25023         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25024         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25025         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25026         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25027         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25028         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25029         * tests/havelib/rpathx/rpathx.c: New file, from
25030         gettext/autoconf-lib-link.
25031         * tests/havelib/rpathx/Makefile.am: New file, from
25032         gettext/autoconf-lib-link.
25033         * tests/havelib/rpathx/configure.ac: New file, from
25034         gettext/autoconf-lib-link with modifications.
25035         * tests/havelib/rpathy/rpathy.c: New file, from
25036         gettext/autoconf-lib-link.
25037         * tests/havelib/rpathy/Makefile.am: New file, from
25038         gettext/autoconf-lib-link.
25039         * tests/havelib/rpathy/configure.ac: New file, from
25040         gettext/autoconf-lib-link with modifications.
25041         * tests/havelib/rpathz/rpathz.c: New file, from
25042         gettext/autoconf-lib-link.
25043         * tests/havelib/rpathz/Makefile.am: New file, from
25044         gettext/autoconf-lib-link.
25045         * tests/havelib/rpathz/configure.ac: New file, from
25046         gettext/autoconf-lib-link with modifications.
25047         * tests/havelib/rpathlx/usex.c: New file, from
25048         gettext/autoconf-lib-link.
25049         * tests/havelib/rpathlx/Makefile.am: New file, from
25050         gettext/autoconf-lib-link.
25051         * tests/havelib/rpathlx/configure.ac: New file, from
25052         gettext/autoconf-lib-link with modifications.
25053         * tests/havelib/rpathly/usey.c: New file, from
25054         gettext/autoconf-lib-link.
25055         * tests/havelib/rpathly/Makefile.am: New file, from
25056         gettext/autoconf-lib-link.
25057         * tests/havelib/rpathly/configure.ac: New file, from
25058         gettext/autoconf-lib-link with modifications.
25059         * tests/havelib/rpathlz/usez.c: New file, from
25060         gettext/autoconf-lib-link.
25061         * tests/havelib/rpathlz/Makefile.am: New file, from
25062         gettext/autoconf-lib-link.
25063         * tests/havelib/rpathlz/configure.ac: New file, from
25064         gettext/autoconf-lib-link with modifications.
25065         * tests/havelib/rpathlyx/usey.c: New file, from
25066         gettext/autoconf-lib-link.
25067         * tests/havelib/rpathlyx/Makefile.am: New file, from
25068         gettext/autoconf-lib-link.
25069         * tests/havelib/rpathlyx/configure.ac: New file, from
25070         gettext/autoconf-lib-link with modifications.
25071         * tests/havelib/rpathlzyx/usez.c: New file, from
25072         gettext/autoconf-lib-link.
25073         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25074         gettext/autoconf-lib-link.
25075         * tests/havelib/rpathlzyx/configure.ac: New file, from
25076         gettext/autoconf-lib-link with modifications.
25077         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25078         with modifications.
25079
25080 2010-04-02  Bruno Haible  <bruno@clisp.org>
25081
25082         gnulib-tool: Create distributed built sources also for the tests.
25083         * gnulib-tool (func_create_testdir): Also generate distributed built
25084         sources in the tests directory.
25085
25086 2010-04-02  Bruno Haible  <bruno@clisp.org>
25087
25088         gnulib-tool: Obey user's environment variables.
25089         * gnulib-tool (func_create_testdir): When creating built sources,
25090         respect the environment variables for autoconf, automake, etc. given by
25091         the user.
25092
25093 2010-04-02  Bruno Haible  <bruno@clisp.org>
25094
25095         gnulib-tool: Provide the value of --m4-base to modules.
25096         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25097         of gl_m4_base.
25098
25099 2010-04-02  Eric Blake  <eblake@redhat.com>
25100
25101         maint.mk: fix some fallout
25102         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25103         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25104
25105 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25106
25107         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25108         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25109         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25110         (sc_cast_of_x_alloc_return_value): Likewise.
25111         (sc_cast_of_alloca_return_value): Likewise.
25112         (sc_space_tab): Likewise.
25113         (sc_prohibit_atoi_atof): Likewise.
25114         (sc_prohibit_magic_number_exit): Likewise.
25115         (sc_error_exit_success): Likewise.
25116         (sc_file_system): Likewise.
25117         (sc_prohibit_have_config_h): Likewise.
25118         (sc_require_config_h): Likewise.
25119         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25120         (sc_obsolete_symbols): Likewise.
25121         (sc_changelog): Likewise.
25122         (sc_program_name): Likewise.
25123         (sc_the_the): Likewise.
25124         (sc_trailing_blank): Likewise.
25125         (sc_two_space_separator_in_usage): Likewise.
25126         (sc_useless_cpp_parens): Likewise.
25127         (sc_GPL_version): Likewise.
25128         (sc_GFDL_version): Likewise.
25129         (sc_texinfo_acronym): Likewise.
25130         (sc_prohibit_cvs_keyword): Likewise.
25131         (sc_prohibit_stat_st_blocks): Likewise.
25132         (sc_prohibit_S_IS_definition): Likewise.
25133         (sc_redundant_const): Likewise.
25134         (sc_makefile_TAB_only_indentation): Likewise.
25135         (sc_m4_quote_check): Likewise.
25136         (sc_makefile_path_separator_check): Likewise.
25137         (sc_copyright_check): Likewise.
25138         (sc_Wundef_boolean): Likewise.
25139         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25140
25141         maint.mk: match 0 or more whitespace-before-function-call '('
25142         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25143         that have zero or two-and-more spaces between the function name
25144         and the open parenthesis.
25145         (sc_error_message_warn_fatal): Likewise.
25146         (sc_error_message_uppercase): Likewise.
25147         (sc_error_message_period): Likewise.
25148
25149 2010-03-31  Eric Blake  <eblake@redhat.com>
25150
25151         maint.mk: check for [ as well as test
25152         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25153         Based on a libvirt report by Matthias Bolte.
25154
25155         gnumakefile: don't squelch _version output
25156         * top/GNUmakefile (_version): Create one-shot dependency rather
25157         than using $(shell) when version must be regenerated.
25158         (_autoreconf): Run verbosely, by default.
25159
25160         sys_time: avoid compiler warnings
25161         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25162         unconditional, fixing regression from 2010-03-29.
25163         Reported by Simon Josefsson.
25164
25165 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25166
25167         maint.mk: s/_header_without_use/_sc_header_without_use/
25168         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25169         (sc_prohibit_assert_without_use): Use the new name.
25170         (sc_prohibit_close_stream_without_use): Likewise.
25171         (sc_prohibit_getopt_without_use): Likewise.
25172         (sc_prohibit_quotearg_without_use): Likewise.
25173         (sc_prohibit_quote_without_use): Likewise.
25174         (sc_prohibit_long_options_without_use): Likewise.
25175         (sc_prohibit_inttostr_without_use): Likewise.
25176         (sc_prohibit_ignore_value_without_use): Likewise.
25177         (sc_prohibit_error_without_use): Likewise.
25178         (sc_prohibit_xalloc_without_use): Likewise.
25179         (sc_prohibit_hash_without_use): Likewise.
25180         (sc_prohibit_hash_pjw_without_use): Likewise.
25181         (sc_prohibit_safe_read_without_use): Likewise.
25182         (sc_prohibit_argmatch_without_use): Likewise.
25183         (sc_prohibit_canonicalize_without_use): Likewise.
25184         (sc_prohibit_root_dev_ino_without_use): Likewise.
25185         (sc_prohibit_openat_without_use): Likewise.
25186         (sc_prohibit_c_ctype_without_use): Likewise.
25187         (sc_prohibit_signal_without_use): Likewise.
25188         (sc_prohibit_intprops_without_use): Likewise.
25189
25190 2010-03-30  Eric Blake  <eblake@redhat.com>
25191
25192         maint: improve module indicators
25193         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25194         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25195         columns, and avoid extra macro expansion.
25196
25197         fdopendir: work around FreeBSD bug
25198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25199         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25200         * modules/dirent (Makefile.am): Substitute it.
25201         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25202         declaration.
25203         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25204         fix.
25205         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25206
25207 2010-03-29  Bruno Haible  <bruno@clisp.org>
25208
25209         Emit #pragma system_header after the inclusion guard, not before.
25210         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25211         guard that spans the entire file, not before. This enables an
25212         optimization in GCC's preprocessor.
25213         * lib/ctype.in.h: Likewise.
25214         * lib/dirent.in.h: Likewise.
25215         * lib/errno.in.h: Likewise.
25216         * lib/float.in.h: Likewise.
25217         * lib/getopt.in.h: Likewise.
25218         * lib/iconv.in.h: Likewise.
25219         * lib/langinfo.in.h: Likewise.
25220         * lib/locale.in.h: Likewise.
25221         * lib/math.in.h: Likewise.
25222         * lib/netdb.in.h: Likewise.
25223         * lib/netinet_in.in.h: Likewise.
25224         * lib/pty.in.h: Likewise.
25225         * lib/sched.in.h: Likewise.
25226         * lib/se-selinux.in.h: Likewise.
25227         * lib/search.in.h: Likewise.
25228         * lib/spawn.in.h: Likewise.
25229         * lib/stdarg.in.h: Likewise.
25230         * lib/stdint.in.h: Likewise.
25231         * lib/string.in.h: Likewise.
25232         * lib/strings.in.h: Likewise.
25233         * lib/sys_file.in.h: Likewise.
25234         * lib/sys_ioctl.in.h: Likewise.
25235         * lib/sys_time.in.h: Likewise.
25236         * lib/sys_times.in.h: Likewise.
25237         * lib/sys_utsname.in.h: Likewise.
25238         * lib/sys_wait.in.h: Likewise.
25239         * lib/sysexits.in.h: Likewise.
25240         * lib/wctype.in.h: Likewise.
25241
25242 2010-03-28  James Youngman  <jay@gnu.org>
25243
25244         save-cwd: don't leak a file descriptor when the caller execs.
25245         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25246         saved file descriptor.
25247         * modules/save-cwd (Depends-on): Depend on cloexec.
25248
25249 2010-03-29  Bruno Haible  <bruno@clisp.org>
25250
25251         Remove vestiges of fts-lgpl module.
25252         * lib/fts_.h: Assume GNULIB_FTS is 1.
25253         * lib/fts.c: Likewise.
25254         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25255
25256 2010-03-28  Bruno Haible  <bruno@clisp.org>
25257
25258         Fix definition of tests witness macro.
25259         * gnulib-tool (func_import): Fix definition of witness macro.
25260
25261 2010-03-28  Bruno Haible  <bruno@clisp.org>
25262
25263         Fix ioctl's protoype on glibc systems.
25264         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25265         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25266         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25267         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25268         signature. If not, arrange to replace the ioctl function.
25269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25270         REPLACE_IOCTL.
25271         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25272         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25273         Reported by Ludovic Courtès <ludo@gnu.org>.
25274
25275 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25276
25277         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25278         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25279         made it so grep -r --include=GLOB* ... did not work.
25280
25281 2010-03-26  Jim Meyering  <meyering@redhat.com>
25282             Eric Blake  <eblake@redhat.com>
25283
25284         maint.mk: prohibit use of test's -o and -a operators
25285         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25286
25287 2010-03-28  Bruno Haible  <bruno@clisp.org>
25288
25289         Remove unused GNULIB_XYZ macro definitions.
25290         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25291         invocation.
25292
25293 2010-03-28  Bruno Haible  <bruno@clisp.org>
25294
25295         Mark privileged tests modules.
25296         * modules/idpriv-drop-tests (Status): New section.
25297         * modules/idpriv-droptemp-tests (Status): New section.
25298
25299 2010-03-28  Bruno Haible  <bruno@clisp.org>
25300
25301         Split C++ tests into separate tests modules.
25302         * modules/dirent-c++-tests: New file, extracted from
25303         modules/dirent-tests.
25304         * modules/dirent-tests: Depend on it.
25305         * modules/fcntl-h-c++-tests: New file, extracted from
25306         modules/fcntl-h-tests.
25307         * modules/fcntl-h-tests: Depend on it.
25308         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25309         * modules/glob-tests: Depend on it.
25310         * modules/iconv-h-c++-tests: New file, extracted from
25311         modules/iconv-h-tests.
25312         * modules/iconv-h-tests: Depend on it.
25313         * modules/langinfo-c++-tests: New file, extracted from
25314         modules/langinfo-tests.
25315         * modules/langinfo-tests: Depend on it.
25316         * modules/locale-c++-tests: New file, extracted from
25317         modules/locale-tests.
25318         * modules/locale-tests: Depend on it.
25319         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25320         * modules/math-tests: Depend on it.
25321         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25322         * modules/pty-tests: Depend on it.
25323         * modules/search-c++-tests: New file, extracted from
25324         modules/search-tests.
25325         * modules/search-tests: Depend on it.
25326         * modules/signal-c++-tests: New file, extracted from
25327         modules/signal-tests.
25328         * modules/signal-tests: Depend on it.
25329         * modules/spawn-c++-tests: New file, extracted from
25330         modules/spawn-tests.
25331         * modules/spawn-tests: Depend on it.
25332         * modules/stdio-c++-tests: New file, extracted from
25333         modules/stdio-tests.
25334         * modules/stdio-tests: Depend on it.
25335         * modules/stdlib-c++-tests: New file, extracted from
25336         modules/stdlib-tests.
25337         * modules/stdlib-tests: Depend on it.
25338         * modules/string-c++-tests: New file, extracted from
25339         modules/string-tests.
25340         * modules/string-tests: Depend on it.
25341         * modules/sys_ioctl-c++-tests: New file, extracted from
25342         modules/sys_ioctl-tests.
25343         * modules/sys_ioctl-tests: Depend on it.
25344         * modules/sys_select-c++-tests: New file, extracted from
25345         modules/sys_select-tests.
25346         * modules/sys_select-tests: Depend on it.
25347         * modules/sys_socket-c++-tests: New file, extracted from
25348         modules/sys_socket-tests.
25349         * modules/sys_socket-tests: Depend on it.
25350         * modules/sys_stat-c++-tests: New file, extracted from
25351         modules/sys_stat-tests.
25352         * modules/sys_stat-tests: Depend on it.
25353         * modules/sys_time-c++-tests: New file, extracted from
25354         modules/sys_time-tests.
25355         * modules/sys_time-tests: Depend on it.
25356         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25357         * modules/time-tests: Depend on it.
25358         * modules/unistd-c++-tests: New file, extracted from
25359         modules/unistd-tests.
25360         * modules/unistd-tests: Depend on it.
25361         * modules/wchar-c++-tests: New file, extracted from
25362         modules/wchar-tests.
25363         * modules/wchar-tests: Depend on it.
25364         * modules/wctype-c++-tests: New file, extracted from
25365         modules/wctype-tests.
25366         * modules/wctype-tests: Depend on it.
25367         Reported by Simon Josefsson.
25368
25369 2010-03-28  Bruno Haible  <bruno@clisp.org>
25370
25371         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25372         * gnulib-tool (func_exists_module): New function, extracted from
25373         func_verify_module.
25374         (func_verify_module): Use it.
25375         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25376         'foo' only if 'foo' exists.
25377         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25378         module.
25379
25380 2010-03-28  Bruno Haible  <bruno@clisp.org>
25381
25382         gnulib-tool: Add support for special categories of tests.
25383         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25384         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25385         (func_usage): Document them.
25386         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25387         inc_unportable_tests, inc_all_tests): New variables.
25388         (func_acceptable): Consider these variables.
25389         (func_modules_transitive_closure): Make it work when the 'Status' field
25390         consists of multiple words.
25391         (func_import): Store and restore the values of inc_cxx_tests,
25392         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25393         inc_all_tests in gnulib-comp.m4.
25394         (func_create_testdir): Set inc_all_tests to true.
25395         * doc/gnulib.texi (Extra tests modules): New section.
25396         Suggested by Jim Meyering.
25397
25398 2010-03-28  Bruno Haible  <bruno@clisp.org>
25399
25400         ansi-c++-opt: Allow turning off the C++ build by default.
25401         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25402         gl_CXX_CHOICE_DEFAULT_NO is defined.
25403         Requested by Eric Blake.
25404
25405 2010-03-28  Bruno Haible  <bruno@clisp.org>
25406
25407         unistd: Avoid #define replacements in C++ mode.
25408         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25409         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25410         setsockopt, shutdown, select): In C++, attach a warning to the function
25411         if possible, rather than #defining the symbol to a dysfunctional alias.
25412         Reported by John W. Eaton <jwe@gnu.org>.
25413
25414 2010-03-28  Bruno Haible  <bruno@clisp.org>
25415
25416         Fix link errors on mingw.
25417         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25418         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25419         $(LIBSOCKET).
25420         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25421         $(LIBSOCKET).
25422
25423 2010-03-28  Bruno Haible  <bruno@clisp.org>
25424             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25425
25426         lib-ignore: Determine different options for different compilers.
25427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25428         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25429         Add comments.
25430         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25431         * NEWS: Mention the change.
25432
25433 2010-03-27  Bruno Haible  <bruno@clisp.org>
25434
25435         Remove unused GNULIB_XYZ macro definitions.
25436         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25437         * modules/fseek (configure.ac): Likewise.
25438         * modules/ioctl (configure.ac): Likewise.
25439         * modules/open (configure.ac): Likewise.
25440         * modules/stdlib-safer (configure.ac): Likewise.
25441
25442 2010-03-27  Bruno Haible  <bruno@clisp.org>
25443
25444         Add a remark about certain modules.
25445         * modules/malloc (Comment): New section.
25446         * modules/realloc (Comment): Likewise.
25447         * modules/sigpipe (Comment): Likewise.
25448
25449 2010-03-27  Bruno Haible  <bruno@clisp.org>
25450
25451         Resolve conflict between the two kinds of module indicators.
25452         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25453         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25454         * modules/canonicalize (configure.ac): Invoke
25455         gl_MODULE_INDICATOR_FOR_TESTS.
25456         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25457         GNULIB_XYZ.
25458         * tests/test-dirent-c++.cc: Likewise.
25459         * tests/test-dirent-safer.c: Likewise.
25460         * tests/test-dup2.c: Likewise.
25461         * tests/test-fchdir.c: Likewise.
25462         * tests/test-fcntl-h-c++.cc: Likewise.
25463         * tests/test-getopt.c: Likewise.
25464         * tests/test-getopt.h: Likewise.
25465         * tests/test-langinfo-c++.cc: Likewise.
25466         * tests/test-locale-c++.cc: Likewise.
25467         * tests/test-math-c++.cc: Likewise.
25468         * tests/test-pty-c++.cc: Likewise.
25469         * tests/test-search-c++.cc: Likewise.
25470         * tests/test-signal-c++.cc: Likewise.
25471         * tests/test-spawn-c++.cc: Likewise.
25472         * tests/test-stdio-c++.cc: Likewise.
25473         * tests/test-stdlib-c++.cc: Likewise.
25474         * tests/test-string-c++.cc: Likewise.
25475         * tests/test-sys_ioctl-c++.cc: Likewise.
25476         * tests/test-sys_select-c++.cc: Likewise.
25477         * tests/test-sys_socket-c++.cc: Likewise.
25478         * tests/test-sys_stat-c++.cc: Likewise.
25479         * tests/test-sys_time-c++.cc: Likewise.
25480         * tests/test-time-c++.cc: Likewise.
25481         * tests/test-unistd-c++.cc: Likewise.
25482         * tests/test-wchar-c++.cc: Likewise.
25483         * tests/uninorm/test-u8-nfc.c: Likewise.
25484         * tests/uninorm/test-u8-nfd.c: Likewise.
25485         * tests/uninorm/test-u8-nfkc.c: Likewise.
25486         * tests/uninorm/test-u8-nfkd.c: Likewise.
25487         * tests/uninorm/test-u16-nfc.c: Likewise.
25488         * tests/uninorm/test-u16-nfd.c: Likewise.
25489         * tests/uninorm/test-u16-nfkc.c: Likewise.
25490         * tests/uninorm/test-u16-nfkd.c: Likewise.
25491         * tests/uninorm/test-u32-nfc.c: Likewise.
25492         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25493         * tests/uninorm/test-u32-nfd.c: Likewise.
25494         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25495         * tests/uninorm/test-u32-nfkc.c: Likewise.
25496         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25497         * tests/uninorm/test-u32-nfkd.c: Likewise.
25498         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25499         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25500
25501 2010-03-27  Bruno Haible  <bruno@clisp.org>
25502
25503         Distinguish two kinds of module indicators.
25504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25505         gl_MODULE_INDICATOR.
25506         (gl_MODULE_INDICATOR): New macro.
25507         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25508         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25509         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25510         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25511         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25512         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25513         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25514         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25515         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25516         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25517         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25518         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25519         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25520         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25521         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25523         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25524         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25525         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25526         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25527         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25528         * modules/cloexec (configure.ac): Likewise.
25529         * modules/getopt-gnu (configure.ac): Likewise.
25530         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25531         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25532         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25533         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25534
25535 2010-03-27  Bruno Haible  <bruno@clisp.org>
25536
25537         New module description field 'Comment'.
25538         * gnulib-tool: New option --extract-comment.
25539         (func_usage): Document it.
25540         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25541         (func_get_comment): New function.
25542         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25543
25544 2010-03-27  Bruno Haible  <bruno@clisp.org>
25545
25546         Addendum to 2010-02-07 commit.
25547         * gnulib-tool (func_usage): Document --extract-applicability option.
25548
25549 2010-03-27  Bruno Haible  <bruno@clisp.org>
25550
25551         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25552         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25553         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25554         rather than link errors.
25555
25556 2010-03-27  Bruno Haible  <bruno@clisp.org>
25557
25558         Avoid side effects from tests-related modules on the compilation of lib.
25559         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25560         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25561         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25562         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25563         macro.
25564         (func_import): Define a witness macro. Assign it a value that depends
25565         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25566         tests-related modules.
25567         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25568         Reported by Jim Meyering.
25569
25570 2010-03-27  Bruno Haible  <bruno@clisp.org>
25571
25572         Factorize common .m4 code.
25573         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25574         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25575         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25576         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25577         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25578         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25579         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25580         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25581         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25582         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25583         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25584         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25586         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25587         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25588         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25589         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25590         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25592         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25593         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25594         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25595         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25597         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25598         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25599         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25600         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25601         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25602         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25603         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25604         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25605
25606 2010-03-27  Bruno Haible  <bruno@clisp.org>
25607
25608         Fix a compilation error on Cygwin with g++ >= 4.3.
25609         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25610         if it is undefined or if we alias it to chmod.
25611         (lstat): Don't warn about the use of this function if it is undefined
25612         or if we alias it to stat.
25613         Reported by Simon Josefsson.
25614
25615 2010-03-27  Bruno Haible  <bruno@clisp.org>
25616
25617         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25618         * modules/getlogin (configure.ac): Update.
25619
25620         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25621         * modules/getlogin_r (configure.ac): Update.
25622
25623         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25625         * modules/inet_ntop (configure.ac): Update.
25626
25627         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25628         * modules/inet_pton (configure.ac): Update.
25629
25630         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25631         * modules/mbslen (configure.ac): Update.
25632
25633         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25634         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25635         * modules/forkpty (configure.ac): Update.
25636         * modules/openpty (configure.ac): Update.
25637
25638 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25639
25640         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25641         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25642
25643 2010-03-25  Eric Blake  <eblake@redhat.com>
25644
25645         maint: use pragma consistently across replacement headers
25646         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25647         * lib/dirent.in.h (system_header): Likewise.
25648         * lib/errno.in.h (system_header): Likewise.
25649         * lib/float.in.h (system_header): Likewise.
25650         * lib/getopt.in.h (system_header): Likewise.
25651         * lib/iconv.in.h (system_header): Likewise.
25652         * lib/inttypes.in.h (system_header): Likewise.
25653         * lib/langinfo.in.h (system_header): Likewise.
25654         * lib/locale.in.h (system_header): Likewise.
25655         * lib/math.in.h (system_header): Likewise.
25656         * lib/netdb.in.h (system_header): Likewise.
25657         * lib/netinet_in.in.h (system_header): Likewise.
25658         * lib/pty.in.h (system_header): Likewise.
25659         * lib/sched.in.h (system_header): Likewise.
25660         * lib/se-selinux.in.h (system_header): Likewise.
25661         * lib/search.in.h (system_header): Likewise.
25662         * lib/spawn.in.h (system_header): Likewise.
25663         * lib/stdarg.in.h (system_header): Likewise.
25664         * lib/stdint.in.h (system_header): Likewise.
25665         * lib/string.in.h (system_header): Likewise.
25666         * lib/strings.in.h (system_header): Likewise.
25667         * lib/sys_file.in.h (system_header): Likewise.
25668         * lib/sys_ioctl.in.h (system_header): Likewise.
25669         * lib/sys_socket.in.h (system_header): Likewise.
25670         * lib/sys_times.in.h (system_header): Likewise.
25671         * lib/sys_utsname.in.h (system_header): Likewise.
25672         * lib/sys_wait.in.h (system_header): Likewise.
25673         * lib/sysexits.in.h (system_header): Likewise.
25674         * lib/unistd.in.h (system_header): Likewise.
25675         * lib/wctype.in.h (system_header): Likewise.
25676
25677         arpa/inet: fix mingw compilation warning
25678         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25679         Reported by Matthew Bolte.
25680
25681 2010-03-25  Bruno Haible  <bruno@clisp.org>
25682
25683         Avoid collision between gnulib wrapper and libintl wrapper.
25684         * lib/printf.c (printf): Don't define if a printf wrapper is already
25685         defined in intl/printf.c.
25686         Reported by Michel Boaventura <michel@michelboaventura.com>.
25687
25688 2010-03-25  Bruno Haible  <bruno@clisp.org>
25689
25690         Use ANSI C.
25691         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25692
25693 2010-03-25  Bruno Haible  <bruno@clisp.org>
25694
25695         Minor formatting changes.
25696         * lib/acosl.c: Insert space before function argument list.
25697         * lib/argz.c: Likewise.
25698         * lib/asinl.c: Likewise.
25699         * lib/expl.c: Likewise.
25700         * lib/gen-uni-tables.c: Likewise.
25701         * lib/gettext.h: Likewise.
25702         * lib/glthread/lock.h: Likewise.
25703         * lib/tanl.c: Likewise.
25704         * lib/uniname/uniname.c: Likewise.
25705         * tests/test-idpriv-drop.c: Likewise.
25706         * tests/test-idpriv-droptemp.c: Likewise.
25707         * tests/test-lock.c: Likewise.
25708         * tests/test-tls.c: Likewise.
25709         * lib/argp-help.c: Insert space before function-like macro argument
25710         list.
25711         * lib/memcmp.c: Likewise.
25712         * tests/test-base64.c: Likewise.
25713         * lib/localename.c: Insert space before sizeof's argument list.
25714         * lib/safe-alloc.h: Likewise.
25715         * lib/file-set.h: Insert space before macro argument list.
25716         * tests/test-argp.c: Likewise.
25717         * lib/argp-namefrob.h: Insert space before function parameter list.
25718         * lib/getaddrinfo.c: Likewise.
25719         * lib/netdb.in.h: Likewise.
25720         * lib/parse-duration.h: Likewise.
25721         * lib/parse-duration.c: Likewise.
25722         * lib/poll.c: Likewise.
25723         * lib/select.c: Likewise.
25724         * lib/trim.h: Likewise.
25725         * tests/test-usleep.c: Likewise.
25726         * lib/ldexpl.c: Insert space before function parameter list and before
25727         function argument list.
25728         * lib/logl.c: Likewise.
25729         * lib/sqrtl.c: Likewise.
25730         * lib/trim.c: Likewise.
25731         * lib/cosl.c: Use GNU style indentation. Insert space before function
25732         argument list.
25733         * lib/sinl.c: Likewise.
25734         * lib/tsearch.c: Insert space after 'for'.
25735         Reported by Jim Meyering.
25736
25737 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25738
25739         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25740         config header before grepping, as it's not present before
25741         autoreconf/configure are run.  Reported by Simon Josefsson.
25742
25743 2010-03-23  Bruno Haible  <bruno@clisp.org>
25744
25745         pt_chown: Make it work with automake < 1.11.
25746         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25747         Reported by Simon Josefsson.
25748
25749 2010-03-23  Bruno Haible  <bruno@clisp.org>
25750
25751         pt_chown: Don't depend on GPLed modules.
25752         * lib/pt_chown.c: Don't include idpriv.h.
25753         (main): Don't drop privileges.
25754         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25755         Reported by Simon Josefsson.
25756
25757 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25758
25759         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25760         suggestions from karl@freefriends.org (Karl Berry).
25761
25762 2010-03-22  Eric Blake  <eblake@redhat.com>
25763
25764         gethostname: further tweaks
25765         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25766         are overriding gethostname.
25767         Suggested by Bruno Haible.
25768
25769 2010-03-21  Bruno Haible  <bruno@clisp.org>
25770
25771         Fix comments.
25772         * lib/forkpty.c (rpl_forkpty): Fix comment.
25773         * lib/openpty.c (rpl_openpty): Likewise.
25774         Reported by Eric Blake.
25775
25776 2010-03-22  Eric Blake  <eblake@redhat.com>
25777
25778         gethostname: fix build on mingw
25779         * lib/unistd.in.h (includes): Work around fact that mingw
25780         <winsock2.h> re-includes <unistd.h>, by avoiding any
25781         redeclarations if we are being included by <winsock2.h>.
25782         Reported by Matthias Bolte.
25783
25784 2010-03-21  Bruno Haible  <bruno@clisp.org>
25785
25786         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25787         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25788         modifications.
25789         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25790         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25791         provide the replacement.
25792         * modules/forkpty (Depends-on): Add openpty, login_tty.
25793         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25794         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25795         * doc/glibc-functions/forkpty.texi: More supported platforms.
25796         * config/srclist.txt: Add forkpty.c (commented).
25797
25798 2010-03-21  Bruno Haible  <bruno@clisp.org>
25799
25800         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25801         (Makefile.am): Verify that PTY_LIB is defined.
25802
25803         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25804
25805 2010-03-21  Bruno Haible  <bruno@clisp.org>
25806
25807         Tests for module 'login_tty'.
25808         * modules/login_tty-tests: New file.
25809         * tests/test-login_tty.c: New file.
25810
25811         New module 'login_tty'.
25812         * lib/login_tty.c: New file.
25813         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25814         * modules/login_tty: New file.
25815         * doc/glibc-functions/login_tty.texi: Mention the new module.
25816
25817 2010-03-21  Bruno Haible  <bruno@clisp.org>
25818
25819         login_tty: Documentation.
25820         * doc/glibc-functions/login_tty.texi: New file.
25821         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25822
25823 2010-03-21  Bruno Haible  <bruno@clisp.org>
25824
25825         pty: Consistent macro naming.
25826         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25827         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25828         * modules/pty (configure.ac): Update.
25829
25830 2010-03-21  Bruno Haible  <bruno@clisp.org>
25831
25832         Tests for openpty: Make stricter.
25833         * tests/test-openpty.c (main): Add test of canonical processing and
25834         erase.
25835         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25836
25837         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25838         * lib/openpty.c (openpty): New replacement function.
25839         * lib/pty.in.h: Include <termios.h>.
25840         (openpty): Update declaration. Add comments.
25841         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25842         is not declared, arrange to provide the replacement. Check for _getpty
25843         and posix_openpt.
25844         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25845         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25846         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25847         * modules/pty-tests (test_pty_c___LDADD): New variable.
25848         * doc/glibc-functions/openpty.texi: More supported platforms.
25849
25850 2010-03-21  Bruno Haible  <bruno@clisp.org>
25851
25852         setenv: Tweaks.
25853         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25854         the test program.
25855         * doc/posix-functions/setenv.texi: Update platforms list.
25856
25857 2010-03-21  Bruno Haible  <bruno@clisp.org>
25858
25859         New module 'unlockpt'.
25860         * lib/unlockpt.c: New file, from glibc with modifications.
25861         * m4/unlockpt.m4: New file.
25862         * modules/unlockpt: New file.
25863         * lib/stdlib.in.h (unlockpt): New declaration.
25864         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25865         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25866         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25867         HAVE_UNLOCKPT.
25868         * doc/posix-functions/unlockpt.texi: Mention the new module.
25869         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25870         * config/srclist.txt: Add unlockpt.c (commented).
25871
25872 2010-03-21  Jim Meyering  <meyering@redhat.com>
25873
25874         maint.mk: prohibit inclusion of "intprops.h" without use
25875         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25876
25877 2010-03-21  Bruno Haible  <bruno@clisp.org>
25878
25879         New module 'grantpt'.
25880         * lib/grantpt.c: New file, from glibc with modifications.
25881         * m4/grantpt.m4: New file.
25882         * modules/grantpt: New file.
25883         * lib/stdlib.in.h (grantpt): New declaration.
25884         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25885         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25886         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25887         HAVE_GRANTPT.
25888         * doc/posix-functions/grantpt.texi: Mention the new module.
25889         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25890         * config/srclist.txt: Add grantpt.c (commented).
25891
25892 2010-03-21  Bruno Haible  <bruno@clisp.org>
25893
25894         New module 'pt_chown'.
25895         * lib/pt_chown.c: New file, from glibc with modifications.
25896         * lib/pty-private.h: New file, from glibc with modifications.
25897         * modules/pt_chown: New file.
25898         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25899
25900 2010-03-21  Bruno Haible  <bruno@clisp.org>
25901
25902         Tests for module 'ptsname'.
25903         * modules/ptsname-tests: New file.
25904         * tests/test-ptsname.c: New file.
25905
25906         New module 'ptsname'.
25907         * lib/ptsname.c: New file, from glibc with modifications.
25908         * m4/ptsname.m4: New file.
25909         * modules/ptsname: New file.
25910         * lib/stdlib.in.h (ptsname): New declaration.
25911         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25912         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25913         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25914         HAVE_PTSNAME.
25915         * doc/posix-functions/ptsname.texi: Mention the new module.
25916         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25917         * config/srclist.txt: Add ptsname.c (commented).
25918
25919 2010-03-21  Bruno Haible  <bruno@clisp.org>
25920
25921         Tests for module 'ttyname_r'.
25922         * modules/ttyname_r-tests: New file.
25923         * tests/test-ttyname_r.c: New file.
25924
25925         New module 'ttyname_r'.
25926         * lib/ttyname_r.c: New file.
25927         * m4/ttyname_r.m4: New file.
25928         * modules/ttyname_r: New file.
25929         * lib/unistd.in.h (ttyname_r): New declaration.
25930         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25931         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25932         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25933         HAVE_TTYNAME_R.
25934         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25935         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25936
25937 2010-03-20  Bruno Haible  <bruno@clisp.org>
25938
25939         signal: Undefine macro definitions in C++ mode.
25940         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25941         sigfillset): Undefine macro definitions from the system header in C++
25942         mode.
25943         Reported by John W. Eaton <jwe@gnu.org>.
25944
25945 2010-03-20  Bruno Haible  <bruno@clisp.org>
25946
25947         Ensure no #include statements inside extern "C" { ... }.
25948         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25949         contain #include statements.
25950         * lib/time.in.h: Likewise.
25951
25952 2010-03-20  Bruno Haible  <bruno@clisp.org>
25953
25954         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25955         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25956         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25957         Reported by John W. Eaton <jwe@gnu.org>.
25958
25959 2010-03-20  Bruno Haible  <bruno@clisp.org>
25960
25961         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25962         Reported by Jim Meyering.
25963
25964 2010-03-20  Bruno Haible  <bruno@clisp.org>
25965
25966         pipe: Set errno upon failure.
25967         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25968         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25969         errno value in error message.
25970
25971 2010-03-20  Bruno Haible  <bruno@clisp.org>
25972             Jim Meyering  <meyering@redhat.com>
25973
25974         lchown: Avoid "unused variable" warning.
25975         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25976
25977 2010-03-20  Bruno Haible  <bruno@clisp.org>
25978
25979         Work around unlink() bug on MacOS X 10.5.6.
25980         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25981         attempting to unlink a parent directory.
25982         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25983         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25984         activate for the replacement function.
25985         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25986
25987 2010-03-20  Bruno Haible  <bruno@clisp.org>
25988
25989         Fix link errors on Solaris 8.
25990         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25991         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25992
25993 2010-03-19  Jim Meyering  <meyering@redhat.com>
25994
25995         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25996         The _LIBC implementation of build_range_exp correctly honors the
25997         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25998         However, the non-_LIBC implementation would ignore that syntax-bit
25999         flag and return REG_ERANGE unconditionally.
26000         This change makes it honor that flag.
26001         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26002         Make two pointer parameters "const".
26003         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26004         (parse_bracket_exp): Update caller.
26005
26006         regex.m4: correct the reversed range endpoint ([b-a]) test
26007         * m4/regex.m4: When requiring that [b-a] evoke failure,
26008         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26009         test pass once again for x86-based systems.
26010
26011 2010-03-19  Bruno Haible  <bruno@clisp.org>
26012
26013         scandir: Fix link error on Solaris 8.
26014         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26015         macros.
26016
26017 2010-03-19  Bruno Haible  <bruno@clisp.org>
26018
26019         getusershell: Fix documentation.
26020         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26021         module.
26022         * doc/glibc-functions/setusershell.texi: Likewise.
26023
26024         getusershell: Provide declaration, missing on Solaris 9.
26025         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26026         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26027         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26028         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26030         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26031         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26032         HAVE_GETUSERSHELL.
26033         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26034
26035 2010-03-19  Bruno Haible  <bruno@clisp.org>
26036
26037         wctype: Provide iswblank function.
26038         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26039         exists and is fine.
26040         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26041         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26042         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26043         * doc/posix-functions/iswblank.texi: Update.
26044
26045 2010-03-19  Bruno Haible  <bruno@clisp.org>
26046
26047         Tests of module 'pty' in C++ mode.
26048         * modules/pty-tests: New file.
26049         * tests/test-pty-c++.cc: New file.
26050         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26051
26052 2010-03-19  Eric Blake  <eblake@redhat.com>
26053
26054         logb: fix documentation
26055         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26056         1.5 declaration bug.
26057
26058         forkpty, openpty: prefer glibc's const-safe prototype
26059         * lib/forkpty.c (rpl_forkpty): New file.
26060         * lib/openpty.c (rpl_openpty): Likewise.
26061         * modules/forkpty (Files): Distribute it.
26062         * modules/openpty (Files): Likewise.
26063         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26064         check...
26065         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26066         replacement for for non-const BSD signature.
26067         * modules/pty (Makefile.am): Substitute witnesses.
26068         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26069         * tests/test-forkpty.c: Update signature check.
26070         * tests/test-openpty.c: Likewise.
26071         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26072         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26073
26074         forkpty, openpty: split functions into new modules
26075         * modules/pty (Makefile.am): Substitute new witnesses.
26076         (Libraries): Move library detection...
26077         * modules/forkpty: ...into new module.
26078         * modules/openpty: Another new module.
26079         * modules/pty-tests: Rename and split...
26080         * modules/forkpty-tests: ...to this...
26081         * modules/openpty-tests: ...and this.
26082         * tests/test-pty.c: Rename and split...
26083         * tests/test-forkpty.c: ...to this...
26084         * tests/test-openpty.c: ...and this.
26085         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26086         (gl_PTY): Split library searching...
26087         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26088         (gl_FORKPTY, gl_OPENPTY): New macros.
26089         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26090         * NEWS: Mention the split.
26091         * MODULES.html.sh (Misc): Document the modules.
26092         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26093         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26094
26095         pty: improve replacement header
26096         * lib/pty.in.h: New file.
26097         * modules/pty (Files): Ship it.
26098         (Makefile.am): Always build replacement.
26099         * m4/pty.m4: Rename...
26100         * m4/pty_h.m4: ...to this.
26101         (gl_PTY): Modernize setting of witness macros; update check of
26102         forkpty to take proper advantage of cache.
26103         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26104
26105         getopt: avoid compiler warning
26106         * lib/getopt.c (attribute_hidden): Remove unused macro.
26107
26108 2010-03-18  Bruno Haible  <bruno@clisp.org>
26109
26110         Fix link errors on Solaris 8.
26111         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26112         * modules/search-tests (test_search_c___LDADD): Likewise.
26113         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26114         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26115         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26116         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26117         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26118         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26119         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26120
26121 2010-03-18  Bruno Haible  <bruno@clisp.org>
26122
26123         Fix bug introduced on 2010-03-14.
26124         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26125         (gl_SPAWN_H): Require it.
26126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26127         Reported by Simon Josefsson.
26128
26129 2010-03-18  Bruno Haible  <bruno@clisp.org>
26130
26131         Fix typo introduced on 2009-12-31.
26132         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26133         posix_spawn_file_actions_adddup2.
26134
26135 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26136         and Eric Blake  <eblake@redhat.com>
26137
26138         test-vc-list-files-git: make more robust
26139         * tests/test-vc-list-files-git.sh: Unset problematic environment
26140         variables.  Chain commands together.
26141
26142 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26143
26144         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26145         `AC_CHECK_DECL' invocation.
26146
26147 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26148
26149         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26150         appears before executable statements. Suggested by Petr Sumbera
26151         <Petr.Sumbera@Sun.COM>.
26152
26153 2010-03-14  Bruno Haible  <bruno@clisp.org>
26154
26155         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26156         portability problems. Instead use a simpler test.
26157         (main): Check that invalid arguments are rejected only on Linux.
26158
26159 2010-03-14  Bruno Haible  <bruno@clisp.org>
26160
26161         Fix bug introduced on 2009-12-31.
26162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26163         gl_PREREQ_SYS_H_WINSOCK2 always.
26164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26165         SYS_SOCKET_H variable.
26166         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26167         Update comments.
26168         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26169         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26170         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26172         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26173
26174 2010-03-14  Bruno Haible  <bruno@clisp.org>
26175
26176         Fix values returned by sinl, cosl.
26177         * lib/trigl.h: Add specification comments.
26178         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26179         that combines the values from the precomputed table with the values of
26180         the Chebyshev polynomials.
26181
26182 2010-03-14  Bruno Haible  <bruno@clisp.org>
26183
26184         Fix compilation error when modules 'posix_spawn[p]' are not used.
26185         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26187
26188 2010-03-14  Bruno Haible  <bruno@clisp.org>
26189
26190         Fix compilation error on mingw when module 'time_r' is not used.
26191         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26192         is 1.
26193         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26194         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26195         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26196         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26197
26198 2010-03-14  Bruno Haible  <bruno@clisp.org>
26199
26200         Fix compilation error with Sun C.
26201         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26202         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26203         instead of GCC specific ULONG_LONG_MAX.
26204         * lib/xstrtoll.c: Likewise.
26205         * lib/xstrtoull.c: Likewise.
26206
26207 2010-03-13  Bruno Haible  <bruno@clisp.org>
26208
26209         Allow the user to disable C++ code and tests.
26210         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26211         (gl_PROG_ANSI_CXX): Require it.
26212
26213 2010-03-13  Bruno Haible  <bruno@clisp.org>
26214
26215         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26216         cases.
26217
26218 2010-03-13  Bruno Haible  <bruno@clisp.org>
26219
26220         Test that gnulib does not break the standard C++ headers.
26221         * tests/test-locale-c++2.cc: New file.
26222         * modules/locale-tests (Files): Add it.
26223         (Makefile.am): Compile it for test-locale-c++.
26224         * tests/test-math-c++2.cc: New file.
26225         * modules/math-tests (Files): Add it.
26226         (Makefile.am): Compile it for test-math-c++.
26227         * tests/test-signal-c++2.cc: New file.
26228         * modules/signal-tests (Files): Add it.
26229         (Makefile.am): Compile it for test-signal-c++.
26230         * tests/test-stdio-c++2.cc: New file.
26231         * modules/stdio-tests (Files): Add it.
26232         (Makefile.am): Compile it for test-stdio-c++.
26233         * tests/test-stdlib-c++2.cc: New file.
26234         * modules/stdlib-tests (Files): Add it.
26235         (Makefile.am): Compile it for test-stdlib-c++.
26236         * tests/test-string-c++2.cc: New file.
26237         * modules/string-tests (Files): Add it.
26238         (Makefile.am): Compile it for test-string-c++.
26239         * tests/test-time-c++2.cc: New file.
26240         * modules/time-tests (Files): Add it.
26241         (Makefile.am): Compile it for test-time-c++.
26242         Reported by John W. Eaton <jwe@gnu.org>.
26243
26244 2010-03-13  Bruno Haible  <bruno@clisp.org>
26245
26246         * gnulib-tool (func_usage): Clarify which options are available for
26247         --create-testdir and --create-megatestdir.
26248
26249 2010-03-13  Bruno Haible  <bruno@clisp.org>
26250
26251         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26252         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26253         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26254         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26255         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26256         when appropriate.
26257         Reported by Jim Meyering.
26258
26259 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26260
26261         * gnulib-tool (func_import): Explain origin of code.
26262
26263 2010-03-12  Bruno Haible  <bruno@clisp.org>
26264
26265         Fix problem with automake's definition of CXXLINK.
26266         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26267         Reported by Simon Josefsson and Ludovic Courtès.
26268
26269 2010-03-12  Bruno Haible  <bruno@clisp.org>
26270
26271         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26272         stable releases.
26273
26274 2010-03-11  Bruno Haible  <bruno@clisp.org>
26275
26276         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26277         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26278         whether the system provides one variant or multiple variants of the
26279         function.
26280         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26281         C++ compilers.
26282         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26283         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26284         Reported by Jim Meyering.
26285
26286 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26287
26288         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26289
26290 2010-03-08  Bruno Haible  <bruno@clisp.org>
26291
26292         gnulib-tool: Add support for --libtool in --create-testdir.
26293         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26294         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26295
26296 2010-03-08  Eric Blake  <eblake@redhat.com>
26297
26298         gnulib-tool.texi: mention possibility of git submodule
26299         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26300         submodules.
26301         * doc/.gitignore: Ignore another generated file.
26302
26303 2010-03-08  Karl Berry  <karl@gnu.org>
26304
26305         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26306         of committing gnulib files while skipping others.
26307
26308 2010-03-07  Bruno Haible  <bruno@clisp.org>
26309
26310         Tests of module 'wctype' in C++ mode.
26311         * tests/test-wctype-c++.cc: New file.
26312         * modules/wctype-tests (Files): Add it and tests/signature.h.
26313         (Depends-on): Add ansi-c++-opt.
26314         (Makefile.am): Arrange to compile and run test-wctype-c++.
26315
26316         Tests of module 'wchar' in C++ mode.
26317         * tests/test-wchar-c++.cc: New file.
26318         * modules/wchar-tests (Files): Add it and tests/signature.h.
26319         (Depends-on): Add ansi-c++-opt.
26320         (Makefile.am): Arrange to compile and run test-wchar-c++.
26321         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26322         gl_MODULE_INDICATOR.
26323
26324         Tests of module 'unistd' in C++ mode.
26325         * tests/test-unistd-c++.cc: New file.
26326         * modules/unistd-tests (Files): Add it and tests/signature.h.
26327         (Depends-on): Add ansi-c++-opt.
26328         (Makefile.am): Arrange to compile and run test-unistd-c++.
26329         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26330         gl_MODULE_INDICATOR.
26331
26332         Tests of module 'time' in C++ mode.
26333         * tests/test-time-c++.cc: New file.
26334         * modules/time-tests (Files): Add it and tests/signature.h.
26335         (Depends-on): Add ansi-c++-opt.
26336         (Makefile.am): Arrange to compile and run test-time-c++.
26337         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26338
26339         Tests of module 'sys_time' in C++ mode.
26340         * tests/test-sys_time-c++.cc: New file.
26341         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26342         (Depends-on): Add ansi-c++-opt.
26343         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26344         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26345         gl_MODULE_INDICATOR.
26346
26347         Tests of module 'sys_stat' in C++ mode.
26348         * tests/test-sys_stat-c++.cc: New file.
26349         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26350         (Depends-on): Add ansi-c++-opt.
26351         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26352         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26353         gl_MODULE_INDICATOR.
26354
26355         Tests of module 'sys_socket' in C++ mode.
26356         * tests/test-sys_socket-c++.cc: New file.
26357         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26358         (Depends-on): Add ansi-c++-opt.
26359         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26360         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26361         gl_MODULE_INDICATOR.
26362
26363         Tests of module 'sys_select' in C++ mode.
26364         * tests/test-sys_select-c++.cc: New file.
26365         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26366         (Depends-on): Add ansi-c++-opt.
26367         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26368         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26369         gl_MODULE_INDICATOR.
26370
26371         Tests of module 'sys_ioctl' in C++ mode.
26372         * tests/test-sys_ioctl-c++.cc: New file.
26373         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26374         (Depends-on): Add ansi-c++-opt.
26375         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26377         gl_MODULE_INDICATOR.
26378
26379         Tests of module 'string' in C++ mode.
26380         * tests/test-string-c++.cc: New file.
26381         * modules/string-tests (Files): Add it and tests/signature.h.
26382         (Depends-on): Add ansi-c++-opt.
26383         (Makefile.am): Arrange to compile and run test-string-c++.
26384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26385         gl_MODULE_INDICATOR.
26386
26387         Tests of module 'stdlib' in C++ mode.
26388         * tests/test-stdlib-c++.cc: New file.
26389         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26390         (Depends-on): Add ansi-c++-opt.
26391         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26392         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26393         gl_MODULE_INDICATOR.
26394
26395         Tests of module 'stdio' in C++ mode.
26396         * tests/test-stdio-c++.cc: New file.
26397         * modules/stdio-tests (Files): Add it and tests/signature.h.
26398         (Depends-on): Add ansi-c++-opt.
26399         (Makefile.am): Arrange to compile and run test-stdio-c++.
26400         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26401         gl_MODULE_INDICATOR.
26402
26403         Tests of module 'spawn' in C++ mode.
26404         * tests/test-spawn-c++.cc: New file.
26405         * modules/spawn-tests (Files): Add it and tests/signature.h.
26406         (Depends-on): Add ansi-c++-opt.
26407         (Makefile.am): Arrange to compile and run test-spawn-c++.
26408         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26409         gl_MODULE_INDICATOR.
26410
26411         Tests of module 'signal' in C++ mode.
26412         * tests/test-signal-c++.cc: New file.
26413         * modules/signal-tests (Files): Add it and tests/signature.h.
26414         (Depends-on): Add ansi-c++-opt.
26415         (Makefile.am): Arrange to compile and run test-signal-c++.
26416         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26417         gl_MODULE_INDICATOR.
26418
26419         Tests of module 'search' in C++ mode.
26420         * tests/test-search-c++.cc: New file.
26421         * modules/search-tests (Files): Add it and tests/signature.h.
26422         (Depends-on): Add ansi-c++-opt.
26423         (Makefile.am): Arrange to compile and run test-search-c++.
26424         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26425         gl_MODULE_INDICATOR.
26426
26427         Tests of module 'math' in C++ mode.
26428         * tests/test-math-c++.cc: New file.
26429         * modules/math-tests (Files): Add it and tests/signature.h.
26430         (Depends-on): Add ansi-c++-opt.
26431         (Makefile.am): Arrange to compile and run test-math-c++.
26432         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26433
26434         Tests of module 'locale' in C++ mode.
26435         * tests/test-locale-c++.cc: New file.
26436         * modules/locale-tests (Files): Add it and tests/signature.h.
26437         (Depends-on): Add ansi-c++-opt.
26438         (Makefile.am): Arrange to compile and run test-locale-c++.
26439         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26440         gl_MODULE_INDICATOR.
26441
26442         Tests of module 'langinfo' in C++ mode.
26443         * tests/test-langinfo-c++.cc: New file.
26444         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26445         (Depends-on): Add ansi-c++-opt.
26446         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26447         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26448         gl_MODULE_INDICATOR.
26449
26450         Tests of module 'iconv-h' in C++ mode.
26451         * tests/test-iconv-h-c++.cc: New file.
26452         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26453         (Depends-on): Add ansi-c++-opt.
26454         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26455
26456         Tests of module 'glob' in C++ mode.
26457         * tests/test-glob-c++.cc: New file.
26458         * modules/glob-tests (Files): Add it.
26459         (Depends-on): Add ansi-c++-opt.
26460         (Makefile.am): Arrange to compile and run test-glob-c++.
26461
26462         Tests of module 'fcntl-h' in C++ mode.
26463         * tests/test-fcntl-h-c++.cc: New file.
26464         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26465         (Depends-on): Add ansi-c++-opt.
26466         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26467         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26468         gl_MODULE_INDICATOR.
26469
26470         Tests of module 'dirent' in C++ mode.
26471         * tests/test-dirent-c++.cc: New file.
26472         * modules/dirent-tests (Files): Add it and tests/signature.h.
26473         (Depends-on): Add ansi-c++-opt.
26474         (Makefile.am): Arrange to compile and run test-dirent-c++.
26475         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26476         gl_MODULE_INDICATOR.
26477
26478         New module 'ansi-c++-opt'.
26479         * modules/ansi-c++-opt: New file.
26480         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26481
26482         Document C++ namespace mode.
26483         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26484
26485         wctype: Avoid #define replacements in C++ mode.
26486         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26487         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26488         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26489         In C++, define a namespaced alias symbol.
26490         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26491         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26492         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26493         rule.
26494
26495         wchar: Avoid #define replacements in C++ mode.
26496         * lib/wchar.in.h: Include c++defs.h.
26497         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26498         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26499         symbol.
26500         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26501         * modules/wchar (Depends-on): Add c++defs.
26502         (Makefile.am): Update wchar.h rule.
26503
26504         unistd: Avoid #define replacements in C++ mode.
26505         * lib/unistd.in.h: Include c++defs.h.
26506         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26507         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26508         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26509         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26510         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26511         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26512         symbol.
26513         (environ): Update.
26514         * modules/unistd (Depends-on): Add c++defs.
26515         (Makefile.am): Update unistd.h rule.
26516
26517         time: Avoid #define replacements in C++ mode.
26518         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26519         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26520         define a namespaced alias symbol.
26521         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26522         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26523         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26524         * modules/time (Depends-on): Add c++defs, warn-on-use.
26525         (Makefile.am): Update time.h rule.
26526         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26527         * modules/nanosleep (configure.ac): Likewise.
26528         * modules/strptime (configure.ac): Likewise.
26529         * modules/timegm (configure.ac): Likewise.
26530
26531         sys_time: Avoid #define replacements in C++ mode.
26532         * lib/sys_time.in.h: Include c++defs.h.
26533         (gettimeofday): In C++, define a namespaced alias symbol.
26534         * modules/sys_time (Depends-on): Add c++defs.
26535         (Makefile.am): Update sys/time.h rule.
26536
26537         sys_stat: Avoid #define replacements in C++ mode.
26538         * lib/sys_stat.in.h: Include c++defs.h.
26539         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26540         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26541         namespaced alias symbol.
26542         In C++, define a namespaced alias symbol.
26543         * modules/sys_stat (Depends-on): Add c++defs.
26544         (Makefile.am): Update sys/stat.h rule.
26545
26546         sys_socket: Avoid #define replacements in C++ mode.
26547         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26548         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26549         definitions also when the system has a <sys/socket.h>.
26550         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26551         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26552         In C++, define a namespaced alias symbol.
26553         * modules/sys_socket (Depends-on): Add c++defs.
26554         (Makefile.am): Update sys/socket.h rule.
26555
26556         sys_select: Avoid #define replacements in C++ mode.
26557         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26558         definitions also when the system has a <sys/select.h>.
26559         (select): In C++, define a namespaced alias symbol.
26560         * modules/sys_select (Depends-on): Add c++defs.
26561         (Makefile.am): Update sys/select.h rule.
26562
26563         sys_ioctl: Avoid #define replacements in C++ mode.
26564         * lib/sys_ioctl.in.h: Include c++defs.h.
26565         (ioctl): In C++, define a namespaced alias symbol.
26566         * modules/sys_ioctl (Depends-on): Add c++defs.
26567         (Makefile.am): Update sys/ioctl.h rule.
26568
26569         string: Avoid #define replacements in C++ mode.
26570         * lib/string.in.h: Include c++defs.h.
26571         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26572         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26573         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26574         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26575         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26576         * modules/string (Depends-on): Add c++defs.
26577         (Makefile.am): Update string.h rule.
26578
26579         stdlib: Avoid #define replacements in C++ mode.
26580         * lib/stdlib.in.h: Include c++defs.h.
26581         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26582         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26583         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26584         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26585         symbol.
26586         * modules/stdlib (Depends-on): Add c++defs.
26587         (Makefile.am): Update stdlib.h rule.
26588
26589         stdio: Avoid #define replacements in C++ mode.
26590         * lib/stdio.in.h: Include c++defs.h.
26591         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26592         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26593         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26594         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26595         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26596         namespaced alias symbol.
26597         * modules/stdio (Depends-on): Add c++defs.
26598         (Makefile.am): Update stdio.h rule.
26599
26600         spawn: Avoid #define replacements in C++ mode.
26601         * lib/spawn.in.h: Include c++defs.h.
26602         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26603         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26604         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26605         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26606         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26607         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26608         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26609         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26610         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26611         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26612         In C++, define a namespaced alias symbol.
26613         * modules/spawn (Depends-on): Add c++defs.
26614         (Makefile.am): Update spawn.h rule.
26615
26616         signal: Avoid #define replacements in C++ mode.
26617         * lib/signal.in.h: Include c++defs.h.
26618         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26619         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26620         namespaced alias symbol.
26621         * modules/signal (Depends-on): Add c++defs.
26622         (Makefile.am): Update signal.h rule.
26623
26624         search: Avoid #define replacements in C++ mode.
26625         * lib/search.in.h: Include c++defs.h.
26626         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26627         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26628         symbol.
26629         * modules/search (Depends-on): Add c++defs.
26630         (Makefile.am): Update search.h rule.
26631
26632         math: Avoid #define replacements in C++ mode.
26633         * lib/math.in.h: Include c++defs.h.
26634         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26635         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26636         trunc, truncl): In C++, define a namespaced alias symbol.
26637         * modules/math (Depends-on): Add c++defs.
26638         (Makefile.am): Update math.h rule.
26639
26640         locale: Avoid #define replacements in C++ mode.
26641         * lib/locale.in.h: Include c++defs.h.
26642         (duplocale): In C++, define a namespaced alias symbol.
26643         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26644         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26645         * modules/locale (Depends-on): Add c++defs.
26646         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26647
26648         langinfo: Avoid #define replacements in C++ mode.
26649         * lib/langinfo.in.h: Include c++defs.h.
26650         (nl_langinfo): In C++, define a namespaced alias symbol.
26651         * modules/langinfo (Depends-on): Add c++defs.
26652         (Makefile.am): Update langinfo.h rule.
26653
26654         iconv-h: Avoid #define replacements in C++ mode.
26655         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26656         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26657         symbol.
26658         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26659         whenever iconv is present.
26660         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26661         (Makefile.am): Update iconv.h rule.
26662
26663         glob: Avoid #define replacements in C++ mode.
26664         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26665         (_gl_glob_errfunc_fn): New type.
26666         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26667         symbol.
26668         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26669         (Makefile.am): Update glob.h rule.
26670
26671         fcntl-h: Avoid #define replacements in C++ mode.
26672         * lib/fcntl.in.h: Include c++defs.h.
26673         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26674         * modules/fcntl-h (Depends-on): Add c++defs.
26675         (Makefile.am): Update fcntl.h rule.
26676
26677         dirent: Avoid #define replacements in C++ mode.
26678         * lib/dirent.in.h: Include c++defs.h.
26679         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26680         namespaced alias symbol.
26681         (dirfd): Update declaration.
26682         * modules/dirent (Depends-on): Add c++defs.
26683         (Makefile.am): Update dirent.h rule.
26684
26685         ctype: Make it usable in C++ code.
26686         * lib/ctype.in.h: Include c++defs.h.
26687         (isblank): Declare as extern "C".
26688         * modules/ctype (Depends-on): Add c++defs.
26689         (Makefile.am): Update ctype.h rule.
26690
26691         New module 'c++defs'.
26692         * modules/c++defs: New file.
26693         * build-aux/c++defs.h: New file.
26694         Reported by John W. Eaton <jwe@gnu.org>.
26695
26696 2010-03-07  Bruno Haible  <bruno@clisp.org>
26697
26698         logb: Provide missing declaration for Cygwin.
26699         * lib/math.in.h (logb): New declaration.
26700         * m4/logb.m4: New file.
26701         * modules/logb (Files): Add m4/logb.m4.
26702         (Depends-on): Add math.
26703         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26704         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26706         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26707         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26708
26709 2010-03-07  Bruno Haible  <bruno@clisp.org>
26710
26711         Fix test-cond link error.
26712         * tests/test-cond.c: Include <stdio.h>.
26713
26714 2010-03-07  Bruno Haible  <bruno@clisp.org>
26715
26716         Fix test-dirent-safer link error.
26717         * modules/dirent-safer-tests (Makefile.am): Define
26718         test_dirent_safer_LDADD.
26719
26720 2010-03-07  Bruno Haible  <bruno@clisp.org>
26721
26722         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26723         among default module list.
26724
26725 2010-03-07  Bruno Haible  <bruno@clisp.org>
26726
26727         Fix link error on platforms with GNU libiconv.
26728         * modules/unistr/u8-strcoll-tests (Makefile): Define
26729         test_u8_strcoll_LDADD.
26730         * modules/unistr/u16-strcoll-tests (Makefile): Define
26731         test_u16_strcoll_LDADD.
26732         * modules/unistr/u32-strcoll-tests (Makefile): Define
26733         test_u32_strcoll_LDADD.
26734
26735 2010-03-07  Bruno Haible  <bruno@clisp.org>
26736
26737         Use POSIX declarations for socket functions.
26738         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26739         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26740         rpl_sendto): Change declaration to match POSIX.
26741         * lib/connect.c (rpl_connect): Likewise.
26742         * lib/accept.c (rpl_accept): Likewise.
26743         * lib/bind.c (rpl_bind): Likewise.
26744         * lib/getpeername.c (rpl_getpeername): Likewise.
26745         * lib/getsockname.c (rpl_getsockname): Likewise.
26746         * lib/recv.c (rpl_recv): Likewise.
26747         * lib/send.c (rpl_send): Likewise.
26748         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26749         * lib/sendto.c (rpl_sendto): Likewise.
26750
26751 2010-03-06  Bruno Haible  <bruno@clisp.org>
26752
26753         Clarify access, euidaccess, faccessat.
26754         * doc/posix-functions/faccessat.texi: Mention security problem under
26755         "Other problems", not "Portability problems".
26756         * doc/posix-functions/access.texi: Likewise. Mention a related security
26757         problem.
26758         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26759         * lib/euidaccess.c: Add comments about platforms.
26760         * lib/unistd.in.h (access, euidaccess): Add warnings.
26761
26762 2010-03-07  Bruno Haible  <bruno@clisp.org>
26763
26764         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26765         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26766         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26767         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26768         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26769         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26770         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26771         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26772         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26773         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26774         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26775         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26776         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26777         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26778         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26779         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26780         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26781         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26782         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26783         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26784         Likewise.
26785         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26786         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26787         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26788         Likewise.
26789         * tests/test-spawn.c (main): Make it work when
26790         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26791
26792 2010-03-07  Bruno Haible  <bruno@clisp.org>
26793
26794         Fix incorrect Makefile.am generation in German locale.
26795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26796         Execute sed command with character range in C locale.
26797
26798 2010-03-06  Bruno Haible  <bruno@clisp.org>
26799
26800         Tests for module 'iconv-h'.
26801         * modules/iconv-h-tests: New file.
26802         * tests/test-iconv-h.c: New file.
26803
26804         New module 'iconv-h'.
26805         * modules/iconv-h: New file.
26806         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26807         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26808         (configure.ac): Remove gl_ICONV_H.
26809         (Makefile.am): Remove rule for iconv.h.
26810
26811 2010-03-06  Bruno Haible  <bruno@clisp.org>
26812
26813         More consistent naming of *.m4 files.
26814         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26815         * modules/wctype (Files): Update.
26816
26817         More consistent naming of *.m4 files.
26818         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26819         * modules/wchar (Files): Update.
26820
26821 2010-03-06  Jim Meyering  <meyering@redhat.com>
26822
26823         euidaccess: relax license to LGPLv2+
26824         * modules/euidaccess (License): Relax to LGPLv2+.
26825
26826 2010-03-06  Bruno Haible  <bruno@clisp.org>
26827
26828         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26829         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26830         (Makefile.am): Augment lib_SOURCES instead.
26831
26832 2010-03-04  Jim Meyering  <meyering@redhat.com>
26833
26834         utime: remove obsolete module
26835         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26836         unnecessary for years, and has been marked as obsolete for 10 months.
26837         * modules/utime: Remove file.
26838         * lib/utime.c: Remove file.
26839         * m4/utime.m4: Remove file.
26840         * m4/utimes-null.m4: Remove file.
26841         * doc/posix-functions/utime.texi (utime): Remove reference to
26842         the module.  Move the sole "fixed by gnulib" item into the
26843         "problems not fixed by Gnulib" list.
26844         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26845
26846 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26847
26848         * modules/exit (License): Relax license to LGPLv2+.
26849         (Status): Mark as obsolete.
26850         * NEWS: Mention deprecated 'exit' module.
26851         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26852         of now obsolete 'exit'.
26853
26854 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26855
26856         fts-lgpl: remove unused module
26857         * modules/fts-lgpl: Remove.
26858         * MODULES.html.sh (func_all_modules): Adjust.
26859         * check-module (find_included_lib_files): Adjust.
26860         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26861
26862 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26863
26864         copy-acl: enhance Solaris ACL error handling
26865         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26866         * lib/set-mode-acl.c (qset_acl): Likewise.
26867
26868 2010-03-02  Bruno Haible  <bruno@clisp.org>
26869
26870         spawn: Don't override the system defined values on FreeBSD 8.
26871         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26872         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26873         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26874         if HAVE_POSIX_SPAWN is 1.
26875         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26876
26877 2010-03-01  Bruno Haible  <bruno@clisp.org>
26878
26879         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26880         regarding Automake.
26881
26882 2010-02-25  Bruno Haible  <bruno@clisp.org>
26883
26884         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26885         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26886         setting, not afterwards.
26887         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26888
26889 2010-02-24  Eric Blake  <eblake@redhat.com>
26890
26891         bootstrap, git-version-gen: use timestamp
26892         * build-aux/git-version-gen (scriptversion): Force UTC.
26893         * build-aux/bootstrap (scriptversion): New variable.
26894
26895         bootstrap: allow older git
26896         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26897         older than 1.6.4.  Requested by the libvirt project.
26898
26899 2010-02-23  Eric Blake  <eblake@redhat.com>
26900
26901         warn-on-use: work with old autoconf
26902         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26903         AS_VAR semantics of autoconf 2.60.
26904         Reported by Bruno Haible.
26905
26906         bootstrap: improve some comments
26907         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26908         clarification comments.
26909
26910         gettimeofday: provide correct function
26911         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26912         when replacement is declared, otherwise provide gettimeofday.
26913         Reported by Michael Goffioul.
26914
26915 2010-02-23  Jim Meyering  <meyering@redhat.com>
26916
26917         lib-ignore: relax license to "unlimited", not LGPLv2+
26918         * modules/lib-ignore (License): Relax to "unlimited".
26919
26920 2010-02-23  Jim Meyering  <meyering@redhat.com>
26921
26922         lib-ignore: relax license to LGPLv2+
26923         * modules/lib-ignore (License): Relax to LGPLv2+.
26924
26925 2010-02-22  Eric Blake  <eblake@redhat.com>
26926
26927         lseek: avoid bash 3.2 broken pipe bug
26928         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26929         warning from bash 3.2.
26930         Reported by Ben Pfaff, with analysis from Bruno Haible.
26931
26932         bootstrap: support non-FSF copyright holder
26933         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26934         bootstrap.conf override of COPYRIGHT_HOLDER.
26935         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26936
26937         bootstrap: interoperate with gettext 0.14.1
26938         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26939
26940         bootstrap: allow for alternate submodule location
26941         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26942         hardcoding submodule location.
26943         (gnulib_mk): Allow direct use of Makefile.am.
26944
26945         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26946         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26947         rather than reconfiguring where the submodule points.
26948
26949         gettimeofday: restore support for platforms that lack function
26950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26951         replacement if function is missing.
26952         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26953         * modules/sys_time (Makefile.am): Substitute it.
26954         * lib/sys_time.in.h (gettimeofday): Check it.
26955         Reported by Michael Goffioul.
26956
26957 2010-02-21  Bruno Haible  <bruno@clisp.org>
26958
26959         * lib/stdio.in.h (obstack_printf): Fix typo.
26960
26961 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26962
26963         vc-list-files: use bzr ls's -R option
26964         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26965         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26966
26967 2010-02-21  Jim Meyering  <meyering@redhat.com>
26968
26969         init.sh: fix EXEEXT shims to work also for names like test-prog
26970         * tests/init.sh: Re-exec a better shell, when needed.
26971         If the current shell lacks support for posix $(...), an init.sh-using
26972         test will now try to find a shell that supports that.  If EXEEXT is
26973         nonempty, we also require support for hyphen-in-alias-name and shell
26974         substitutions like ${var#glob}.  Failure to find such a shell results
26975         in a skipped test.
26976
26977 2010-02-21  Bruno Haible  <bruno@clisp.org>
26978
26979         Really work around around "broken pipe" error message from bash 3.2.
26980         * gnulib-tool (func_reset_sigpipe): Remove function.
26981         (echo): In bash 3.2, define to a function that uses printf.
26982         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26983
26984 2010-02-20  Bruno Haible  <bruno@clisp.org>
26985
26986         Restore support for automake 1.9.6 with autoconf 2.61.
26987         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26988         Reported by James Youngman <jay@gnu.org>.
26989
26990 2010-02-20  Bruno Haible  <bruno@clisp.org>
26991
26992         Improve *printf warning condition.
26993         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26994         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26995         and the function is overridden due to SIGPIPE emulation.
26996
26997 2010-02-20  Bruno Haible  <bruno@clisp.org>
26998
26999         * lib/stdio.in.h: Tweak comments.
27000
27001 2010-02-19  Bruno Haible  <bruno@clisp.org>
27002
27003         Make it easier to find modules. New gnulib-tool option '--find'.
27004         * gnulib-tool: New option --find.
27005         (func_usage): Document it.
27006         (func_sanitize_modulelist): New function, extracted from
27007         func_all_modules.
27008         (func_all_modules): Invoke it.
27009         * doc/gnulib-tool.texi (Which modules?): New node.
27010
27011 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27012
27013         * lib/sys_select.in.h: Provide select replacement even if
27014         sys/select.h exists on a system, for Interix.
27015
27016 2010-02-18  Jim Meyering  <meyering@redhat.com>
27017
27018         init.sh: don't use $(...) just yet
27019         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27020         to accommodate e.g., Solaris' /bin/sh.
27021
27022 2010-02-17  Bruno Haible  <bruno@clisp.org>
27023
27024         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27025         Reported by Ludovic Courtès <ludo@gnu.org>.
27026
27027 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27028
27029         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27030         linking with -lintl.
27031
27032 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27033
27034         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27035         if not provided by the system's netdb.h.  Reported by
27036         ludo@gnu.org (Ludovic Courtès).
27037
27038 2010-02-15  Jim Meyering  <meyering@redhat.com>
27039
27040         init.sh: improve portability and efficiency
27041         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27042         "dummy" in a for loop.
27043         Use '!', not '^' to select the complement of a character set used
27044         in a "case" statement.
27045         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27046         Suggestions from Eric Blake.
27047
27048         init.sh: automatically accommodate programs with the .exe suffix
27049         Automatically arrange for an invocation of "prog" to execute the
27050         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27051         may use the simpler "prog", yet still work when built on a system
27052         that requires specifying the added suffix.
27053         Do this by constructing a function named "prog" that invokes
27054         "prog.exe" for each .exe file in selected directories.
27055         * tests/init.sh (find_exe_basenames_): New function.
27056         (create_exe_shim_functions_): New function.
27057         (path_prepend_): Use it.
27058
27059         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27060         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27061         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27062
27063 2010-02-14  Jim Meyering  <meyering@redhat.com>
27064
27065         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27066         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27067         (sc_prohibit_hash_pjw_without_use): New rule.
27068
27069         maint.mk: allow the default upload destination dir to be overridden
27070         * top/maint.mk (upload_dest_dir_): Define with a default that
27071         preserves the status quo.
27072         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27073         Reported by Peter Simons.
27074
27075         maint.mk: prohibit inclusion of "hash.h" without_use
27076         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27077
27078 2010-02-10  Jim Meyering  <meyering@redhat.com>
27079
27080         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27081         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27082
27083 2010-02-09  Eric Blake  <ebb9@byu.net>
27084         and Bruno Haible  <bruno@clisp.org>
27085
27086         obstack-printf-posix: ensure declaration
27087         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27088         extracted from gl_FUNC_OBSTACK_PRINTF.
27089         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27090         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27091         Likewise.
27092         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27093         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27094         0.
27095
27096 2010-02-08  Bruno Haible  <bruno@clisp.org>
27097
27098         gnulib-tool: Fix typo in 2010-02-07 commit.
27099         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27100         Reported by Eric Blake.
27101
27102 2010-02-07  Bruno Haible  <bruno@clisp.org>
27103
27104         gnulib-tool: Fix up caching patches.
27105         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27106         option --no-cache. Use associative arrays when supported by the shell.
27107         (sed_comments): New variable.
27108         (modcache): Renamed from do_cache.
27109         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27110         abbreviate unnecessarily.
27111         (have_associative): New variable.
27112         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27113         way also for ksh and zsh.
27114         (func_init_sed_convert_to_cache_statements): New function, extracted
27115         from func_cache_lookup_module. Add support for associative arrays.
27116         Don't set the c_MODULE_cached variable here. Ignore all lines before
27117         the first field header. Remove only the final newline, not all trailing
27118         newlines. Support empty fields correctly. Limit the use of 'eval' to
27119         assignments.
27120         (func_get_description, func_get_status, func_get_notice,
27121         func_get_applicability, func_get_filelist, func_get_dependencies,
27122         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27123         func_get_automake_snippet, func_get_include_directive,
27124         func_get_link_directive, func_get_license, func_get_maintainer):
27125         Update documentation. List the unoptimized code first. Add support for
27126         associative arrays. Limit the use of 'eval' to assignments.
27127         (func_get_applicability): Undo stylistic pessimisations.
27128         (func_get_automake_snippet, func_get_include_directive): Reduce code
27129         duplication.
27130         (func_modules_transitive_closure, func_modules_add_dummy,
27131         func_modules_notice, func_modules_to_filelist, func_add_file,
27132         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27133         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27134         func_create_testdir, func_create_megatestdir): Update documentation.
27135
27136 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27137
27138         * gnulib-tool (func_cache_lookup_module): Store the module name
27139         belonging to the cache variable; error out if two different
27140         module names map to the same cache variable name.
27141
27142 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27143
27144         gnulib-tool: Make caching optional.
27145         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27146         Update matching short versions of --no-changelog.
27147         (func_usage): Update.
27148         (sed_extract_cache_prog): Renamed from ...
27149         (sed_extract_prog): ... this; revert to old extraction script.
27150         (func_get_description, func_get_status)
27151         (func_get_notice, func_get_applicability, func_get_filelist)
27152         (func_get_dependencies, func_get_autoconf_early_snippet)
27153         (func_get_autoconf_snippet, func_get_automake_snippet)
27154         (func_get_include_directive, func_get_link_directive)
27155         (func_get_license, func_get_maintainer): If $do_cache is false,
27156         use old, non-caching extraction scripts.
27157         Suggestion by Bruno Haible.
27158
27159 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27160
27161         gnulib-tool: cache module metainformation.
27162         * gnulib-tool (sed_extract_prog): Match newline before each
27163         header, and rewrite header to a shell variable suffix.
27164         (func_cache_var, func_cache_lookup_module): New functions,
27165         to turn a module name into a cache variable prefix, and to
27166         look up and cache module metainformation.
27167         (func_get_description, func_get_status)
27168         (func_get_notice, func_get_applicability, func_get_filelist)
27169         (func_get_dependencies, func_get_autoconf_early_snippet)
27170         (func_get_autoconf_snippet, func_get_automake_snippet)
27171         (func_get_include_directive, func_get_link_directive)
27172         (func_get_license, func_get_maintainer): Use
27173         func_cache_lookup_module.
27174
27175 2010-02-07  Bruno Haible  <bruno@clisp.org>
27176
27177         fnctl: Fix missing dependency.
27178         * modules/fcntl (Depends-on): Add getdtablesize.
27179         Reported by John W. Eaton <jwe@gnu.org>.
27180
27181 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27182
27183         Argp: fix recognition of short alias options.
27184
27185         * lib/argp-parse.c (convert_options): Fix improper use of
27186         `|' between character values.
27187         * tests/test-argp.c (group1_option): New alias option
27188         --read (-r).
27189         (group1_parser): Special handling for 'r'.
27190         (test15): New test case.
27191         (test_fun): Add test15.
27192         * tests/test-argp-2.sh: Update expected --help and --usage
27193         outputs.
27194
27195 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27196
27197         * tests/test-argp.c: Fix indentation.
27198
27199 2010-02-04  Eric Blake  <ebb9@byu.net>
27200
27201         gettimeofday: expose type of second argument
27202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27203         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27204         * tests/test-gettimeofday.c: Use it to silence warning.
27205         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27206         the issue.
27207
27208 2010-02-03  Jim Meyering  <meyering@redhat.com>
27209
27210         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27211         * lib/regcomp.c (TYPE_SIGNED): Define.
27212         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27213
27214         regcomp.c: avoid a new -Wshadow warning
27215         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27216
27217 2010-02-01  Jim Meyering  <meyering@redhat.com>
27218
27219         removing useless parentheses in cpp #define directives
27220         For motivation, see commit c0221df4, "define STREQ(a,b)
27221         consistently, removing useless parentheses"
27222         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27223         * lib/mountlist.c (MNT_IGNORE): Likewise.
27224         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27225
27226 2010-02-01  Eric Blake  <ebb9@byu.net>
27227
27228         sys_time: use link-warning
27229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27230         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27231         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27232         * modules/sys_time (Depends-on): Add warn-on-use.
27233         (Makefile.am): Always build replacement.
27234         (configure.ac): Update substitutions.
27235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27236         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27237         bother with SYS_TIME_H.
27238         * modules/gettimeofday (configure.ac): Declare indicator.
27239         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27240         in use.
27241
27242         closein-tests: silence compiler warning
27243         * tests/test-closein.c (main): Ignore fread result.
27244         * modules/closein-tests (Depends-on): Add ignore-value.
27245
27246         tests: silence warning about system return
27247         * tests/test-areadlink-with-size.c (main): Ignore system result.
27248         * tests/test-areadlink.c (main): Likewise.
27249         * tests/test-areadlinkat-with-size.c (main): Likewise.
27250         * tests/test-areadlinkat.c (main): Likewise.
27251         * tests/test-canonicalize-lgpl.c (main): Likewise.
27252         * tests/test-canonicalize.c (main): Likewise.
27253         * tests/test-chown.c (main): Likewise.
27254         * tests/test-fchownat.c (main): Likewise.
27255         * tests/test-fdutimensat.c (main): Likewise.
27256         * tests/test-fstatat.c (main): Likewise.
27257         * tests/test-futimens.c (main): Likewise.
27258         * tests/test-lchown.c (main): Likewise.
27259         * tests/test-link.c (main): Likewise.
27260         * tests/test-linkat.c (main): Likewise.
27261         * tests/test-lstat.c (main): Likewise.
27262         * tests/test-mkdir.c (main): Likewise.
27263         * tests/test-mkdirat.c (main): Likewise.
27264         * tests/test-mkfifo.c (main): Likewise.
27265         * tests/test-mkfifoat.c (main): Likewise.
27266         * tests/test-mknod.c (main): Likewise.
27267         * tests/test-readlink.c (main): Likewise.
27268         * tests/test-remove.c (main): Likewise.
27269         * tests/test-rename.c (main): Likewise.
27270         * tests/test-renameat.c (main): Likewise.
27271         * tests/test-rmdir.c (main): Likewise.
27272         * tests/test-symlink.c (main): Likewise.
27273         * tests/test-symlinkat.c (main): Likewise.
27274         * tests/test-unlink.c (main): Likewise.
27275         * tests/test-unlinkat.c (main): Likewise.
27276         * tests/test-utimens.c (main): Likewise.
27277         * tests/test-utimensat.c (main): Likewise.
27278         * modules/areadlink-tests (Depends-on): Add ignore-value.
27279         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27280         * modules/areadlinkat-tests (Depends-on): Likewise.
27281         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27282         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27283         * modules/canonicalize-tests (Depends-on): Likewise.
27284         * modules/chown-tests (Depends-on): Likewise.
27285         * modules/fdutimensat-tests (Depends-on): Likewise.
27286         * modules/futimens-tests (Depends-on): Likewise.
27287         * modules/lchown-tests (Depends-on): Likewise.
27288         * modules/link-tests (Depends-on): Likewise.
27289         * modules/linkat-tests (Depends-on): Likewise.
27290         * modules/lstat-tests (Depends-on): Likewise.
27291         * modules/mkdir-tests (Depends-on): Likewise.
27292         * modules/mkfifo-tests (Depends-on): Likewise.
27293         * modules/mkfifoat-tests (Depends-on): Likewise.
27294         * modules/mknod-tests (Depends-on): Likewise.
27295         * modules/openat-tests (Depends-on): Likewise.
27296         * modules/readlink-tests (Depends-on): Likewise.
27297         * modules/remove-tests (Depends-on): Likewise.
27298         * modules/rename-tests (Depends-on): Likewise.
27299         * modules/renameat-tests (Depends-on): Likewise.
27300         * modules/rmdir-tests (Depends-on): Likewise.
27301         * modules/symlink-tests (Depends-on): Likewise.
27302         * modules/symlinkat-tests (Depends-on): Likewise.
27303         * modules/unlink-tests (Depends-on): Likewise.
27304         * modules/utimens-tests (Depends-on): Likewise.
27305         * modules/utimensat-tests (Depends-on): Likewise.
27306
27307 2010-01-31  Bruno Haible  <bruno@clisp.org>
27308
27309         Perform the same test for many <math.h> functions.
27310         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27311         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27312         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27313         of gl_MATHFUNC.
27314         * modules/acos (configure.ac): Likewise.
27315         * modules/asin (configure.ac): Likewise.
27316         * modules/atan (configure.ac): Likewise.
27317         * modules/atan2 (configure.ac): Likewise.
27318         * modules/cbrt (configure.ac): Likewise.
27319         * modules/copysign (configure.ac): Likewise.
27320         * modules/cos (configure.ac): Likewise.
27321         * modules/cosh (configure.ac): Likewise.
27322         * modules/erf (configure.ac): Likewise.
27323         * modules/erfc (configure.ac): Likewise.
27324         * modules/exp (configure.ac): Likewise.
27325         * modules/fmod (configure.ac): Likewise.
27326         * modules/hypot (configure.ac): Likewise.
27327         * modules/j0 (configure.ac): Likewise.
27328         * modules/j1 (configure.ac): Likewise.
27329         * modules/jn (configure.ac): Likewise.
27330         * modules/lgamma (configure.ac): Likewise.
27331         * modules/log (configure.ac): Likewise.
27332         * modules/log10 (configure.ac): Likewise.
27333         * modules/log1p (configure.ac): Likewise.
27334         * modules/pow (configure.ac): Likewise.
27335         * modules/remainder (configure.ac): Likewise.
27336         * modules/sin (configure.ac): Likewise.
27337         * modules/sinh (configure.ac): Likewise.
27338         * modules/tan (configure.ac): Likewise.
27339         * modules/tanh (configure.ac): Likewise.
27340         * modules/y0 (configure.ac): Likewise.
27341         * modules/y1 (configure.ac): Likewise.
27342         * modules/yn (configure.ac): Likewise.
27343         Suggested by Paolo Bonzini.
27344
27345 2010-01-31  Bruno Haible  <bruno@clisp.org>
27346
27347         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27348
27349 2010-01-31  Bruno Haible  <bruno@clisp.org>
27350
27351         Work around getdelim() bug on FreeBSD 8.0.
27352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27353         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27354         not work.
27355         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27356         is 1.
27357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27358         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27359         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27360         a non-zero size.
27361         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27362
27363 2010-01-31  Bruno Haible  <bruno@clisp.org>
27364
27365         Work around getline() bug on FreeBSD 8.0.
27366         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27367         and a non-zero size.
27368         * tests/test-getline.c (main): Likewise.
27369         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27370         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27371
27372 2010-01-28  Eric Blake  <ebb9@byu.net>
27373
27374         regex: fix build failure
27375         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27376         platforms.
27377
27378 2010-01-28  Jim Meyering  <meyering@redhat.com>
27379
27380         regex: do not ignore memory allocation failure
27381         * lib/regex_internal.c (create_cd_newstate): Detect
27382         re_node_set_init_copy failure.   Extracted from glibc commit
27383         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27384
27385         regex: sync more white-space changes from libc
27386         * lib/regex_internal.c: White-space only changes.
27387         * lib/regexec.c: Likewise.
27388
27389         regex: add many uses of __attribute_warn_unused_result__
27390         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27391         * lib/regexec.c: Likewise.
27392         Extracted from a messy glibc commit.
27393
27394         regcomp.c: spelling and merge-artifact from glibc
27395         * lib/regcomp.c: Merge remainder of glibc's
27396         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27397
27398         regcomp.c: sync white-space changes from glibc
27399         * lib/regcomp.c: Merge to accommodate white space
27400         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27401
27402         regcomp.c: do not ignore internal return values
27403         * lib/regcomp.c: Do not ignore internal return values.
27404         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27405         but without its white-space changes and spelling fixes.
27406
27407         regex_internal.h: define __attribute_warn_unused_result__
27408         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27409
27410         maint: add a syntax-check rule to check for vulnerable Makefile.in
27411         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27412
27413 2010-01-27  Jim Meyering  <meyering@redhat.com>
27414
27415         ncftpput-ftp: clean up spaces
27416         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27417         Remove trailing blanks.
27418
27419 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27420
27421         * build-aux/git-version-gen: Fix copyright statement.
27422         * build-aux/gnupload: Likewise.
27423         * tests/test-arcfour.c: Likewise.
27424         * tests/test-arctwo.c: Likewise.
27425         * tests/test-count-one-bits.c: Likewise.
27426         * tests/test-crc.c: Likewise.
27427         * tests/test-des.c: Likewise.
27428         * tests/test-gc-arcfour.c: Likewise.
27429         * tests/test-gc-arctwo.c: Likewise.
27430         * tests/test-gc-des.c: Likewise.
27431         * tests/test-gc-hmac-md5.c: Likewise.
27432         * tests/test-gc-hmac-sha1.c: Likewise.
27433         * tests/test-gc-md2.c: Likewise.
27434         * tests/test-gc-md4.c: Likewise.
27435         * tests/test-gc-md5.c: Likewise.
27436         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27437         * tests/test-gc-rijndael.c: Likewise.
27438         * tests/test-gc-sha1.c: Likewise.
27439         * tests/test-gc.c: Likewise.
27440         * tests/test-gethostname.c: Likewise.
27441         * tests/test-gettimeofday.c: Likewise.
27442         * tests/test-hash.c: Likewise.
27443         * tests/test-hmac-md5.c: Likewise.
27444         * tests/test-hmac-sha1.c: Likewise.
27445         * tests/test-md2.c: Likewise.
27446         * tests/test-md4.c: Likewise.
27447         * tests/test-md5.c: Likewise.
27448         * tests/test-memchr.c: Likewise.
27449         * tests/test-memchr2.c: Likewise.
27450         * tests/test-memcmp.c: Likewise.
27451         * tests/test-memmem.c: Likewise.
27452         * tests/test-memrchr.c: Likewise.
27453         * tests/test-rawmemchr.c: Likewise.
27454         * tests/test-read-file.c: Likewise.
27455         * tests/test-rijndael.c: Likewise.
27456         * tests/test-sockets.c: Likewise.
27457         * tests/test-strchrnul.c: Likewise.
27458         * tests/test-strstr.c: Likewise.
27459         * tests/test-strtod.c: Likewise.
27460         * build-aux/ncftpput-ftp: Likewise.
27461
27462 2010-01-26  Eric Blake  <ebb9@byu.net>
27463
27464         ignore-value: update recommended header name
27465         * modules/ignore-value (Include): Only use <> for headers that
27466         exist in glibc.
27467
27468 2010-01-26  Jim Meyering  <meyering@redhat.com>
27469
27470         test-userspec.c: avoid compiler warnings
27471         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27472         and "initialization discards qualifiers..." warnings.
27473         Put the first "uid" in its own scope, and make char* members "const".
27474
27475 2010-01-25  Bruno Haible  <bruno@clisp.org>
27476
27477         gnulib-tool: Make warning diagnostics consistent.
27478         * gnulib-tool (func_warning): New function.
27479         Use it everywhere where gnulib-tool produces output to stderr and it is
27480         not a fatal error.
27481
27482 2010-01-25  Bruno Haible  <bruno@clisp.org>
27483
27484         Fix test dependencies.
27485         * modules/xstrtol-tests (Depends-on): Add inttypes.
27486         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27487
27488 2010-01-25 Pádraig Brady <P@draigBrady.com>
27489
27490         syntax-check: detect incorrect boolean macro values in config.h
27491         * modules/maintainer-makefile (configure.ac): Parameterize the location
27492         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27493         The logic is from Eric Blake and the location indicated by Jim Meyering.
27494         Note the more natural CONFIG_HEADER name is prohibited by automake
27495         for backwards compatibility reasons.
27496         * top/maint.mk (sc_Wundef_boolean): New rule.
27497
27498 2010-01-25  Jim Meyering  <meyering@redhat.com>
27499
27500         bootstrap: detect MacOS 10.6's shasum, too
27501         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27502         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27503
27504 2010-01-23  Jim Meyering  <meyering@redhat.com>
27505
27506         xstrtoll: new module
27507         * modules/xstrtoll: New file.
27508         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27509         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27510         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27511         ./configure fails if you use this module and lack "long long".
27512         * modules/xstrtoll-tests: New module.
27513         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27514         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27515         new init.sh-based test framework.
27516
27517 2010-01-24  Bruno Haible  <bruno@clisp.org>
27518
27519         Tests for module 'yn'.
27520         * modules/yn-tests: New file.
27521         * tests/test-yn.c: New file.
27522
27523         Tests for module 'y1'.
27524         * modules/y1-tests: New file.
27525         * tests/test-y1.c: New file.
27526
27527         Tests for module 'y0'.
27528         * modules/y0-tests: New file.
27529         * tests/test-y0.c: New file.
27530
27531         Tests for module 'tanh'.
27532         * modules/tanh-tests: New file.
27533         * tests/test-tanh.c: New file.
27534
27535         Tests for module 'tan'.
27536         * modules/tan-tests: New file.
27537         * tests/test-tan.c: New file.
27538
27539         Tests for module 'sqrt'.
27540         * modules/sqrt-tests: New file.
27541         * tests/test-sqrt.c: New file.
27542
27543         Tests for module 'sinh'.
27544         * modules/sinh-tests: New file.
27545         * tests/test-sinh.c: New file.
27546
27547         Tests for module 'sin'.
27548         * modules/sin-tests: New file.
27549         * tests/test-sin.c: New file.
27550
27551         Tests for module 'rint'.
27552         * modules/rint-tests: New file.
27553         * tests/test-rint.c: New file.
27554
27555         Tests for module 'remainder'.
27556         * modules/remainder-tests: New file.
27557         * tests/test-remainder.c: New file.
27558
27559         Tests for module 'pow'.
27560         * modules/pow-tests: New file.
27561         * tests/test-pow.c: New file.
27562
27563         Tests for module 'nextafter'.
27564         * modules/nextafter-tests: New file.
27565         * tests/test-nextafter.c: New file.
27566
27567         Tests for module 'modf'.
27568         * modules/modf-tests: New file.
27569         * tests/test-modf.c: New file.
27570
27571         Tests for module 'logb'.
27572         * modules/logb-tests: New file.
27573         * tests/test-logb.c: New file.
27574
27575         Tests for module 'log1p'.
27576         * modules/log1p-tests: New file.
27577         * tests/test-log1p.c: New file.
27578
27579         Tests for module 'log10'.
27580         * modules/log10-tests: New file.
27581         * tests/test-log10.c: New file.
27582
27583         Tests for module 'log'.
27584         * modules/log-tests: New file.
27585         * tests/test-log.c: New file.
27586
27587         Tests for module 'lgamma'.
27588         * modules/lgamma-tests: New file.
27589         * tests/test-lgamma.c: New file.
27590
27591         Tests for module 'ldexp'.
27592         * modules/ldexp-tests: New file.
27593         * tests/test-ldexp.c: New file.
27594
27595         Tests for module 'jn'.
27596         * modules/jn-tests: New file.
27597         * tests/test-jn.c: New file.
27598
27599         Tests for module 'j1'.
27600         * modules/j1-tests: New file.
27601         * tests/test-j1.c: New file.
27602
27603         Tests for module 'j0'.
27604         * modules/j0-tests: New file.
27605         * tests/test-j0.c: New file.
27606
27607         Tests for module 'hypot'.
27608         * modules/hypot-tests: New file.
27609         * tests/test-hypot.c: New file.
27610
27611         Tests for module 'fmod'.
27612         * modules/fmod-tests: New file.
27613         * tests/test-fmod.c: New file.
27614
27615         Tests for module 'fabs'.
27616         * modules/fabs-tests: New file.
27617         * tests/test-fabs.c: New file.
27618
27619         Tests for module 'exp'.
27620         * modules/exp-tests: New file.
27621         * tests/test-exp.c: New file.
27622
27623         Tests for module 'erfc'.
27624         * modules/erfc-tests: New file.
27625         * tests/test-erfc.c: New file.
27626
27627         Tests for module 'erf'.
27628         * modules/erf-tests: New file.
27629         * tests/test-erf.c: New file.
27630
27631         Tests for module 'cosh'.
27632         * modules/cosh-tests: New file.
27633         * tests/test-cosh.c: New file.
27634
27635         Tests for module 'cos'.
27636         * modules/cos-tests: New file.
27637         * tests/test-cos.c: New file.
27638
27639         Tests for module 'copysign'.
27640         * modules/copysign-tests: New file.
27641         * tests/test-copysign.c: New file.
27642
27643         Tests for module 'cbrt'.
27644         * modules/cbrt-tests: New file.
27645         * tests/test-cbrt.c: New file.
27646
27647         Tests for module 'atan2'.
27648         * modules/atan2-tests: New file.
27649         * tests/test-atan2.c: New file.
27650
27651         Tests for module 'atan'.
27652         * modules/atan-tests: New file.
27653         * tests/test-atan.c: New file.
27654
27655         Tests for module 'asin'.
27656         * modules/asin-tests: New file.
27657         * tests/test-asin.c: New file.
27658
27659         Tests for module 'acos'.
27660         * modules/acos-tests: New file.
27661         * tests/test-acos.c: New file.
27662
27663 2010-01-24  Bruno Haible  <bruno@clisp.org>
27664
27665         Fix tests for common <math.h> functions.
27666         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27667         code snippet that references the function pointer, rather than merely
27668         calling the function. Substitute the FUNC_LIBM variable.
27669         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27670         * modules/acos (configure.ac): Likewise.
27671         * modules/asin (configure.ac): Likewise.
27672         * modules/atan (configure.ac): Likewise.
27673         * modules/atan2 (configure.ac): Likewise.
27674         * modules/cbrt (configure.ac): Likewise.
27675         * modules/copysign (configure.ac): Likewise.
27676         * modules/cos (configure.ac): Likewise.
27677         * modules/cosh (configure.ac): Likewise.
27678         * modules/erf (configure.ac): Likewise.
27679         * modules/erfc (configure.ac): Likewise.
27680         * modules/exp (configure.ac): Likewise.
27681         * modules/fabs (configure.ac): Likewise.
27682         * modules/fmod (configure.ac): Likewise.
27683         * modules/hypot (configure.ac): Likewise.
27684         * modules/j0 (configure.ac): Likewise.
27685         * modules/j1 (configure.ac): Likewise.
27686         * modules/jn (configure.ac): Likewise.
27687         * modules/ldexp (configure.ac): Likewise.
27688         * modules/lgamma (configure.ac): Likewise.
27689         * modules/log (configure.ac): Likewise.
27690         * modules/log10 (configure.ac): Likewise.
27691         * modules/log1p (configure.ac): Likewise.
27692         * modules/logb (configure.ac): Likewise.
27693         * modules/modf (configure.ac): Likewise.
27694         * modules/nextafter (configure.ac): Likewise.
27695         * modules/pow (configure.ac): Likewise.
27696         * modules/remainder (configure.ac): Likewise.
27697         * modules/rint (configure.ac): Likewise.
27698         * modules/sin (configure.ac): Likewise.
27699         * modules/sinh (configure.ac): Likewise.
27700         * modules/tan (configure.ac): Likewise.
27701         * modules/tanh (configure.ac): Likewise.
27702         * modules/y0 (configure.ac): Likewise.
27703         * modules/y1 (configure.ac): Likewise.
27704         * modules/yn (configure.ac): Likewise.
27705
27706 2010-01-24  Bruno Haible  <bruno@clisp.org>
27707
27708         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27709         * tests/test-acosl.c (x): New variable.
27710         (main): Store argument in x and fetch it from x.
27711         * tests/test-asinl.c (x): New variable.
27712         (main): Store argument in x and fetch it from x.
27713         * tests/test-atanl.c (x): New variable.
27714         (main): Store argument in x and fetch it from x.
27715         * tests/test-cosl.c (x): New variable.
27716         (main): Store argument in x and fetch it from x.
27717         * tests/test-expl.c (x): New variable.
27718         (main): Store argument in x and fetch it from x.
27719         * tests/test-logl.c (x): New variable.
27720         (main): Store argument in x and fetch it from x.
27721         * tests/test-sinl.c (x): New variable.
27722         (main): Store argument in x and fetch it from x.
27723         * tests/test-sqrtl.c (x): New variable.
27724         (main): Store argument in x and fetch it from x.
27725         * tests/test-tanl.c (x): New variable.
27726         (main): Store argument in x and fetch it from x.
27727
27728 2010-01-24  Bruno Haible  <bruno@clisp.org>
27729
27730         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27731         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27732         assignments to the initial TESTS_ENVIRONMENT.
27733         * doc/gnulib.texi (Unit test modules): Document it.
27734         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27735         TESTS_ENVIRONMENT.
27736         * modules/btowc-tests (Makefile.am): Likewise.
27737         * modules/c-stack-tests (Makefile.am): Likewise.
27738         * modules/c-strcase-tests (Makefile.am): Likewise.
27739         * modules/copy-file-tests (Makefile.am): Likewise.
27740         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27741         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27742         * modules/mbrtowc-tests (Makefile.am): Likewise.
27743         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27744         * modules/mbscasestr-tests (Makefile.am): Likewise.
27745         * modules/mbschr-tests (Makefile.am): Likewise.
27746         * modules/mbscspn-tests (Makefile.am): Likewise.
27747         * modules/mbsinit-tests (Makefile.am): Likewise.
27748         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27749         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27750         * modules/mbspbrk-tests (Makefile.am): Likewise.
27751         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27752         * modules/mbsrchr-tests (Makefile.am): Likewise.
27753         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27754         * modules/mbsspn-tests (Makefile.am): Likewise.
27755         * modules/mbsstr-tests (Makefile.am): Likewise.
27756         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27757         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27758         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27759         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27760         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27761         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27762         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27763         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27764         * modules/wcrtomb-tests (Makefile.am): Likewise.
27765         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27766         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27767         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27768         assignments from TESTS_ENVIRONMENT.
27769         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27770         augmentation.
27771         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27772         * modules/atexit-tests (Makefile.am): Likewise.
27773         * modules/binary-io-tests (Makefile.am): Likewise.
27774         * modules/closein-tests (Makefile.am): Likewise.
27775         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27776         * modules/exclude-tests (Makefile.am): Likewise.
27777         * modules/fflush-tests (Makefile.am): Likewise.
27778         * modules/fpending-tests (Makefile.am): Likewise.
27779         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27780         * modules/freadahead-tests (Makefile.am): Likewise.
27781         * modules/freadptr-tests (Makefile.am): Likewise.
27782         * modules/freadseek-tests (Makefile.am): Likewise.
27783         * modules/fseek-tests (Makefile.am): Likewise.
27784         * modules/fseeko-tests (Makefile.am): Likewise.
27785         * modules/ftell-tests (Makefile.am): Likewise.
27786         * modules/ftello-tests (Makefile.am): Likewise.
27787         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27788         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27789         * modules/lseek-tests (Makefile.am): Likewise.
27790         * modules/parse-duration-tests (Makefile.am): Likewise.
27791         * modules/perror-tests (Makefile.am): Likewise.
27792         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27793         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27794         * modules/pipe-tests (Makefile.am): Likewise.
27795         * modules/pread-tests (Makefile.am): Likewise.
27796         * modules/printf-posix-tests (Makefile.am): Likewise.
27797         * modules/select-tests (Makefile.am): Likewise.
27798         * modules/sigpipe-tests (Makefile.am): Likewise.
27799         * modules/tsearch-tests (Makefile.am): Likewise.
27800         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27801         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27802         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27803         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27804         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27805         * modules/version-etc-tests (Makefile.am): Likewise.
27806         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27807         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27808         * modules/xalloc-die-tests (Makefile.am): Likewise.
27809         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27810         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27811         * modules/xstrtol-tests (Makefile.am): Likewise.
27812         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27813         * modules/yesno-tests (Makefile.am): Likewise.
27814         Suggested by Jim Meyering.
27815
27816 2010-01-24  Bruno Haible  <bruno@clisp.org>
27817
27818         More documentation.
27819         * doc/gnulib.texi (Writing modules): New chapter.
27820         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27821         the new chapter.
27822
27823 2010-01-24  Jim Meyering  <meyering@redhat.com>
27824
27825         maint.mk: do not prepend "./" after filtering
27826         * top/maint.mk (_prepend_srcdir_prefix): New variable
27827         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27828         "./" when $(srcdir) is ".".
27829
27830         define STREQ(a,b) consistently, removing useless parentheses
27831         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27832         since the only risk is that "a" or "b" contains an unparenthesized
27833         comma, but if either did that, STREQ would have 3 or more arguments.
27834         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27835         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27836         * lib/hash-triple.c (STREQ): Likewise.
27837         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27838         * lib/getugroups.c (STREQ): Likewise.
27839
27840 2010-01-23  Jim Meyering  <meyering@redhat.com>
27841
27842         maint.mk: fix syntax-check in a non-srcdir build directory
27843         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27844         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27845
27846 2010-01-22  Jim Meyering  <meyering@redhat.com>
27847
27848         userspec: add unit tests
27849         * tests/test-userspec.c: New file.
27850         * modules/userspec-tests: Likewise.
27851
27852 2010-01-21  Jim Meyering  <meyering@redhat.com>
27853
27854         maint.mk: handle source file names containing "." robustly
27855         * top/maint.mk (_dot_escaped_srcdir): Define.
27856         (VC_LIST): Use it in LHS of sed substitution.
27857
27858 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27859
27860         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27861         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27862         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27863         from a non-srcdir build.
27864
27865 2010-01-20  Eric Blake  <ebb9@byu.net>
27866
27867         warn-on-use: use instead of link-warning
27868         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27869         * modules/unistd (Depends-on, Makefile.am): Likewise.
27870         * modules/arpa_inet (Depends-on): Replace link-warning with
27871         warn-on-use.
27872         (Makefile.am): Update rules accordingly.
27873         * modules/ctype (Depends-on, Makefile.am): Likewise.
27874         * modules/dirent (Depends-on, Makefile.am): Likewise.
27875         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27876         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27877         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27878         * modules/locale (Depends-on, Makefile.am): Likewise.
27879         * modules/math (Depends-on, Makefile.am): Likewise.
27880         * modules/search (Depends-on, Makefile.am): Likewise.
27881         * modules/signal (Depends-on, Makefile.am): Likewise.
27882         * modules/spawn (Depends-on, Makefile.am): Likewise.
27883         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27884         * modules/string (Depends-on, Makefile.am): Likewise.
27885         * modules/strings (Depends-on, Makefile.am): Likewise.
27886         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27887         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27888         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27889         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27890         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27891         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27892         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27893         * modules/wchar (Depends-on, Makefile.am): Likewise.
27894         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27895         should be poisoned.
27896         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27897         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27898         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27900         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27901         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27902         * m4/math_h.m4 (gl_MATH_H): Likewise.
27903         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27904         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27905         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27906         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27907         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27908         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27909         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27910         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27911         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27918         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27919         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27920         GL_LINK_WARNING.
27921         * lib/ctype.in.h: Likewise.
27922         * lib/dirent.in.h: Likewise.
27923         * lib/fcntl.in.h: Likewise.
27924         * lib/inttypes.in.h: Likewise.
27925         * lib/langinfo.in.h: Likewise.
27926         * lib/locale.in.h: Likewise.
27927         * lib/math.in.h: Likewise.
27928         * lib/search.in.h: Likewise.
27929         * lib/signal.in.h: Likewise.
27930         * lib/spawn.in.h: Likewise.
27931         * lib/stdio.in.h: Likewise.
27932         * lib/stdlib.in.h: Likewise.
27933         * lib/string.in.h: Likewise.
27934         * lib/strings.in.h: Likewise.
27935         * lib/sys_file.in.h: Likewise.
27936         * lib/sys_ioctl.in.h: Likewise.
27937         * lib/sys_select.in.h: Likewise.
27938         * lib/sys_socket.in.h: Likewise.
27939         * lib/sys_stat.in.h: Likewise.
27940         * lib/sys_times.in.h: Likewise.
27941         * lib/sys_utsname.in.h: Likewise.
27942         * lib/unistd.in.h: Likewise.
27943         * lib/wchar.in.h: Likewise.
27944
27945 2010-01-20  Bruno Haible  <bruno@clisp.org>
27946
27947         Avoid duplicate -lm.
27948         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27949         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27951         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27952         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27953         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27954         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27955         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27956         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27957         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27958         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27959         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27960         Reported by Paolo Bonzini.
27961
27962 2010-01-19  Bruno Haible  <bruno@clisp.org>
27963
27964         langinfo, nl_langinfo: Relicense under LGPLv2+.
27965         * modules/langinfo (License): Change to LGPLv2+.
27966         * modules/nl_langinfo (License): Likewise.
27967         Patch by David Lutterkort <lutter@redhat.com>.
27968
27969 2010-01-19  Bruno Haible  <bruno@clisp.org>
27970
27971         Avoid compilation error with cc on OSF/1 5.1.
27972         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27973         statement, not before.
27974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27975
27976 2010-01-18  Bruno Haible  <bruno@clisp.org>
27977
27978         Avoid a link error due to the __printf__ symbol.
27979         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27980         and 2.6.x.
27981         (__format__, __printf__): Remove definitions.
27982         * lib/argp-fmtstream.h: Likewise.
27983         * lib/argp.h: Likewise.
27984         * lib/error.h: Likewise.
27985         * lib/vasnprintf.h: Likewise.
27986         * lib/xprintf.h: Likewise.
27987         * lib/xvasprintf.h: Likewise.
27988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27989
27990 2010-01-18  Bruno Haible  <bruno@clisp.org>
27991
27992         Tests for module 'tanl'.
27993         * modules/tanl-tests: New file.
27994         * tests/test-tanl.c: New file.
27995
27996         Tests for module 'sqrtl'.
27997         * modules/sqrtl-tests: New file.
27998         * tests/test-sqrtl.c: New file.
27999
28000         Tests for module 'sinl'.
28001         * modules/sinl-tests: New file.
28002         * tests/test-sinl.c: New file.
28003
28004         Tests for module 'logl'.
28005         * modules/logl-tests: New file.
28006         * tests/test-logl.c: New file.
28007
28008         Tests for module 'expl'.
28009         * modules/expl-tests: New file.
28010         * tests/test-expl.c: New file.
28011
28012         Tests for module 'cosl'.
28013         * modules/cosl-tests: New file.
28014         * tests/test-cosl.c: New file.
28015
28016         Tests for module 'atanl'.
28017         * modules/atanl-tests: New file.
28018         * tests/test-atanl.c: New file.
28019
28020         Tests for module 'asinl'.
28021         * modules/asinl-tests: New file.
28022         * tests/test-asinl.c: New file.
28023
28024         Tests for module 'acosl'.
28025         * modules/acosl-tests: New file.
28026         * tests/test-acosl.c: New file.
28027
28028         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28029         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28030         tanl): Use the standard gnulib idiom.
28031         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28032         * lib/sinl.c: Likewise.
28033         * lib/tanl.c: Don't include trigl.c.
28034         (kernel_tanl): Make static.
28035         * lib/sincosl.c: Include trigl.h first.
28036         * lib/trigl.c: Likewise.
28037         * m4/acosl.m4: New file.
28038         * m4/asinl.m4: New file.
28039         * m4/atanl.m4: New file.
28040         * m4/cosl.m4: New file.
28041         * m4/expl.m4: New file.
28042         * m4/logl.m4: New file.
28043         * m4/sinl.m4: New file.
28044         * m4/sqrtl.m4: New file.
28045         * m4/tanl.m4: New file.
28046         * m4/mathl.m4: Remove file.
28047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28048         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28049         Don't initialize GNULIB_MATHL.
28050         * modules/acosl: New file.
28051         * modules/asinl: New file.
28052         * modules/atanl: New file.
28053         * modules/cosl: New file.
28054         * modules/expl: New file.
28055         * modules/logl: New file.
28056         * modules/sinl: New file.
28057         * modules/sqrtl: New file.
28058         * modules/tanl: New file.
28059         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28060         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28061         substitute GNULIB_MATHL.
28062         * modules/mathl: Rewritten.
28063         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28064         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28065         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28066         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28067         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28068         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28069         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28070         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28071         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28072
28073 2010-01-18  Bruno Haible  <bruno@clisp.org>
28074
28075         sqrt: Make gl_FUNC_SQRT requirable.
28076         * m4/sqrt.m4: New file.
28077         * modules/sqrt (Files): Add it.
28078         (configure.ac): Invoke gl_FUNC_SQRT.
28079
28080 2010-01-18  Bruno Haible  <bruno@clisp.org>
28081
28082         New modules for common <math.h> functions.
28083         * m4/mathfunc.m4: New file.
28084         * modules/acos: New file.
28085         * modules/asin: New file.
28086         * modules/atan: New file.
28087         * modules/atan2: New file.
28088         * modules/cbrt: New file.
28089         * modules/copysign: New file.
28090         * modules/cos: New file.
28091         * modules/cosh: New file.
28092         * modules/erf: New file.
28093         * modules/erfc: New file.
28094         * modules/exp: New file.
28095         * modules/fabs: New file.
28096         * modules/fmod: New file.
28097         * modules/hypot: New file.
28098         * modules/j0: New file.
28099         * modules/j1: New file.
28100         * modules/jn: New file.
28101         * modules/ldexp: New file.
28102         * modules/lgamma: New file.
28103         * modules/log: New file.
28104         * modules/log10: New file.
28105         * modules/log1p: New file.
28106         * modules/logb: New file.
28107         * modules/modf: New file.
28108         * modules/nextafter: New file.
28109         * modules/pow: New file.
28110         * modules/remainder: New file.
28111         * modules/rint: New file.
28112         * modules/sin: New file.
28113         * modules/sinh: New file.
28114         * modules/sqrt: New file.
28115         * modules/tan: New file.
28116         * modules/tanh: New file.
28117         * modules/y0: New file.
28118         * modules/y1: New file.
28119         * modules/yn: New file.
28120         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28121         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28122         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28123         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28124         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28125         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28126         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28127         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28128         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28129         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28130         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28131         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28132         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28133         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28134         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28135         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28136         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28137         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28138         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28139         * doc/posix-functions/log.texi: Mention the 'log' module.
28140         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28141         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28142         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28143         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28144         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28145         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28146         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28147         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28148         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28149         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28150         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28151         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28152         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28153         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28154         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28155         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28156
28157 2010-01-18  Jim Meyering  <meyering@redhat.com>
28158
28159         ignore-value: relax license to LGPLv2+
28160         * modules/ignore-value (License): Relax to LGPLv2+.
28161
28162         getdate: don't leak when TZ contains two or more '"'s
28163         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28164         double quote in TZ after the first one.
28165
28166         readtokens: do not leak internal token_lengths buffer
28167         * lib/readtokens.c (readtokens): Free the local, lengths,
28168         when the supplied "token_lengths" parameter is NULL.
28169
28170 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28171
28172         Fix a couple of missing LIBTHREAD link failures on AIX.
28173         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28174         $(LIBTHREAD).
28175         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28176
28177         Link test-poll against INET_PTON_LIB.
28178         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28179         for inet_pton on Solaris 10.
28180
28181 2010-01-17  Bruno Haible  <bruno@clisp.org>
28182
28183         unistdio/*-sprintf: Fix typo in module description.
28184         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28185         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28186         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28187         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28188         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28189         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28190         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28192
28193 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28194
28195         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28196         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28197         variables in shell case patterns, for AIX and HP-UX ksh.
28198
28199         Split large sed scripts, for HP-UX sed.
28200         * modules/stdio: Split sed scripts around 50 sed commands,
28201         to avoid HP-UX limit of 99 commands, in the near future.
28202         * modules/string: Likewise.
28203         * modules/unistd: Likewise.
28204
28205         gnulib-tool: avoid writing in the current directory.
28206         * gnulib-tool (func_emit_lib_Makefile_am)
28207         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28208         not in the current directory, so concurrent gnulib-tool
28209         instances do not interfere.
28210
28211 2010-01-16  Jim Meyering  <meyering@redhat.com>
28212
28213         doc: update users.txt
28214         * users.txt: Add grep.
28215         (diffutils, gzip): Update URLs.
28216
28217 2010-01-12  Bruno Haible  <bruno@clisp.org>
28218
28219         posix_spawn: Avoid test failure on Cygwin.
28220         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28221         characters.
28222         Reported by Simon Josefsson.
28223
28224 2010-01-12  Bruno Haible  <bruno@clisp.org>
28225
28226         * tests/test-cond.c (main): When skipping the test, show the reason.
28227
28228 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28229
28230         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28231
28232 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28233
28234         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28235         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28236
28237 2010-01-12  Eric Blake  <ebb9@byu.net>
28238
28239         build: guarantee AS_VAR_IF
28240         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28241         (gl_AS_VAR_IF): Move...
28242         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28243         Reported by Simon Josefsson.
28244
28245 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28246
28247         * lib/stdio.in.h: Fix typo.
28248
28249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28250
28251         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28252         libgpg-error.
28253
28254 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28255
28256         * tests/test-xalloc-die.sh: Use $EXEEXT.
28257
28258 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28259             Bruno Haible  <bruno@clisp.org>
28260
28261         getlogin, getlogin_r: Avoid test failure.
28262         * tests/test-getlogin.c: Include <stdio.h>.
28263         (main): Skip the test when the function fails because stdin is not a
28264         tty.
28265         * tests/test-getlogin_r.c: Include <stdio.h>.
28266         (main): Skip the test when the function fails because stdin is not a
28267         tty.
28268
28269 2010-01-11  Eric Blake  <ebb9@byu.net>
28270
28271         tests: avoid more large file warnings
28272         * tests/test-fflush.c: Avoid warning about ftell use.
28273         * tests/test-fseek.c: Avoid warning about fseek use.
28274
28275 2010-01-10  Bruno Haible  <bruno@clisp.org>
28276
28277         nproc: Work better on Linux when /proc and /sys are not mounted.
28278         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28279         as lower bound when, on glibc/Linux systems,
28280         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28281         Suggested by Pádraig Brady <P@draigbrady.com>.
28282         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28283
28284         nproc: Refactor.
28285         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28286         extracted from num_processors.
28287         (num_processors): Call it.
28288
28289 2010-01-11  Jim Meyering  <meyering@redhat.com>
28290
28291         utimecmp: avoid new warning from upcoming gcc-4.5.0
28292         * lib/utimecmp.c (BILLION): Define using #define rather than an
28293         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28294
28295 2010-01-11  Eric Blake  <ebb9@byu.net>
28296
28297         math: add portability warnings for classification macros
28298         * modules/math (Depends-on): Add warn-on-use.
28299         (Makefile.am): Provide new substitutions.
28300         * m4/math_h.m4 (gl_MATH_H): Require inline.
28301         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28302         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28303         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28304         implement warnings.
28305
28306         unistd: warn on use of environ without module
28307         * modules/unistd (Depends-on): Add warn-on-use.
28308         (Makefile.am): Provide new substitutions.
28309         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28310         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28311
28312         stdio: warn on suspicious uses
28313         * modules/stdio (Depends-on): Add warn-on-use.
28314         (Makefile.am): Provide new substitutions.
28315         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28316         fseeko.
28317         * lib/stdio.in.h (gets): Always warn on use.
28318         (fseek, ftell): Adjust when warnings are issued, and honor
28319         _GL_NO_LARGE_FILES as a way to silence the warning.
28320         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28321         any warning about large file offsets.
28322         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28323         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28324         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28325         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28326         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28327         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28328         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28329         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28330
28331         warn-on-use: new module
28332         * modules/warn-on-use: New file.
28333         * build-aux/warn-on-use.h: Likewise.
28334         * m4/warn-on-use.m4: Likewise.
28335         * MODULES.html.sh (Support for building): Mention it.
28336
28337 2010-01-10  Bruno Haible  <bruno@clisp.org>
28338
28339         Tests for module 'unistr/u32-strdup'.
28340         * modules/unistr/u32-strdup-tests: New file.
28341         * tests/unistr/test-u32-strdup.c: New file.
28342
28343         Tests for module 'unistr/u16-strdup'.
28344         * modules/unistr/u16-strdup-tests: New file.
28345         * tests/unistr/test-u16-strdup.c: New file.
28346
28347         Tests for module 'unistr/u8-strdup'.
28348         * modules/unistr/u8-strdup-tests: New file.
28349         * tests/unistr/test-u8-strdup.c: New file.
28350         * tests/unistr/test-strdup.h: New file.
28351
28352         Tests for module 'unistr/u32-strncmp'.
28353         * modules/unistr/u32-strncmp-tests: New file.
28354         * tests/unistr/test-u32-strncmp.c: New file.
28355
28356         Tests for module 'unistr/u16-strncmp'.
28357         * modules/unistr/u16-strncmp-tests: New file.
28358         * tests/unistr/test-u16-strncmp.c: New file.
28359
28360         Tests for module 'unistr/u8-strncmp'.
28361         * modules/unistr/u8-strncmp-tests: New file.
28362         * tests/unistr/test-u8-strncmp.c: New file.
28363         * tests/unistr/test-strncmp.h: New file.
28364
28365         Tests for module 'unistr/u32-strcoll'.
28366         * modules/unistr/u32-strcoll-tests: New file.
28367         * tests/unistr/test-u32-strcoll.c: New file.
28368
28369         Tests for module 'unistr/u16-strcoll'.
28370         * modules/unistr/u16-strcoll-tests: New file.
28371         * tests/unistr/test-u16-strcoll.c: New file.
28372
28373         Tests for module 'unistr/u8-strcoll'.
28374         * modules/unistr/u8-strcoll-tests: New file.
28375         * tests/unistr/test-u8-strcoll.c: New file.
28376
28377         Tests for module 'unistr/u32-strcmp'.
28378         * modules/unistr/u32-strcmp-tests: New file.
28379         * tests/unistr/test-u32-strcmp.c: New file.
28380         * tests/unistr/test-u32-strcmp.h: New file.
28381
28382         Tests for module 'unistr/u16-strcmp'.
28383         * modules/unistr/u16-strcmp-tests: New file.
28384         * tests/unistr/test-u16-strcmp.c: New file.
28385         * tests/unistr/test-u16-strcmp.h: New file.
28386
28387         Tests for module 'unistr/u8-strcmp'.
28388         * modules/unistr/u8-strcmp-tests: New file.
28389         * tests/unistr/test-u8-strcmp.c: New file.
28390         * tests/unistr/test-u8-strcmp.h: New file.
28391         * tests/unistr/test-strcmp.h: New file.
28392
28393         Tests for module 'unistr/u32-strncat'.
28394         * modules/unistr/u32-strncat-tests: New file.
28395         * tests/unistr/test-u32-strncat.c: New file.
28396
28397         Tests for module 'unistr/u16-strncat'.
28398         * modules/unistr/u16-strncat-tests: New file.
28399         * tests/unistr/test-u16-strncat.c: New file.
28400
28401         Tests for module 'unistr/u8-strncat'.
28402         * modules/unistr/u8-strncat-tests: New file.
28403         * tests/unistr/test-u8-strncat.c: New file.
28404         * tests/unistr/test-strncat.h: New file.
28405
28406         Tests for module 'unistr/u32-strcat'.
28407         * modules/unistr/u32-strcat-tests: New file.
28408         * tests/unistr/test-u32-strcat.c: New file.
28409
28410         Tests for module 'unistr/u16-strcat'.
28411         * modules/unistr/u16-strcat-tests: New file.
28412         * tests/unistr/test-u16-strcat.c: New file.
28413
28414         Tests for module 'unistr/u8-strcat'.
28415         * modules/unistr/u8-strcat-tests: New file.
28416         * tests/unistr/test-u8-strcat.c: New file.
28417         * tests/unistr/test-strcat.h: New file.
28418
28419         Tests for module 'unistr/u32-stpncpy'.
28420         * modules/unistr/u32-stpncpy-tests: New file.
28421         * tests/unistr/test-u32-stpncpy.c: New file.
28422
28423         Tests for module 'unistr/u16-stpncpy'.
28424         * modules/unistr/u16-stpncpy-tests: New file.
28425         * tests/unistr/test-u16-stpncpy.c: New file.
28426
28427         Tests for module 'unistr/u8-stpncpy'.
28428         * modules/unistr/u8-stpncpy-tests: New file.
28429         * tests/unistr/test-u8-stpncpy.c: New file.
28430         * tests/unistr/test-stpncpy.h: New file.
28431
28432         Tests for module 'unistr/u32-strncpy'.
28433         * modules/unistr/u32-strncpy-tests: New file.
28434         * tests/unistr/test-u32-strncpy.c: New file.
28435
28436         Tests for module 'unistr/u16-strncpy'.
28437         * modules/unistr/u16-strncpy-tests: New file.
28438         * tests/unistr/test-u16-strncpy.c: New file.
28439
28440         Tests for module 'unistr/u8-strncpy'.
28441         * modules/unistr/u8-strncpy-tests: New file.
28442         * tests/unistr/test-u8-strncpy.c: New file.
28443         * tests/unistr/test-strncpy.h: New file.
28444
28445         Tests for module 'unistr/u32-stpcpy'.
28446         * modules/unistr/u32-stpcpy-tests: New file.
28447         * tests/unistr/test-u32-stpcpy.c: New file.
28448
28449         Tests for module 'unistr/u16-stpcpy'.
28450         * modules/unistr/u16-stpcpy-tests: New file.
28451         * tests/unistr/test-u16-stpcpy.c: New file.
28452
28453         Tests for module 'unistr/u8-stpcpy'.
28454         * modules/unistr/u8-stpcpy-tests: New file.
28455         * tests/unistr/test-u8-stpcpy.c: New file.
28456         * tests/unistr/test-stpcpy.h: New file.
28457
28458         Tests for module 'unistr/u32-strcpy'.
28459         * modules/unistr/u32-strcpy-tests: New file.
28460         * tests/unistr/test-u32-strcpy.c: New file.
28461
28462         Tests for module 'unistr/u16-strcpy'.
28463         * modules/unistr/u16-strcpy-tests: New file.
28464         * tests/unistr/test-u16-strcpy.c: New file.
28465
28466         Tests for module 'unistr/u8-strcpy'.
28467         * modules/unistr/u8-strcpy-tests: New file.
28468         * tests/unistr/test-u8-strcpy.c: New file.
28469         * tests/unistr/test-strcpy.h: New file.
28470
28471         Tests for module 'unistr/u32-strnlen'.
28472         * modules/unistr/u32-strnlen-tests: New file.
28473         * tests/unistr/test-u32-strnlen.c: New file.
28474
28475         Tests for module 'unistr/u16-strnlen'.
28476         * modules/unistr/u16-strnlen-tests: New file.
28477         * tests/unistr/test-u16-strnlen.c: New file.
28478
28479         Tests for module 'unistr/u8-strnlen'.
28480         * modules/unistr/u8-strnlen-tests: New file.
28481         * tests/unistr/test-u8-strnlen.c: New file.
28482         * tests/unistr/test-strnlen.h: New file.
28483
28484         Tests for module 'unistr/u32-strlen'.
28485         * modules/unistr/u32-strlen-tests: New file.
28486         * tests/unistr/test-u32-strlen.c: New file.
28487
28488         Tests for module 'unistr/u16-strlen'.
28489         * modules/unistr/u16-strlen-tests: New file.
28490         * tests/unistr/test-u16-strlen.c: New file.
28491
28492         Tests for module 'unistr/u8-strlen'.
28493         * modules/unistr/u8-strlen-tests: New file.
28494         * tests/unistr/test-u8-strlen.c: New file.
28495
28496         Tests for module 'unistr/u32-prev'.
28497         * modules/unistr/u32-prev-tests: New file.
28498         * tests/unistr/test-u32-prev.c: New file.
28499
28500         Tests for module 'unistr/u16-prev'.
28501         * modules/unistr/u16-prev-tests: New file.
28502         * tests/unistr/test-u16-prev.c: New file.
28503
28504         Tests for module 'unistr/u8-prev'.
28505         * modules/unistr/u8-prev-tests: New file.
28506         * tests/unistr/test-u8-prev.c: New file.
28507
28508         Tests for module 'unistr/u32-next'.
28509         * modules/unistr/u32-next-tests: New file.
28510         * tests/unistr/test-u32-next.c: New file.
28511
28512         Tests for module 'unistr/u16-next'.
28513         * modules/unistr/u16-next-tests: New file.
28514         * tests/unistr/test-u16-next.c: New file.
28515
28516         Tests for module 'unistr/u8-next'.
28517         * modules/unistr/u8-next-tests: New file.
28518         * tests/unistr/test-u8-next.c: New file.
28519
28520         Tests for module 'unistr/u32-strmbtouc'.
28521         * modules/unistr/u32-strmbtouc-tests: New file.
28522         * tests/unistr/test-u32-strmbtouc.c: New file.
28523
28524         Tests for module 'unistr/u16-strmbtouc'.
28525         * modules/unistr/u16-strmbtouc-tests: New file.
28526         * tests/unistr/test-u16-strmbtouc.c: New file.
28527
28528         Tests for module 'unistr/u8-strmbtouc'.
28529         * modules/unistr/u8-strmbtouc-tests: New file.
28530         * tests/unistr/test-u8-strmbtouc.c: New file.
28531
28532         Tests for module 'unistr/u32-strmblen'.
28533         * modules/unistr/u32-strmblen-tests: New file.
28534         * tests/unistr/test-u32-strmblen.c: New file.
28535
28536         Tests for module 'unistr/u16-strmblen'.
28537         * modules/unistr/u16-strmblen-tests: New file.
28538         * tests/unistr/test-u16-strmblen.c: New file.
28539
28540         Tests for module 'unistr/u8-strmblen'.
28541         * modules/unistr/u8-strmblen-tests: New file.
28542         * tests/unistr/test-u8-strmblen.c: New file.
28543
28544         Tests for module 'unistr/u32-cpy-alloc'.
28545         * modules/unistr/u32-cpy-alloc-tests: New file.
28546         * tests/unistr/test-u32-cpy-alloc.c: New file.
28547
28548         Tests for module 'unistr/u16-cpy-alloc'.
28549         * modules/unistr/u16-cpy-alloc-tests: New file.
28550         * tests/unistr/test-u16-cpy-alloc.c: New file.
28551
28552         Tests for module 'unistr/u8-cpy-alloc'.
28553         * modules/unistr/u8-cpy-alloc-tests: New file.
28554         * tests/unistr/test-u8-cpy-alloc.c: New file.
28555         * tests/unistr/test-cpy-alloc.h: New file.
28556
28557         Tests for module 'unistr/u32-mbsnlen'.
28558         * modules/unistr/u32-mbsnlen-tests: New file.
28559         * tests/unistr/test-u32-mbsnlen.c: New file.
28560
28561         Tests for module 'unistr/u16-mbsnlen'.
28562         * modules/unistr/u16-mbsnlen-tests: New file.
28563         * tests/unistr/test-u16-mbsnlen.c: New file.
28564
28565         Tests for module 'unistr/u8-mbsnlen'.
28566         * modules/unistr/u8-mbsnlen-tests: New file.
28567         * tests/unistr/test-u8-mbsnlen.c: New file.
28568
28569         Tests for module 'unistr/u32-chr'.
28570         * modules/unistr/u32-chr-tests: New file.
28571         * tests/unistr/test-u32-chr.c: New file.
28572
28573         Tests for module 'unistr/u16-chr'.
28574         * modules/unistr/u16-chr-tests: New file.
28575         * tests/unistr/test-u16-chr.c: New file.
28576
28577         Tests for module 'unistr/u8-chr'.
28578         * modules/unistr/u8-chr-tests: New file.
28579         * tests/unistr/test-u8-chr.c: New file.
28580         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28581
28582         Tests for module 'unistr/u32-cmp2'.
28583         * modules/unistr/u32-cmp2-tests: New file.
28584         * tests/unistr/test-u32-cmp2.c: New file.
28585
28586         Tests for module 'unistr/u16-cmp2'.
28587         * modules/unistr/u16-cmp2-tests: New file.
28588         * tests/unistr/test-u16-cmp2.c: New file.
28589
28590         Tests for module 'unistr/u8-cmp2'.
28591         * modules/unistr/u8-cmp2-tests: New file.
28592         * tests/unistr/test-u8-cmp2.c: New file.
28593         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28594
28595         Tests for module 'unistr/u32-cmp'.
28596         * modules/unistr/u32-cmp-tests: New file.
28597         * tests/unistr/test-u32-cmp.c: New file.
28598
28599         Tests for module 'unistr/u16-cmp'.
28600         * modules/unistr/u16-cmp-tests: New file.
28601         * tests/unistr/test-u16-cmp.c: New file.
28602
28603         Tests for module 'unistr/u8-cmp'.
28604         * modules/unistr/u8-cmp-tests: New file.
28605         * tests/unistr/test-u8-cmp.c: New file.
28606         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28607
28608         Tests for module 'unistr/u32-set'.
28609         * modules/unistr/u32-set-tests: New file.
28610         * tests/unistr/test-u32-set.c: New file.
28611
28612         Tests for module 'unistr/u16-set'.
28613         * modules/unistr/u16-set-tests: New file.
28614         * tests/unistr/test-u16-set.c: New file.
28615
28616         Tests for module 'unistr/u8-set'.
28617         * modules/unistr/u8-set-tests: New file.
28618         * tests/unistr/test-u8-set.c: New file.
28619         * tests/unistr/test-set.h: New file.
28620
28621         Tests for module 'unistr/u32-move'.
28622         * modules/unistr/u32-move-tests: New file.
28623         * tests/unistr/test-u32-move.c: New file.
28624
28625         Tests for module 'unistr/u16-move'.
28626         * modules/unistr/u16-move-tests: New file.
28627         * tests/unistr/test-u16-move.c: New file.
28628
28629         Tests for module 'unistr/u8-move'.
28630         * modules/unistr/u8-move-tests: New file.
28631         * tests/unistr/test-u8-move.c: New file.
28632         * tests/unistr/test-move.h: New file.
28633
28634         Tests for module 'unistr/u32-cpy'.
28635         * modules/unistr/u32-cpy-tests: New file.
28636         * tests/unistr/test-u32-cpy.c: New file.
28637
28638         Tests for module 'unistr/u16-cpy'.
28639         * modules/unistr/u16-cpy-tests: New file.
28640         * tests/unistr/test-u16-cpy.c: New file.
28641
28642         Tests for module 'unistr/u8-cpy'.
28643         * modules/unistr/u8-cpy-tests: New file.
28644         * tests/unistr/test-u8-cpy.c: New file.
28645         * tests/unistr/test-cpy.h: New file.
28646
28647 2010-01-09  Bruno Haible  <bruno@clisp.org>
28648
28649         Tests for module 'unistr/u32-uctomb'.
28650         * modules/unistr/u32-uctomb-tests: New file.
28651         * tests/unistr/test-u32-uctomb.c: New file.
28652
28653         Tests for module 'unistr/u16-uctomb'.
28654         * modules/unistr/u16-uctomb-tests: New file.
28655         * tests/unistr/test-u16-uctomb.c: New file.
28656
28657         Tests for module 'unistr/u8-uctomb'.
28658         * modules/unistr/u8-uctomb-tests: New file.
28659         * tests/unistr/test-u8-uctomb.c: New file.
28660
28661         Tests for module 'unistr/u32-mbtoucr'.
28662         * modules/unistr/u32-mbtoucr-tests: New file.
28663         * tests/unistr/test-u32-mbtoucr.c: New file.
28664
28665         Tests for module 'unistr/u16-mbtoucr'.
28666         * modules/unistr/u16-mbtoucr-tests: New file.
28667         * tests/unistr/test-u16-mbtoucr.c: New file.
28668
28669         Tests for module 'unistr/u8-mbtoucr'.
28670         * modules/unistr/u8-mbtoucr-tests: New file.
28671         * tests/unistr/test-u8-mbtoucr.c: New file.
28672
28673         Tests for module 'unistr/u32-mbtouc'.
28674         * modules/unistr/u32-mbtouc-tests: New file.
28675         * tests/unistr/test-u32-mbtouc.c: New file.
28676
28677         Tests for module 'unistr/u16-mbtouc'.
28678         * modules/unistr/u16-mbtouc-tests: New file.
28679         * tests/unistr/test-u16-mbtouc.c: New file.
28680
28681         Tests for module 'unistr/u8-mbtouc'.
28682         * modules/unistr/u8-mbtouc-tests: New file.
28683         * tests/unistr/test-u8-mbtouc.c: New file.
28684
28685         Tests for module 'unistr/u32-mbtouc-unsafe'.
28686         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28687         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28688         * tests/unistr/test-u32-mbtouc.h: New file.
28689
28690         Tests for module 'unistr/u16-mbtouc-unsafe'.
28691         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28692         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28693         * tests/unistr/test-u16-mbtouc.h: New file.
28694
28695         Tests for module 'unistr/u8-mbtouc-unsafe'.
28696         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28697         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28698         * tests/unistr/test-u8-mbtouc.h: New file.
28699
28700         Tests for module 'unistr/u32-mblen'.
28701         * modules/unistr/u32-mblen-tests: New file.
28702         * tests/unistr/test-u32-mblen.c: New file.
28703
28704         Tests for module 'unistr/u16-mblen'.
28705         * modules/unistr/u16-mblen-tests: New file.
28706         * tests/unistr/test-u16-mblen.c: New file.
28707
28708         Tests for module 'unistr/u8-mblen'.
28709         * modules/unistr/u8-mblen-tests: New file.
28710         * tests/unistr/test-u8-mblen.c: New file.
28711
28712         Tests for module 'unistr/u32-to-u16'.
28713         * modules/unistr/u32-to-u16-tests: New file.
28714         * tests/unistr/test-u32-to-u16.c: New file.
28715
28716         Tests for module 'unistr/u32-to-u8'.
28717         * modules/unistr/u32-to-u8-tests: New file.
28718         * tests/unistr/test-u32-to-u8.c: New file.
28719
28720         Tests for module 'unistr/u16-to-u32'.
28721         * modules/unistr/u16-to-u32-tests: New file.
28722         * tests/unistr/test-u16-to-u32.c: New file.
28723
28724         Tests for module 'unistr/u16-to-u8'.
28725         * modules/unistr/u16-to-u8-tests: New file.
28726         * tests/unistr/test-u16-to-u8.c: New file.
28727
28728         Tests for module 'unistr/u8-to-u32'.
28729         * modules/unistr/u8-to-u32-tests: New file.
28730         * tests/unistr/test-u8-to-u32.c: New file.
28731
28732         Tests for module 'unistr/u8-to-u16'.
28733         * modules/unistr/u8-to-u16-tests: New file.
28734         * tests/unistr/test-u8-to-u16.c: New file.
28735
28736         Tests for module 'unistr/u32-check'.
28737         * modules/unistr/u32-check-tests: New file.
28738         * tests/unistr/test-u32-check.c: New file.
28739
28740         Tests for module 'unistr/u16-check'.
28741         * modules/unistr/u16-check-tests: New file.
28742         * tests/unistr/test-u16-check.c: New file.
28743
28744         Tests for module 'unistr/u8-check'.
28745         * modules/unistr/u8-check-tests: New file.
28746         * tests/unistr/test-u8-check.c: New file.
28747
28748         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28749         (category_equals): New function.
28750         (main): Add more tests.
28751         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28752
28753         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28754
28755 2010-01-10  Bruno Haible  <bruno@clisp.org>
28756
28757         unistr/u*-strcoll: Try harder to distinguish different strings.
28758         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28759         compare s1 and s2 to see if they are different.
28760
28761 2010-01-10  Bruno Haible  <bruno@clisp.org>
28762
28763         unistr/u*-stpncpy: Fix the return value.
28764         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28765         description of the return value consistent with stpncpy in glibc.
28766         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28767         written non-NUL unit.
28768
28769 2010-01-10  Bruno Haible  <bruno@clisp.org>
28770
28771         unistr/u*-next: Add missing dependencies.
28772         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28773         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28774         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28775
28776 2010-01-10  Bruno Haible  <bruno@clisp.org>
28777
28778         unistr/u8-mbsnlen: Fix return value for incomplete character.
28779         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28780         u8_mblen.
28781         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28782         Remove unistr/u8-mblen.
28783         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28784         u16_mblen.
28785         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28786         Remove unistr/u16-mblen.
28787
28788 2010-01-10  Bruno Haible  <bruno@clisp.org>
28789
28790         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28791         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28792         Reported by Brian Gough <bjg@gnu.org> and
28793         Chris Clayton <chris2553@googlemail.com> via
28794         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28795
28796 2010-01-09  Bruno Haible  <bruno@clisp.org>
28797
28798         unistr/u16-to-u32: Reject invalid input.
28799         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28800         u16_mbtouc.
28801         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28802         Remove unistr/u16-mbtouc.
28803
28804         unistr/u16-to-u8: Reject invalid input.
28805         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28806         u16_mbtouc.
28807         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28808         Remove unistr/u16-mbtouc.
28809
28810         unistr/u8-to-u32: Reject invalid input.
28811         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28812         u8_mbtouc.
28813         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28814         Remove unistr/u8-mbtouc.
28815
28816         unistr/u8-to-u16: Reject invalid input.
28817         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28818         u8_mbtouc.
28819         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28820         Remove unistr/u8-mbtouc.
28821
28822 2010-01-09  Bruno Haible  <bruno@clisp.org>
28823
28824         Tests for module 'getlogin'.
28825         * modules/getlogin-tests: New file.
28826         * tests/test-getlogin.c: New file.
28827
28828         New module 'getlogin'.
28829         * lib/unistd.in.h (getlogin): New declaration.
28830         * lib/getlogin.c: New file.
28831         * m4/getlogin.m4: New file.
28832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28833         HAVE_GETLOGIN.
28834         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28835         HAVE_GETLOGIN.
28836         * modules/getlogin: New file.
28837         * doc/posix-functions/getlogin.texi: Mention the new module.
28838         Reported by John W. Eaton <jwe@gnu.org>.
28839
28840 2010-01-09  Bruno Haible  <bruno@clisp.org>
28841
28842         getlogin_r: Support for native Windows.
28843         * lib/getlogin_r.c: Include <windows.h>
28844         (getlogin_r): Implement for native Windows.
28845         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28846         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28847         via John W. Eaton <jwe@gnu.org>.
28848
28849 2010-01-09  Bruno Haible  <bruno@clisp.org>
28850
28851         getlogin_r: Small fixes.
28852         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28853         succeeds.
28854         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28855         before testing whether getlogin_r is declared. No need to set
28856         HAVE_DECL_GETLOGIN_R to 1.
28857         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28858
28859 2010-01-09  Bruno Haible  <bruno@clisp.org>
28860
28861         * lib/unistd.in.h (getlogin_r): Add comment.
28862
28863 2010-01-09  Bruno Haible  <bruno@clisp.org>
28864
28865         Tests for module 'getlogin_r'.
28866         * modules/getlogin_r-tests: New file.
28867         * tests/test-getlogin_r.c: New file.
28868
28869 2010-01-09  Jim Meyering  <meyering@redhat.com>
28870
28871         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28872         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28873         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28874
28875 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28876
28877         * lib/dup2.c (rpl_dup2): Improve comment.
28878
28879 2010-01-08  Eric Blake  <ebb9@byu.net>
28880
28881         maint.mk: allow packages to add makefile @@ exceptions
28882         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28883         (sc_makefile_check): Rename...
28884         (sc_makefile_at_at_check): ...to this, and use hook.
28885
28886         dup2: work around mingw bug
28887         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28888         Reported by Simon Josefsson.
28889
28890 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28891
28892         glob: Fix C++ compilation.
28893         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28894         C++.
28895
28896 2010-01-07  Bruno Haible  <bruno@clisp.org>
28897
28898         Fix indentation of wctype.in.h, broken since 2007-01-06.
28899         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28900
28901 2010-01-07  Bruno Haible  <bruno@clisp.org>
28902
28903         mbslen: Avoid collision with system function.
28904         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28905         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28906         * m4/mbslen.m4: New file.
28907         * modules/mbslen (Files): Add it.
28908         (configure.ac): Invoke gl_MBSLEN.
28909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28910         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28911         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28912         via Ian Beckwith <ianb@erislabs.net>.
28913
28914 2010-01-07  Bruno Haible  <bruno@clisp.org>
28915
28916         dirent: Document the last fix.
28917         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28918
28919 2010-01-07  Bruno Haible  <bruno@clisp.org>
28920
28921         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28922         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28923         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28924         va_list are defined.
28925         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28926         Reported by Eric Blake.
28927
28928 2010-01-07  Bruno Haible  <bruno@clisp.org>
28929
28930         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28931         * modules/xlist (Depends-on): Add 'list',
28932         * modules/xoset (Depends-on): Add 'oset'.
28933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28934
28935 2010-01-07  Bruno Haible  <bruno@clisp.org>
28936
28937         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28938         * doc/posix-functions/strncasecmp.texi: Likewise.
28939
28940 2010-01-07  Bruno Haible  <bruno@clisp.org>
28941
28942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28943
28944 2010-01-07  John W. Eaton  <jwe@octave.org>
28945
28946         wctype: allow C++ use
28947         * lib/wctype.in.h: Add extern "C" block for C++.
28948
28949 2010-01-06  Eric Blake  <ebb9@byu.net>
28950
28951         maint.mk: detect incorrect GFDL usage
28952         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28953
28954 2010-01-06  Jim Meyering  <meyering@redhat.com>
28955         and Eric Blake  <ebb9@byu.net>
28956
28957         maint.mk: ignore multi-line copyright in NEWS
28958         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28959
28960 2010-01-06  Eric Blake  <ebb9@byu.net>
28961
28962         select: add missing dependency
28963         * modules/select-tests (Depends-on): Move sockets dependency...
28964         * modules/select (Depends-on): ...here.
28965         Reported by Ian Beckwith.
28966
28967         doc: regenerate INSTALL
28968         * doc/INSTALL: Reflect recent autoconf update.
28969         * doc/INSTALL.ISO: Likewise.
28970         * doc/INSTALL.UTF-8: Likewise.
28971
28972         pread: fix compilation on glibc
28973         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28974         Reported by Ralf Wildenhues.
28975
28976         dirent: fix test failure
28977         * lib/dirent.in.h (includes): Guarantee ino_t.
28978         Reported by Ralf Wildenhues.
28979
28980 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28981
28982         linkat, renameat: avoid bad free
28983         * lib/at-func2.c (at_func2): Fix typo.
28984         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28985
28986 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28987
28988         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28989         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28990         to avoid failure of symlink test later.
28991
28992 2010-01-06  Eric Blake  <ebb9@byu.net>
28993
28994         stdio, unistd: guarantee ssize_t
28995         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28996         2008 are exposed when needed.
28997         * lib/stdio.in.h (includes): Likewise.
28998         Reported by Ralf Wildenhues.
28999
29000 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29001
29002         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29003         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29004         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29005
29006 2010-01-06  Jim Meyering  <meyering@redhat.com>
29007
29008         readtokens: this module *does* require xalloc.h
29009         It uses only functions that were omitted by the old syntax-check rule.
29010         * lib/readtokens.c: Include "xalloc.h" once again.
29011         * modules/readtokens (Depends-on): Add xalloc.
29012         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29013
29014 2010-01-05  Eric Blake  <ebb9@byu.net>
29015
29016         maint: support 'make announcement' from a VPATH build
29017         * top/maint.mk (announcement): Look for correct NEWS file.
29018
29019 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29020
29021         utimens (fdutimens): ignore a negative FD, per contract
29022         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29023         when we have a valid file descriptor.  Otherwise, using a brand
29024         new glibc (with just-patched futimens that now fails with EBADF)
29025         would cause this function to fail with ENOSYS.
29026         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29027         See also http://bugzilla.redhat.com/552320.
29028
29029 2010-01-05  Eric Blake  <ebb9@byu.net>
29030
29031         strcase: document what it provides
29032         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29033         gnulib module.
29034         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29035         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29036
29037 2010-01-05  Jim Meyering  <meyering@redhat.com>
29038
29039         maint: remove useless inclusions of "xalloc.h"
29040         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29041         * lib/readtokens.c: Likewise.
29042         * lib/same.c: Likewise.
29043         * modules/getloadavg (Depends-on): Remove xalloc.
29044         * modules/readtokens: Likewise.
29045         * modules/same: Likewise.
29046
29047         maint.mk: include 4 more function names in alloca.h-checking regexp
29048         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29049         regexp.  Before, we would give a false-positive (saying alloca.h
29050         is included unnecessarily) when the only uses involved omitted symbols.
29051
29052         xalloc.h: use consistent formatting
29053         * lib/xalloc.h: Move declarations to start in the first column.
29054
29055 2010-01-05  Eric Blake  <ebb9@byu.net>
29056
29057         mkdir: avoid xalloc
29058         * lib/mkdir.c (includes): Drop unused header.
29059         Reported by John W. Eaton.
29060
29061 2010-01-04  Jim Meyering  <meyering@redhat.com>
29062
29063         nl_langinfo: avoid configure-time syntax error
29064         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29065         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29066         the empty string.  Don't let that provoke a shell syntax error.
29067
29068         regcomp, regexec, fnmatch: avoid array bounds read error
29069         * lib/regcomp.c (build_equiv_class): From glibc:
29070         Use only the low 24 bits of a findidx return value as an index
29071         into the weights array.  Patch by Ulrich Drepper:
29072         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29073         * lib/regexec.c (check_node_accept_bytes): Likewise.
29074         * lib/fnmatch_loop.c (FCT): Likewise.
29075
29076         regcomp: skip collseq lookup when there are no rules
29077         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29078         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29079
29080         regcomp: recognize ill-formed { } expressions
29081         * lib/regcomp.c (parse_dup_op): From glibc:
29082         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29083
29084         regcomp: fix typo in comment
29085         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29086         s/satisfy/satisfies/.
29087
29088         regcomp: sync from glibc: remove dead store
29089         * lib/regcomp.c (duplicate_node_closure): Remove useless
29090         search_duplicated_node call and dead store.
29091
29092         regcomp: sync from glibc; always use nl_langinfo
29093         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29094         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29095         * modules/regex (Depends-on): Add nl_langinfo.
29096
29097 2010-01-04  Eric Blake  <ebb9@byu.net>
29098
29099         fdopendir: fix configure test
29100         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29101
29102 2010-01-01  Bruno Haible  <bruno@clisp.org>
29103
29104         wchar: Remove unused configure check.
29105         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29106
29107 2010-01-01  Eric Blake  <ebb9@byu.net>
29108
29109         headers: make check of system header explicit
29110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29111         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29112         ourselves.
29113         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29116         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29117         internals.
29118         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29119         missing.
29120         Suggested by Bruno Haible.
29121
29122 2010-01-01  Jim Meyering  <meyering@redhat.com>
29123
29124         ChangeLog: tweak to eliminate unnecessary copyright line
29125         * ChangeLog: Remove a copyright line that was mistakenly updated
29126         by today's update-copyright run.  Reported by Eric Blake.
29127
29128         test-update-copyright: don't let envvar setting cause test failure
29129         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29130
29131 2010-01-01  Bruno Haible  <bruno@clisp.org>
29132
29133         localename: Avoid gcc warning.
29134         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29135         function if it is not used.
29136
29137 2010-01-01  Jim Meyering  <meyering@redhat.com>
29138
29139         update nearly all FSF copyright year lists to include 2010
29140         Use the same procedure as for 2009, outlined in
29141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29142
29143         version-etc: set COPYRIGHT_YEAR to 2010
29144         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29145
29146 2009-12-31  Eric Blake  <ebb9@byu.net>
29147
29148         doc: correct availability of cygwin 1.5.x getopt
29149         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29150         variables.
29151         * doc/posix-functions/opterr.texi (opterr): Likewise.
29152         * doc/posix-functions/optind.texi (optind): Likewise.
29153         * doc/posix-functions/optopt.texi (optopt): Likewise.
29154         * doc/posix-functions/tzname.texi (tzname): Likewise.
29155
29156         openat: update maintainer
29157         * modules/openat (Maintainer): Add myself.
29158
29159         utimens: avoid shadowing warning
29160         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29161         buffers into one, to avoid shadowing, as well as avoiding a
29162         redundant stat.
29163         Reported by Jim Meyering.
29164
29165         test-dup2: avoid compiler warning
29166         * tests/test-dup2.c (is_inheritable): Only define if used.
29167
29168 2010-01-01  Bruno Haible  <bruno@clisp.org>
29169
29170         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29171         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29172         defined, use wctomb instead of wcrtomb.
29173
29174 2010-01-01  Bruno Haible  <bruno@clisp.org>
29175
29176         iconv: Reject native Solaris iconv.
29177         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29178         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29179
29180 2009-12-31  Bruno Haible  <bruno@clisp.org>
29181
29182         * tests/test-signal.c (main): Remove test of 'SIG'.
29183
29184 2009-12-31  Bruno Haible  <bruno@clisp.org>
29185
29186         spawn: Fix incomplete fix.
29187         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29188         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29189         warnings for GNULIB_POSIXCHECK again.
29190         Reported by Eric Blake.
29191
29192 2009-12-31  Bruno Haible  <bruno@clisp.org>
29193
29194         Avoid namespace pollution on glibc systems.
29195         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29196         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29197         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29198         glibc systems.
29199
29200 2009-12-31  Bruno Haible  <bruno@clisp.org>
29201
29202         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29203         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29204         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29205         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29206         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29207         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29208         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29209
29210 2009-12-31  Bruno Haible  <bruno@clisp.org>
29211
29212         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29213         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29214         afterwards.
29215
29216 2009-12-31  Bruno Haible  <bruno@clisp.org>
29217
29218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29219         SYS_UTSNAME_H.
29220
29221 2009-12-31  Bruno Haible  <bruno@clisp.org>
29222
29223         spawn: Fix misapplied patch.
29224         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29225         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29226         warnings for GNULIB_POSIXCHECK.
29227
29228 2009-12-31  Bruno Haible  <bruno@clisp.org>
29229
29230         times: Update after sys_times changed.
29231         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29232         * modules/times (Files): Add it.
29233         (configure.ac): Invoke gl_FUNC_TIMES.
29234
29235 2009-12-31  Bruno Haible  <bruno@clisp.org>
29236
29237         Use AC_C_INLINE where necessary.
29238         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29239         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29241         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29242         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29243         * m4/mbiter.m4 (gl_MBITER): Likewise.
29244         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29245         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29246         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29247         * modules/u64 (configure.ac): Likewise.
29248
29249 2009-12-31  Bruno Haible  <bruno@clisp.org>
29250
29251         Use AC_C_INLINE instead of module 'inline' where possible.
29252         * modules/inline (Description): Clarify purpose.
29253         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29254         * modules/count-one-bits (Depends-on): Remove inline.
29255         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29256         * modules/openat (Depends-on): Remove inline.
29257         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29258         instead of depending on module 'inline'.
29259         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29260         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29261         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29262         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29263         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29264         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29265         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29266         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29267         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29268         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29269         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29270         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29271         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29272         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29273         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29274         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29275         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29276         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29277         Likewise.
29278         * modules/unictype/property-ascii-hex-digit (Depends-on,
29279         configure.ac): Likewise.
29280         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29281         configure.ac): Likewise.
29282         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29283         configure.ac): Likewise.
29284         * modules/unictype/property-bidi-block-separator (Depends-on,
29285         configure.ac): Likewise.
29286         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29287         configure.ac): Likewise.
29288         * modules/unictype/property-bidi-common-separator (Depends-on,
29289         configure.ac): Likewise.
29290         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29291         Likewise.
29292         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29293         configure.ac): Likewise.
29294         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29295         configure.ac): Likewise.
29296         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29297         configure.ac): Likewise.
29298         * modules/unictype/property-bidi-european-digit (Depends-on,
29299         configure.ac): Likewise.
29300         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29301         configure.ac): Likewise.
29302         * modules/unictype/property-bidi-left-to-right (Depends-on,
29303         configure.ac): Likewise.
29304         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29305         configure.ac): Likewise.
29306         * modules/unictype/property-bidi-other-neutral (Depends-on,
29307         configure.ac): Likewise.
29308         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29309         Likewise.
29310         * modules/unictype/property-bidi-segment-separator (Depends-on,
29311         configure.ac): Likewise.
29312         * modules/unictype/property-bidi-whitespace (Depends-on,
29313         configure.ac): Likewise.
29314         * modules/unictype/property-combining (Depends-on, configure.ac):
29315         Likewise.
29316         * modules/unictype/property-composite (Depends-on, configure.ac):
29317         Likewise.
29318         * modules/unictype/property-currency-symbol (Depends-on,
29319         configure.ac): Likewise.
29320         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29321         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29322         Likewise.
29323         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29324         configure.ac): Likewise.
29325         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29326         Likewise.
29327         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29328         Likewise.
29329         * modules/unictype/property-extender (Depends-on, configure.ac):
29330         Likewise.
29331         * modules/unictype/property-format-control (Depends-on, configure.ac):
29332         Likewise.
29333         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29334         Likewise.
29335         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29336         Likewise.
29337         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29338         Likewise.
29339         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29340         Likewise.
29341         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29342         Likewise.
29343         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29344         Likewise.
29345         * modules/unictype/property-id-start (Depends-on, configure.ac):
29346         Likewise.
29347         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29348         Likewise.
29349         * modules/unictype/property-ids-binary-operator (Depends-on,
29350         configure.ac): Likewise.
29351         * modules/unictype/property-ids-trinary-operator (Depends-on,
29352         configure.ac): Likewise.
29353         * modules/unictype/property-ignorable-control (Depends-on,
29354         configure.ac): Likewise.
29355         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29356         Likewise.
29357         * modules/unictype/property-join-control (Depends-on, configure.ac):
29358         Likewise.
29359         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29360         Likewise.
29361         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29362         Likewise.
29363         * modules/unictype/property-logical-order-exception (Depends-on,
29364         configure.ac): Likewise.
29365         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29366         Likewise.
29367         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29368         * modules/unictype/property-non-break (Depends-on, configure.ac):
29369         Likewise.
29370         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29371         Likewise.
29372         * modules/unictype/property-numeric (Depends-on, configure.ac):
29373         Likewise.
29374         * modules/unictype/property-other-alphabetic (Depends-on,
29375         configure.ac): Likewise.
29376         * modules/unictype/property-other-default-ignorable-code-point
29377         (Depends-on, configure.ac): Likewise.
29378         * modules/unictype/property-other-grapheme-extend (Depends-on,
29379         configure.ac): Likewise.
29380         * modules/unictype/property-other-id-continue (Depends-on,
29381         configure.ac): Likewise.
29382         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29383         Likewise.
29384         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29385         Likewise.
29386         * modules/unictype/property-other-math (Depends-on, configure.ac):
29387         Likewise.
29388         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29389         Likewise.
29390         * modules/unictype/property-paired-punctuation (Depends-on,
29391         configure.ac): Likewise.
29392         * modules/unictype/property-paragraph-separator (Depends-on,
29393         configure.ac): Likewise.
29394         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29395         Likewise.
29396         * modules/unictype/property-pattern-white-space (Depends-on,
29397         configure.ac): Likewise.
29398         * modules/unictype/property-private-use (Depends-on, configure.ac):
29399         Likewise.
29400         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29401         Likewise.
29402         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29403         Likewise.
29404         * modules/unictype/property-radical (Depends-on, configure.ac):
29405         Likewise.
29406         * modules/unictype/property-sentence-terminal (Depends-on,
29407         configure.ac): Likewise.
29408         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29409         Likewise.
29410         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29411         * modules/unictype/property-terminal-punctuation (Depends-on,
29412         configure.ac): Likewise.
29413         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29414         Likewise.
29415         * modules/unictype/property-unassigned-code-value (Depends-on,
29416         configure.ac): Likewise.
29417         * modules/unictype/property-unified-ideograph (Depends-on,
29418         configure.ac): Likewise.
29419         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29420         Likewise.
29421         * modules/unictype/property-variation-selector (Depends-on,
29422         configure.ac): Likewise.
29423         * modules/unictype/property-white-space (Depends-on, configure.ac):
29424         Likewise.
29425         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29426         Likewise.
29427         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29428         Likewise.
29429         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29430         Likewise.
29431         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29432         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29433         Likewise.
29434
29435 2009-12-31  Bruno Haible  <bruno@clisp.org>
29436
29437         Remove unnecessary AC_C_INLINE invocation.
29438         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29439         since 2009-08-21.
29440
29441 2009-12-31  Jim Meyering  <meyering@redhat.com>
29442
29443         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29444         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29445         With this change, we can all remove the gpg_key_ID = ... definition
29446         from our respective cfg.mk files.
29447
29448         maint.mk: create announcement template in ~/, not in /tmp
29449         * top/maint.mk (emit_upload_commands): Adjust.
29450         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29451         Remove temporary file, .ci-msg.
29452
29453 2009-12-31  Eric Blake  <ebb9@byu.net>
29454
29455         link-warning: always build headers with link warnings
29456         * modules/arpa_inet (Makefile.am): Always build replacement
29457         header.
29458         * modules/ctype (Makefile.am): Likewise.
29459         * modules/dirent (Makefile.am): Likewise.
29460         * modules/inttypes (Makefile.am): Likewise.
29461         * modules/langinfo (Makefile.am): Likewise.
29462         * modules/locale (Makefile.am): Likewise.
29463         * modules/spawn (Makefile.am): Likewise.
29464         * modules/sys_file (Makefile.am): Likewise.
29465         * modules/sys_ioctl (Makefile.am): Likewise.
29466         * modules/sys_select (Makefile.am): Likewise.
29467         * modules/sys_socket (Makefile.am): Likewise.
29468         * modules/sys_times (Makefile.am): Likewise.
29469         * modules/sys_utsname (Makefile.am): Likewise.
29470         * modules/sys_wait (Makefile.am): Likewise.
29471         * modules/wchar (Makefile.am): Likewise.
29472         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29473         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29474         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29475         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29476         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29477         Likewise.
29478         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29479         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29481         Likewise.
29482         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29483         Likewise.
29484         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29485         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29486         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29488         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29490         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29491         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29492         (gl_WCHAR_H_DEFAULTS): Likewise.
29493
29494 2009-12-31  Eric Blake  <ebb9@byu.net>
29495
29496         signal, spawn: use link warnings
29497         * lib/signal.in.h (sigset_t): Make unconditional.
29498         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29499         (sigpending, sigprocmask, sigaction): Add link warnings.
29500         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29501         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29502         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29503         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29504         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29505         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29506         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29507         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29508         (posix_spawn_file_actions_destroy)
29509         (posix_spawn_file_actions_addopen)
29510         (posix_spawn_file_actions_addclose)
29511         (posix_spawn_file_actions_adddup2): Likewise.
29512         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29513         * tests/test-signal.c (main): Enhance test.
29514
29515         spawn: improve wrapper support
29516         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29517         (gl_SPAWN_H_DEFAULTS): New defaults.
29518         * modules/spawn (Makefile.am): Substitute them.
29519         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29520         Only declare if missing or broken.
29521
29522         sys_times, sys_utsname: use include_next
29523         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29524         header.
29525         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29526         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29527         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29528         * modules/sys_times (Depends-on): Add include_next.
29529         (Makefile.am): Substitute additional values.
29530         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29531         * lib/sys_times.in.h (includes): Include native header, if
29532         available.
29533         * lib/sys_utsname.in.h (includes): Likewise.
29534         * tests/test-sys_times.c (main): Enhance test.
29535
29536         fdutimensat: revert prior patch
29537         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29538         utimens.h.
29539         Reported by Bruno Haible.
29540
29541 2009-12-30  Eric Blake  <ebb9@byu.net>
29542
29543         sys_wait: drop link-warning dependency
29544         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29545         link-warning efforts.
29546         * lib/sys_wait.in.h: Likewise.
29547
29548         fdutimensat: remove bogus dependency
29549         * modules/fdutimensat (Depends-on): Drop inline.
29550
29551         unistd: fix typo
29552         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29553
29554 2009-12-30  Bruno Haible  <bruno@clisp.org>
29555
29556         Fix compilation error with Solaris cc.
29557         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29558         * lib/unicase/u16-is-invariant.c: Likewise.
29559         * lib/unicase/u32-is-invariant.c: Likewise.
29560         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29561
29562 2009-12-30  Bruno Haible  <bruno@clisp.org>
29563
29564         Fix test crash.
29565         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29566         locales.
29567         Reported by Simon Josefsson <simon@josefsson.org>.
29568
29569 2009-12-30  Bruno Haible  <bruno@clisp.org>
29570
29571         Fix compilation error on most platforms.
29572         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29573         Reported by Simon Josefsson <simon@josefsson.org>
29574         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29575
29576 2009-12-30  Eric Blake  <ebb9@byu.net>
29577
29578         futimens, utimensat: work around ntfs-3g bug
29579         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29580         a ctime bug is present, and expand workaround to cover ntfs-3g.
29581         * lib/utimens.c (fdutimens, lutimens): Likewise.
29582         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29583         (validate_timespec): Adjust return value.
29584         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29585         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29586         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29587
29588 2009-12-29  Eric Blake  <ebb9@byu.net>
29589
29590         link-warning: make usage consistent
29591         * modules/ctype (Depends-on): Add link-warning.
29592         (Makefile.am): Update rules accordingly.
29593         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29594         * modules/locale (Depends-on, Makefile.am): Likewise.
29595         * modules/sys_file (Makefile.am): Likewise.
29596         * modules/getopt-posix (Makefile.am): Delete unused link warning
29597         efforts.
29598         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29599         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29600         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29601         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29602
29603         stdio: remove unused variables
29604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29606         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29607
29608         tests: test more substitute headers
29609         * modules/ctype-tests: New file.
29610         * modules/dirent-tests: Likewise.
29611         * modules/spawn-tests: Likewise.
29612         * modules/sys_file-tests: Likewise.
29613         * modules/sys_ioctl-tests: Likewise.
29614         * modules/sys_wait-tests: Likewise.
29615         * tests/test-ctype.c: Likewise.
29616         * tests/test-dirent.c: Likewise.
29617         * tests/test-spawn.c: Likewise.
29618         * tests/test-sys_file.c: Likewise.
29619         * tests/test-sys_ioctl.c: Likewise.
29620         * tests/test-sys_wait.c: Likewise.
29621         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29622         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29623         whether or not flock is in use.
29624
29625         tests: remove License section from module
29626         * modules/arpa_inet-tests: Remove unneeded section.
29627         * modules/byteswap-tests: Likewise.
29628         * modules/ceilf-tests: Likewise.
29629         * modules/ceill-tests: Likewise.
29630         * modules/crypto/des-tests: Likewise.
29631         * modules/crypto/gc-arcfour-tests: Likewise.
29632         * modules/crypto/gc-arctwo-tests: Likewise.
29633         * modules/crypto/gc-des-tests: Likewise.
29634         * modules/crypto/gc-hmac-md5-tests: Likewise.
29635         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29636         * modules/crypto/gc-md2-tests: Likewise.
29637         * modules/crypto/gc-md4-tests: Likewise.
29638         * modules/crypto/gc-md5-tests: Likewise.
29639         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29640         * modules/crypto/gc-rijndael-tests: Likewise.
29641         * modules/crypto/gc-sha1-tests: Likewise.
29642         * modules/crypto/gc-tests: Likewise.
29643         * modules/crypto/md2-tests: Likewise.
29644         * modules/crypto/md4-tests: Likewise.
29645         * modules/fcntl-h-tests: Likewise.
29646         * modules/floorf-tests: Likewise.
29647         * modules/floorl-tests: Likewise.
29648         * modules/frexp-nolibm-tests: Likewise.
29649         * modules/frexp-tests: Likewise.
29650         * modules/frexpl-nolibm-tests: Likewise.
29651         * modules/frexpl-tests: Likewise.
29652         * modules/getaddrinfo-tests: Likewise.
29653         * modules/inttypes-tests: Likewise.
29654         * modules/isfinite-tests: Likewise.
29655         * modules/isinf-tests: Likewise.
29656         * modules/ldexpl-tests: Likewise.
29657         * modules/locale-tests: Likewise.
29658         * modules/math-tests: Likewise.
29659         * modules/netdb-tests: Likewise.
29660         * modules/netinet_in-tests: Likewise.
29661         * modules/printf-frexp-tests: Likewise.
29662         * modules/printf-frexpl-tests: Likewise.
29663         * modules/priv-set-tests: Likewise.
29664         * modules/random_r-tests: Likewise.
29665         * modules/round-tests: Likewise.
29666         * modules/roundf-tests: Likewise.
29667         * modules/roundl-tests: Likewise.
29668         * modules/search-tests: Likewise.
29669         * modules/select-tests: Likewise.
29670         * modules/signal-tests: Likewise.
29671         * modules/stdbool-tests: Likewise.
29672         * modules/stddef-tests: Likewise.
29673         * modules/stdint-tests: Likewise.
29674         * modules/stdio-tests: Likewise.
29675         * modules/stdlib-tests: Likewise.
29676         * modules/string-tests: Likewise.
29677         * modules/strings-tests: Likewise.
29678         * modules/sys_select-tests: Likewise.
29679         * modules/sys_socket-tests: Likewise.
29680         * modules/sys_stat-tests: Likewise.
29681         * modules/sys_time-tests: Likewise.
29682         * modules/sys_utsname-tests: Likewise.
29683         * modules/sysexits-tests: Likewise.
29684         * modules/time-tests: Likewise.
29685         * modules/trunc-tests: Likewise.
29686         * modules/truncf-tests: Likewise.
29687         * modules/truncl-tests: Likewise.
29688         * modules/tsearch-tests: Likewise.
29689         * modules/unistd-tests: Likewise.
29690         * modules/wchar-tests: Likewise.
29691         * modules/wctype-tests: Likewise.
29692
29693         tests: fix license on several tests
29694         * tests/test-des.c: Update to GPLv3+.
29695         * tests/test-flock.c: Likewise.
29696         * tests/test-fsync.c: Likewise.
29697         * tests/test-futimens.h: Likewise.
29698         * tests/test-gc-arcfour.c: Likewise.
29699         * tests/test-gc-arctwo.c: Likewise.
29700         * tests/test-gc-des.c: Likewise.
29701         * tests/test-gc-hmac-md5.c: Likewise.
29702         * tests/test-gc-hmac-sha1.c: Likewise.
29703         * tests/test-gc-md2.c: Likewise.
29704         * tests/test-gc-md4.c: Likewise.
29705         * tests/test-gc-md5.c: Likewise.
29706         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29707         * tests/test-gc-rijndael.c: Likewise.
29708         * tests/test-gc-sha1.c: Likewise.
29709         * tests/test-gc.c: Likewise.
29710         * tests/test-getcwd.c: Likewise.
29711         * tests/test-link.c: Likewise.
29712         * tests/test-link.h: Likewise.
29713         * tests/test-lutimens.h: Likewise.
29714         * tests/test-md2.c: Likewise.
29715         * tests/test-md4.c: Likewise.
29716         * tests/test-mkdir.h: Likewise.
29717         * tests/test-rename.c: Likewise.
29718         * tests/test-rename.h: Likewise.
29719         * tests/test-safe-alloc.c: Likewise.
29720         * tests/test-utimens-common.h: Likewise.
29721         * tests/test-utimens.h: Likewise.
29722
29723         maint: sync license texts
29724         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29725         * doc/gpl-3.0.texi: Revert copyright year update.
29726         * doc/lgpl-3.0.texi: Likewise.
29727
29728 2009-12-29  Jim Meyering  <meyering@redhat.com>
29729
29730         update nearly all FSF copyright year lists to include 2009
29731         The files named by the following are exempted:
29732             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29733               test -f "$dst" && { echo "$dst"; continue; }
29734               test -d "$dst" || continue
29735               echo "$dst"/$(basename "$src")
29736             done > exempt
29737             git ls-files tests/unictype >> exempt
29738         In the remaining files, convert to all-interval notation if
29739         - there is already at least one year interval like 2000-2003
29740         - the file is maintained by me
29741         - the file is in lib/uni*/, where that style already prevails
29742         Otherwise, use update-copyright's default.
29743
29744 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29745         and Eric Blake  <ebb9@byu.net>
29746
29747         tests: don't require debug system() to pass
29748         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29749         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29750         * tests/test-unlink.h (test_unlink_func): Likewise.
29751         * tests/test-fstatat.c (main): ...into callers.
29752         * tests/test-lstat.c (main): Likewise.
29753         * tests/test-rmdir.c (main): Likewise.
29754         * tests/test-unlink.c (main): Likewise.
29755         * tests/test-unlinkat.c (main): Likewise.
29756         * tests/test-areadlink-with-size.c (main): Don't require a
29757         debug-only system call to pass, aiding cross-testing to mingw.
29758         * tests/test-areadlink.c (main): Likewise.
29759         * tests/test-areadlinkat-with-size.c (main): Likewise.
29760         * tests/test-areadlinkat.c (main): Likewise.
29761         * tests/test-canonicalize-lgpl.c (main): Likewise.
29762         * tests/test-canonicalize.c (main): Likewise.
29763         * tests/test-chown.c (main): Likewise.
29764         * tests/test-fchownat.c (main): Likewise.
29765         * tests/test-lchown.c (main): Likewise.
29766         * tests/test-fdutimensat.c (main): Likewise.
29767         * tests/test-futimens.c (main): Likewise.
29768         * tests/test-link.c (main): Likewise.
29769         * tests/test-linkat.c (main): Likewise.
29770         * tests/test-mkdir.c (main): Likewise.
29771         * tests/test-mkdirat.c (main): Likewise.
29772         * tests/test-mkfifo.c (main): Likewise.
29773         * tests/test-mkfifoat.c (main): Likewise.
29774         * tests/test-mknod.c (main): Likewise.
29775         * tests/test-readlink.c (main): Likewise.
29776         * tests/test-remove.c (main): Likewise.
29777         * tests/test-rename.c (main): Likewise.
29778         * tests/test-renameat.c (main): Likewise.
29779         * tests/test-symlink.c (main): Likewise.
29780         * tests/test-symlinkat.c (main): Likewise.
29781         * tests/test-utimens.c (main): Likewise.
29782         * tests/test-utimensat.c (main): Likewise.
29783
29784 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29785
29786         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29787         on $(UNUSED_PARAMETER_H) to avoid build failure.
29788
29789 2009-12-28  Jim Meyering  <meyering@redhat.com>
29790
29791         update-copyright: you may specify a max. line length other than 72
29792         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29793
29794         maint: use consistent FSF copyright line syntax
29795         * lib/posixtm.c: Add missing comma in FSF copyright line.
29796         * lib/posixtm.h: Likewise.
29797         * lib/getugroups.c: Add missing ", Inc.".
29798
29799         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29800         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29801         FSF copyright line.  Remove trailing blanks.
29802
29803 2009-12-28  Eric Blake  <ebb9@byu.net>
29804
29805         test-dup2: reduce dependencies
29806         * modules/cloexec (Configure.ac): Set witness.
29807         * modules/dup2-tests (Depends-on): Drop cloexec.
29808         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29809         not present.
29810         Suggested by Bruno Haible.
29811
29812 2009-12-26  Bruno Haible  <bruno@clisp.org>
29813
29814         Remove an unneeded dependency.
29815         * modules/fseterr (Depends-on): Remove dup2.
29816
29817 2009-12-26  Eric Blake  <ebb9@byu.net>
29818
29819         tests: use macros.h in more places
29820         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29821         (ASSERT_STREAM): Provide default of stderr.
29822         * tests/test-dirent-safer.c: Include macros.h, using alternate
29823         stream for assertions.
29824         * tests/test-dup-safer.c: Likewise.
29825         * tests/test-freopen-safer.c: Likewise.
29826         * tests/test-getopt.c: Likewise.
29827         * tests/test-openat-safer.c: Likewise.
29828         * tests/test-pipe.c: Likewise.
29829         * tests/test-popen-safer.c: Likewise.
29830         * modules/dirent-safer-tests (Files): Include macros.h.
29831         * modules/unistd-safer-tests (Files): Likewise.
29832         * modules/freopen-safer-tests (Files): Likewise.
29833         * modules/getopt-posix-tests (Files): Likewise.
29834         * modules/openat-safer-tests (Files): Likewise.
29835         * modules/pipe-tests (Files): Likewise.
29836
29837 2009-12-26  Bruno Haible  <bruno@clisp.org>
29838
29839         javacomp: Portability fix.
29840         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29841         that it also works on Solaris.
29842
29843 2009-12-26  Bruno Haible  <bruno@clisp.org>
29844
29845         localename: Fix storage allocation of gl_locale_name_thread's result.
29846         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29847         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29848         all platforms that have 'uselocale'.
29849         (gl_locale_name_thread_unsafe): New function, extracted from
29850         gl_locale_name_thread.
29851         (gl_locale_name_thread): Call struniq on all platforms that have
29852         'uselocale'.
29853         * tests/test-localename.c (test_locale_name_thread): Check that the
29854         resulting strings are permanently allocated.
29855         * modules/localename-tests (Depends-on): Add strdup.
29856
29857 2009-12-26  Bruno Haible  <bruno@clisp.org>
29858
29859         * tests/test-localename.c (categories): Fill in the strings.
29860
29861 2009-12-26  Jim Meyering  <meyering@redhat.com>
29862
29863         isdir: complete the removal of m4/isdir.m4
29864         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29865
29866         isdir: clean up, since at least grep still uses it
29867         * lib/isdir.c: Include "isdir.h".
29868         (S_ISDIR): Remove now-unneeded definition.
29869         * modules/isdir (Files): Add lib/isdir.h.
29870         * lib/isdir.h: New file, with declaration.
29871         * m4/isdir.m4: Remove file -- unneeded.
29872
29873 2009-12-25  Bruno Haible  <bruno@clisp.org>
29874
29875         selinux-h: Make generated .h files standalone.
29876         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29877         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29878         * lib/se-selinux.in.h: Likewise.
29879         * modules/selinux-h (Depends-on): Add unused-parameter.
29880         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29881         selinux/selinux.h and selinux/context.h.
29882         Suggested by Eric Blake.
29883
29884 2009-12-25  Bruno Haible  <bruno@clisp.org>
29885
29886         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29887         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29888         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29889         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29890         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29891
29892 2009-12-24  Bruno Haible  <bruno@clisp.org>
29893
29894         openat: Fix warning.
29895         * lib/openat-proc.c: Include <unistd.h>.
29896
29897 2009-12-24  Bruno Haible  <bruno@clisp.org>
29898
29899         New module 'unused-parameter'.
29900         * build-aux/unused-parameter.h: New file, extracted from earlier
29901         gnulib-common.m4.
29902         * modules/unused-parameter: New file.
29903         * lib/unistr.h: Include unused-parameter.h.
29904         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29905         _GL_UNUSED.
29906         * modules/unistr/base (Depends-on): Add unused-parameter.
29907
29908 2009-12-24  Bruno Haible  <bruno@clisp.org>
29909
29910         Add missing dependencies to 'extensions' module.
29911         * m4/extensions.m4: Add comment.
29912         * modules/accept4 (Depends-on): Add extensions.
29913         * modules/dup3 (Depends-on): Likewise.
29914         * modules/fcntl (Depends-on): Likewise.
29915         * modules/futimens (Depends-on): Likewise.
29916         * modules/mknod (Depends-on): Likewise.
29917         * modules/pipe2 (Depends-on): Likewise.
29918         * modules/stat-time (Depends-on): Likewise.
29919         * modules/strcasestr-simple (Depends-on): Likewise.
29920         * modules/strsignal (Depends-on): Likewise.
29921         * modules/utimensat (Depends-on): Likewise.
29922         * modules/localcharset (Depends-on): Likewise. Needed because of
29923         gl_FCNTL_O_FLAGS.
29924         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29925         AC_TYPE_MBSTATE_T.
29926         * modules/wcsnrtombs (Depends-on): Likewise.
29927         * modules/wcsrtombs (Depends-on): Likewise.
29928
29929 2009-12-24  Bruno Haible  <bruno@clisp.org>
29930
29931         binary-io: Avoid gcc warning due to SET_BINARY.
29932         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29933         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29934
29935 2009-12-24  Bruno Haible  <bruno@clisp.org>
29936
29937         Avoid future namespace pollution on glibc systems.
29938         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29939         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29940         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29941         glibc systems.
29942
29943 2009-12-24  Bruno Haible  <bruno@clisp.org>
29944
29945         Refactor common macros used in tests.
29946         * tests/macros.h: New file.
29947         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29948         and/or <stdlib.h>, if appropriate.
29949         (ASSERT, SIZEOF): Remove macros.
29950         * tests/test-areadlink-with-size.c: Likewise.
29951         * tests/test-areadlinkat.c: Likewise.
29952         * tests/test-areadlinkat-with-size.c: Likewise.
29953         * tests/test-argmatch.c: Likewise.
29954         * tests/test-argv-iter.c: Likewise.
29955         * tests/test-array-mergesort.c: Likewise.
29956         * tests/test-array_list.c: Likewise.
29957         * tests/test-array_oset.c: Likewise.
29958         * tests/test-avltree_list.c: Likewise.
29959         * tests/test-avltree_oset.c: Likewise.
29960         * tests/test-avltreehash_list.c: Likewise.
29961         * tests/test-base64.c: Likewise.
29962         * tests/test-binary-io.c: Likewise.
29963         * tests/test-bitrotate.c: Likewise.
29964         * tests/test-btowc.c: Likewise.
29965         * tests/test-byteswap.c: Likewise.
29966         * tests/test-c-ctype.c: Likewise.
29967         * tests/test-c-stack.c: Likewise.
29968         * tests/test-c-strcasecmp.c: Likewise.
29969         * tests/test-c-strcasestr.c: Likewise.
29970         * tests/test-c-strncasecmp.c: Likewise.
29971         * tests/test-c-strstr.c: Likewise.
29972         * tests/test-canonicalize-lgpl.c: Likewise.
29973         * tests/test-canonicalize.c: Likewise.
29974         * tests/test-carray_list.c: Likewise.
29975         * tests/test-ceilf1.c: Likewise.
29976         * tests/test-ceilf2.c: Likewise.
29977         * tests/test-ceill.c: Likewise.
29978         * tests/test-chown.c: Likewise.
29979         * tests/test-cloexec.c: Likewise.
29980         * tests/test-copy-acl.c: Likewise.
29981         * tests/test-copy-file.c: Likewise.
29982         * tests/test-count-one-bits.c: Likewise.
29983         * tests/test-dprintf-posix.c: Likewise.
29984         * tests/test-dup2.c: Likewise.
29985         * tests/test-dup3.c: Likewise.
29986         * tests/test-duplocale.c: Likewise.
29987         * tests/test-fbufmode.c: Likewise.
29988         * tests/test-fchdir.c: Likewise.
29989         * tests/test-fchownat.c: Likewise.
29990         * tests/test-fcntl-safer.c: Likewise.
29991         * tests/test-fcntl.c: Likewise.
29992         * tests/test-fdopendir.c: Likewise.
29993         * tests/test-fdutimensat.c: Likewise.
29994         * tests/test-fflush2.c: Likewise.
29995         * tests/test-file-has-acl.c: Likewise.
29996         * tests/test-filevercmp.c: Likewise.
29997         * tests/test-flock.c: Likewise.
29998         * tests/test-floorf1.c: Likewise.
29999         * tests/test-floorf2.c: Likewise.
30000         * tests/test-floorl.c: Likewise.
30001         * tests/test-fnmatch.c: Likewise.
30002         * tests/test-fopen.h: Likewise.
30003         * tests/test-fpending.c: Likewise.
30004         * tests/test-fprintf-posix.c: Likewise.
30005         * tests/test-fpurge.c: Likewise.
30006         * tests/test-freadable.c: Likewise.
30007         * tests/test-freadahead.c: Likewise.
30008         * tests/test-freading.c: Likewise.
30009         * tests/test-freadptr.c: Likewise.
30010         * tests/test-freadptr2.c: Likewise.
30011         * tests/test-freadseek.c: Likewise.
30012         * tests/test-freopen.c: Likewise.
30013         * tests/test-frexp.c: Likewise.
30014         * tests/test-frexpl.c: Likewise.
30015         * tests/test-fseek.c: Likewise.
30016         * tests/test-fseeko.c: Likewise.
30017         * tests/test-fstatat.c: Likewise.
30018         * tests/test-fstrcmp.c: Likewise.
30019         * tests/test-fsync.c: Likewise.
30020         * tests/test-ftell.c: Likewise.
30021         * tests/test-ftello.c: Likewise.
30022         * tests/test-func.c: Likewise.
30023         * tests/test-futimens.c: Likewise.
30024         * tests/test-fwritable.c: Likewise.
30025         * tests/test-fwriting.c: Likewise.
30026         * tests/test-getcwd.c: Likewise.
30027         * tests/test-getdate.c: Likewise.
30028         * tests/test-getdelim.c: Likewise.
30029         * tests/test-getdtablesize.c: Likewise.
30030         * tests/test-getgroups.c: Likewise.
30031         * tests/test-getline.c: Likewise.
30032         * tests/test-getndelim2.c: Likewise.
30033         * tests/test-glob.c: Likewise.
30034         * tests/test-hash.c: Likewise.
30035         * tests/test-i-ring.c: Likewise.
30036         * tests/test-iconv-utf.c: Likewise.
30037         * tests/test-iconv.c: Likewise.
30038         * tests/test-idpriv-drop.c: Likewise.
30039         * tests/test-idpriv-droptemp.c: Likewise.
30040         * tests/test-inet_ntop.c: Likewise.
30041         * tests/test-inet_pton.c: Likewise.
30042         * tests/test-isblank.c: Likewise.
30043         * tests/test-isfinite.c: Likewise.
30044         * tests/test-isinf.c: Likewise.
30045         * tests/test-isnan.c: Likewise.
30046         * tests/test-isnand.h: Likewise.
30047         * tests/test-isnanf.h: Likewise.
30048         * tests/test-isnanl.h: Likewise.
30049         * tests/test-lchown.c: Likewise.
30050         * tests/test-ldexpl.c: Likewise.
30051         * tests/test-link.c: Likewise.
30052         * tests/test-linkat.c: Likewise.
30053         * tests/test-linked_list.c: Likewise.
30054         * tests/test-linkedhash_list.c: Likewise.
30055         * tests/test-localename.c: Likewise.
30056         * tests/test-lseek.c: Likewise.
30057         * tests/test-lstat.c: Likewise.
30058         * tests/test-mbmemcasecmp.c: Likewise.
30059         * tests/test-mbmemcasecoll.c: Likewise.
30060         * tests/test-mbrtowc.c: Likewise.
30061         * tests/test-mbscasecmp.c: Likewise.
30062         * tests/test-mbscasestr1.c: Likewise.
30063         * tests/test-mbscasestr2.c: Likewise.
30064         * tests/test-mbscasestr3.c: Likewise.
30065         * tests/test-mbscasestr4.c: Likewise.
30066         * tests/test-mbschr.c: Likewise.
30067         * tests/test-mbscspn.c: Likewise.
30068         * tests/test-mbsinit.c: Likewise.
30069         * tests/test-mbsncasecmp.c: Likewise.
30070         * tests/test-mbsnrtowcs.c: Likewise.
30071         * tests/test-mbspbrk.c: Likewise.
30072         * tests/test-mbspcasecmp.c: Likewise.
30073         * tests/test-mbsrchr.c: Likewise.
30074         * tests/test-mbsrtowcs.c: Likewise.
30075         * tests/test-mbsspn.c: Likewise.
30076         * tests/test-mbsstr1.c: Likewise.
30077         * tests/test-mbsstr2.c: Likewise.
30078         * tests/test-mbsstr3.c: Likewise.
30079         * tests/test-memchr.c: Likewise.
30080         * tests/test-memchr2.c: Likewise.
30081         * tests/test-memcmp.c: Likewise.
30082         * tests/test-memmem.c: Likewise.
30083         * tests/test-memrchr.c: Likewise.
30084         * tests/test-mkdir.c: Likewise.
30085         * tests/test-mkdirat.c: Likewise.
30086         * tests/test-mkfifo.c: Likewise.
30087         * tests/test-mkfifoat.c: Likewise.
30088         * tests/test-mknod.c: Likewise.
30089         * tests/test-nanosleep.c: Likewise.
30090         * tests/test-nl_langinfo.c: Likewise.
30091         * tests/test-obstack-printf.c: Likewise.
30092         * tests/test-open.c: Likewise.
30093         * tests/test-openat.c: Likewise.
30094         * tests/test-pipe-filter-gi1.c: Likewise.
30095         * tests/test-pipe-filter-gi2-main.c: Likewise.
30096         * tests/test-pipe-filter-ii1.c: Likewise.
30097         * tests/test-pipe-filter-ii2-main.c: Likewise.
30098         * tests/test-pipe2.c: Likewise.
30099         * tests/test-popen.h: Likewise.
30100         * tests/test-posixtm.c: Likewise.
30101         * tests/test-pread.c: Likewise.
30102         * tests/test-printf-frexp.c: Likewise.
30103         * tests/test-printf-frexpl.c: Likewise.
30104         * tests/test-printf-posix.c: Likewise.
30105         * tests/test-priv-set.c: Likewise.
30106         * tests/test-quotearg.c: Likewise.
30107         * tests/test-random_r.c: Likewise.
30108         * tests/test-rawmemchr.c: Likewise.
30109         * tests/test-rbtree_list.c: Likewise.
30110         * tests/test-rbtree_oset.c: Likewise.
30111         * tests/test-rbtreehash_list.c: Likewise.
30112         * tests/test-readlink.c: Likewise.
30113         * tests/test-remove.c: Likewise.
30114         * tests/test-rename.c: Likewise.
30115         * tests/test-renameat.c: Likewise.
30116         * tests/test-rmdir.c: Likewise.
30117         * tests/test-round1.c: Likewise.
30118         * tests/test-roundf1.c: Likewise.
30119         * tests/test-roundl.c: Likewise.
30120         * tests/test-safe-alloc.c: Likewise.
30121         * tests/test-sameacls.c: Likewise.
30122         * tests/test-set-mode-acl.c: Likewise.
30123         * tests/test-setenv.c: Likewise.
30124         * tests/test-sigaction.c: Likewise.
30125         * tests/test-signbit.c: Likewise.
30126         * tests/test-sleep.c: Likewise.
30127         * tests/test-snprintf-posix.c: Likewise.
30128         * tests/test-snprintf.c: Likewise.
30129         * tests/test-sprintf-posix.c: Likewise.
30130         * tests/test-stat-time.c: Likewise.
30131         * tests/test-stat.c: Likewise.
30132         * tests/test-strcasestr.c: Likewise.
30133         * tests/test-strchrnul.c: Likewise.
30134         * tests/test-strerror.c: Likewise.
30135         * tests/test-striconv.c: Likewise.
30136         * tests/test-striconveh.c: Likewise.
30137         * tests/test-striconveha.c: Likewise.
30138         * tests/test-strsignal.c: Likewise.
30139         * tests/test-strstr.c: Likewise.
30140         * tests/test-strtod.c: Likewise.
30141         * tests/test-strverscmp.c: Likewise.
30142         * tests/test-symlink.c: Likewise.
30143         * tests/test-symlinkat.c: Likewise.
30144         * tests/test-trunc1.c: Likewise.
30145         * tests/test-trunc2.c: Likewise.
30146         * tests/test-truncf1.c: Likewise.
30147         * tests/test-truncf2.c: Likewise.
30148         * tests/test-truncl.c: Likewise.
30149         * tests/test-uname.c: Likewise.
30150         * tests/test-unlink.c: Likewise.
30151         * tests/test-unlinkat.c: Likewise.
30152         * tests/test-unsetenv.c: Likewise.
30153         * tests/test-usleep.c: Likewise.
30154         * tests/test-utimens.c: Likewise.
30155         * tests/test-utimensat.c: Likewise.
30156         * tests/test-vasnprintf-posix.c: Likewise.
30157         * tests/test-vasnprintf-posix2.c: Likewise.
30158         * tests/test-vasnprintf.c: Likewise.
30159         * tests/test-vasprintf-posix.c: Likewise.
30160         * tests/test-vasprintf.c: Likewise.
30161         * tests/test-vdprintf-posix.c: Likewise.
30162         * tests/test-vfprintf-posix.c: Likewise.
30163         * tests/test-vprintf-posix.c: Likewise.
30164         * tests/test-vsnprintf-posix.c: Likewise.
30165         * tests/test-vsnprintf.c: Likewise.
30166         * tests/test-vsprintf-posix.c: Likewise.
30167         * tests/test-wcrtomb.c: Likewise.
30168         * tests/test-wcsnrtombs.c: Likewise.
30169         * tests/test-wcsrtombs.c: Likewise.
30170         * tests/test-wctype.c: Likewise.
30171         * tests/test-wcwidth.c: Likewise.
30172         * tests/test-xfprintf-posix.c: Likewise.
30173         * tests/test-xmemdup0.c: Likewise.
30174         * tests/test-xprintf-posix.c: Likewise.
30175         * tests/test-xvasprintf.c: Likewise.
30176         * tests/unicase/test-locale-language.c: Likewise.
30177         * tests/unicase/test-mapping-part1.h: Likewise.
30178         * tests/unicase/test-predicate-part1.h: Likewise.
30179         * tests/unicase/test-u8-casecmp.c: Likewise.
30180         * tests/unicase/test-u8-casecoll.c: Likewise.
30181         * tests/unicase/test-u8-casefold.c: Likewise.
30182         * tests/unicase/test-u8-is-cased.c: Likewise.
30183         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30184         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30185         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30186         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30187         * tests/unicase/test-u8-tolower.c: Likewise.
30188         * tests/unicase/test-u8-totitle.c: Likewise.
30189         * tests/unicase/test-u8-toupper.c: Likewise.
30190         * tests/unicase/test-u16-casecmp.c: Likewise.
30191         * tests/unicase/test-u16-casecoll.c: Likewise.
30192         * tests/unicase/test-u16-casefold.c: Likewise.
30193         * tests/unicase/test-u16-is-cased.c: Likewise.
30194         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30195         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30196         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30197         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30198         * tests/unicase/test-u16-tolower.c: Likewise.
30199         * tests/unicase/test-u16-totitle.c: Likewise.
30200         * tests/unicase/test-u16-toupper.c: Likewise.
30201         * tests/unicase/test-u32-casecmp.c: Likewise.
30202         * tests/unicase/test-u32-casecoll.c: Likewise.
30203         * tests/unicase/test-u32-casefold.c: Likewise.
30204         * tests/unicase/test-u32-is-cased.c: Likewise.
30205         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30206         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30207         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30208         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30209         * tests/unicase/test-u32-tolower.c: Likewise.
30210         * tests/unicase/test-u32-totitle.c: Likewise.
30211         * tests/unicase/test-u32-toupper.c: Likewise.
30212         * tests/unicase/test-ulc-casecmp.c: Likewise.
30213         * tests/unicase/test-ulc-casecoll.c: Likewise.
30214         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30215         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30216         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30217         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30218         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30219         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30220         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30221         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30222         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30223         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30224         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30225         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30226         * tests/unictype/test-bidi_byname.c: Likewise.
30227         * tests/unictype/test-bidi_name.c: Likewise.
30228         * tests/unictype/test-bidi_of.c: Likewise.
30229         * tests/unictype/test-bidi_test.c: Likewise.
30230         * tests/unictype/test-block_list.c: Likewise.
30231         * tests/unictype/test-block_of.c: Likewise.
30232         * tests/unictype/test-block_test.c: Likewise.
30233         * tests/unictype/test-categ_and.c: Likewise.
30234         * tests/unictype/test-categ_and_not.c: Likewise.
30235         * tests/unictype/test-categ_byname.c: Likewise.
30236         * tests/unictype/test-categ_name.c: Likewise.
30237         * tests/unictype/test-categ_none.c: Likewise.
30238         * tests/unictype/test-categ_of.c: Likewise.
30239         * tests/unictype/test-categ_or.c: Likewise.
30240         * tests/unictype/test-categ_test_withtable.c: Likewise.
30241         * tests/unictype/test-combining.c: Likewise.
30242         * tests/unictype/test-decdigit.c: Likewise.
30243         * tests/unictype/test-digit.c: Likewise.
30244         * tests/unictype/test-mirror.c: Likewise.
30245         * tests/unictype/test-numeric.c: Likewise.
30246         * tests/unictype/test-pr_byname.c: Likewise.
30247         * tests/unictype/test-pr_test.c: Likewise.
30248         * tests/unictype/test-predicate-part1.h: Likewise.
30249         * tests/unictype/test-scripts.c: Likewise.
30250         * tests/unictype/test-sy_c_ident.c: Likewise.
30251         * tests/unictype/test-sy_java_ident.c: Likewise.
30252         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30253         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30254         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30255         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30256         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30257         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30258         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30259         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30260         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30261         * tests/uninorm/test-compat-decomposition.c: Likewise.
30262         * tests/uninorm/test-composition.c: Likewise.
30263         * tests/uninorm/test-decomposing-form.c: Likewise.
30264         * tests/uninorm/test-decomposition.c: Likewise.
30265         * tests/uninorm/test-u8-nfc.c: Likewise.
30266         * tests/uninorm/test-u8-nfd.c: Likewise.
30267         * tests/uninorm/test-u8-nfkc.c: Likewise.
30268         * tests/uninorm/test-u8-nfkd.c: Likewise.
30269         * tests/uninorm/test-u8-normcmp.c: Likewise.
30270         * tests/uninorm/test-u8-normcoll.c: Likewise.
30271         * tests/uninorm/test-u16-nfc.c: Likewise.
30272         * tests/uninorm/test-u16-nfd.c: Likewise.
30273         * tests/uninorm/test-u16-nfkc.c: Likewise.
30274         * tests/uninorm/test-u16-nfkd.c: Likewise.
30275         * tests/uninorm/test-u16-normcmp.c: Likewise.
30276         * tests/uninorm/test-u16-normcoll.c: Likewise.
30277         * tests/uninorm/test-u32-nfc.c: Likewise.
30278         * tests/uninorm/test-u32-nfd.c: Likewise.
30279         * tests/uninorm/test-u32-nfkc.c: Likewise.
30280         * tests/uninorm/test-u32-nfkd.c: Likewise.
30281         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30282         * tests/uninorm/test-u32-normcmp.c: Likewise.
30283         * tests/uninorm/test-u32-normcoll.c: Likewise.
30284         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30285         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30286         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30287         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30288         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30289         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30290         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30291         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30292         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30293         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30294         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30295         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30296         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30297         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30298         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30299         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30300         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30301         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30302         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30303         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30304         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30305         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30306         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30307         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30308         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30309         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30310         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30311         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30312         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30313         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30314         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30315         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30316         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30317         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30318         * tests/uniwidth/test-u8-width.c: Likewise.
30319         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30320         * tests/uniwidth/test-u16-width.c: Likewise.
30321         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30322         * tests/uniwidth/test-u32-width.c: Likewise.
30323         * tests/uniwidth/test-uc_width.c: Likewise.
30324         * tests/uniwidth/test-uc_width2.c: Likewise.
30325         * modules/acl-tests (Files): Add tests/macros.h.
30326         * modules/areadlink-tests (Files): Likewise.
30327         * modules/areadlink-with-size-tests (Files): Likewise.
30328         * modules/areadlinkat-tests (Files): Likewise.
30329         * modules/areadlinkat-with-size-tests (Files): Likewise.
30330         * modules/argmatch-tests (Files): Likewise.
30331         * modules/argv-iter-tests (Files): Likewise.
30332         * modules/array-list-tests (Files): Likewise.
30333         * modules/array-mergesort-tests (Files): Likewise.
30334         * modules/array-oset-tests (Files): Likewise.
30335         * modules/avltree-list-tests (Files): Likewise.
30336         * modules/avltree-oset-tests (Files): Likewise.
30337         * modules/avltreehash-list-tests (Files): Likewise.
30338         * modules/base64-tests (Files): Likewise.
30339         * modules/binary-io-tests (Files): Likewise.
30340         * modules/bitrotate-tests (Files): Likewise.
30341         * modules/btowc-tests (Files): Likewise.
30342         * modules/byteswap-tests (Files): Likewise.
30343         * modules/c-ctype-tests (Files): Likewise.
30344         * modules/c-stack-tests (Files): Likewise.
30345         * modules/c-strcase-tests (Files): Likewise.
30346         * modules/c-strcasestr-tests (Files): Likewise.
30347         * modules/c-strstr-tests (Files): Likewise.
30348         * modules/canonicalize-lgpl-tests (Files): Likewise.
30349         * modules/canonicalize-tests (Files): Likewise.
30350         * modules/carray-list-tests (Files): Likewise.
30351         * modules/ceilf-tests (Files): Likewise.
30352         * modules/ceill-tests (Files): Likewise.
30353         * modules/chown-tests (Files): Likewise.
30354         * modules/cloexec-tests (Files): Likewise.
30355         * modules/copy-file-tests (Files): Likewise.
30356         * modules/count-one-bits-tests (Files): Likewise.
30357         * modules/dprintf-posix-tests (Files): Likewise.
30358         * modules/dup2-tests (Files): Likewise.
30359         * modules/dup3-tests (Files): Likewise.
30360         * modules/duplocale-tests (Files): Likewise.
30361         * modules/fbufmode-tests (Files): Likewise.
30362         * modules/fchdir-tests (Files): Likewise.
30363         * modules/fcntl-safer-tests (Files): Likewise.
30364         * modules/fcntl-tests (Files): Likewise.
30365         * modules/fdopendir-tests (Files): Likewise.
30366         * modules/fdutimensat-tests (Files): Likewise.
30367         * modules/fflush-tests (Files): Likewise.
30368         * modules/filevercmp-tests (Files): Likewise.
30369         * modules/flock-tests (Files): Likewise.
30370         * modules/floorf-tests (Files): Likewise.
30371         * modules/floorl-tests (Files): Likewise.
30372         * modules/fnmatch-tests (Files): Likewise.
30373         * modules/fopen-safer-tests (Files): Likewise.
30374         * modules/fopen-tests (Files): Likewise.
30375         * modules/fpending-tests (Files): Likewise.
30376         * modules/fprintf-posix-tests (Files): Likewise.
30377         * modules/fpurge-tests (Files): Likewise.
30378         * modules/freadable-tests (Files): Likewise.
30379         * modules/freadahead-tests (Files): Likewise.
30380         * modules/freading-tests (Files): Likewise.
30381         * modules/freadptr-tests (Files): Likewise.
30382         * modules/freadseek-tests (Files): Likewise.
30383         * modules/freopen-tests (Files): Likewise.
30384         * modules/frexp-nolibm-tests (Files): Likewise.
30385         * modules/frexp-tests (Files): Likewise.
30386         * modules/frexpl-nolibm-tests (Files): Likewise.
30387         * modules/frexpl-tests (Files): Likewise.
30388         * modules/fseek-tests (Files): Likewise.
30389         * modules/fseeko-tests (Files): Likewise.
30390         * modules/fstrcmp-tests (Files): Likewise.
30391         * modules/fsync-tests (Files): Likewise.
30392         * modules/ftell-tests (Files): Likewise.
30393         * modules/ftello-tests (Files): Likewise.
30394         * modules/func-tests (Files): Likewise.
30395         * modules/futimens-tests (Files): Likewise.
30396         * modules/fwritable-tests (Files): Likewise.
30397         * modules/fwriting-tests (Files): Likewise.
30398         * modules/getcwd-tests (Files): Likewise.
30399         * modules/getdate-tests (Files): Likewise.
30400         * modules/getdelim-tests (Files): Likewise.
30401         * modules/getdtablesize-tests (Files): Likewise.
30402         * modules/getgroups-tests (Files): Likewise.
30403         * modules/getline-tests (Files): Likewise.
30404         * modules/getndelim2-tests (Files): Likewise.
30405         * modules/glob-tests (Files): Likewise.
30406         * modules/hash-tests (Files): Likewise.
30407         * modules/i-ring-tests (Files): Likewise.
30408         * modules/iconv-tests (Files): Likewise.
30409         * modules/iconv_open-utf-tests (Files): Likewise.
30410         * modules/idpriv-drop-tests (Files): Likewise.
30411         * modules/idpriv-droptemp-tests (Files): Likewise.
30412         * modules/inet_ntop-tests (Files): Likewise.
30413         * modules/inet_pton-tests (Files): Likewise.
30414         * modules/isblank-tests (Files): Likewise.
30415         * modules/isfinite-tests (Files): Likewise.
30416         * modules/isinf-tests (Files): Likewise.
30417         * modules/isnan-tests (Files): Likewise.
30418         * modules/isnand-nolibm-tests (Files): Likewise.
30419         * modules/isnand-tests (Files): Likewise.
30420         * modules/isnanf-nolibm-tests (Files): Likewise.
30421         * modules/isnanf-tests (Files): Likewise.
30422         * modules/isnanl-nolibm-tests (Files): Likewise.
30423         * modules/isnanl-tests (Files): Likewise.
30424         * modules/lchown-tests (Files): Likewise.
30425         * modules/ldexpl-tests (Files): Likewise.
30426         * modules/link-tests (Files): Likewise.
30427         * modules/linkat-tests (Files): Likewise.
30428         * modules/linked-list-tests (Files): Likewise.
30429         * modules/linkedhash-list-tests (Files): Likewise.
30430         * modules/localename-tests (Files): Likewise.
30431         * modules/lseek-tests (Files): Likewise.
30432         * modules/lstat-tests (Files): Likewise.
30433         * modules/mbmemcasecmp-tests (Files): Likewise.
30434         * modules/mbmemcasecoll-tests (Files): Likewise.
30435         * modules/mbrtowc-tests (Files): Likewise.
30436         * modules/mbscasecmp-tests (Files): Likewise.
30437         * modules/mbscasestr-tests (Files): Likewise.
30438         * modules/mbschr-tests (Files): Likewise.
30439         * modules/mbscspn-tests (Files): Likewise.
30440         * modules/mbsinit-tests (Files): Likewise.
30441         * modules/mbsncasecmp-tests (Files): Likewise.
30442         * modules/mbsnrtowcs-tests (Files): Likewise.
30443         * modules/mbspbrk-tests (Files): Likewise.
30444         * modules/mbspcasecmp-tests (Files): Likewise.
30445         * modules/mbsrchr-tests (Files): Likewise.
30446         * modules/mbsrtowcs-tests (Files): Likewise.
30447         * modules/mbsspn-tests (Files): Likewise.
30448         * modules/mbsstr-tests (Files): Likewise.
30449         * modules/memchr-tests (Files): Likewise.
30450         * modules/memchr2-tests (Files): Likewise.
30451         * modules/memcmp-tests (Files): Likewise.
30452         * modules/memmem-tests (Files): Likewise.
30453         * modules/memrchr-tests (Files): Likewise.
30454         * modules/mkdir-tests (Files): Likewise.
30455         * modules/mkfifo-tests (Files): Likewise.
30456         * modules/mkfifoat-tests (Files): Likewise.
30457         * modules/mknod-tests (Files): Likewise.
30458         * modules/nanosleep-tests (Files): Likewise.
30459         * modules/nl_langinfo-tests (Files): Likewise.
30460         * modules/obstack-printf-tests (Files): Likewise.
30461         * modules/open-tests (Files): Likewise.
30462         * modules/openat-tests (Files): Likewise.
30463         * modules/pipe-filter-gi-tests (Files): Likewise.
30464         * modules/pipe-filter-ii-tests (Files): Likewise.
30465         * modules/pipe2-tests (Files): Likewise.
30466         * modules/popen-safer-tests (Files): Likewise.
30467         * modules/popen-tests (Files): Likewise.
30468         * modules/posixtm-tests (Files): Likewise.
30469         * modules/pread-tests (Files): Likewise.
30470         * modules/printf-frexp-tests (Files): Likewise.
30471         * modules/printf-frexpl-tests (Files): Likewise.
30472         * modules/printf-posix-tests (Files): Likewise.
30473         * modules/priv-set-tests (Files): Likewise.
30474         * modules/quotearg-tests (Files): Likewise.
30475         * modules/random_r-tests (Files): Likewise.
30476         * modules/rawmemchr-tests (Files): Likewise.
30477         * modules/rbtree-list-tests (Files): Likewise.
30478         * modules/rbtree-oset-tests (Files): Likewise.
30479         * modules/rbtreehash-list-tests (Files): Likewise.
30480         * modules/readlink-tests (Files): Likewise.
30481         * modules/remove-tests (Files): Likewise.
30482         * modules/rename-tests (Files): Likewise.
30483         * modules/renameat-tests (Files): Likewise.
30484         * modules/rmdir-tests (Files): Likewise.
30485         * modules/round-tests (Files): Likewise.
30486         * modules/roundf-tests (Files): Likewise.
30487         * modules/roundl-tests (Files): Likewise.
30488         * modules/safe-alloc-tests (Files): Likewise.
30489         * modules/setenv-tests (Files): Likewise.
30490         * modules/sigaction-tests (Files): Likewise.
30491         * modules/signbit-tests (Files): Likewise.
30492         * modules/sleep-tests (Files): Likewise.
30493         * modules/snprintf-posix-tests (Files): Likewise.
30494         * modules/snprintf-tests (Files): Likewise.
30495         * modules/sprintf-posix-tests (Files): Likewise.
30496         * modules/stat-tests (Files): Likewise.
30497         * modules/stat-time-tests (Files): Likewise.
30498         * modules/strcasestr-tests (Files): Likewise.
30499         * modules/strchrnul-tests (Files): Likewise.
30500         * modules/strerror-tests (Files): Likewise.
30501         * modules/striconv-tests (Files): Likewise.
30502         * modules/striconveh-tests (Files): Likewise.
30503         * modules/striconveha-tests (Files): Likewise.
30504         * modules/strsignal-tests (Files): Likewise.
30505         * modules/strstr-tests (Files): Likewise.
30506         * modules/strtod-tests (Files): Likewise.
30507         * modules/strverscmp-tests (Files): Likewise.
30508         * modules/symlink-tests (Files): Likewise.
30509         * modules/symlinkat-tests (Files): Likewise.
30510         * modules/trunc-tests (Files): Likewise.
30511         * modules/truncf-tests (Files): Likewise.
30512         * modules/truncl-tests (Files): Likewise.
30513         * modules/uname-tests (Files): Likewise.
30514         * modules/unicase/cased-tests (Files): Likewise.
30515         * modules/unicase/ignorable-tests (Files): Likewise.
30516         * modules/unicase/locale-language-tests (Files): Likewise.
30517         * modules/unicase/tolower-tests (Files): Likewise.
30518         * modules/unicase/totitle-tests (Files): Likewise.
30519         * modules/unicase/toupper-tests (Files): Likewise.
30520         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30521         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30522         * modules/unicase/u8-casefold-tests (Files): Likewise.
30523         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30524         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30525         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30526         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30527         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30528         * modules/unicase/u8-tolower-tests (Files): Likewise.
30529         * modules/unicase/u8-totitle-tests (Files): Likewise.
30530         * modules/unicase/u8-toupper-tests (Files): Likewise.
30531         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30532         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30533         * modules/unicase/u16-casefold-tests (Files): Likewise.
30534         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30535         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30536         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30537         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30538         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30539         * modules/unicase/u16-tolower-tests (Files): Likewise.
30540         * modules/unicase/u16-totitle-tests (Files): Likewise.
30541         * modules/unicase/u16-toupper-tests (Files): Likewise.
30542         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30543         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30544         * modules/unicase/u32-casefold-tests (Files): Likewise.
30545         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30546         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30547         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30548         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30549         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30550         * modules/unicase/u32-tolower-tests (Files): Likewise.
30551         * modules/unicase/u32-totitle-tests (Files): Likewise.
30552         * modules/unicase/u32-toupper-tests (Files): Likewise.
30553         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30554         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30555         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30556         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30557         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30558         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30559         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30560         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30561         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30562         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30563         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30564         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30565         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30566         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30567         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30568         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30569         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30570         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30571         * modules/unictype/block-list-tests (Files): Likewise.
30572         * modules/unictype/block-of-tests (Files): Likewise.
30573         * modules/unictype/block-test-tests (Files): Likewise.
30574         * modules/unictype/category-C-tests (Files): Likewise.
30575         * modules/unictype/category-Cc-tests (Files): Likewise.
30576         * modules/unictype/category-Cf-tests (Files): Likewise.
30577         * modules/unictype/category-Cn-tests (Files): Likewise.
30578         * modules/unictype/category-Co-tests (Files): Likewise.
30579         * modules/unictype/category-Cs-tests (Files): Likewise.
30580         * modules/unictype/category-L-tests (Files): Likewise.
30581         * modules/unictype/category-Ll-tests (Files): Likewise.
30582         * modules/unictype/category-Lm-tests (Files): Likewise.
30583         * modules/unictype/category-Lo-tests (Files): Likewise.
30584         * modules/unictype/category-Lt-tests (Files): Likewise.
30585         * modules/unictype/category-Lu-tests (Files): Likewise.
30586         * modules/unictype/category-M-tests (Files): Likewise.
30587         * modules/unictype/category-Mc-tests (Files): Likewise.
30588         * modules/unictype/category-Me-tests (Files): Likewise.
30589         * modules/unictype/category-Mn-tests (Files): Likewise.
30590         * modules/unictype/category-N-tests (Files): Likewise.
30591         * modules/unictype/category-Nd-tests (Files): Likewise.
30592         * modules/unictype/category-Nl-tests (Files): Likewise.
30593         * modules/unictype/category-No-tests (Files): Likewise.
30594         * modules/unictype/category-P-tests (Files): Likewise.
30595         * modules/unictype/category-Pc-tests (Files): Likewise.
30596         * modules/unictype/category-Pd-tests (Files): Likewise.
30597         * modules/unictype/category-Pe-tests (Files): Likewise.
30598         * modules/unictype/category-Pf-tests (Files): Likewise.
30599         * modules/unictype/category-Pi-tests (Files): Likewise.
30600         * modules/unictype/category-Po-tests (Files): Likewise.
30601         * modules/unictype/category-Ps-tests (Files): Likewise.
30602         * modules/unictype/category-S-tests (Files): Likewise.
30603         * modules/unictype/category-Sc-tests (Files): Likewise.
30604         * modules/unictype/category-Sk-tests (Files): Likewise.
30605         * modules/unictype/category-Sm-tests (Files): Likewise.
30606         * modules/unictype/category-So-tests (Files): Likewise.
30607         * modules/unictype/category-Z-tests (Files): Likewise.
30608         * modules/unictype/category-Zl-tests (Files): Likewise.
30609         * modules/unictype/category-Zp-tests (Files): Likewise.
30610         * modules/unictype/category-Zs-tests (Files): Likewise.
30611         * modules/unictype/category-and-not-tests (Files): Likewise.
30612         * modules/unictype/category-and-tests (Files): Likewise.
30613         * modules/unictype/category-byname-tests (Files): Likewise.
30614         * modules/unictype/category-name-tests (Files): Likewise.
30615         * modules/unictype/category-none-tests (Files): Likewise.
30616         * modules/unictype/category-of-tests (Files): Likewise.
30617         * modules/unictype/category-or-tests (Files): Likewise.
30618         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30619         * modules/unictype/combining-class-tests (Files): Likewise.
30620         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30621         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30622         * modules/unictype/ctype-blank-tests (Files): Likewise.
30623         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30624         * modules/unictype/ctype-digit-tests (Files): Likewise.
30625         * modules/unictype/ctype-graph-tests (Files): Likewise.
30626         * modules/unictype/ctype-lower-tests (Files): Likewise.
30627         * modules/unictype/ctype-print-tests (Files): Likewise.
30628         * modules/unictype/ctype-punct-tests (Files): Likewise.
30629         * modules/unictype/ctype-space-tests (Files): Likewise.
30630         * modules/unictype/ctype-upper-tests (Files): Likewise.
30631         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30632         * modules/unictype/decimal-digit-tests (Files): Likewise.
30633         * modules/unictype/digit-tests (Files): Likewise.
30634         * modules/unictype/mirror-tests (Files): Likewise.
30635         * modules/unictype/numeric-tests (Files): Likewise.
30636         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30637         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30638         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30639         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30640         Likewise.
30641         * modules/unictype/property-bidi-block-separator-tests (Files):
30642         Likewise.
30643         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30644         Likewise.
30645         * modules/unictype/property-bidi-common-separator-tests (Files):
30646         Likewise.
30647         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30648         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30649         Likewise.
30650         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30651         Likewise.
30652         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30653         Likewise.
30654         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30655         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30656         Likewise.
30657         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30658         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30659         Likewise.
30660         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30661         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30662         * modules/unictype/property-bidi-segment-separator-tests (Files):
30663         Likewise.
30664         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30665         * modules/unictype/property-byname-tests (Files): Likewise.
30666         * modules/unictype/property-combining-tests (Files): Likewise.
30667         * modules/unictype/property-composite-tests (Files): Likewise.
30668         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30669         * modules/unictype/property-dash-tests (Files): Likewise.
30670         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30671         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30672         Likewise.
30673         * modules/unictype/property-deprecated-tests (Files): Likewise.
30674         * modules/unictype/property-diacritic-tests (Files): Likewise.
30675         * modules/unictype/property-extender-tests (Files): Likewise.
30676         * modules/unictype/property-format-control-tests (Files): Likewise.
30677         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30678         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30679         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30680         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30681         * modules/unictype/property-hyphen-tests (Files): Likewise.
30682         * modules/unictype/property-id-continue-tests (Files): Likewise.
30683         * modules/unictype/property-id-start-tests (Files): Likewise.
30684         * modules/unictype/property-ideographic-tests (Files): Likewise.
30685         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30686         * modules/unictype/property-ids-trinary-operator-tests (Files):
30687         Likewise.
30688         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30689         * modules/unictype/property-iso-control-tests (Files): Likewise.
30690         * modules/unictype/property-join-control-tests (Files): Likewise.
30691         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30692         * modules/unictype/property-line-separator-tests (Files): Likewise.
30693         * modules/unictype/property-logical-order-exception-tests (Files):
30694         Likewise.
30695         * modules/unictype/property-lowercase-tests (Files): Likewise.
30696         * modules/unictype/property-math-tests (Files): Likewise.
30697         * modules/unictype/property-non-break-tests (Files): Likewise.
30698         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30699         * modules/unictype/property-numeric-tests (Files): Likewise.
30700         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30701         * modules/unictype/property-other-default-ignorable-code-point-tests
30702         (Files): Likewise.
30703         * modules/unictype/property-other-grapheme-extend-tests (Files):
30704         Likewise.
30705         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30706         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30707         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30708         * modules/unictype/property-other-math-tests (Files): Likewise.
30709         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30710         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30711         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30712         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30713         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30714         * modules/unictype/property-private-use-tests (Files): Likewise.
30715         * modules/unictype/property-punctuation-tests (Files): Likewise.
30716         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30717         * modules/unictype/property-radical-tests (Files): Likewise.
30718         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30719         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30720         * modules/unictype/property-space-tests (Files): Likewise.
30721         * modules/unictype/property-terminal-punctuation-tests (Files):
30722         Likewise.
30723         * modules/unictype/property-test-tests (Files): Likewise.
30724         * modules/unictype/property-titlecase-tests (Files): Likewise.
30725         * modules/unictype/property-unassigned-code-value-tests (Files):
30726         Likewise.
30727         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30728         * modules/unictype/property-uppercase-tests (Files): Likewise.
30729         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30730         * modules/unictype/property-white-space-tests (Files): Likewise.
30731         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30732         * modules/unictype/property-xid-start-tests (Files): Likewise.
30733         * modules/unictype/property-zero-width-tests (Files): Likewise.
30734         * modules/unictype/scripts-tests (Files): Likewise.
30735         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30736         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30737         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30738         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30739         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30740         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30741         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30742         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30743         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30744         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30745         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30746         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30747         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30748         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30749         * modules/uninorm/composition-tests (Files): Likewise.
30750         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30751         * modules/uninorm/decomposition-tests (Files): Likewise.
30752         * modules/uninorm/filter-tests (Files): Likewise.
30753         * modules/uninorm/nfc-tests (Files): Likewise.
30754         * modules/uninorm/nfd-tests (Files): Likewise.
30755         * modules/uninorm/nfkc-tests (Files): Likewise.
30756         * modules/uninorm/nfkd-tests (Files): Likewise.
30757         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30758         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30759         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30760         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30761         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30762         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30763         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30764         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30765         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30766         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30767         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30768         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30769         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30770         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30771         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30772         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30773         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30774         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30775         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30776         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30777         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30778         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30779         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30780         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30781         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30782         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30783         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30784         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30785         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30786         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30787         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30788         * modules/uniwidth/u8-width-tests (Files): Likewise.
30789         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30790         * modules/uniwidth/u16-width-tests (Files): Likewise.
30791         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30792         * modules/uniwidth/u32-width-tests (Files): Likewise.
30793         * modules/uniwidth/width-tests (Files): Likewise.
30794         * modules/unlink-tests (Files): Likewise.
30795         * modules/unsetenv-tests (Files): Likewise.
30796         * modules/usleep-tests (Files): Likewise.
30797         * modules/utimens-tests (Files): Likewise.
30798         * modules/utimensat-tests (Files): Likewise.
30799         * modules/vasnprintf-posix-tests (Files): Likewise.
30800         * modules/vasnprintf-tests (Files): Likewise.
30801         * modules/vasprintf-posix-tests (Files): Likewise.
30802         * modules/vasprintf-tests (Files): Likewise.
30803         * modules/vdprintf-posix-tests (Files): Likewise.
30804         * modules/vfprintf-posix-tests (Files): Likewise.
30805         * modules/vprintf-posix-tests (Files): Likewise.
30806         * modules/vsnprintf-posix-tests (Files): Likewise.
30807         * modules/vsnprintf-tests (Files): Likewise.
30808         * modules/vsprintf-posix-tests (Files): Likewise.
30809         * modules/wcrtomb-tests (Files): Likewise.
30810         * modules/wcsnrtombs-tests (Files): Likewise.
30811         * modules/wcsrtombs-tests (Files): Likewise.
30812         * modules/wctype-tests (Files): Likewise.
30813         * modules/wcwidth-tests (Files): Likewise.
30814         * modules/xmemdup0-tests (Files): Likewise.
30815         * modules/xprintf-posix-tests (Files): Likewise.
30816         * modules/xvasprintf-tests (Files): Likewise.
30817
30818 2009-12-24  Eric Blake  <ebb9@byu.net>
30819
30820         test-nanosleep: fix typo
30821         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30822         patch.
30823         Reported by Bruno Haible.
30824
30825 2009-12-24  Bruno Haible  <bruno@clisp.org>
30826
30827         Reduce namespace pollution on glibc systems.
30828         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30829         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30830         systems.
30831         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30832         <getopt.h> on glibc systems.
30833         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30834         systems.
30835         * lib/fcntl.c: Include <unistd.h> here instead.
30836
30837 2009-12-24  Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30840
30841 2009-12-24  Eric Blake  <ebb9@byu.net>
30842
30843         tests: add signature checks
30844         * tests/signature.h (SIGNATURE_CHECK): New file.
30845         * modules/atexit-tests (Files): Use it.
30846         * modules/btowc-tests (Files): Likewise.
30847         * modules/canonicalize-lgpl-tests (Files): Likewise.
30848         * modules/ceilf-tests (Files): Likewise.
30849         * modules/ceill-tests (Files): Likewise.
30850         * modules/chown-tests (Files): Likewise.
30851         * modules/dprintf-posix-tests (Files): Likewise.
30852         * modules/dup2-tests (Files): Likewise.
30853         * modules/dup3-tests (Files): Likewise.
30854         * modules/duplocale-tests (Files): Likewise.
30855         * modules/fchdir-tests (Files): Likewise.
30856         * modules/fcntl-tests (Files): Likewise.
30857         * modules/fdopendir-tests (Files): Likewise.
30858         * modules/fflush-tests (Files): Likewise.
30859         * modules/flock-tests (Files): Likewise.
30860         * modules/floorf-tests (Files): Likewise.
30861         * modules/floorl-tests (Files): Likewise.
30862         * modules/fnmatch-tests (Files): Likewise.
30863         * modules/fopen-tests (Files): Likewise.
30864         * modules/fprintf-posix-tests (Files): Likewise.
30865         * modules/freopen-tests (Files): Likewise.
30866         * modules/frexp-nolibm-tests (Files): Likewise.
30867         * modules/frexp-tests (Files): Likewise.
30868         * modules/frexpl-nolibm-tests (Files): Likewise.
30869         * modules/frexpl-tests (Files): Likewise.
30870         * modules/fseek-tests (Files): Likewise.
30871         * modules/fseeko-tests (Files): Likewise.
30872         * modules/fsync-tests (Files): Likewise.
30873         * modules/ftell-tests (Files): Likewise.
30874         * modules/ftello-tests (Files): Likewise.
30875         * modules/futimens-tests (Files): Likewise.
30876         * modules/getaddrinfo-tests (Files): Likewise.
30877         * modules/getcwd-tests (Files): Likewise.
30878         * modules/getdelim-tests (Files): Likewise.
30879         * modules/getdtablesize-tests (Files): Likewise.
30880         * modules/getgroups-tests (Files): Likewise.
30881         * modules/gethostname-tests (Files): Likewise.
30882         * modules/getline-tests (Files): Likewise.
30883         * modules/getopt-posix-tests (Files): Likewise.
30884         * modules/gettimeofday-tests (Files): Likewise.
30885         * modules/glob-tests (Files): Likewise.
30886         * modules/iconv-tests (Files): Likewise.
30887         * modules/inet_ntop-tests (Files): Likewise.
30888         * modules/inet_pton-tests (Files): Likewise.
30889         * modules/isblank-tests (Files): Likewise.
30890         * modules/lchown-tests (Files): Likewise.
30891         * modules/ldexpl-tests (Files): Likewise.
30892         * modules/link-tests (Files): Likewise.
30893         * modules/linkat-tests (Files): Likewise.
30894         * modules/lseek-tests (Files): Likewise.
30895         * modules/lstat-tests (Files): Likewise.
30896         * modules/mbrtowc-tests (Files): Likewise.
30897         * modules/mbsinit-tests (Files): Likewise.
30898         * modules/mbsnrtowcs-tests (Files): Likewise.
30899         * modules/mbsrtowcs-tests (Files): Likewise.
30900         * modules/memchr-tests (Files): Likewise.
30901         * modules/memcmp-tests (Files): Likewise.
30902         * modules/memmem-tests (Files): Likewise.
30903         * modules/memrchr-tests (Files): Likewise.
30904         * modules/mkdir-tests (Files): Likewise.
30905         * modules/mkfifo-tests (Files): Likewise.
30906         * modules/mkfifoat-tests (Files): Likewise.
30907         * modules/mknod-tests (Files): Likewise.
30908         * modules/nanosleep-tests (Files): Likewise.
30909         * modules/nl_langinfo-tests (Files): Likewise.
30910         * modules/obstack-printf-tests (Files): Likewise.
30911         * modules/open-tests (Files): Likewise.
30912         * modules/openat-tests (Files): Likewise.
30913         * modules/perror-tests (Files): Likewise.
30914         * modules/pipe2-tests (Files): Likewise.
30915         * modules/poll-tests (Files): Likewise.
30916         * modules/popen-tests (Files): Likewise.
30917         * modules/posix_spawn-tests (Files): Likewise.
30918         * modules/posix_spawnp-tests (Files): Likewise.
30919         * modules/pread-tests (Files): Likewise.
30920         * modules/printf-posix-tests (Files): Likewise.
30921         * modules/pty-tests (Files): Likewise.
30922         * modules/random_r-tests (Files): Likewise.
30923         * modules/rawmemchr-tests (Files): Likewise.
30924         * modules/readlink-tests (Files): Likewise.
30925         * modules/remove-tests (Files): Likewise.
30926         * modules/rename-tests (Files): Likewise.
30927         * modules/renameat-tests (Files): Likewise.
30928         * modules/rmdir-tests (Files): Likewise.
30929         * modules/round-tests (Files): Likewise.
30930         * modules/roundf-tests (Files): Likewise.
30931         * modules/roundl-tests (Files): Likewise.
30932         * modules/select-tests (Files): Likewise.
30933         * modules/setenv-tests (Files): Likewise.
30934         * modules/sigaction-tests (Files): Likewise.
30935         * modules/sleep-tests (Files): Likewise.
30936         * modules/snprintf-posix-tests (Files): Likewise.
30937         * modules/snprintf-tests (Files): Likewise.
30938         * modules/sprintf-posix-tests (Files): Likewise.
30939         * modules/stat-tests (Files): Likewise.
30940         * modules/strcasestr-tests (Files): Likewise.
30941         * modules/strchrnul-tests (Files): Likewise.
30942         * modules/strerror-tests (Files): Likewise.
30943         * modules/strsignal-tests (Files): Likewise.
30944         * modules/strstr-tests (Files): Likewise.
30945         * modules/strtod-tests (Files): Likewise.
30946         * modules/strverscmp-tests (Files): Likewise.
30947         * modules/symlink-tests (Files): Likewise.
30948         * modules/symlinkat-tests (Files): Likewise.
30949         * modules/times-tests (Files): Likewise.
30950         * modules/trunc-tests (Files): Likewise.
30951         * modules/truncf-tests (Files): Likewise.
30952         * modules/truncl-tests (Files): Likewise.
30953         * modules/tsearch-tests (Files): Likewise.
30954         * modules/uname-tests (Files): Likewise.
30955         * modules/unlink-tests (Files): Likewise.
30956         * modules/unsetenv-tests (Files): Likewise.
30957         * modules/usleep-tests (Files): Likewise.
30958         * modules/utimensat-tests (Files): Likewise.
30959         * modules/vasprintf-tests (Files): Likewise.
30960         * modules/vdprintf-posix-tests (Files): Likewise.
30961         * modules/vfprintf-posix-tests (Files): Likewise.
30962         * modules/vprintf-posix-tests (Files): Likewise.
30963         * modules/vsnprintf-posix-tests (Files): Likewise.
30964         * modules/vsnprintf-tests (Files): Likewise.
30965         * modules/vsprintf-posix-tests (Files): Likewise.
30966         * modules/wcrtomb-tests (Files): Likewise.
30967         * modules/wcsnrtombs-tests (Files): Likewise.
30968         * modules/wcsrtombs-tests (Files): Likewise.
30969         * modules/wcwidth-tests (Files): Likewise.
30970         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30971         * tests/test-isinf.c (isinf): Likewise.
30972         * tests/test-isnan.c (isnan): Likewise.
30973         * tests/test-signbit.c (signbit): Likewise.
30974         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30975         declaration, either as macro or with correct signature.
30976         (select): Ensure function under test is declared with correct
30977         signature in correct header.
30978         * tests/test-atexit.c (atexit): Likewise.
30979         * tests/test-btowc.c (btowc): Likewise.
30980         * tests/test-canonicalize-lgpl.c (realpath)
30981         (canonicalize_file_name): Likewise.
30982         * tests/test-ceilf1.c (ceilf): Likewise.
30983         * tests/test-ceill.c (ceill): Likewise.
30984         * tests/test-chown.c (chown): Likewise.
30985         * tests/test-dprintf-posix.c (dprintf): Likewise.
30986         * tests/test-dup2.c (dup2): Likewise.
30987         * tests/test-dup3.c (dup3): Likewise.
30988         * tests/test-duplocale.c (duplocale): Likewise.
30989         * tests/test-fchdir.c (fchdir): Likewise.
30990         * tests/test-fchownat.c (fchownat): Likewise.
30991         * tests/test-fcntl.c (fcntl): Likewise.
30992         * tests/test-fdopendir.c (fdopendir): Likewise.
30993         * tests/test-fflush.c (fflush): Likewise.
30994         * tests/test-flock.c (flock): Likewise.
30995         * tests/test-floorf1.c (floorf): Likewise.
30996         * tests/test-floorl.c (floorl): Likewise.
30997         * tests/test-fnmatch.c (fnmatch): Likewise.
30998         * tests/test-fopen.c (fopen): Likewise.
30999         * tests/test-fprintf-posix.c (fprintf): Likewise.
31000         * tests/test-freopen.c (freopen): Likewise.
31001         * tests/test-frexp.c (frexp): Likewise.
31002         * tests/test-frexpl.c (frexpl): Likewise.
31003         * tests/test-fseek.c (fseek): Likewise.
31004         * tests/test-fseeko.c (fseeko): Likewise.
31005         * tests/test-fstatat.c (fstatat): Likewise.
31006         * tests/test-fsync.c (fsync): Likewise.
31007         * tests/test-ftell.c (ftell): Likewise.
31008         * tests/test-ftello.c (ftello): Likewise.
31009         * tests/test-futimens.c (futimens): Likewise.
31010         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31011         (gai_strerror): Likewise.
31012         * tests/test-getcwd.c (getcwd): Likewise.
31013         * tests/test-getdelim.c (getdelim): Likewise.
31014         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31015         * tests/test-getgroups.c (getgroups): Likewise.
31016         * tests/test-gethostname.c (gethostname): Likewise.
31017         * tests/test-getline.c (getline): Likewise.
31018         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31019         Likewise.
31020         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31021         * tests/test-glob.c (glob, globfree): Likewise.
31022         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31023         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31024         * tests/test-inet_pton.c (inet_pton): Likewise.
31025         * tests/test-isblank.c (isblank): Likewise.
31026         * tests/test-lchown.c (lchown): Likewise.
31027         * tests/test-ldexpl.c (ldexpl): Likewise.
31028         * tests/test-link.c (link): Likewise.
31029         * tests/test-linkat.c (linkat): Likewise.
31030         * tests/test-lseek.c (lseek): Likewise.
31031         * tests/test-lstat.c (lstat): Likewise.
31032         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31033         * tests/test-mbsinit.c (mbsinit): Likewise.
31034         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31035         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31036         * tests/test-memchr.c (memchr): Likewise.
31037         * tests/test-memcmp.c (memcmp): Likewise.
31038         * tests/test-memmem.c (memmem): Likewise.
31039         * tests/test-memrchr.c (memrchr): Likewise.
31040         * tests/test-mkdir.c (mkdir): Likewise.
31041         * tests/test-mkdirat.c (mkdirat): Likewise.
31042         * tests/test-mkfifo.c (mkfifo): Likewise.
31043         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31044         * tests/test-mknod.c (mknod): Likewise.
31045         * tests/test-nanosleep.c (nanosleep): Likewise.
31046         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31047         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31048         Likewise.
31049         * tests/test-open.c (open): Likewise.
31050         * tests/test-openat.c (openat): Likewise.
31051         * tests/test-perror.c (perror): Likewise.
31052         * tests/test-pipe2.c (pipe2): Likewise.
31053         * tests/test-poll.c (poll): Likewise.
31054         * tests/test-popen.c (popen, pclose): Likewise.
31055         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31056         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31057         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31058         (posix_spawn_file_actions_destroy)
31059         (posix_spawn_file_actions_addclose)
31060         (posix_spawn_file_actions_addopen)
31061         (posix_spawn_file_actions_adddup2): Likewise.
31062         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31063         * tests/test-pread.c (pread): Likewise.
31064         * tests/test-printf-posix.c (printf): Likewise.
31065         * tests/test-pty.c (openpty, forkpty): Likewise.
31066         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31067         (random_r): Likewise.
31068         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31069         * tests/test-readlink.c (readlink): Likewise.
31070         * tests/test-remove.c (remove): Likewise.
31071         * tests/test-rename.c (rename): Likewise.
31072         * tests/test-renameat.c (renameat): Likewise.
31073         * tests/test-rmdir.c (rmdir): Likewise.
31074         * tests/test-round1.c (round): Likewise.
31075         * tests/test-roundf1.c (roundf): Likewise.
31076         * tests/test-roundl.c (roundl): Likewise.
31077         * tests/test-setenv.c (setenv): Likewise.
31078         * tests/test-sigaction.c (sigaction): Likewise.
31079         * tests/test-sleep.c (sleep): Likewise.
31080         * tests/test-snprintf.c (snprintf): Likewise.
31081         * tests/test-sprintf-posix.c (sprintf): Likewise.
31082         * tests/test-stat.c (stat): Likewise.
31083         * tests/test-stpncpy.c (stpncpy): Likewise.
31084         * tests/test-strcasestr.c (strcasestr): Likewise.
31085         * tests/test-strchrnul.c (strchrnul): Likewise.
31086         * tests/test-strerror.c (strerror): Likewise.
31087         * tests/test-strsignal.c (strsignal): Likewise.
31088         * tests/test-strstr.c (strstr): Likewise.
31089         * tests/test-strtod.c (strtod): Likewise.
31090         * tests/test-strverscmp.c (strverscmp): Likewise.
31091         * tests/test-symlink.c (symlink): Likewise.
31092         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31093         * tests/test-times.c (times): Likewise.
31094         * tests/test-trunc1.c (trunc): Likewise.
31095         * tests/test-truncf1.c (truncf): Likewise.
31096         * tests/test-truncl.c (truncl): Likewise.
31097         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31098         Likewise.
31099         * tests/test-uname.c (uname): Likewise.
31100         * tests/test-unlink.c (unlink): Likewise.
31101         * tests/test-unlinkat.c (unlinkat): Likewise.
31102         * tests/test-unsetenv.c (unsetenv): Likewise.
31103         * tests/test-usleep.c (usleep): Likewise.
31104         * tests/test-utimensat.c (utimensat): Likewise.
31105         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31106         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31107         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31108         * tests/test-vprintf-posix.c (vprintf): Likewise.
31109         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31110         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31111         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31112         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31113         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31114         * tests/test-wcwidth.c (wcwidth): Likewise.
31115
31116         build: pull in conditional headers during GNULIB_POSIXCHECK
31117         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31118         definitions from any conditionally-included headers.
31119         * lib/stdlib.in.h (includes): Likewise.
31120         * lib/unistd.in.h (includes): Likewise.
31121
31122 2009-12-24  Bruno Haible  <bruno@clisp.org>
31123
31124         * tests/test-argv-iter.c: Include header file being tested immediately
31125         after config.h.
31126         * tests/test-base64.c: Likewise.
31127         * tests/test-flock.c: Likewise.
31128         * tests/test-fsync.c: Likewise.
31129         * tests/test-getdate.c: Likewise.
31130         * tests/test-getndelim2.c: Likewise.
31131         * tests/test-isfinite.c: Likewise.
31132         * tests/test-isinf.c: Likewise.
31133         * tests/test-strerror.c: Likewise.
31134         * tests/test-strsignal.c: Likewise.
31135
31136 2009-12-23  Eric Blake  <ebb9@byu.net>
31137
31138         unistd: work around cygwin bug
31139         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31140         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31141         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31142
31143 2009-12-23  Bruno Haible  <bruno@clisp.org>
31144
31145         localename: More tests.
31146         * tests/test-localename.c (SIZEOF): New macro.
31147         (categories): New variable.
31148         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31149         test_locale_name_default): Add test w.r.t. thread locale.
31150         (test_locale_name_thread): New function.
31151         (main): Invoke it.
31152
31153         localename: Make aware of thread locale.
31154         * lib/localename.h (gl_locale_name_thread): New declaration.
31155         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31156         behaviour with respect to thread locale.
31157         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31158         <langinfo.h>, glthread/lock.h.
31159         (SIZE_BITS): New macro.
31160         (string_hash): New function.
31161         (struct hash_node): New type.
31162         (HASH_TABLE_SIZE): New macro.
31163         (struniq_hash_table, struniq_lock): New variables.
31164         (struniq): New function.
31165         (gl_locale_name_thread): New function.
31166         (gl_locale_name): Invoke it.
31167         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31168         * modules/localename (Depends-on): Add lock.
31169         Reported by Mike Gran <spk121@yahoo.com>.
31170
31171 2009-12-23  Eric Blake  <ebb9@byu.net>
31172
31173         va-args: new module
31174         * modules/va-args: New file.
31175         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31176         * MODULES.html.sh (Core language properties): Mention it.
31177
31178         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31179         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31180         named alias for __attribute__((__unused__)).
31181         * lib/chown.c: Update client.
31182         * lib/fchmodat.c: Likewise.
31183         * lib/fts.c: Likewise.
31184         * lib/getdate.y: Likewise.
31185         * lib/getgroups.c: Likewise.
31186         * lib/getopt.c: Likewise.
31187         * lib/getugroups.c: Likewise.
31188         * lib/mkdir.c: Likewise.
31189         * lib/mkfifo.c: Likewise.
31190         * lib/mkfifoat.c: Likewise.
31191         * lib/mknod.c: Likewise.
31192         * lib/mknodat.c: Likewise.
31193         * lib/readlink.c: Likewise.
31194         * lib/se-context.in.h: Likewise.
31195         * lib/se-selinux.in.h: Likewise.
31196         * lib/sockets.c: Likewise.
31197         * lib/symlink.c: Likewise.
31198         * lib/symlinkat.c: Likewise.
31199         * lib/unicodeio.c: Likewise.
31200         * lib/unistr.h: Likewise.
31201         * tests/test-areadlink.c: Likewise.
31202         * tests/test-areadlinkat.c: Likewise.
31203         * tests/test-filenamecat.c: Likewise.
31204         * tests/test-fseeko.c: Likewise.
31205         * tests/test-ftello.c: Likewise.
31206         * tests/test-getdate.c: Likewise.
31207         * tests/test-getgroups.c: Likewise.
31208         * tests/test-gethostname.c: Likewise.
31209         * tests/test-quotearg.c: Likewise.
31210         * tests/test-version-etc.c: Likewise.
31211         * tests/test-xalloc-die.c: Likewise.
31212         * tests/test-xfprintf-posix.c: Likewise.
31213         * tests/test-xprintf-posix.c: Likewise.
31214         * tests/test-xvasprintf.c: Likewise.
31215
31216         tests: avoid compiler warnings
31217         * tests/test-fcntl.c (main): Delete unused parameters.
31218         * tests/test-freopen-safer.c (main): Likewise.
31219         * tests/test-xalloc-die.c (main): Mark unused parameters.
31220         * tests/test-fseeko.c (main): Likewise.
31221         * tests/test-ftello.c (main): Likewise.
31222         * tests/test-nanosleep.c (main): Avoid declaration warning.
31223         * tests/test-sleep.c (main): Likewise.
31224         * tests/test-unsetenv.c (main): Silence warning about string
31225         literal.
31226         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31227
31228 2009-12-23  Bruno Haible  <bruno@clisp.org>
31229
31230         * tests/test-localename.c (test_locale_name): New function, extracted
31231         from main. Also test mixed situations.
31232         (test_locale_name_posix, test_locale_name_environ,
31233         test_locale_name_default): New functions.
31234         (main): Invoke them all.
31235         * modules/localename-tests (configure.ac): Test for newlocale.
31236
31237 2009-12-23  Bruno Haible  <bruno@clisp.org>
31238
31239         unistd: Ensure getcwd gets declared before being overridden.
31240         * lib/unistd.in.h: Conditionally include <io.h>.
31241
31242 2009-12-22  Bruno Haible  <bruno@clisp.org>
31243
31244         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31245         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31246         (gl_WCHAR_H): Invoke it.
31247         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31248         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31249         Reported by Karl Berry <karl@freefriends.org>.
31250
31251 2009-12-22  Eric Blake  <ebb9@byu.net>
31252
31253         math, unistd: avoid redundant includes
31254         * lib/math.in.h (isnan): No need to re-include <math.h>.
31255         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31256
31257         getsubopt: work around cygwin bug
31258         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31259         avoid conflicting with system getsubopt.
31260         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31261         bug.
31262
31263         getopt: synchronize from glibc
31264         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31265         parameter order.  Adjust all callers.
31266         (_getopt_internal_r, main): Adjust quoting in error messages.
31267         Drop considerations for outdated POSIX 1003.2 error message.
31268         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31269         callers.
31270         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31271
31272         test-getopt: test stderr behavior
31273         * modules/getopt-posix-tests (Depends-on): Add dup2.
31274         * tests/test-getopt.c (ASSERT): Avoid stderr.
31275         (main): Move stderr to a temporary file.
31276         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31277         Instead, add parameter to inform caller if output occurred.
31278         (test_getopt): Adjust all existing tests to expect silence, and
31279         add new tests of leading ":".
31280         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31281         glibc shortcomings with leading "-:" or "+:" in optstring.
31282         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31283         Likewise.
31284         * doc/posix-functions/getopt.texi (getopt): Likewise.
31285
31286         test-getopt: enhance test
31287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31288         supports optind=0.
31289         * tests/test-getopt.c (OPTIND_MIN): Move...
31290         * tests/test-getopt.h (OPTIND_MIN): ...here.
31291         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31292         Require that optind=0 works, since modern BSD supports it in
31293         addition to optreset, and since coreutils expects it.
31294         (test_getopt_long_only): New test.
31295         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31296         glibc shortcomings with 'W;', and enforcement of optind=0.
31297         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31298         Likewise.
31299
31300 2009-12-21  Bruno Haible  <bruno@clisp.org>
31301
31302         localename: Improvements for MacOS X and Cygwin.
31303         * lib/localename.h (gl_locale_name_environ): New declaration.
31304         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31305         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31306         (gl_locale_name_posix): Invoke it.
31307         (gl_locale_name_default): Add comments. Use Windows native API also on
31308         Cygwin.
31309
31310 2009-12-21  Bruno Haible  <bruno@clisp.org>
31311
31312         Update list of Win32 locale ids.
31313         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31314         (LANG_SAMI): Renamed from LANG_SAAMI.
31315         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31316         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31317         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31318         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31319         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31320         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31321         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31322         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31323         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31324         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31325         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31326         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31327         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31328         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31329         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31330         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31331         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31332         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31333         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31334         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31335         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31336         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31337         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31338         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31339         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31340         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31341         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31342         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31343         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31344         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31345         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31346         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31347         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31348         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31349         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31350         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31351         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31352         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31353         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31354         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31355         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31356         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31357         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31358         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31359         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31360         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31361         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31362         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31363         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31364         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31365         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31366         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31367         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31368         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31369         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31370         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31371         Add more languages and countries for Sami, Sorbian. Add more countries
31372         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31373         for Pashto. Change country for Syriac, Tswana.
31374
31375 2009-12-21  Eric Blake  <ebb9@byu.net>
31376
31377         test-utimens: avoid spurious failure
31378         * tests/test-chown.h (nap): Factor...
31379         * tests/nap.h: ...into new file.
31380         * tests/test-lchown.h (nap): Avoid duplication.
31381         * tests/test-utimens-common.h (nap): Use shared implementation,
31382         necessary on file systems with 1-second resolution.
31383         * modules/chown-tests (Files): Include new file.
31384         * modules/fdutimensat-tests (Files): Likewise.
31385         * modules/futimens-tests (Files): Likewise.
31386         * modules/lchown-tests (Files): Likewise.
31387         * modules/openat-tests (Files): Likewise.
31388         * modules/utimens-tests (Files): Likewise.
31389         * modules/utimensat-tests (Files): Likewise.
31390
31391 2009-12-19  Eric Blake  <ebb9@byu.net>
31392
31393         futimens, utimensat: work around Linux bug
31394         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31395         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31396         * lib/utimensat.c (rpl_utimensat): Work around it.
31397         * lib/futimens.c (rpl_futimens): Adjust comment.
31398
31399         utimens: work around Linux ctime bug
31400         * lib/utimens.c (detect_ctime_bug): New helper function.
31401         (update_timespec): Differentiate between workaround needed for
31402         this bug vs. what is needed for systems that lack utimensat.
31403         (fdutimens, lutimens): Work around bug.
31404
31405         utimens: check for ctime update
31406         * tests/test-utimens-common.h (check_ctime): Define.
31407         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31408         * tests/test-futimens.h (test_futimens): Likewise.
31409         * tests/test-lutimens.h (test_lutimens): Likewise.
31410         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31411         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31412
31413 2009-12-19  Bruno Haible  <bruno@clisp.org>
31414
31415         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31416         * tests/test-dprintf-posix2.sh: New file.
31417         * tests/test-dprintf-posix2.c: New file.
31418         * modules/dprintf-posix-tests (Files): Add them.
31419         (configure.ac): Check for getrlimit and setrlimit.
31420         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31421
31422 2009-12-19  Bruno Haible  <bruno@clisp.org>
31423
31424         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31425         * tests/test-fprintf-posix3.sh: New file.
31426         * tests/test-fprintf-posix3.c: New file.
31427         * modules/fprintf-posix-tests (Files): Add them.
31428         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31429
31430 2009-12-19  Eric Blake  <ebb9@byu.net>
31431
31432         dirfd: fix prototype
31433         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31434         * lib/dirfd.c (dirfd): Likewise.
31435
31436         canonicalize: reduce memory usage
31437         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31438         allocation to size.
31439         Reported by Solar Designer <solar@openwall.com>.
31440
31441 2009-12-19  Bruno Haible  <bruno@clisp.org>
31442
31443         New module attribute 'Applicability'.
31444         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31445         * gnulib-tool: New option --extract-applicability.
31446         (func_usage): Document it.
31447         (sed_extract_prog): Recognize it.
31448         (func_get_applicability): New function.
31449         (func_import): Generalize handling of 'link-warning' module.
31450         * modules/link-warning (Applicability): New section.
31451         * modules/arg-nonnull (Applicability): New section.
31452         Repoted by Simon Josefsson <simon@josefsson.org>.
31453
31454 2009-12-19  Bruno Haible  <bruno@clisp.org>
31455
31456         fflush: tweak
31457         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31458         * lib/fseeko.c (rpl_fseeko): Likewise.
31459
31460 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31461
31462         * lib/gl_list.h: Fix typo in comment.
31463
31464 2009-12-16  Eric Blake  <ebb9@byu.net>
31465
31466         fcntl: use to simplify other modules
31467         * modules/cloexec (Depends-on): Add fcntl.
31468         * modules/fchdir (Depends-on): Likewise.
31469         * modules/fd-safer-flag (Depends-on): Likewise.
31470         * modules/unistd-safer (Depends-on): Likewise.
31471         * modules/dup3 (configure.ac): Set module indicator.
31472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31473         missing.
31474         * lib/fchdir.c (_gl_register_dup): Fix comment.
31475         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31476         * lib/dup-safer.c (dup_safer): Likewise.
31477         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31478         * lib/dup3.c (dup3): Likewise.
31479         * tests/test-fchdir.c (main): Enhance test.
31480         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31481
31482         fcntl: port portions of fcntl to mingw
31483         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31484         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31485         replacement for mingw.
31486         * modules/fcntl (Description): Update.
31487         (Depends-on): Add dup2.
31488         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31489         * modules/fcntl-h (Makefile.am): Substitute it.
31490         * lib/fcntl.in.h (fcntl): Update declaration.
31491         (F_DUPFD, F_GETFD): New macros, when needed.
31492         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31493         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31494         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31495         we now guarantee.
31496
31497         fcntl: work around cygwin bug in F_DUPFD
31498         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31499         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31500         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31501         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31502         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31503
31504         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31505         * modules/fcntl (Files): List new files.
31506         (configure.ac): Run a test.
31507         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31508         * lib/fcntl.c (rpl_fcntl): Likewise.
31509         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31510         (gl_FCNTL_H): Always replace fcntl.h.
31511         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31512         * lib/fcntl.in.h (fcntl): Declare replacement.
31513         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31514         needed, plus a witness.
31515         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31516         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31517         * tests/test-fcntl.c: New file.
31518         * modules/fcntl-tests: Likewise.
31519
31520         binary-io: avoid potential compilation warning
31521         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31522         directives.
31523
31524         fflush: avoid compilation error on NetBSD
31525         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31526         between off_t and fpos_t, since the latter is sometimes a struct.
31527         * lib/fseeko.c (rpl_fseeko): Likewise.
31528         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31529
31530 2009-12-15  Eric Blake  <ebb9@byu.net>
31531
31532         fcntl-h, stdio, sys_ioctl: fix declarations
31533         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31534         function must not take arguments.
31535         * lib/sys_ioctl.in.h (ioctl): Likewise.
31536         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31537         (open): Add a link warning.
31538
31539 2009-12-15  Jim Meyering  <meyering@redhat.com>
31540
31541         areadlink, areadlink-with-size: relax license to LGPLv2+
31542         * modules/areadlink (License): Relax to LGPLv2+.
31543         * modules/areadlink-with-size (License): Likewise.
31544
31545 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31546             Bruno Haible  <bruno@clisp.org>
31547
31548         *printf: Fix memory leak.
31549         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31550         * lib/vfprintf.c (vfprintf): Likewise.
31551         * lib/dprintf.c (dprintf): Likewise.
31552         * lib/vdprintf.c (vdprintf): Likewise.
31553
31554 2009-12-14  Eric Blake  <ebb9@byu.net>
31555
31556         accept4: adjust module dependencies
31557         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31558
31559         utimens: one more try at avoiding compiler warning
31560         * lib/utimens.c (lutimens): Lower scope of result.
31561
31562 2009-12-13  Bruno Haible  <bruno@clisp.org>
31563
31564         Move the malloc checking from module 'list' to new module 'xlist'.
31565         * modules/xlist: New file.
31566         * lib/gl_xlist.h: New file.
31567         * lib/gl_xlist.c: New file.
31568         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31569         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31570         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31571         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31572         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31573         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31574         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31575         gl_sortedlist_nx_add): New declarations.
31576         (struct gl_list_implementation): Rename and change methods accordingly.
31577         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31578         (gl_list_nx_create): Renamed from gl_list_create.
31579         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31580         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31581         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31582         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31583         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31584         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31585         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31586         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31587         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31588         gl_list_create_empty.
31589         (gl_list_nx_create): Renamed from gl_list_create.
31590         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31591         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31592         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31593         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31594         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31595         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31596         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31597         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31598         * lib/gl_array_list.c: Don't include xalloc.h.
31599         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31600         NULL upon out-of-memory.
31601         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31602         out-of-memory.
31603         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31604         Change return type to 'int'.
31605         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31606         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31607         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31608         upon out-of-memory.
31609         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31610         upon out-of-memory.
31611         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31612         upon out-of-memory.
31613         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31614         upon out-of-memory.
31615         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31616         out-of-memory.
31617         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31618         Update.
31619         (gl_array_list_implementation): Update.
31620         * lib/gl_carray_list.c: Don't include xalloc.h.
31621         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31622         Return NULL upon out-of-memory.
31623         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31624         out-of-memory.
31625         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31626         Change return type to 'int'.
31627         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31628         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31629         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31630         upon out-of-memory.
31631         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31632         upon out-of-memory.
31633         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31634         out-of-memory.
31635         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31636         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31637         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31638         Update.
31639         (gl_carray_list_implementation): Update.
31640         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31641         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31642         gl_linked_create_empty. Return NULL upon out-of-memory.
31643         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31644         out-of-memory.
31645         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31646         Change return type to 'int'. Return -1 upon out-of-memory.
31647         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31648         out-of-memory.
31649         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31650         upon out-of-memory.
31651         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31652         upon out-of-memory.
31653         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31654         NULL upon out-of-memory.
31655         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31656         upon out-of-memory.
31657         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31658         out-of-memory.
31659         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31660         Update.
31661         * lib/gl_linked_list.c: Don't include xalloc.h.
31662         (gl_linked_list_implementation): Update.
31663         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31664         (add_to_bucket): Change return type to 'int'.
31665         (gl_linkedhash_list_implementation): Update.
31666         * lib/gl_anytree_list1.h (free_subtree): New function.
31667         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31668         gl_tree_create_empty. Return NULL upon out-of-memory.
31669         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31670         Change return type to 'int'. Return -1 upon out-of-memory.
31671         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31672         out-of-memory.
31673         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31674         (gl_tree_remove_node): New function, moved here from
31675         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31676         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31677         Update.
31678         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31679         malloc, not xmalloc. Return NULL upon out-of-memory.
31680         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31681         out-of-memory.
31682         (gl_tree_remove_node_from_tree): New function, extracted from
31683         gl_tree_remove_node.
31684         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31685         upon out-of-memory.
31686         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31687         out-of-memory.
31688         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31689         upon out-of-memory.
31690         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31691         upon out-of-memory.
31692         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31693         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31694         not xmalloc. Return NULL upon out-of-memory.
31695         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31696         out-of-memory.
31697         (gl_tree_remove_node_from_tree): New function, extracted from
31698         gl_tree_remove_node.
31699         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31700         upon out-of-memory.
31701         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31702         out-of-memory.
31703         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31704         upon out-of-memory.
31705         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31706         upon out-of-memory.
31707         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31708         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31709         gl_anytree_list1.h before gl_anyavltree_list2.h.
31710         (gl_avltree_list_implementation): Update.
31711         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31712         gl_anytree_list1.h before gl_anyavltree_list2.h.
31713         (gl_rbtree_list_implementation): Update.
31714         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31715         Change return type to 'int'. Return -1 upon out-of-memory. Use
31716         __builtin_expect.
31717         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31718         (gl_avltreehash_list_implementation): Update.
31719         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31720         (gl_rbtreehash_list_implementation): Update.
31721         * modules/array-list (Depends-on): Remove xalloc.
31722         * modules/carray-list (Depends-on): Likewise.
31723         * modules/linked-list (Depends-on): Likewise.
31724         * modules/linkedhash-list (Depends-on): Likewise.
31725         * modules/avltree-list (Depends-on): Likewise.
31726         * modules/rbtree-list (Depends-on): Likewise.
31727         * modules/avltreehash-list (Depends-on): Likewise.
31728         * modules/rbtreehash-list (Depends-on): Likewise.
31729
31730         * modules/xsublist: New file.
31731         * lib/gl_xsublist.h: New file.
31732         * lib/gl_xsublist.c: New file.
31733         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31734         (gl_sublist_nx_create): New declaration.
31735         * lib/gl_sublist.c: Don't include xalloc.h.
31736         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31737         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31738         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31739         Change return type to 'int'. Return -1 upon out-of-memory.
31740         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31741         upon out-of-memory.
31742         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31743         NULL upon out-of-memory.
31744         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31745         upon out-of-memory.
31746         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31747         NULL upon out-of-memory.
31748         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31749         NULL upon out-of-memory.
31750         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31751         upon out-of-memory.
31752         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31753         (gl_sublist_list_implementation): Update.
31754         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31755         upon out-of-memory.
31756         * modules/sublist (Depends-on): Remove xalloc.
31757
31758         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31759         * tests/test-carray_list.c: Likewise.
31760         * tests/test-linked_list.c: Likewise.
31761         * tests/test-linkedhash_list.c: Likewise.
31762         * tests/test-avltree_list.c: Likewise.
31763         * tests/test-rbtree_list.c: Likewise.
31764         * tests/test-avltreehash_list.c: Likewise.
31765         * tests/test-rbtreehash_list.c: Likewise.
31766         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31767         * modules/carray-list-tests (Makefile.am): Likewise.
31768         * modules/linked-list-tests (Makefile.am): Likewise.
31769         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31770         * modules/avltree-list-tests (Makefile.am): Likewise.
31771         * modules/rbtree-list-tests (Makefile.am): Likewise.
31772         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31773         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31774
31775         * NEWS: Mention the changes.
31776
31777         * lib/clean-temp.c: Include gl_xlist.h.
31778         * modules/clean-temp (Depends-on): Add xlist.
31779
31780         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31781         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31782
31783         * tests/test-array_oset.c: Include gl_xlist.h.
31784         * modules/array-oset-tests (Depends-on): Add xlist.
31785
31786         Reported by José E. Marchesi <jemarch@gnu.org>.
31787
31788 2009-12-13  Bruno Haible  <bruno@clisp.org>
31789
31790         Move the malloc checking from module 'oset' to new module 'xoset'.
31791         * modules/xoset: New file.
31792         * lib/gl_xoset.h: New file.
31793         * lib/gl_xoset.c: New file.
31794         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31795         declarations.
31796         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31797         (struct gl_oset_implementation): Rename and change methods accordingly.
31798         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31799         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31800         'int'. Mark as __warn_unused_result__.
31801         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31802         gl_oset_create_empty.
31803         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31804         'int'.
31805         * lib/gl_array_oset.c: Don't include xalloc.h.
31806         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31807         malloc, not xmalloc.
31808         (grow): Change return type to 'int'. Don't call xalloc_die.
31809         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31810         to 'int'.
31811         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31812         'int'.
31813         (gl_array_oset_implementation): Update.
31814         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31815         gl_tree_create_empty.
31816         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31817         'int'.
31818         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31819         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31820         xmalloc.
31821         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31822         not xmalloc.
31823         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31824         xmalloc.
31825         (gl_avltree_oset_implementation): Update.
31826         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31827         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31828         xmalloc.
31829         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31830         not xmalloc.
31831         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31832         xmalloc.
31833         (gl_rbtree_oset_implementation): Update.
31834         * modules/array-oset (Depends-on): Remove xalloc.
31835         * modules/avltree-oset (Depends-on): Likewise.
31836         * modules/rbtree-oset (Depends-on): Likewise.
31837         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31838         * tests/test-avltree_oset.c: Likewise.
31839         * tests/test-rbtree_oset.c: Likewise.
31840         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31841         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31842         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31843         * NEWS: Mention the change.
31844
31845 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31846
31847         maint.mk: allow a project to override release-prep commands
31848         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31849         commands into a new rule.
31850         (release-prep): New rule.
31851         (release-prep-hook): New overridable variable.
31852
31853 2009-12-13  Bruno Haible  <bruno@clisp.org>
31854
31855         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31856
31857 2009-12-13  Jim Meyering  <meyering@redhat.com>
31858
31859         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31860         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31861
31862 2009-12-12  Bruno Haible  <bruno@clisp.org>
31863
31864         duplocale: Tweak.
31865         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31866
31867 2009-12-12  Karl Berry  <karl@gnu.org>
31868
31869         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31870
31871 2009-12-12  Bruno Haible  <bruno@clisp.org>
31872
31873         * m4/po.m4: Undo incorrect untabification.
31874
31875 2009-12-12  Bruno Haible  <bruno@clisp.org>
31876
31877         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31878         * modules/c-strtod (Depends-on): Add locale.
31879         * modules/c-strtold (Depends-on): Likewise.
31880
31881 2009-12-12  Bruno Haible  <bruno@clisp.org>
31882
31883         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31884
31885 2009-12-11  Eric Blake  <ebb9@byu.net>
31886
31887         setenv: relax requirement in light of POSIX ruling
31888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31889         not NULL.
31890         * tests/test-setenv.c (main): Relax test.
31891         * tests/test-unsetenv.c (main): Likewise.
31892         * doc/posix-functions/setenv.texi (setenv): Document this.
31893         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31894
31895 2009-12-11  Bruno Haible  <bruno@clisp.org>
31896
31897         New module 'fd-safer-flag'.
31898         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31899         * lib/dup-safer.c (dup_safer_flag): Remove function.
31900         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31901         * lib/fd-safer.c (fd_safer_flag): Remove function.
31902         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31903         * modules/cloexec (configure.ac): Drop indicator macro.
31904         * modules/fd-safer-flag: New file.
31905         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31906         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31907         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31908
31909 2009-12-11  Bruno Haible  <bruno@clisp.org>
31910
31911         Tests for module 'nl_langinfo'.
31912         * modules/nl_langinfo-tests: New file.
31913         * tests/test-nl_langinfo.sh: New file.
31914         * tests/test-nl_langinfo.c: New file.
31915
31916         New module 'nl_langinfo'.
31917         * lib/nl_langinfo.c: New file.
31918         * m4/nl_langinfo.m4: New file.
31919         * modules/nl_langinfo: New file.
31920         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31921
31922 2009-12-11  Bruno Haible  <bruno@clisp.org>
31923
31924         Tests for module 'langinfo'.
31925         * modules/langinfo-tests: New file.
31926         * tests/test-langinfo.c: New file.
31927
31928         New module 'langinfo'.
31929         * lib/langinfo.in.h: New file.
31930         * m4/langinfo_h.m4: New file.
31931         * modules/langinfo: New file.
31932         * doc/posix-headers/langinfo.texi: Mention the new module.
31933
31934 2009-12-11  Bruno Haible  <bruno@clisp.org>
31935
31936         * lib/config.charset: Untabify.
31937
31938 2009-12-11  Bruno Haible  <bruno@clisp.org>
31939
31940         * modules/unistd-safer (configure.ac): Drop indicator macro.
31941
31942 2009-12-11  Bruno Haible  <bruno@clisp.org>
31943
31944         Move pipe2-safer code to its own file.
31945         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31946         * lib/pipe-safer.c (pipe2_safer): Remove function.
31947         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31948         (Makefile.am): Add it to lib_SOURCES.
31949
31950 2009-12-10  Bruno Haible  <bruno@clisp.org>
31951
31952         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31953
31954 2009-12-10  Bruno Haible  <bruno@clisp.org>
31955
31956         Declare which arguments expect non-NULL values, for GCC and clang.
31957         * build-aux/arg-nonnull.h: New file.
31958         * modules/arg-nonnull: New file.
31959         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31960         (inet_ntop, inet_pton): Use it.
31961         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31962         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31963         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31964         (open, openat): Use it.
31965         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31966         (fnmatch): Use it.
31967         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31968         (getopt, getopt_long, getopt_long_only): Use it.
31969         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31970         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31971         Use it.
31972         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31973         (iconv_open): Use it.
31974         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31975         (strtoimax, strtoumax): Use it.
31976         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31977         (duplocale): Use it.
31978         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31979         (frexp, frexpl): Use it.
31980         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31981         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31982         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31983         (tsearch, tfind, tdelete, twalk): Use it.
31984         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31985         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31986         sigpending): Use it.
31987         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31988         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31989         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31990         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31991         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31992         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31993         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31994         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31995         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31996         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31997         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31998         Use it.
31999         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32000         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32001         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32002         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32003         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32004         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32005         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32006         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32007         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32008         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32009         strtoull, unsetenv): Use it.
32010         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32011         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32012         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32013         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32014         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32015         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32016         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32017         (strcasecmp, strncasecmp): Use it.
32018         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32019         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32020         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32021         rpl_setsockopt): Use it.
32022         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32023         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32024         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32025         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32026         (gettimeofday): Use it.
32027         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32028         (times): Use it.
32029         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32030         (uname): Use it.
32031         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32032         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32033         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32034         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32035         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32036         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32037         unlinkat, write): Use it.
32038         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32039         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32040         * lib/argv-iter.h: Include arg-nonnull.h.
32041         (_ATTRIBUTE_NONNULL_): Remove macro.
32042         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32043         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32044         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32045         optimization.
32046         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32047         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32048         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32049         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32050         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32051         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32052         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32053         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32054         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32055         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32056         * modules/dirent (Depends-on): Add arg-nonnull.
32057         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32058         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32059         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32060         * modules/fnmatch (Depends-on): Add arg-nonnull.
32061         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32062         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32063         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32064         * modules/glob (Depends-on): Add arg-nonnull.
32065         (Makefile.am): Insert arg-nonnull.h into glob.h.
32066         * modules/iconv_open (Depends-on): Add arg-nonnull.
32067         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32068         * modules/inttypes (Depends-on): Add arg-nonnull.
32069         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32070         * modules/locale (Depends-on): Add arg-nonnull.
32071         (Makefile.am): Insert arg-nonnull.h into locale.h.
32072         * modules/math (Depends-on): Add arg-nonnull.
32073         (Makefile.am): Insert arg-nonnull.h into math.h.
32074         * modules/netdb (Depends-on): Add arg-nonnull.
32075         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32076         * modules/search (Depends-on): Add arg-nonnull.
32077         (Makefile.am): Insert arg-nonnull.h into search.h.
32078         * modules/signal (Depends-on): Add arg-nonnull.
32079         (Makefile.am): Insert arg-nonnull.h into signal.h.
32080         * modules/spawn (Depends-on): Add arg-nonnull.
32081         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32082         * modules/stdio (Depends-on): Add arg-nonnull.
32083         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32084         * modules/stdlib (Depends-on): Add arg-nonnull.
32085         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32086         * modules/string (Depends-on): Add arg-nonnull.
32087         (Makefile.am): Insert arg-nonnull.h into string.h.
32088         * modules/strings (Depends-on): Add arg-nonnull.
32089         (Makefile.am): Insert arg-nonnull.h into strings.h.
32090         * modules/sys_socket (Depends-on): Add arg-nonnull.
32091         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32092         * modules/sys_stat (Depends-on): Add arg-nonnull.
32093         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32094         * modules/sys_time (Depends-on): Add arg-nonnull.
32095         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32096         * modules/sys_times (Depends-on): Add arg-nonnull.
32097         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32098         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32099         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32100         * modules/time (Depends-on): Add arg-nonnull.
32101         (Makefile.am): Insert arg-nonnull.h into time.h.
32102         * modules/unistd (Depends-on): Add arg-nonnull.
32103         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32104         * modules/wchar (Depends-on): Add arg-nonnull.
32105         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32106         * modules/argv-iter (Depends-on): Add arg-nonnull.
32107         * tests/test-canonicalize.c (null_ptr): New function.
32108         (main): Use it.
32109         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32110         (main): Use it.
32111         * tests/test-memmem.c (null_ptr): New function.
32112         (main): Use it.
32113         Reported by Jim Meyering.
32114
32115 2009-12-10  Bruno Haible  <bruno@clisp.org>
32116
32117         Use spaces for indentation, not tabs.
32118         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32119         * m4/*.m4: Untabify.
32120         * build-aux/*.h: Untabify.
32121         * tests/**/*.[hc]: Untabify.
32122         * README: New section "Indent with spaces, not TABs", based on
32123         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32124         * NEWS: Mention the change.
32125
32126 2009-12-10  Bruno Haible  <bruno@clisp.org>
32127
32128         pty test: Fix link error.
32129         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32130         test_pty_LDADD.
32131
32132 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32133
32134         * modules/pty: New file.
32135         * modules/pty-tests: New file.
32136         * m4/pty.m4: New file.
32137         * tests/test-pty.c: New file.
32138         * doc/glibc-headers/pty.texi: Modified.
32139         * doc/glibc-functions/forkpty.texi: Modified.
32140         * doc/glibc-functions/openpty.texi: Modified.
32141
32142 2009-12-10  Bruno Haible  <bruno@clisp.org>
32143
32144         Avoid syntax error in C++ mode.
32145         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32146
32147 2009-12-10  Bruno Haible  <bruno@clisp.org>
32148
32149         Use sed with option -e.
32150         * gnulib-tool (func_version, func_emit_copyright_notice,
32151         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32152         option -e to sed.
32153         * modules/link-warning (Makefile.am): Likewise.
32154
32155 2009-12-10  Jim Meyering  <meyering@redhat.com>
32156
32157         mgetgroups: do not write bytes beyond end of malloc'd buffer
32158         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32159         username, we call getgroups with a one-element-shorter buffer,
32160         but still told it the length was original, max_n_groups.
32161
32162 2009-12-09  Eric Blake  <ebb9@byu.net>
32163
32164         cloexec: relax license
32165         * modules/cloexec (Maintainer): Add myself.
32166         (License): Use LGPL, not GPL.
32167
32168         link-warning: optimize generation
32169         * modules/link-warning (Makefile.am): Reduce process usage.
32170
32171 2009-12-09  Bruno Haible  <bruno@clisp.org>
32172
32173         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32174         workaround was added on 2009-11-17.
32175
32176 2009-12-09  Jim Meyering  <meyering@redhat.com>
32177             Bruno Haible  <bruno@clisp.org>
32178
32179         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32180         * modules/link-warning (Makefile.am): Make the comment-removing sed
32181         command more robust in the face of bootstrap-prepended comment lines.
32182
32183 2009-12-09  Bruno Haible  <bruno@clisp.org>
32184
32185         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32186         most one group.
32187
32188 2009-12-09  Simon Josefsson <simon@josefsson.org>
32189             Bruno Haible  <bruno@clisp.org>
32190
32191         * build-aux/link-warning.h: Add copyright notice.
32192         * modules/link-warning (Makefile.am): Generate link-warning.h from
32193         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32194         * NEWS: Mention change in link-warning module.
32195         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32196         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32197         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32198         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32199         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32200         * modules/math (Makefile.am): Add dependency to math.h.
32201         * modules/search (Makefile.am): Add dependency to search.h.
32202         * modules/signal (Makefile.am): Add dependency to signal.h.
32203         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32204         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32205         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32206         * modules/string (Makefile.am): Add dependency to string.h.
32207         * modules/strings (Makefile.am): Add dependency to strings.h.
32208         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32209         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32210         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32211         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32212         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32213         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32214         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32215         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32216         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32217
32218 2009-12-09  Bruno Haible  <bruno@clisp.org>
32219
32220         fchdir: Optimize away rpl_fstat when possible.
32221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32222         REPLACE_OPEN_DIRECTORY.
32223         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32224
32225 2009-12-09  Bruno Haible  <bruno@clisp.org>
32226
32227         * lib/fchdir.c: Update comment.
32228
32229 2009-12-09  Bruno Haible  <bruno@clisp.org>
32230
32231         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32232
32233 2009-12-08  Eric Blake  <ebb9@byu.net>
32234
32235         fchdir: avoid memory leak on re-registration.
32236         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32237
32238 2009-12-08  Jim Meyering  <meyering@redhat.com>
32239
32240         init.sh: avoid Solaris 10 /bin/sh portability problem
32241         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32242         sourced script:
32243           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32244           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32245           bar
32246         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32247         and two tests used that idiom.
32248         * tests/init.sh: Update suggested usage comments.
32249         (path_prepend_): New function, to be used in place
32250         of the --src-path=DIR option.
32251         (setup_): Move PATH-prepending code into path_prepend_.
32252         * tests/test-pread.sh: Adapt to new usage.
32253         * tests/test-xalloc-die.sh: Likewise.
32254
32255 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32256
32257         * doc/gnulib.texi (Glibc pty.h): Add.
32258         * doc/glibc-functions/forkpty.texi: Add.
32259         * doc/glibc-functions/openpty.texi: Add.
32260         Suggested by Bruno Haible.
32261
32262 2009-12-08  Eric Blake  <ebb9@byu.net>
32263
32264         fchdir: fix logic bugs
32265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32266         * tests/test-fchdir.c (main): Enhance test.
32267         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32268         is in use.
32269
32270         dup2: fix logic bugs
32271         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32272         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32273         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32274         exists.
32275         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32276
32277 2009-12-07  Eric Blake  <ebb9@byu.net>
32278
32279         unlink: fix m4 detection
32280         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32281
32282         unistd-safer: add unit test
32283         * modules/unistd-safer-tests: New file.
32284         * tests/test-dup-safer.c: Likewise.
32285         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32286         * tests/test-dup2.c (setmode): Likewise.
32287         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32288
32289         cloexec: preserve text vs. binary across dup_cloexec
32290         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32291         mode.
32292         * modules/dup2-tests (Depends-on): Add binary-io.
32293         * modules/cloexec-tests (Depends-on): Likewise.
32294         * tests/test-dup2.c (setmode, is_mode): New helpers.
32295         (main): Add tests that translation mode is preserved.
32296         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32297         Reported by Bruno Haible.
32298
32299         mgetgroups: reduce duplicate listings
32300         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32301         resulting array.
32302         * tests/test-chown.h (test_chown): Simplify client.
32303         * tests/test-lchown.h (test_lchown): Likewise.
32304
32305 2009-12-06  Bruno Haible  <bruno@clisp.org>
32306
32307         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32308         value.
32309
32310 2009-12-06  Bruno Haible  <bruno@clisp.org>
32311
32312         * lib/progname.c: Include stdio.h, stdlib.h.
32313         (set_program_name): Reject a NULL argument.
32314
32315 2009-12-05  Eric Blake  <ebb9@byu.net>
32316
32317         pipe2-safer: new module
32318         * modules/pipe2-safer: New file.
32319         * lib/unistd-safer.h (pipe2_safer): New prototype.
32320         * lib/unistd--.h (pipe2): New wrapper.
32321         * lib/pipe-safer.c (pipe2_safer): New function.
32322         * modules/pipe (Depends-on): Add pipe2-safer.
32323         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32324
32325         stdlib-safer: preserve cloexec flag for mkostemp[s]
32326         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32327         fd_safer_flag.
32328
32329         unistd-safer: allow preservation of cloexec status via flag
32330         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32331         prototypes.
32332         * lib/dup-safer.c (dup_safer_flag): New function.
32333         * lib/fd-safer.c (fd_safer_flag): Likewise.
32334         * modules/cloexec (configure.ac): Set witness.
32335
32336         test-dup2: enhance test
32337         * modules/dup2-tests (Depends-on): Add cloexec.
32338         * tests/test-dup2.c (main): Enhance test.
32339
32340         cloexec: add dup_cloexec
32341         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32342         header and comments.
32343         * lib/cloexec.c (set_cloexec_flag): Add comments.
32344         (dup_cloexec): New function, with mingw implementation borrowed
32345         from...
32346         * lib/w32spawn.h (dup_noinherit): ...here.
32347         * modules/execute (Depends-on): Add cloexec.
32348         * modules/pipe (Depends-on): Likewise.
32349         * modules/cloexec (Depends-on): Add dup2.
32350         * modules/cloexec-tests (Files): New file.
32351         * tests/test-cloexec.c: Likewise.
32352
32353         test-xalloc-die: fix test for mingw
32354         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32355         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32356         directory and .exe suffix off argv[0] output.
32357
32358         test-fseeko: fix test for mingw
32359         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32360         than undefining fseek, so test will pass on mingw.
32361
32362 2009-12-05  Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/progname.h (set_program_name): Clarify specification.
32365         * lib/progname.c (set_program_name): Likewise.
32366         Reported by Jim Meyering.
32367
32368 2009-12-05  Jim Meyering  <meyering@redhat.com>
32369
32370         maint.mk: backslash-escape parens in default regexp
32371         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32372         backslash-escape the literal parentheses.
32373
32374         maint.mk: news-date-check: use grep -E
32375         * top/maint.mk (today): Define a Make variable, not a...
32376         (news-date-check): ...shell variable.
32377         (news-date-regexp): Use the Make variable.
32378         Use grep's -E option.  Change the failing diagnostic to mention
32379         the variable, $(news-date-regexp).
32380
32381 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32382
32383         maintainer-makefile: allow customization of NEWS entry format
32384         * top/maint.mk (news-date-regexp): New overridable variable.
32385         (news-date-check): Use it.
32386
32387 2009-12-04  Eric Blake  <ebb9@byu.net>
32388
32389         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32390         * lib/mgetgroups.h (xgetgroups): New prototype.
32391         * lib/mgetgroups.c (xgetgroups): New wrapper.
32392         (mgetgroups): Handle ENOSYS.
32393         * modules/mgetgroups (Depends-on): Add realloc.
32394         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32395
32396         mgetgroups: avoid argument promotion issues with -1
32397         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32398         for invalid gid_t.
32399         * tests/test-chown.h (getegid, test_chown): Likewise.
32400         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32401
32402 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32403
32404         exclude: Fix header file problems.
32405         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32406
32407 2009-12-01  Jim Meyering  <meyering@redhat.com>
32408
32409         fts: fts_open: do not let an empty string cause immediate failure
32410         This is required in support of GNU rm, for which the command
32411         "rm A '' B" must process and remove both A and B, in spite of
32412         the empty string argument.
32413         * lib/fts.c (fts_open): Do not let the presence of an empty string
32414         cause fts_open to fail immediately.  Most fts-using tools must be
32415         able to process all arguments, in order, and can be expected to
32416         diagnose such arguments themselves.
32417
32418 2009-11-30  Eric Blake  <ebb9@byu.net>
32419
32420         utimens: fix compilation error
32421         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32422         Declare variable at right scope.
32423
32424 2009-11-29  Jim Meyering  <meyering@redhat.com>
32425
32426         bootstrap: handle perl-5.11's changed --version output
32427         * build-aux/bootstrap (get_version): Handle perl separately,
32428         since perl-5.11's --version output is different.
32429
32430 2009-11-28  Jim Meyering  <meyering@redhat.com>
32431
32432         userspec: depend on the inttostr module, too
32433         * modules/userspec (Depends-on): Add inttostr.
32434
32435         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32436         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32437         number of MAXUID when it evaluates to (uid_t) -1.
32438         Likewise for group ID.  Reported by Matt McCutchen in
32439         <http://savannah.gnu.org/bugs/?28113>
32440
32441         userspec: reformat to use spaces, not TABs
32442         * lib/userspec.c: Expand TABs to spaces.
32443         Add Emacs' "indent-tabs-mode: nil" hint.
32444
32445 2009-11-27  Eric Blake  <ebb9@byu.net>
32446
32447         getopt-gnu: flush out another BSD bug
32448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32449         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32450         flush out BSD bug.
32451         * tests/test-getopt.h (test_getopt): End lists with NULL.
32452         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32453         (test_getopt_long_posix): Enhance test.
32454         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32455         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32456         getopt-gnu.
32457         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32458         Likewise.
32459
32460 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32461
32462         * modules/idpriv-droptemp-tests (Notice): Fix text.
32463
32464 2009-11-27  Jim Meyering  <meyering@redhat.com>
32465
32466         test-xalloc-die: avoid spurious failure due to libtool argv difference
32467         In a libtool-enabled project, this test would fail due to a difference
32468         in the emitted program name, e.g.,
32469         -test-xalloc-die: memory exhausted
32470         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32471         Use program to avoid that.
32472         * modules/xalloc-die-tests (Depends-on): Add progname.
32473         * tests/test-xalloc-die.c: Include progname.h".
32474         (program_name): Remove decl.
32475         (main): Call set_program_name.
32476         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32477
32478 2009-11-26  Richard Jones  <rjones@redhat.com>
32479
32480         w32sock: leave win32 error in place.
32481         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32482
32483 2009-11-26  Eric Blake  <ebb9@byu.net>
32484
32485         init.sh: suggest to use skip_ and fail_ functions in comments
32486         * tests/init.sh: Add a sentence.
32487
32488 2009-11-25  Bruno Haible  <bruno@clisp.org>
32489
32490         init.sh: add documentation in comments
32491         * tests/init.sh: Add some developer and user documentation.
32492
32493 2009-11-26  Jim Meyering  <meyering@redhat.com>
32494
32495         init.sh: accommodate even those who specify bogus srcdir manually
32496         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32497         configure-time tests to be sanitized, so that there is no need to
32498         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32499         (with no double quotes) suffices.  However, since tests may be
32500         invoked manually, and since you may explicitly set srcdir to the
32501         name of a directory containing spaces, do quote its uses here.
32502         * tests/test-pread.sh: Likewise.
32503         Suggested by Bruno Haible.
32504
32505         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32506         * tests/test-pread.sh: Write no data into the pipe, because
32507         test-pread actually reads none.  This avoids a diagnostic,
32508         "bash: echo: write error: Broken pipe", that arises in the unusual
32509         event something is ignoring SIGPIPE, and might be interpreted
32510         as some sort of failure.  Reported by Bruno Haible.
32511
32512 2009-11-25  Jim Meyering  <meyering@redhat.com>
32513
32514         test-pread: cover failure with ESPIPE and EINVAL
32515         * tests/test-pread.c (main): Test for failure, too.
32516         * tests/test-pread.sh: Invoke with stdin on a pipe.
32517         Suggested by Eric Blake.
32518
32519         pread: improvement and fix
32520         * modules/pread (Depends-on): Depend on lseek, for portability to
32521         e.g., mingw.  Suggested by Eric Blake.
32522         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32523
32524         unistd.in.h: correct declaration of pread
32525         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32526         Reported by Richard W.M. Jones.
32527
32528         test-pread.sh: distribute the test script
32529         * modules/pread-tests (Files): Include test-pread.sh.
32530
32531         test-pread.sh: clean up
32532         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32533         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32534         That is unnecessary, since it's always ".".
32535         Suggestion from Eric Blake.
32536
32537         test-pread.sh: make executable
32538         * tests/test-pread.sh: Set executable bit.
32539         Reported by Eric Blake.
32540
32541         correct typo in test-pread.sh
32542         * tests/test-pread.sh: Add #! line.
32543
32544         test pread
32545         * tests/test-pread.c: New file.
32546         * tests/test-pread.sh: Likewise.
32547         * modules/pread-tests: Likewise.
32548
32549         pread: new module
32550         * modules/pread: New file.
32551         * lib/unistd.in.h (pread): Define/declare.
32552         * lib/pread.c (pread): New file.
32553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32554         * modules/unistd (Makefile.am): Substitute witnesses.
32555         * doc/posix-functions/pread.texi (pread): Update.
32556         * MODULES.html.sh: Add pread.
32557
32558 2009-11-25  Jim Meyering  <meyering@redhat.com>
32559
32560         tests/init.sh: new file to be used via most *.sh tests
32561         * tests/init.sh: New file.
32562
32563 2009-11-25  Eric Blake  <ebb9@byu.net>
32564
32565         utimens: work around older Linux failure with symlinks
32566         * lib/utimens.c (lutimensat_works_really): New variable.
32567         (fdutimens, lutimens): Use it to manage kernels that support
32568         nanosecond times on files, but not on symlinks.
32569         Reported by OndÅ™ej Vašík.
32570
32571         utimes: fix configure grammar
32572         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32573
32574 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32575
32576         regex: Fix fastmap for multibyte character ranges.
32577         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32578         characters when a multibyte character range is included.
32579
32580 2009-11-22  Andy Wingo  <wingo@pobox.com>
32581
32582         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32583         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32584
32585 2009-11-24  Bruno Haible  <bruno@clisp.org>
32586
32587         doc: Most *_l functions exist in MacOS X 10.5.
32588         * doc/posix-functions/duplocale.texi: Update platforms list.
32589         * doc/posix-functions/freelocale.texi: Likewise.
32590         * doc/posix-functions/newlocale.texi: Likewise.
32591         * doc/posix-functions/uselocale.texi: Likewise.
32592         * doc/posix-functions/isalnum_l.texi: Likewise.
32593         * doc/posix-functions/isalpha_l.texi: Likewise.
32594         * doc/posix-functions/isblank_l.texi: Likewise.
32595         * doc/posix-functions/iscntrl_l.texi: Likewise.
32596         * doc/posix-functions/isdigit_l.texi: Likewise.
32597         * doc/posix-functions/isgraph_l.texi: Likewise.
32598         * doc/posix-functions/islower_l.texi: Likewise.
32599         * doc/posix-functions/isprint_l.texi: Likewise.
32600         * doc/posix-functions/ispunct_l.texi: Likewise.
32601         * doc/posix-functions/isspace_l.texi: Likewise.
32602         * doc/posix-functions/isupper_l.texi: Likewise.
32603         * doc/posix-functions/iswalnum_l.texi: Likewise.
32604         * doc/posix-functions/iswalpha_l.texi: Likewise.
32605         * doc/posix-functions/iswblank_l.texi: Likewise.
32606         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32607         * doc/posix-functions/iswctype_l.texi: Likewise.
32608         * doc/posix-functions/iswdigit_l.texi: Likewise.
32609         * doc/posix-functions/iswgraph_l.texi: Likewise.
32610         * doc/posix-functions/iswlower_l.texi: Likewise.
32611         * doc/posix-functions/iswprint_l.texi: Likewise.
32612         * doc/posix-functions/iswpunct_l.texi: Likewise.
32613         * doc/posix-functions/iswspace_l.texi: Likewise.
32614         * doc/posix-functions/iswupper_l.texi: Likewise.
32615         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32616         * doc/posix-functions/isxdigit_l.texi: Likewise.
32617         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32618         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32619         * doc/posix-functions/strcoll_l.texi: Likewise.
32620         * doc/posix-functions/strfmon_l.texi: Likewise.
32621         * doc/posix-functions/strftime_l.texi: Likewise.
32622         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32623         * doc/posix-functions/strxfrm_l.texi: Likewise.
32624         * doc/posix-functions/tolower_l.texi: Likewise.
32625         * doc/posix-functions/toupper_l.texi: Likewise.
32626         * doc/posix-functions/towctrans_l.texi: Likewise.
32627         * doc/posix-functions/towlower_l.texi: Likewise.
32628         * doc/posix-functions/towupper_l.texi: Likewise.
32629         * doc/posix-functions/wcscoll_l.texi: Likewise.
32630         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32631         * doc/posix-functions/wctrans_l.texi: Likewise.
32632         * doc/posix-functions/wctype_l.texi: Likewise.
32633         * doc/glibc-functions/strptime_l.texi: Likewise.
32634         * doc/glibc-functions/strtod_l.texi: Likewise.
32635         * doc/glibc-functions/strtof_l.texi: Likewise.
32636         * doc/glibc-functions/strtol_l.texi: Likewise.
32637         * doc/glibc-functions/strtold_l.texi: Likewise.
32638         * doc/glibc-functions/strtoll_l.texi: Likewise.
32639         * doc/glibc-functions/strtoul_l.texi: Likewise.
32640         * doc/glibc-functions/strtoull_l.texi: Likewise.
32641         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32642         * doc/glibc-functions/wcstod_l.texi: Likewise.
32643         * doc/glibc-functions/wcstof_l.texi: Likewise.
32644         * doc/glibc-functions/wcstol_l.texi: Likewise.
32645         * doc/glibc-functions/wcstold_l.texi: Likewise.
32646         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32647         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32648         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32649
32650 2009-11-24  Bruno Haible  <bruno@clisp.org>
32651
32652         duplocale: Fix logic bug.
32653         * lib/duplocale.c: Don't include <langinfo.h>.
32654         (_NL_LOCALE_NAME): Remove macro.
32655         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32656         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32657
32658 2009-11-23  Jim Meyering  <meyering@redhat.com>
32659
32660         test-update-copyright: don't hard-code /usr/bin/perl
32661         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32662         perl to print the current year.  Gilles Espinasse reported that
32663         the replaced use of perl was hard-coded as /usr/bin/perl.
32664
32665 2009-11-23  Bruno Haible  <bruno@clisp.org>
32666
32667         duplocale: Add support for glibc 2.3.x.
32668         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32669
32670 2009-11-22  Bruno Haible  <bruno@clisp.org>
32671
32672         vasnprintf: Tiny optimization.
32673         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32674         MacOS X.
32675
32676 2009-11-22  Bruno Haible  <bruno@clisp.org>
32677
32678         Tests for module 'duplocale'.
32679         * modules/duplocale-tests: New file.
32680         * tests/test-duplocale.c: New file.
32681
32682         New module 'duplocale'.
32683         * m4/duplocale.m4: New file.
32684         * lib/locale.in.h (duplocale): New declaration.
32685         * lib/duplocale.c: New file.
32686         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32687         gl_LOCALE_H_DEFAULTS): New macros.
32688         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32689         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32690         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32691         REPLACE_DUPLOCALE.
32692         * modules/duplocale: New file.
32693         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32694
32695 2009-11-22  Bruno Haible  <bruno@clisp.org>
32696
32697         * modules/locale-tests (configure.ac): Test for newlocale function.
32698         * tests/test-locale.c: When the system has extended locale functions,
32699         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32700
32701         locale: Make locale_t available when possible.
32702         * lib/locale.in.h: Include <xlocale.h> when it exists.
32703         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32704         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32705         * modules/locale (Depends-on): Add extensions.
32706         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32707         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32708
32709 2009-11-22  Bruno Haible  <bruno@clisp.org>
32710
32711         Add comments.
32712         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32713         invocation.
32714         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32715         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32717
32718 2009-11-22  Bruno Haible  <bruno@clisp.org>
32719
32720         error: account for the possibility of freopen (stdout).
32721         * lib/error.c: Include <unistd.h>.
32722         (flush_stdout): New function, extracted from error and error_at_line.
32723         Determine stdout's fd dynamically.
32724         (error, error_at_line): Invoke flush_stdout.
32725         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32726         * modules/error (Depends-on): Add unistd.
32727
32728 2009-11-22  Bruno Haible  <bruno@clisp.org>
32729
32730         diffseq: Add comment.
32731         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32732
32733 2009-11-22  Jim Meyering  <meyering@redhat.com>
32734
32735         c-stack: avoid defining an unused static function
32736         * lib/c-stack.c (find_stack_direction): Do not define this function
32737         when it will not be used.
32738
32739         diffseq: avoid spurious gcc warnings
32740         * lib/diffseq.h (IF_LINT2): Define.
32741         (compareseq): Use it to initialize two members of "part".
32742         This avoids two used-uninitialized warnings.
32743
32744 2009-11-21  Jim Meyering  <meyering@redhat.com>
32745
32746         c-stack: avoid "ignoring return value of `write'" warning
32747         * lib/c-stack.c: Include "ignore-value.h".
32748         (die): Explicitly ignore each write return value.
32749         * modules/c-stack (Depends-on): Add ignore-value.
32750
32751 2009-11-21  Bruno Haible  <bruno@clisp.org>
32752
32753         diffseq: reduce scope of variable 'best'.
32754         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32755         variable, earlier used for two different purposes.
32756
32757 2009-11-21  Jim Meyering  <meyering@redhat.com>
32758
32759         diffseq: remove useless assignment to "best"
32760         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32761         assignment.  At that point "best" is already guaranteed to be zero.
32762
32763 2009-11-20  Eric Blake  <ebb9@byu.net>
32764
32765         build: mention ftp redirector in release announcements
32766         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32767         values that used to come from cfg.mk; mention FTP redirect URL.
32768         * build-aux/announce-gen: Mention the mirror list.
32769         Suggested by Karl Berry.
32770
32771         nanosleep: improve port to mingw
32772         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32774         LIB_NANOSLEEP, but only when needed.
32775         * modules/select (Link): Document LIBSOCKET.
32776         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32777         enough.
32778
32779         nanosleep: work around cygwin bug
32780         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32781         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32782         bug.
32783         (getnow): Delete, not needed.
32784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32785         LIB_CLOCK_GETTIME.
32786         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32787         clock-time, gettime.
32788         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32789         bug.
32790         * modules/nanosleep-tests: New test.
32791         * tests/test-nanosleep.c: New file.
32792
32793         sleep: work around cygwin bug
32794         * lib/sleep.c (rpl_sleep): Work around the bug.
32795         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32796         (gl_PREREQ_SLEEP): Delete unused macro.
32797         * modules/sleep (Depends-on): Add verify.
32798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32799         * modules/unistd (Makefile.am): Substitute witness.
32800         * lib/unistd.in.h (sleep): Update prototype.
32801         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32802         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32803         * modules/sleep-tests (Depends-on): Check for alarm.
32804
32805 2009-11-20  Jim Meyering  <meyering@redhat.com>
32806
32807         maint.mk: improve sc_prohibit_magic_number_exit
32808         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32809         so it does not match uses like System.exit(1).
32810         Add comments showing how to correct all offenders.
32811
32812 2009-11-19  Eric Blake  <ebb9@byu.net>
32813
32814         xalloc-die-tests: add missing library
32815         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32816
32817         test-xvasprintf: silence compiler warnings
32818         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32819         empty string from gcc.
32820
32821 2009-11-19  Jim Meyering  <meyering@redhat.com>
32822
32823         xfreopen: new module, from coreutils
32824         * modules/xfreopen: New module.
32825         * lib/xfreopen.c: New file.
32826         * lib/xfreopen.h: New file.
32827         * MODULES.html.sh (File stream based Input/Output"): Add it.
32828
32829 2009-11-19  Eric Blake  <ebb9@byu.net>
32830
32831         manywarnings: depend on warnings
32832         * modules/manywarnings (Depends-on): Add warnings.
32833
32834         build: avoid compiler warnings
32835         * lib/select.c (rpl_select): Delete unused variable.
32836         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32837
32838 2009-11-18  Eric Blake  <ebb9@byu.net>
32839
32840         tests: avoid false negative with --with-packager
32841         * tests/test-version-etc.sh: Discard packager information.
32842         * tests/test-argp-version-etc-1.sh: Likewise.
32843         Reported by Mike Frysinger.
32844
32845         utimens: fix regression on Solaris
32846         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32847         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32848         can only change fd timestamps via futimesat.  Instead, use an
32849         additional witness macro to avoid BSD bug.
32850         Reported by Jim Meyering.
32851
32852 2009-11-17  Eric Blake  <ebb9@byu.net>
32853
32854         usleep: use it to simplify tests
32855         * modules/stat-time-tests (Depends-on): Add usleep.
32856         (configure.ac): Drop usleep check.
32857         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32858         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32859         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32860         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32861         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32862         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32863         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32864         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32865         Likewise.
32866         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32867         * tests/test-lchown.h (nap): Likewise.
32868         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32869         * tests/test-stat-time.c (nap): Likewise.
32870         * tests/test-utimens-common.h (nap): Update comments.
32871
32872         usleep: new module
32873         * modules/usleep: New file.
32874         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32875         * lib/usleep.c (usleep): Likewise.
32876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32877         * modules/unistd (Makefile.am): Substitute witnesses.
32878         * lib/unistd.in.h (usleep): Add declaration.
32879         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32880         * MODULES.html.sh (Date and time): Likewise.
32881         * modules/usleep-tests (Depends-on): New test.
32882         * tests/test-usleep.c: New file.
32883
32884         chown: work around OpenBSD bug
32885         * lib/chown.c (rpl_chown): Work around the bug.
32886         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32887         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32889         * modules/chown (Depends-on): Add stdbool.
32890         * modules/lchown (Depends-on): Likewise.
32891         * doc/posix-functions/chown.texi (chown): Document the bug.
32892         * doc/posix-functions/lchown.texi (lchown): Likewise.
32893         * tests/test-lchown.h (test_chown): Relax test.
32894
32895         mkstemp: avoid conflict with C++ keyword template
32896         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32897         * lib/mkostemp.c (mkostemp): Likewise.
32898         * lib/mkostemps.c (mkostemps): Likewise.
32899         * lib/mkstemp.c (mkstemp): Likewise.
32900         * lib/mkstemps.c (mkstemps): Likewise.
32901
32902         xalloc-die-tests: optimize
32903         * tests/test-xalloc-die.sh: Reduce number of processes.
32904
32905 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32906
32907         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32908         patch from ludo@gnu.org (Ludovic Courtès).
32909
32910 2009-11-17  Jim Meyering  <meyering@redhat.com>
32911
32912         version-etc: use proper license string
32913         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32914         * modules/version-etc-fsf: Likewise.
32915
32916 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32917
32918         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32919         printed to stdout.  Deal with EOL differences.
32920
32921 2009-11-17  Eric Blake  <ebb9@byu.net>
32922
32923         unsetenv: work around Solaris bug
32924         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32925         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32926         Reported by Jim Meyering.
32927
32928         vasnprintf: avoid compiler warnings
32929         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32930         variables.
32931         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32932
32933 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32934
32935         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32936         settings since xalloc-die is no longer the self test,
32937         xalloc-die.sh is.
32938
32939 2009-11-17  Jim Meyering  <meyering@redhat.com>
32940
32941         test-xalloc-die.sh: make the code agree with the commit log
32942         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32943         at the end, just in case you happen to have a test-xalloc-die
32944         program in some other PATH directory.
32945
32946         test-xalloc-die.sh: fix a portability bug
32947         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32948         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32949         Otherwise, argv[0] (as often seen in diagnostics) would be too
32950         system-dependent, sometimes with, and sometimes without the leading "./".
32951
32952         version-etc-fsf: relax license to LGPLv3+
32953         * modules/version-etc-fsf (License): Relax license.
32954
32955 2009-11-16  Eric Blake  <ebb9@byu.net>
32956
32957         xalloc-die-tests: avoid printing null pointer
32958         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32959         shell script.
32960         * tests/test-xalloc-die.c (program_name): Declare.
32961         * tests/test-xalloc-die.sh (tmpfiles): New file.
32962
32963         setenv, unsetenv: work around various bugs
32964         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32965         (setenv) [HAVE_SETENV]: Work around bugs.
32966         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32968         for bugs.
32969         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32970         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32972         * modules/stdlib (Makefile.am): Update substitutions.
32973         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32974         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32975         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32976         * modules/setenv-tests: New test.
32977         * modules/unsetenv-tests: Likewise.
32978         * tests/test-setenv.c: New file.
32979         * tests/test-unsetenv.c: Likewise.
32980
32981 2009-11-16  Jim Meyering  <meyering@redhat.com>
32982
32983         version-etc: relax license to LGPLv3+
32984         * modules/version-etc (License): Relax license.
32985
32986         better AC_REQUIRE expanded-before-required-warning avoidance
32987         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32988         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32989         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32990         which is no longer needed.
32991
32992 2009-11-16  Eric Blake  <ebb9@byu.net>
32993
32994         test-freading: clean up temporary file
32995         * tests/test-freading.c (main): Remove file on success, and use
32996         ASSERT more liberally.
32997         Reported by Jim Meyering.
32998
32999 2009-11-16  Jim Meyering  <meyering@redhat.com>
33000
33001         avoid new AC_REQUIRE expanded-before-required warnings
33002         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33003         merely using it.
33004         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33005         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33006
33007 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33008
33009         * tests/test-xalloc-die.c: New file.
33010         * modules/xalloc-die-tests: New file.
33011         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33012         XFAIL_TESTS so it can be appended by modules.
33013
33014 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33015
33016         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33017         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33018
33019 2009-11-14  Eric Blake  <ebb9@byu.net>
33020
33021         fnmatch: avoid compiler warning
33022         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33023         to silence compiler warning about mismatch signedness in ?:.
33024         Reported by Robert Millan.
33025
33026         intprops: add double-inclusion guard
33027         * lib/intprops.h: Allow idempotent includes.
33028         Suggested by Bruce Korb.
33029
33030         openat: detect Solaris fchownat bug
33031         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33032         penalizing glibc chownat when only lchownat is broken.
33033         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33034         trailing slash bugs.
33035         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33036         * modules/openat-tests (Files): Include more files.
33037         (Depends-on): Add mgetgroups, sleep, stat-time.
33038         (configure.ac): Add additional checks.
33039         (Makefile.am): Build new test.
33040         * tests/test-fchownat.c: New file.
33041
33042         lchown: detect Solaris and FreeBSD bug
33043         * lib/lchown.c (rpl_lchown): Work around bug.
33044         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33046         * modules/unistd (Makefile.am): Populate it.
33047         * lib/unistd.in.h (lchown): Update declaration.
33048         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33049         * modules/lchown-tests: New file.
33050         * tests/test-lchown.h (test_lchown): Likewise.
33051         * tests/test-lchown.c (main): Likewise.
33052
33053         chown: detect Solaris and FreeBSD bug
33054         * lib/chown.c (rpl_chown): Work around bug.
33055         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33056         (gl_PREREQ_CHOWN): Delete.
33057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33058         * modules/unistd (Makefile.am): Populate it.
33059         * lib/unistd.in.h (chown): Update declaration.
33060         * lib/lchown.c (chown): Update client.
33061         * modules/lchown (Depends-on): Add lstat.
33062         * doc/posix-functions/chown.texi (chown): Document the bug.
33063         * doc/posix-functions/getgroups.texi (getgroups): Document
33064         getgroups pitfall.
33065         * modules/chown-tests: New file.
33066         * tests/test-chown.h (test_chown): Likewise.
33067         * tests/test-chown.c (main): Likewise.
33068
33069 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33070
33071         gnulib-tool: correctly detect absence of m4 directories
33072         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33073
33074 2009-11-14  Jim Meyering  <meyering@redhat.com>
33075
33076         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33077         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33078
33079 2009-11-14  John W. Eaton  <jwe@gnu.org>
33080
33081         strftime.h: wrap funtion declaration in extern "C" block
33082         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33083
33084 2009-11-13  Eric Blake  <ebb9@byu.net>
33085
33086         getgroups: avoid compiler warning
33087         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33088
33089         getgroups: work around FreeBSD bug
33090         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33091         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33092         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33093         * tests/test-getgroups.c (main): Fix buffer overrun.
33094
33095         getgroups: avoid compilation failure
33096         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33097         * modules/getgroups (Depends-on): Add stdint.
33098
33099 2009-11-13  Jim Meyering  <meyering@redhat.com>
33100
33101         test-getgroups: avoid compilation failure
33102         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33103
33104 2009-11-13  Eric Blake  <ebb9@byu.net>
33105
33106         mgetgroups: new module, taken from coreutils
33107         * modules/mgetgroups: New file.
33108         * lib/mgetgroups.h: Likewise.
33109         * lib/mgetgroups.c (mgetgroups): Likewise.
33110         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33111         * MODULES.html.sh (Users and groups): Mention it.
33112
33113         getgroups: don't expose GETGROUPS_T to user
33114         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33115         an element at a time if GETGROUPS_T is wrong size.
33116         * lib/getugroups.h (getugroups): Change signature.
33117         * lib/unistd.in.h (getgroups): Likewise.
33118         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33119         signature needs fixing.
33120         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33121         AC_TYPE_GETGROUPS.
33122         * modules/group-member (Depends-on): Add getgroups.
33123         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33124         (group_member): Rely on getgroups replacement.
33125         * lib/getugroups.c (getugroups): Use gid_t.
33126         * tests/test-getgroups.c (main): Likewise.
33127         * NEWS: Mention the signature change.
33128         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33129         problem with signature.
33130         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33131         GETGROUPS_T is still useful for setgroups.
33132
33133         getgroups, getugroups: provide stubs for mingw
33134         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33135         * lib/getugroups.c (getugroups): Likewise.
33136         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33137         function.  Modernize replacement scheme.
33138         (gl_PREREQ_GETGROUPS): Delete.
33139         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33140         * modules/getgroups (configure.ac): Declare witness.
33141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33142         * modules/unistd (Depends-on): Substitute witness.
33143         * lib/unistd.in.h (getgroups): Declare replacement.
33144
33145         getgroups: avoid calling exit
33146         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33147         drop xalloc.
33148         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33149         dependencies.
33150         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33151         exiting, in the rare case of malloc failure.
33152
33153         getgroups: fix logic error
33154         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33155         has more than 20 groups.
33156         * modules/getgroups-tests: New test.
33157         * tests/test-getgroups.c: New file.
33158
33159 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33160
33161         * tests/test-base64.c: Improve.
33162
33163 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33164
33165         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33166         Blake <ebb9@byu.net>.
33167
33168 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33169
33170         * tests/test-xvasprintf.c: Add %s%s related checks.
33171
33172 2009-11-12  Eric Blake  <ebb9@byu.net>
33173
33174         version-etc: match standards.texi style
33175         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33176         and use <> only for URLs.
33177
33178 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33179
33180         fts: do not fail on a submount during traversal
33181         * lib/fts.c (fts_build): Read the stat info again after opening
33182         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33183         Original report at http://bugzilla.redhat.com/501848.
33184
33185 2009-11-12  Jim Meyering  <meyering@redhat.com>
33186
33187         bootstrap: sync from coreutils
33188         * build-aux/bootstrap (bootstrap_epilogue): New function.
33189         Use git_modules_config in one more place.  This make bootstrap's
33190         --gnulib-srcdir option more useful for testing.
33191
33192         bootstrap: generalize autoheader check
33193         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33194         AC_CONFIG_HEADERS.
33195
33196 2009-11-11  Eric Blake  <ebb9@byu.net>
33197
33198         mkfifoat: use new modules for Solaris and BSD bugs
33199         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33200         * lib/mkfifoat.c (mknodat): Split...
33201         * lib/mknodat.c (mknodat): ...into new file.
33202         * modules/mkfifoat (Files): Ship new file.
33203         (Depends-on): Add mkfifo, mknod.
33204         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33205         (Depends-on): Add symlink.
33206         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33207         redundant with test_mkfifo.h.
33208         (do_mkfifoat, do_mknodat): New helpers.
33209
33210         mknod: new module
33211         * modules/mknod: New file.
33212         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33213         * lib/mknod.c (mknod): Likewise.
33214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33215         defaults.
33216         * modules/sys_stat (Makefile.am): Substitute them.
33217         * lib/sys_stat.in.h (mknod): Declare replacement.
33218         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33219         Document it.
33220         * doc/posix-functions/mknod.texi (mknod): Likewise.
33221         * modules/mknod-tests: New test.
33222         * tests/test-mknod.c: Likewise.
33223
33224         mkfifo: new module
33225         * modules/mkfifo: New file.
33226         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33227         * lib/mkfifo.c (mkfifo): Likewise.
33228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33229         defaults.
33230         * modules/sys_stat (Makefile.am): Substitute them.
33231         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33232         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33233         Document it.
33234         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33235         * modules/mkfifo-tests: New test.
33236         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33237         from test-mkfifoat.c.
33238         * tests/test-mkfifo.c: New file.
33239
33240         readlink: detect FreeBSD bug
33241         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33242         slash on symlink.
33243         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33244         * tests/test-readlink.h (test_readlink): Enhance test.
33245
33246         symlink: detect FreeBSD bug
33247         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33248         slash on symlink.
33249         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33250         * tests/test-symlink.h (test_symlink): Enhance test.
33251
33252 2009-11-10  Eric Blake  <ebb9@byu.net>
33253
33254         link: detect FreeBSD bug
33255         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33256         symlink.
33257         * doc/posix-functions/link.texi (link): Document the bug.
33258         * tests/test-link.h (test_link): Enhance test.
33259         * tests/test-linkat.c (main): Update caller.
33260
33261         unlink, remove: detect FreeBSD bug
33262         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33263         slash on symlink.
33264         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33265         * doc/posix-functions/remove.texi (remove): Likewise.
33266         * tests/test-unlink.h (test_unlink): Enhance test.
33267         * tests/test-remove.c (main): Likewise.
33268
33269 2009-11-09  Eric Blake  <ebb9@byu.net>
33270
33271         rename: detect FreeBSD bug
33272         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33273         slash on symlink.
33274         * modules/renameat-tests (Depends-on): Add filenamecat.
33275         * tests/test-rename.h (test_rename): Allow one more errno.
33276         * tests/test-renameat.c (main): Likewise.
33277         * doc/posix-functions/rename.texi (rename): Document the bug.
33278
33279         open: detect FreeBSD bug
33280         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33281         symlink.
33282         * doc/posix-functions/open.texi (open): Document the bug.
33283         * doc/posix-functions/utimes.texi (utimes): Likewise.
33284         * tests/test-open.h (test_open): Add parameters, and test symlink
33285         handling.
33286         * tests/test-open.c (main): Adjust caller.
33287         * tests/test-fcntl-safer.c (main): Likewise.
33288         * modules/open-tests (Depends-on): Add stdbool, symlink.
33289         * modules/fcntl-safer-tests (Depends-on): Likewise.
33290         * tests/test-openat.c (main): Add test-open tests.
33291
33292         stat: detect FreeBSD bug
33293         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33294         symlink.
33295         * doc/posix-functions/stat.texi (stat): Document the bug.
33296         * tests/test-stat.h (test_stat_func): Add argument.
33297         * tests/test-stat.c (main): Adjust caller.
33298         * tests/test-fstatat.c (main): Likewise.
33299         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33300         Reported by Jim Meyering.
33301
33302 2009-11-09  James Youngman  <jay@gnu.org>
33303
33304         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33305         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33306
33307 2009-11-08  Jim Meyering  <meyering@redhat.com>
33308
33309         utimens: remove invalid futimesat call
33310         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33311         It used the file descriptor of the target file as the DIR_FD
33312         parameter and NULL as the file name.  That caused failure with
33313         errno == EFAULT on FreeBSD-8.0-rc2
33314
33315 2009-11-07  Eric Blake  <ebb9@byu.net>
33316
33317         fflush, freadseek: use fseeko, not fseek
33318         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33319         (clear_ungetc_buffer): Avoid potential problems on large files.
33320         * lib/freadseek.c (freadseek): Likewise.
33321         * modules/freadseek (Depends-on): Add fseeko.
33322         * modules/fseek (configure.ac): Set a witness.
33323         * tests/test-fflush.c (main): Use fseeko.
33324         * tests/test-fpurge.c (fseek): Disable link warning.
33325         * tests/test-freadable.c (fseek): Likewise.
33326         * tests/test-freading.c (fseek): Likewise.
33327         * tests/test-fseeko.c (fseek): Likewise.
33328         * tests/test-ftell.c (fseek): Likewise.
33329         * tests/test-ftello.c (fseek): Likewise.
33330         * tests/test-fwritable.c (fseek): Likewise.
33331         * tests/test-fwriting.c (fseek): Likewise.
33332
33333 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33334
33335         * modules/memchr (Depends-on): Drop getpagesize dependency.
33336
33337 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33338
33339         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33340         Reported by Ludovic Courtès.
33341         * build-aux/pmccabe2html: Improve example usage.
33342         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33343
33344 2009-11-06  Jim Meyering  <meyering@redhat.com>
33345
33346         do-release-commit-and-tag: New module.
33347         Automate the release-commit and tag process.
33348         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33349         * modules/do-release-commit-and-tag: New file.
33350         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33351
33352 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33353
33354         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33355         because test-select.c uses inet_pton.
33356
33357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33358
33359         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33360         GETADDRINFO_LIB.  Bump serial number.
33361         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33362         Suggested by Eric Blake <ebb9@byu.net>.
33363
33364 2009-11-05  Eric Blake  <ebb9@byu.net>
33365
33366         strtod: detect darwin bug
33367         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33368         Reported by Leo Davis.
33369
33370         freopen-safer: new module
33371         * modules/freopen-safer: New module.
33372         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33373         * lib/freopen-safer.c (freopen_safer): New file.
33374         * lib/stdio-safer.h (freopen_safer): New declaration.
33375         * lib/stdio--.h (freopen): New override.
33376         * MODULES.html.sh (File stream based Input/Output): Mention it.
33377         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33378         freopen-safer module.
33379         * doc/posix-functions/stderr.texi (stderr): Likewise.
33380         * doc/posix-functions/stdin.texi (stdin): Likewise.
33381         * doc/posix-functions/stdout.texi (stdout): Likewise.
33382         * modules/freopen-safer-tests: New test.
33383         * tests/test-reopen-safer.c: New file.
33384
33385 2009-11-05  Jim Meyering  <meyering@redhat.com>
33386
33387         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33388         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33389
33390 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33391
33392         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33393
33394 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33395
33396         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33397
33398 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33399
33400         Fix link error.
33401         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33402         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33403
33404 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33405
33406         * tests/test-func.c: Also test value of __func__.
33407
33408 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33409
33410         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33411         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33412
33413 2009-11-05  Bruno Haible  <bruno@clisp.org>
33414
33415         Fix link error.
33416         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33417         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33418         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33419
33420 2009-11-05  Bruno Haible  <bruno@clisp.org>
33421
33422         Tests for module 'inet_pton'.
33423         * modules/inet_pton-tests: New file.
33424         * tests/test-inet_pton.c: New file.
33425
33426 2009-11-05  Bruno Haible  <bruno@clisp.org>
33427
33428         Tests for module 'inet_ntop'.
33429         * modules/inet_ntop-tests: New file.
33430         * tests/test-inet_ntop.c: New file.
33431
33432 2009-11-04  Eric Blake  <ebb9@byu.net>
33433
33434         stdlib-safer: wrap all mkstemp variants
33435         * modules/mkostemp (configure.ac): Set witness.
33436         * modules/mkostemps (configure.ac): Likewise.
33437         * modules/mkstemps (configure.ac): Likewise.
33438         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33439         (mkstemps_safer): Wrap more functions.
33440         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33441         wrapping.
33442         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33443         (mkstemps_safer): Implement the wrappers.
33444
33445         mkstemps, mkostemps: new modules
33446         * modules/mkostemps: New module.
33447         * modules/mkstemps: Likewise.
33448         * lib/mkostemps.c (mkostemps): New file.
33449         * lib/mkstemps.c (mkstemps): Likewise.
33450         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33451         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33453         * modules/stdlib (Makefile.am): Substitute them.
33454         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33455         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33456         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33457         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33458         * MODULES.html.sh (File system functions): Mention them.
33459
33460         tempname: resync from glibc
33461         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33462         same values for __GT_FILE as glibc.  Abort even when assertions
33463         are disabled.
33464         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33465         match its value otherwise.  Allow idempotent inclusion.
33466         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33467         * lib/mkostemp.c (mkostemp): Likewise.
33468         * lib/mkstemp.c (mkstemp): Likewise.
33469         * lib/tmpfile.c (tmpfile): Likewise.
33470         * NEWS: Document this.
33471
33472         utimens: fix use of futimens on older Linux
33473         * lib/utimens.c (fdutimens): Use updated, rather than original,
33474         timespec to avoid bug in older Linux kernel.
33475         Reported by Simon Josefsson.
33476
33477 2009-11-04  Bruno Haible  <bruno@clisp.org>
33478
33479         Make num_processors more flexible and consistent.
33480         * lib/nproc.h (enum nproc_query): New type.
33481         (num_processors): Add a 'query' argument.
33482         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33483         (num_processors): Add a 'query' argument. Test the value of the
33484         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33485         mingw, count the number of CPUs available for the current process.
33486         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33487         Check for sched_getaffinity and sched_getaffinity_np.
33488         * modules/nproc (Depends-on): Add c-ctype, extensions.
33489         * NEWS: Mention the change.
33490
33491 2009-11-03  Bruno Haible  <bruno@clisp.org>
33492
33493         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33494
33495 2009-11-03  Jim Meyering  <meyering@redhat.com>
33496
33497         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33498         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33499         if it is defined.
33500
33501 2009-11-02  Eric Blake  <ebb9@byu.net>
33502
33503         mktime, timegm: share common declaration
33504         * lib/mktime-internal.h: New file.
33505         * lib/mktime.c: Use it rather than open-coding a declaration.
33506         * lib/timegm.c: Likewise.
33507         * modules/mktime (Files): Ship it.
33508         * modules/timegm (Files): Likewise.
33509         Suggested by Bruno Haible.
33510
33511         test-update-copyright: update test to match script changes
33512         * tests/test-update-copyright.sh: Avoid hard-coding perl
33513         location.  Don't update *.bak created by earlier runs.
33514
33515 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33516             Simon Josefsson  <simon@josefsson.org>
33517             Bruno Haible  <bruno@clisp.org>
33518
33519         Fix link error on Solaris 8.
33520         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33521         also in libnsl. Define also INET_PTON_LIB.
33522         * modules/inet_pton (Link): New section.
33523
33524 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33525             Bruno Haible  <bruno@clisp.org>
33526
33527         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33528         * modules/inet_ntop (Link): New section.
33529         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33530
33531 2009-11-02  Eric Blake  <ebb9@byu.net>
33532
33533         maint: avoid compiler warnings in m4 macros
33534         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33535         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33536
33537 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33538
33539         * m4/pmccabe2html.m4: Remove file.
33540         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33541         function.  Change maintainer.
33542         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33543         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33544         Courtès).
33545
33546 2009-10-31  Eric Blake  <ebb9@byu.net>
33547
33548         fseeko: fix m4 regression
33549         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33550         regression from 2009-10-27.
33551         Reported by Ralf Wildenhues.
33552
33553 2009-10-31  Jim Meyering  <meyering@redhat.com>
33554
33555         inttostr: aesthetics and improved (compile-time) safety
33556         Define inttype_is_signed rather than inttype_is_unsigned,
33557         since the sole use is via "#if inttype_is_signed".
33558         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33559         inttype_is_unsigned.
33560         * lib/offtostr.c (inttype_is_signed): Likewise.
33561         * lib/uinttostr.c (inttype_is_signed): Likewise.
33562         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33563         * lib/inttostr.c (inttostr): Use verify to cross-check the
33564         inttype_is_signed value and the signedness of the actual type.
33565         * modules/inttostr (Depends-on): Add verify.
33566
33567 2009-10-30  Eric Blake  <ebb9@byu.net>
33568
33569         build: avoid compiler warnings
33570         * lib/fchmodat.c (lchmod): Mark unused variables.
33571         * lib/getopt.c (_getopt_initialize): Likewise.
33572         * lib/mktime.c (__mktime_internal): Provide prototype.
33573         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33574         older gcc that do not understand #pragma GCC diagnostic.
33575         * lib/uinttostr.c (inttype_is_unsigned): Define.
33576         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33577
33578 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33579
33580         stat: fix compilation on AIX
33581         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33582         only see struct stat64.
33583
33584 2009-10-30  Eric Blake  <ebb9@byu.net>
33585
33586         exclude: make more robust
33587         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33588         rather than masking a coding bug.
33589         Suggested by Bruno Haible.
33590
33591 2009-10-30  Jim Meyering  <meyering@redhat.com>
33592
33593         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33594         Rather than putting #!/usr/bin/perl on the first line,
33595         start with a variant of what's recommended by "man perlrun" that
33596         invokes the first "perl" program from your shell's search path.
33597         * build-aux/gitlog-to-changelog: Replace #!... as above.
33598         Add a "Local Variables" perl mode setting.
33599         Prompted by a patch from Ludovic Courtès.
33600         Improved by Eric Blake.
33601         * build-aux/useless-if-before-free: Likewise.
33602         * build-aux/announce-gen: Likewise.
33603         * build-aux/update-copyright: Likewise.
33604
33605 2009-10-29  Eric Blake  <ebb9@byu.net>
33606
33607         filenamecat-lgpl: adjust clients
33608         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33609         filenamecat.
33610         * modules/renameat (Depends-on): Likewise.
33611
33612         filenamecat: split into filenamecat-lgpl
33613         * modules/filenamecat-lgpl: New module.
33614         * modules/filenamecat (Files): Move library-safe files into
33615         filenamecat-lgpl.
33616         (Depends-on): Add filenamecat-lgpl.
33617         (configure.ac): Declare witness.
33618         * lib/filenamecat.h (file_name_concat): Only declare when using
33619         GPL module.
33620         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33621         Move...
33622         * lib/filenamecat-lgpl.c: ...into new file.
33623         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33624         (gl_FILE_NAME_CONCAT): Use it.
33625         * MODULES.html.sh (File system functions): Mention new module.
33626
33627         argp: avoid memory leak
33628         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33629         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33630         base_name, since the latter malloc()s and can call exit().
33631         Leak introduced 2006-07-03.
33632
33633         dirname-lgpl: adjust clients that don't need full dirname
33634         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33635         * modules/filenamecat (Depends-on): Likewise.
33636         * modules/linkat (Depends-on): Likewise.
33637         * modules/mkancesdirs (Depends-on): Likewise.
33638         * modules/mkdir (Depends-on): Likewise.
33639         * modules/openat (Depends-on): Likewise.
33640         * modules/savewd (Depends-on): Likewise.
33641         * modules/rename (Depends-on): Likewise.
33642         (License): Relax license.
33643         * modules/mkdir-tests (Depends-on): Drop progname.
33644         (Makefile.am): Delete unneeded LDADD.
33645         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33646
33647         dirname: split into dirname-lgpl
33648         * modules/dirname-lgpl: New module.
33649         * modules/dirname (Files): Move library-safe files into
33650         dirname-lgpl.
33651         (Depends-on): Add dirname-lgpl.
33652         (configure.ac): Declare witness.
33653         * modules/double-slash-root (License): Relax license.
33654         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33655         module.
33656         * lib/dirname.c (dir_len, mdir_name): Move...
33657         * lib/dirname-lgpl.c: ...into new file.
33658         * lib/basename.c (last_component, base_len): Move...
33659         * lib/basename-lgpl.c: ...into new file.
33660         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33661         (gl_DIRNAME): Use it.
33662         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33663         Mention new module.
33664         * modules/dirname-tests (Depends-on): Add progname.
33665         * tests/test-dirname.c (program_name): Delete.
33666
33667         mkdir: make safe for libraries
33668         * modules/mkdir (Depends-on): Drop xalloc.
33669         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33670         exit.
33671
33672         tests: avoid some compiler warnings
33673         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33674         literals.
33675         * tests/test-memchr.c (main): Avoid type mismatch.
33676         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33677         * tests/test-base64.c (main): Likewise.
33678         * tests/test-getdelim.c (main): Likewise.
33679         * tests/test-gethostname.c (main): Likewise.
33680         * tests/test-getline.c (main): Likewise.
33681         * tests/test-netinet_in.c (main): Likewise.
33682         * tests/test-select.c (open_server_socket, main): Likewise.
33683         * tests/test-select-stdin.c (main): Likewise.
33684         * tests/test-sockets.c (main): Likewise.
33685         * tests/test-strsignal.c (main): Likewise.
33686         * tests/test-sys_select.c (main): Likewise.
33687         * tests/test-sys_socket.c (main): Likewise.
33688         * tests/test-u64.c (main): Likewise.
33689         * tests/test-xfprintf-posix.c (main): Likewise.
33690         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33691
33692         sockets: avoid compiler warning
33693         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33694
33695         maint: detect usage(1) and other suspicious exits
33696         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33697
33698 2009-10-29  Jim Meyering  <meyering@redhat.com>
33699
33700         timespec: long-to-int truncation could make timespec_cmp malfunction
33701         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33702         a multiple of 2^32 nanoseconds as no difference.
33703
33704 2009-10-28  Jim Meyering  <meyering@redhat.com>
33705
33706         fprintftime: wrap macro code argument in "do {...} while(0)"
33707         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33708         cpy macro must be a statement that can be followed by a semicolon.
33709         Now that the else clause contains a comment and is hence longer
33710         than one line, I require curly braces.  That in turn requires
33711         that we wrap this code block in the standard do...while(0).
33712
33713         fprintftime: remove stray semicolon from previous change
33714         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33715
33716         fprintftime: avoid a warning about ignored fwrite return value
33717         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33718         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33719         that is unsafe.
33720         * modules/fprintftime (Depends-on): Add ignore-value.
33721
33722         exclude: avoid an unwarranted warning
33723         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33724
33725 2009-10-27  Eric Blake  <ebb9@byu.net>
33726
33727         fseek: avoid compilation failure when fflush is replaced
33728         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33729         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33730         module is in use.
33731         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33732         module is not in use; since REPLACE_FSEEK worked otherwise.
33733         (GNULIB_FTELLO): Likewise for ftell.
33734         Reported by Ian Beckwith and others.
33735
33736 2009-10-27  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33739         Reported by Jim Meyering.
33740
33741 2009-10-27  Jim Meyering  <jim@meyering.net>
33742             Bruno Haible  <bruno@clisp.org>
33743
33744         Avoid warning despite dropping the return value of fwrite.
33745         * lib/unicodeio.c: Include ignore-value.h.
33746         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33747         * modules/unicodeio (Depends-on): Add ignore-value.
33748
33749 2009-10-26  Eric Blake  <ebb9@byu.net>
33750
33751         areadlinkat: fix fallback path
33752         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33753         pointer and zero.
33754
33755 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33756
33757         Use a better IO block size for modern systems
33758         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33759         * lib/md2.c: Likewise.
33760         * lib/md4.c: Likewise.
33761         * lib/md5.c: Likewise.
33762         * lib/sha1.c: Likewise.
33763         * lib/sha256.c: Likewise.
33764         * lib/sha512.c: Likewise.
33765
33766 2009-10-22  Eric Blake  <ebb9@byu.net>
33767
33768         tests: avoid several compiler warnings
33769         * tests/test-getcwd.c (main): Avoid buffer underflow.
33770         * tests/test-getdate.c (main): String literals are not safe with
33771         putenv, so use setenv.  Declare unused argument.
33772         * modules/getdate-tests (Depends-on): Add setenv.
33773         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33774         problems with string literals in char *.
33775         * tests/test-hash.c (main): Avoid shadowing declaration.
33776         (insert_new): Treat string literals as char const *.
33777         * tests/test-getopt.h (test_getopt): Likewise.
33778         (getopt_loop): Alter types to minimize casting elsewhere.
33779         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33780         (test_getopt_long_posix): Likewise.
33781         (do_getopt_long): Add wrapper to minimize casting.
33782         * tests/test-atexit.c (clear_temp_file): Use void.
33783         * tests/test-areadlink-with-size.c (main): Declare unused
33784         arguments.
33785         * tests/test-areadlink.c (main): Likewise.
33786         * tests/test-areadlinkat-with-size.c (main): Likewise.
33787         * tests/test-areadlinkat.c (main): Likewise.
33788         * tests/test-canonicalize-lgpl.c (main): Likewise.
33789         * tests/test-canonicalize.c (main): Likewise.
33790         * tests/test-dirent-safer.c (main): Likewise.
33791         * tests/test-dirname.c (main): Likewise.
33792         * tests/test-dup2.c (main): Likewise.
33793         * tests/test-fchdir.c (main): Likewise.
33794         * tests/test-fcntl-h.c (main): Likewise.
33795         * tests/test-fcntl-safer.c (main): Likewise.
33796         * tests/test-fdopendir.c (main): Likewise.
33797         * tests/test-fdutimensat.c (main): Likewise.
33798         * tests/test-fflush.c (main): Likewise.
33799         * tests/test-filenamecat.c (main): Likewise.
33800         * tests/test-filevercmp.c (main): Likewise.
33801         * tests/test-fopen-safer.c (main): Likewise.
33802         * tests/test-fopen.c (main): Likewise.
33803         * tests/test-fpending.c (main): Likewise.
33804         * tests/test-fpurge.c (main): Likewise.
33805         * tests/test-freading.c (main): Likewise.
33806         * tests/test-fstatat.c (main): Likewise.
33807         * tests/test-fsync.c (main): Likewise.
33808         * tests/test-futimens.c (main): Likewise.
33809         * tests/test-getndelim2.c (main): Likewise.
33810         * tests/test-gettimeofday.c (main): Likewise.
33811         * tests/test-getopt.c (main): Likewise.
33812         * tests/test-i-ring.c (main): Likewise.
33813         * tests/test-inttypes.c (main): Likewise.
33814         * tests/test-link.c (main): Likewise.
33815         * tests/test-lstat.c (main): Likewise.
33816         * tests/test-math.c (main): Likewise.
33817         * tests/test-md5.c (main): Likewise.
33818         * tests/test-memchr2.c (main): Likewise.
33819         * tests/test-memrchr.c (main): Likewise.
33820         * tests/test-mkdir.c (main): Likewise.
33821         * tests/test-mkdirat.c (main): Likewise.
33822         * tests/test-mkfifoat.c (main): Likewise.
33823         * tests/test-open.c (main): Likewise.
33824         * tests/test-openat-safer.c (main): Likewise.
33825         * tests/test-openat.c (main): Likewise.
33826         * tests/test-quotearg.c (main): Likewise.
33827         * tests/test-rawmemchr.c (main): Likewise.
33828         * tests/test-readlink.c (main): Likewise.
33829         * tests/test-remove.c (main): Likewise.
33830         * tests/test-rename.c (main): Likewise.
33831         * tests/test-renameat.c (main): Likewise.
33832         * tests/test-rmdir.c (main): Likewise.
33833         * tests/test-sha1.c (main): Likewise.
33834         * tests/test-signal.c (main): Likewise.
33835         * tests/test-sigaction.c (main): Likewise.
33836         * tests/test-stat.c (main): Likewise.
33837         * tests/test-stat-time.c (main): Likewise.
33838         * tests/test-stddef.c (main): Likewise.
33839         * tests/test-stdint.c (main): Likewise.
33840         * tests/test-stdio.c (main): Likewise.
33841         * tests/test-stdlib.c (main): Likewise.
33842         * tests/test-strchrnul.c (main): Likewise.
33843         * tests/test-strerror.c (main): Likewise.
33844         * tests/test-string.c (main): Likewise.
33845         * tests/test-strtod.c (main): Likewise.
33846         * tests/test-strverscmp.c (main): Likewise.
33847         * tests/test-symlink.c (main): Likewise.
33848         * tests/test-symlinkat.c (main): Likewise.
33849         * tests/test-sys_stat.c (main): Likewise.
33850         * tests/test-sys_time.c (main): Likewise.
33851         * tests/test-time.c (main): Likewise.
33852         * tests/test-unistd.c (main): Likewise.
33853         * tests/test-unlink.c (main): Likewise.
33854         * tests/test-unlinkat.c (main): Likewise.
33855         * tests/test-utimens.c (main): Likewise.
33856         * tests/test-utimensat.c (main): Likewise.
33857         * tests/test-version-etc.c (main): Likewise.
33858         * tests/test-wchar.c (main): Likewise.
33859         * tests/test-wctype.c (main): Likewise.
33860         * tests/test-xprintf-posix.c (main): Likewise.
33861         * tests/test-posixtm.c (main): Likewise.
33862         (STREQ): Delete unused macro.
33863         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33864         shadowed variables.
33865         * tests/test-memchr.c (main): Likewise.
33866
33867 2009-10-21  Eric Blake  <ebb9@byu.net>
33868
33869         areadlinkat: avoid failure on older glibc
33870         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33871         rather than mis-comparing 0 against FUNC_RESULT of char*.
33872
33873 2009-10-21  Bruno Haible  <bruno@clisp.org>
33874
33875         * modules/stpncpy (License): Relicense under LGPLv2+.
33876         Reported by David Lutterkort <lutter@redhat.com>.
33877
33878 2009-10-20  Eric Blake  <ebb9@byu.net>
33879
33880         utimensat: work around Solaris 9 bug
33881         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33882         has trailing slash bugs.
33883         * tests/test-lutimens.h (test_lutimens): Enhance test.
33884         * tests/test-utimens.h (test_utimens): Likewise.
33885         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33886         * doc/posix-functions/utimes.texi (utimes): Likewise.
33887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33888         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33889         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33890         * doc/posix-functions/futimens.texi (futimens): Likewise.
33891
33892         fdutimensat: new module
33893         * modules/fdutimensat: New file.
33894         * lib/fdutimensat.c (fdutimensat): Likewise.
33895         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33896         * MODULES.html.sh (File system functions): Mention module.
33897         * modules/fdutimensat-tests: New test.
33898         * tests/test-fdutimensat.c: Likewise.
33899
33900         doc: regenerate INSTALL
33901         * doc/INSTALL: Reflect recent autoconf update.
33902         * doc/INSTALL.ISO: Likewise.
33903         * doc/INSTALL.UTF-8: Likewise.
33904
33905 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33906
33907         acl: warn if ACL support is not detected
33908         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33909
33910 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33911
33912         * lib/nproc.h: Add extern "C" block for C++.
33913
33914 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33915             Bruno Haible  <bruno@clisp.org>
33916
33917         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33918         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33919         * doc/posix-functions/isalpha.texi: Likewise.
33920         * doc/posix-functions/isblank.texi: Likewise.
33921         * doc/posix-functions/iscntrl.texi: Likewise.
33922         * doc/posix-functions/isdigit.texi: Likewise.
33923         * doc/posix-functions/isgraph.texi: Likewise.
33924         * doc/posix-functions/islower.texi: Likewise.
33925         * doc/posix-functions/isprint.texi: Likewise.
33926         * doc/posix-functions/ispunct.texi: Likewise.
33927         * doc/posix-functions/isspace.texi: Likewise.
33928         * doc/posix-functions/isupper.texi: Likewise.
33929         * doc/posix-functions/isxdigit.texi: Likewise.
33930
33931 2009-10-18  Bruno Haible  <bruno@clisp.org>
33932
33933         Tests for module 'isblank'.
33934         * modules/isblank-tests: New file.
33935         * tests/test-isblank.c: New file.
33936
33937         New module 'isblank'.
33938         * lib/isblank.c: New file.
33939         * m4/isblank.m4: New file.
33940         * modules/isblank: New file.
33941         * doc/posix-functions/isblank.texi: Mention the new module.
33942
33943 2009-10-18  Bruno Haible  <bruno@clisp.org>
33944
33945         New module 'ctype'.
33946         * lib/ctype.in.h: New file.
33947         * m4/ctype.m4: New file.
33948         * modules/ctype: New file.
33949         * doc/posix-headers/ctype.texi: Mention the new module.
33950
33951 2009-10-18  Jim Meyering  <meyering@redhat.com>
33952
33953         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33954         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33955         right after its initialization, rather than farther down.
33956         Keeping these in close proximity makes it easier to ensure
33957         that each such variable is initialized.  E.g.,
33958
33959             LIB_CLOCK_GETTIME=
33960             AC_SUBST([LIB_CLOCK_GETTIME])
33961
33962         This change also increments these serial numbers.
33963         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33964         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33966
33967 2009-10-18  Bruno Haible  <bruno@clisp.org>
33968
33969         Don't let environment variables perturb build.
33970         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33971         (gl_PREREQ_GETHRXTIME): ... not here.
33972
33973 2009-10-18  Bruno Haible  <bruno@clisp.org>
33974
33975         Avoid symlink attack in localcharset module.
33976         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33977         (O_NOFOLLOW): Define fallback.
33978         (get_charset_aliases): Don't open the file if it is a symbolic link.
33979         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33980         gl_FCNTL_H.
33981         (gl_FCNTL_H): Require it.
33982         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33983         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33984         Reported by Fergal Glynn <fglynn@veracode.com>.
33985
33986 2009-10-18  Bruno Haible  <bruno@clisp.org>
33987
33988         Implement nproc for mingw.
33989         * lib/nproc.c: Include <windows.h>
33990         (num_processors): On native Windows platforms, try GetSystemInfo.
33991
33992 2009-10-18  Bruno Haible  <bruno@clisp.org>
33993
33994         Implement nproc for IRIX.
33995         * lib/nproc.c: Include <sys/sysmp.h>.
33996         (num_processors): On IRIX systems, try sysmp.
33997         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33998
33999 2009-10-18  Bruno Haible  <bruno@clisp.org>
34000
34001         Implement nproc for HP-UX.
34002         * lib/nproc.c: Include <sys/pstat.h>
34003         (num_processors): On HP-UX systems, try pstat_getdynamic.
34004         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34005         pstat_getdynamic.
34006
34007 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34008             Bruno Haible  <bruno@clisp.org>
34009
34010         Implement nproc for NetBSD, OpenBSD.
34011         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34012         (ARRAY_SIZE): New macro.
34013         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34014         * m4/nproc.m4: New file.
34015         * modules/nproc (Files): Add m4/nproc.m4.
34016         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34017         (Makefile.am): Instead, augment lib_SOURCES.
34018
34019 2009-10-18  Bruno Haible  <bruno@clisp.org>
34020
34021         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34022         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34023         sys/param.h.
34024
34025 2009-10-16  Eric Blake  <ebb9@byu.net>
34026
34027         utimensat: new module
34028         * modules/utimensat: New file.
34029         * lib/utimensat.c (utimensat): Likewise.
34030         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34031         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34032         so we can work around Linux bugs.
34033         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34034         * modules/sys_stat (Makefile.am): Substitute them.
34035         * lib/sys_stat.in.h (utimensat): Declare it.
34036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34037         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34038         * modules/utimensat-tests: New test.
34039         * tests/test-utimensat.c: Likewise.
34040
34041         utimens: let lutimens work on non-symlinks
34042         * lib/utimens.c (lutimens): Fall back to utimens rather than
34043         failing with ENOSYS, when file is not a symlink.
34044         (utimens): Reduce redirection.
34045         * tests/test-lutimens.h (test_lutimens): Update test to cover
34046         non-symlinks.
34047         * tests/test-utimens.h (test_utimens): Update test to cover
34048         symlinks.
34049         * tests/test-utimens.c (main): Update caller.
34050
34051         utimens: cache whether utimensat syscall works
34052         * lib/utimens.c (utimensat_works_really): New cache variable.
34053         (fdutimens, lutimens): Use it to avoid failing syscall.
34054
34055         test-stat-time, test-utimens: improve portability
34056         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34057         ext4 on alpha, and for cygwin.
34058         * tests/test-utimens-common.h: New file.
34059         (nap): Factor delays into single function.
34060         * tests/test-lutimens.h (test_lutimens): Use new header.
34061         * tests/test-futimens.h (test_futimens): Likewise.
34062         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34063         timestamps to occur from same machine, as was done previously for
34064         test_utimens.
34065         * modules/utimens-tests (Files): Ship new file.
34066         * modules/futimens-tests (Files): Likewise.
34067         Reported in part by Jim Meyering.
34068
34069         sys_stat: sort replacement declarations
34070         * lib/sys_stat.in.h: Sort declarations.
34071         * lib/futimens.c (futimens): Fix typo.
34072
34073 2009-10-15  Jim Meyering  <meyering@redhat.com>
34074
34075         don't let environment settings perturb build
34076         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34077         could cause a configure-time and/or build-time malfunction.
34078         Typically, a configure-time function-in-library test is performed
34079         via code like this:
34080
34081           LIB_VAR=
34082           AC_SUBST([LIB_VAR])
34083           prefix_saved_LIBS=$LIBS
34084             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34085                        [test "$ac_cv_search_FUNC" = "none required" ||
34086                         LIB_VAR=$ac_cv_search_FUNC])
34087           LIBS=$prefix_saved_LIBS
34088
34089         However, in each of the files affected by this change, the LIB_VAR=
34090         initialization was omitted.  Thus, when set in the environment, its
34091         value would propagate into generated Makefiles when FUNC is not found
34092         in LIB_NAME.
34093         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34094         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34096
34097 2009-10-14  Eric Blake  <ebb9@byu.net>
34098
34099         fchdir: avoid infinite recursion in mingw
34100         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34101         recursing.
34102
34103         test-stat-time: port to mingw
34104         * tests/test-stat-time.c (force_unlink): Return a value.
34105         (test_ctime) [W32]: Fix compilation error.
34106         (nap): Don't call usleep with too large an argument.  Use
34107         force_unlink.
34108         * doc/pastposix-functions/usleep.texi (usleep): Document the
34109         portability issue.
34110
34111 2009-10-13  Jim Meyering  <meyering@redhat.com>
34112
34113         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34114         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34115         * modules/pipe-filter-ii: Likewise.
34116         * modules/sys_socket-tests: Likewise.
34117         * modules/tsearch-tests: Likewise.
34118         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34119         (check): Depend on it.
34120
34121 2009-10-12  Eric Blake  <ebb9@byu.net>
34122
34123         utimens-tests: port to NFS file systems
34124         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34125         comparisons to avoid spurious failures from timestamp drift
34126         between NFS machines.
34127
34128 2009-10-12  Eric Blake  <ebb9@byu.net>
34129
34130         stat-time-tests: minor cleanups
34131         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34132         * tests/test-stat-time.c (nap): Separate assignment from call.
34133         Suggested by Paolo Bonzini and Bruno Haible.
34134
34135         sys_stat: guarantee struct timespec
34136         * lib/sys_stat.in.h (includes): Always include <time.h>
34137         * modules/sys_stat (Depends-on): Add time.
34138         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34139         mode_t permission values.
34140         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34141         get at subsecond timestamps.
34142
34143 2009-10-10  Eric Blake  <ebb9@byu.net>
34144
34145         futimens: new module
34146         * modules/futimens: New file.
34147         * lib/futimens.c (futimens): Likewise.
34148         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34149         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34150         we can work around Linux bugs.
34151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34152         * modules/sys_stat (Makefile.am): Substitute them.
34153         * lib/sys_stat.in.h (futimens): Declare it.
34154         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34155         * doc/posix-functions/futimens.texi (futimens): Likewise.
34156         * modules/futimens-tests: New test.
34157         * tests/test-futimens.c: Likewise.
34158
34159         utimens: introduce fdutimens
34160         * lib/utimens.h (fdutimens): New prototype.
34161         * lib/utimens.c (gl_futimens): Move guts...
34162         (fdutimens): ...to new interface.
34163         * tests/test-utimens.c (do_fdutimens): Use it.
34164
34165         utimens: add UTIME_NOW and UTIME_OMIT support
34166         * lib/utimens.c (validate_timespec, update_timespec): New helper
34167         functions.
34168         (gl_futimens, lutimens): Use them.
34169         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34170         stdbool, sys_stat.
34171         (Link): Mention resulting library dependency.
34172         * modules/utimecmp (Link): Likewise.
34173         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34174         (Makefile.am): Pick up library dependency.
34175         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34176         definition.
34177         * tests/test-sys_stat.c: Test the definitions.
34178         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34179         * NEWS: Document library dependency.
34180
34181         utimecmp: support symlink timestamps
34182         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34183         hashing when possible.  Use pathconf when available.
34184         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34185         * modules/utimecmp (Depends-on): Add lstat.
34186
34187         utimens: add lutimens interface
34188         * lib/utimens.c (lutimens): New function.
34189         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34190         * lib/utimens.h (lutimens): Declare new interface.
34191         * tests/test-utimens.c (main): Enhance test.
34192         * tests/test-lutimens.h (test_lutimens): New file.
34193         * modules/utimens-tests (Files): Distribute it.
34194         (Depends-on): Add symlink.
34195         (configure.ac): Check for usleep.
34196
34197         utimens: validate futimens usage
34198         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34199         fewer syscalls on failure later on.  Avoid compiler warning on
34200         mingw.
34201         * modules/utimens (Depends-on): Add dup2.
34202
34203         utimens: add test
34204         * modules/utimens-tests: New test.
34205         * tests/test-utimens.h: New file.
34206         * tests/test-futimens.h: Likewise.
34207         * tests/test-utimens.c: Likewise.
34208
34209         doc: mention timestamp portability issues
34210         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34211         instead.
34212         * doc/posix-functions/utime.texi (utime): Likewise.
34213         * doc/posix-functions/utimes.texi (utimes): Likewise.
34214         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34215         instead.
34216         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34217         module.
34218         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34219         Mention weakness with symlink timestamps.
34220         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34221         to utimensat/futimens instead.
34222         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34223
34224         test-dup2: enhance test
34225         * tests/test-dup2.c (main): Also check AT_FDCWD.
34226
34227         test-stat-time: avoid more spurious failures
34228         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34229         xfs; and avoid race if the two timestamps cross quantization edge.
34230
34231         relocatable: prefer 'file system' over 'filesystem'
34232         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34233         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34234         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34235         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34236         * lib/relocatable.c (compute_curr_prefix): Likewise.
34237
34238 2009-10-10  Jim Meyering  <meyering@redhat.com>
34239
34240         stat-time-tests: check for the usleep function
34241         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34242
34243 2009-10-10  Bruno Haible  <bruno@clisp.org>
34244
34245         * modules/xnanosleep: Put the Link section after the Include section.
34246
34247 2009-10-09  Eric Blake  <ebb9@byu.net>
34248
34249         dup2: work around FreeBSD 6.1 bug
34250         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34251         * doc/posix-functions/dup2.texi (dup2): Document it.
34252         Reported by Nelson H. F. Beebe and Jim Meyering.
34253
34254         test-stat-time: port to buggy NFS clients
34255         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34256         (test_ctime): Also skip test if mtime and ctime are skewed.
34257
34258         maint: prefer 'file system' over 'filesystem'
34259         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34260         * doc/posix-functions/lstat.texi (lstat): Likewise.
34261         * lib/file-has-acl.c (file_has_acl): Likewise.
34262         * lib/fwriteerror.c [TEST]: Likewise.
34263         * tests/test-areadlink.h (test_areadlink): Likewise.
34264         * tests/test-areadlinkat-with-size.c (main): Likewise.
34265         * tests/test-areadlinkat.c (main): Likewise.
34266         * tests/test-canonicalize-lgpl.c (main): Likewise.
34267         * tests/test-canonicalize.c (main): Likewise.
34268         * tests/test-fstatat.c (main): Likewise.
34269         * tests/test-linkat.c (main): Likewise.
34270         * tests/test-lstat.h (test_lstat_func): Likewise.
34271         * tests/test-mkdir.h (test_mkdir): Likewise.
34272         * tests/test-readlink.h (test_readlink): Likewise.
34273         * tests/test-remove.c (main): Likewise.
34274         * tests/test-rename.h (test_rename): Likewise.
34275         * tests/test-renameat.c (main): Likewise.
34276         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34277         * tests/test-symlink.h (test_symlink): Likewise.
34278         * tests/test-symlinkat.c (main): Likewise.
34279         * tests/test-unlink.h (test_unlink_func): Likewise.
34280         * tests/test-unlinkat.c (main): Likewise.
34281
34282         maint: make realtime library usage explicit
34283         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34284         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34285         * modules/settime (Link): Likewise.
34286         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34287
34288         test-stat-time: speed up execution
34289         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34290         warning on mingw.
34291         (nap): New helper function.
34292         (prepare_test): Use it to reduce sleep time.
34293         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34294         execution.
34295         * modules/stat-time-tests (configure.ac): Check for usleep.
34296
34297 2009-10-09  Jim Meyering  <meyering@redhat.com>
34298
34299         selinux-h: always use getfilecon wrappers
34300         * lib/getfilecon.c: New file.
34301         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34302         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34303         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34304         (fgetfilecon): Provide a stub.
34305         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34306         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34307         file unconditionally.
34308         When <selinux/selinux.h> is found, arrange to use wrappers.
34309         * modules/selinux-h (Files): Add getfilecon.c.
34310         (Makefile.am): Substitute include-next-related bits
34311         into the now-always-generated selinux/selinux.h file.
34312         * doc/glibc-functions/lgetfilecon.texi: New file.
34313         * doc/glibc-functions/fgetfilecon.texi: New file.
34314         * doc/glibc-functions/getfilecon.texi: New file.
34315         * doc/glibc-functions/getfilecon-desc.texi: New file.
34316         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34317         which to pull in the new files.
34318         * MODULES.html.sh (Misc): Add selinux-h.
34319
34320 2009-10-08  Jim Meyering  <meyering@redhat.com>
34321
34322         unistd: fix comment typo
34323         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34324
34325 2009-10-08  Eric Blake  <ebb9@byu.net>
34326
34327         areadlink: use SIZE_MAX consistently
34328         * modules/areadlink (Depends-on): Add stdint.
34329         * modules/areadlink-with-size (Depends-on): Likewise.
34330         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34331         gives NULL; drop sys/types, since unistd gives size_t; and add
34332         stdint for SIZE_MAX.
34333         (SIZE_MAX): Rely on headers.
34334         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34335         and add stdint.
34336         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34337         (SIZE_MAX): Likewise.
34338         (INITIAL_BUF_SIZE): Turn into enum.
34339         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34340
34341 2009-10-08  Jim Meyering  <meyering@redhat.com>
34342
34343         areadlinkat: avoid compilation failure
34344         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34345         Fix typo in comment.
34346
34347 2009-10-07  Eric Blake  <ebb9@byu.net>
34348
34349         areadlinkat-with-size: new module
34350         * modules/areadlinkat-with-size: New module.
34351         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34352         * lib/areadlink.h (areadlinkat): Declare it.
34353         * MODULES.html.sh (File system functions): Mention it.
34354         * modules/areadlinkat-with-size-tests: New test.
34355         * tests/test-areadlinkat-with-size.c: New file.
34356
34357         xreadlinkat: new module
34358         * modules/xreadlinkat: New module.
34359         * lib/xreadlinkat.c (xreadlinkat): New file.
34360         * lib/xreadlink.h (xreadlinkat): Declare it.
34361         * MODULES.html.sh (File system functions): Mention it.
34362
34363         areadlinkat: new module
34364         * lib/at-func.c (FUNC_FAIL): New define.
34365         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34366         * modules/areadlinkat: New module.
34367         * lib/linkat.c (areadlinkat): Move...
34368         * lib/areadlinkat.c (areadlinkat): ...to new file.
34369         * lib/areadlink.h (areadlinkat): Declare it.
34370         * modules/linkat (Depends-on): Add areadlinkat.
34371         * MODULES.html.sh (File system functions): Mention it.
34372         * modules/areadlinkat-tests: New test.
34373         * tests/test-areadlinkat.c: New file.
34374
34375         areadlink, areadlink-with-size: add tests
34376         * modules/areadlink-tests: New test.
34377         * modules/areadlink-with-size-tests: Likewise.
34378         * tests/test-areadlink.h: New file.
34379         * tests/test-areadlink.c: Likewise.
34380         * tests/test-areadlink-with-size.c: Likewise.
34381
34382         maint: minor cleanups
34383         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34384         _UNUSED_PARAMETER_ instead.
34385         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34386         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34387         * modules/linkat-tests (Files): Distribute test-link.h.
34388
34389         openat, utimens: whitespace cleanup
34390         * lib/openat.c: Prefer space throughout, rather than mix of 8
34391         spaces vs. tabs.
34392         * lib/at-func.c: Likewise.
34393         * lib/utimens.c: Likewise.
34394
34395         openat: avoid using wrong fd
34396         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34397         working directory chooses same fd.
34398         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34399
34400         mkdir, mkdirat: fix cygwin 1.5.x bug
34401         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34402         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34403         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34404         bug.
34405         (gl_PREREQ_MKDIR): Delete unused macro.
34406         * modules/mkdir (Files): Track file rename.
34407         (configure.ac): Update macro name.
34408         * modules/openat (Depends-on): Add mkdir.
34409         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34410
34411         mkdir, mkdirat: add tests
34412         * modules/mkdir-tests: New test.
34413         * tests/test-mkdir.h: New file.
34414         * tests/test-mkdir.c: Likewise.
34415         * tests/test-mkdirat.c: Likewise.
34416         * modules/openat-tests (Files): Add new files.
34417         (Makefile.am): Run new test.
34418
34419 2009-10-06  Eric Blake  <ebb9@byu.net>
34420
34421         doc: tweak *at function documentation
34422         * doc/posix-functions/faccessat.texi (faccessat): Mention
34423         known issue with replacement.
34424         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34425         * doc/posix-functions/linkat.texi (linkat): Likewise.
34426         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34427         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34428         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34429         * doc/posix-functions/renameat.texi (renameat): Likewise.
34430         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34431
34432         openat: fix GNU/Hurd bug in unlinkat
34433         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34434         broken.
34435         * doc/posix-functions/unlink.texi (unlink): Document this.
34436         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34437
34438         fdopendir: fix GNU/Hurd bug
34439         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34440         allowing non-directory fds.
34441         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34442         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34443         * modules/dirent (Makefile.am): Substitute it.
34444         * lib/dirent.in.h (fdopendir): Declare replacement.
34445         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34446         * tests/test-fdopendir.c (main): Test something other than
34447         /dev/null, since on Hurd that behaves like a directory.
34448
34449         test-symlink: port to GNU/Hurd
34450         * tests/test-symlink.h (test_symlink): Relax expected errno.
34451
34452         doc: tweak more cygwin information
34453         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34454         now compatible with glibc.
34455         * doc/posix-functions/getopt.texi (getopt): Likewise.
34456
34457         getopt-gnu: add another test
34458         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34459         guarantee behavior relied on by m4.
34460         * tests/test-getopt.c (main): Use it.
34461         * modules/getopt-posix-tests (Depends-on): Add setenv.
34462         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34463
34464         getopt: fix compilation on darwin
34465         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34466         include.
34467         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34468         Reported by Ludovic Courtès.
34469
34470 2009-10-06  Bruno Haible  <bruno@clisp.org>
34471
34472         * modules/size_max (Description): Discourage its use.
34473         Reported by Simon Josefsson.
34474
34475 2009-10-06  Jim Meyering  <meyering@redhat.com>
34476
34477         linkat: avoid compilation failure
34478         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34479
34480 2009-10-05  Eric Blake  <ebb9@byu.net>
34481
34482         linkat: support Linux 2.6.17
34483         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34484         linkat on Linux, but allow cache variable override.
34485         * lib/linkat.c (rpl_linkat): Define override.
34486         * modules/linkat (Depends-on): Add symlinkat.
34487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34488         * modules/unistd (Makefile.am): Substitute it.
34489         * lib/unistd.in.h (linkat): Declare replacement.
34490         Reported by Pádraig Brady.
34491
34492         quotearg: port test to systems with C.UTF-8 locale
34493         * tests/test-quotearg.c (struct result_strings): Add another
34494         member, differentiating between C.ASCII and C.UTF-8 handling.
34495         (compare_strings): Add parameter.
34496         (main): Adjust all callers.
34497
34498         getopt: avoid clash with FreeBSD _getopt_internal
34499         * lib/getopt.in.h (_getopt_internal): Override the name.
34500         * lib/getopt_int.h (includes): Pick up any overrides.
34501         Reported by Reuben Thomas.
34502
34503         hash: allow C89 compilation
34504         * lib/hash.c (check_tuning): Move declaration before statement.
34505         Reported by Reuben Thomas.
34506
34507 2009-10-05  Karl Berry  <karl@gnu.org>
34508
34509         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34510
34511 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34512             Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/uname.c (uname): Use a table-driven algorithm to compute
34515         Windows NT versions.
34516
34517 2009-10-04  Bruno Haible  <bruno@clisp.org>
34518
34519         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34520         program_invocation_short_name.
34521         * modules/progname (configure.ac): Test for presence of
34522         program_invocation_short_name.
34523         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34524
34525 2009-10-04  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/progname.c (set_program_name): Fix comment.
34528         Reported by Jim Meyering.
34529
34530 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34531             Bruno Haible  <bruno@clisp.org>
34532
34533         * lib/uname.c: Include <string.h>.
34534         (uname): Do only one call to GetVersionEx in the common case.
34535
34536 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34537             Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34540         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34541         (uname): Add support for Windows CE and various non-x86 CPU types.
34542
34543 2009-10-03  Bruno Haible  <bruno@clisp.org>
34544
34545         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34546         invocation to tests/configure.ac.
34547         Reported by Ian Beckwith <ianb@erislabs.net>.
34548
34549 2009-10-02  Eric Blake  <ebb9@byu.net>
34550
34551         fchdir: avoid compiler warning
34552         * lib/fchdir.c (canonicalize_file_name)
34553         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34554
34555         test-open: support mingw errno values
34556         * tests/test-open.h (test_open): Relax test.
34557         * tests/test-fopen.h (test_fopen): Likewise.
34558         * tests/test-openat-safer.c (main): Likewise.
34559
34560         open: fix opening directory on mingw
34561         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34562
34563         test-open: on GNU/Hurd, /dev/null is a directory
34564         * tests/test-fopen.h (main): Rename...
34565         (test_fopen): ...to this.  Use a guaranteed non-directory when
34566         confirming open behavior on trailing slash.
34567         * tests/test-openat-safer.c (main): Likewise.
34568         * tests/test-open.h (main): Likewise....
34569         (test_open): ...to this.
34570         * tests/test-fopen.c (main): Adjust caller.
34571         * tests/test-fopen-safer.c (main): Likewise.
34572         * tests/test-open.c (main): Likewise.
34573         * tests/test-fcntl-safer.c (main): Likewise.
34574         Reported by Samuel Thibault.
34575
34576         rename, fchdir: don't ignore chdir failure
34577         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34578         * lib/rename.c (rpl_rename) [W32]: Likewise.
34579         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34580         an empty destination directory if source cannot be renamed,
34581         although there is still possibility for failure.
34582         * doc/posix-functions/rename.texi (rename): Document the race.
34583         Reported by Jim Meyering.
34584
34585         maint: cleanup whitespace in recent commits
34586         * lib/rename.c (rpl_rename): Remove tabs.
34587         * tests/test-link.h (test_link): Likewise.
34588         * lib/fchdir.c (get_name): Likewise.
34589         Reported by Jim Meyering.
34590
34591 2009-10-02  Ben Pfaff  <blp@gnu.org>
34592
34593         relocatable-prog-wrapper: Add missing dependency on
34594         double-slash-root.
34595         * modules/relocatable-prog-wrapper: Add dependency.
34596         Reported by Ian Beckwith <ianb@erislabs.net>.
34597
34598 2009-10-02  Eric Blake  <ebb9@byu.net>
34599
34600         renameat: fix Solaris bugs
34601         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34602         needed fixing.
34603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34604         * modules/stdio (Makefile.am): Substitute it.
34605         * lib/stdio.in.h (renameat): Declare replacement.
34606         * lib/renameat.c (rpl_renameat): Implement fix.
34607
34608         renameat: new module
34609         * modules/renameat: New file.
34610         * lib/renameat.c (renameat): Likewise.
34611         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34613         * modules/stdio (Makefile.am): Substitute them.
34614         * lib/stdio.in.h (renameat): Declare it.
34615         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34616         * doc/posix-functions/renameat.texi (renameat): Likewise.
34617         * modules/renameat-tests: New test.
34618         * tests/test-renameat.c: Likewise.
34619
34620         rename: fix mingw bugs
34621         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34622         directory overwrite bugs.
34623
34624         rename: fix another cygwin 1.5 bug
34625         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34626         checks.
34627         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34628         unnecessary cygwin workarounds.  Also work around bug with moving
34629         full directory onto an empty one.
34630         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34631
34632         rename-dest-slash: merge into rename module
34633         * modules/rename-dest-slash (Status): Mark obsolete.
34634         (Depends-on): Add rename.
34635         (Files): Let rename do it all.
34636         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34637         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34638         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34639         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34640         * lib/rename.c (rpl_rename): Update comments.
34641
34642         rename: fix cygwin 1.5.x bugs
34643         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34644         * lib/rename.c (rpl_rename): Work around them.
34645         * modules/rename (Depends-on): Add same-inode.
34646
34647         rename: fix Solaris 10 bug
34648         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34649         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34650         was the only bug.
34651
34652         rename: fix Solaris 9 bug
34653         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34654         on non-directory.  Avoid calling exit.
34655         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34656         strdup.
34657         * modules/rename-tests (Depends-on): Drop lstat.
34658         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34659         (gl_PREREQ_RENAME): Delete unused macro.
34660
34661         rename-dest-slash: fix NetBSD bug
34662         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34663         links.
34664         * modules/rename-dest-slash (Depends-on): Add same-inode.
34665
34666         rename-tests: new test, exposes several platform bugs
34667         * modules/rename-tests: New file.
34668         * tests/test-rename.h: Likewise.
34669         * tests/test-rename.c: Likewise.
34670         * doc/posix-functions/rename.texi (rename): Improve documentation,
34671         including bugs that will eventually be fixed in gnulib.
34672
34673 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34674
34675         * lib/uname.c: Include <stdlib.h>
34676         (uname): Assume version info is available.
34677
34678 2009-10-02  Jim Meyering  <meyering@redhat.com>
34679
34680         gnu-web-doc-update: correct --help output
34681         * build-aux/gnu-web-doc-update: Make --help output relevant.
34682
34683         gnu-web-doc-update: add standard options
34684         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34685
34686         gnu-web-doc-update: New module.
34687         Use this script to automatically update the on-line web documentation
34688         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34689         * modules/gnu-web-doc-update: New file, from coreutils.
34690         * build-aux/gnu-web-doc-update: New script.
34691
34692 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34693
34694         link: LoadLibrary is not needed.
34695         * lib/link.c: Use GetModuleHandle.
34696
34697 2009-10-01  Eric Blake  <ebb9@byu.net>
34698
34699         getopt: bump serial number
34700         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34701         change.
34702
34703         tests: tighten link, rmdir, and remove tests
34704         * tests/test-link.h (includes): No need to use <config.h> here.
34705         Clean up if directory hard link was created, otherwise test for
34706         trailing '.'.
34707         * tests/test-linkat.c (main): Simplify.
34708         * tests/test-remove.c (main): Enhance test for trailing '.'.
34709         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34710
34711 2009-10-01  Jim Meyering  <meyering@redhat.com>
34712
34713         maint.mk: requiring "make major" was annoying, for a "minor" release.
34714         What is intended is "stable", to contrast with alpha and beta,
34715         so require "make stable", not "make major".
34716         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34717         (get_tool_versions): Likewise.
34718         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34719
34720 2009-09-30  Ben Pfaff  <blp@gnu.org>
34721
34722         Fix broken build of replacement for Windows tmpfile().
34723         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34724         flags argument added along with the 'mkostemp' module.
34725
34726 2009-09-28  Bruno Haible  <bruno@clisp.org>
34727
34728         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34729         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34730         to 'remove_elt'.
34731         (gl_list_remove): Update.
34732         * lib/gl_list.c (gl_list_remove): Update.
34733         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34734         to 'remove_elt'.
34735         (gl_oset_remove): Update.
34736         * lib/gl_list.c (gl_oset_remove): Update.
34737         Reported by Eric Blake.
34738
34739 2009-09-28  Eric Blake  <ebb9@byu.net>
34740
34741         doc: mention yet more cygwin 1.7 status
34742         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34743         cygwin.
34744         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34745         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34746
34747         argp: fix test failure
34748         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34749         that are not upper-case.  Pass correct range to tolower.
34750
34751 2009-09-27  Jim Meyering  <meyering@redhat.com>
34752
34753         test-yesno: work around sparc-dash here-document infelicity
34754         Without this change, the literal \177 byte in a here document
34755         would make dash 0.5.5.1-3 access uninitialized memory.
34756         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34757         Instead, use a marker, "@", and filter through tr to create the desired
34758         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34759
34760 2009-09-27  Bruno Haible  <bruno@clisp.org>
34761
34762         Disable untested support for new flavours of ACLs on AIX.
34763         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34764         progress.
34765         * lib/set-mode-acl.c (qset_acl): Likewise.
34766
34767 2008-12-07  Bruno Haible  <bruno@clisp.org>
34768
34769         Add support for new flavours of ACLs on AIX. (Untested.)
34770         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34771         (file_has_acl): Add support for newer AIX.
34772         * lib/set-mode-acl.c (qset_acl): Likewise.
34773         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34774         Rainer Tammer <tammer@tammer.net>.
34775
34776 2009-09-26  Eric Blake  <ebb9@byu.net>
34777
34778         argp: fix compilation of getopt
34779         * lib/getopt.in.h (includes): Use different guard than glibc.
34780         Reported by Sergey Poznyakoff.
34781
34782         doc: mention more cygwin 1.7 status
34783         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34784         bug.
34785         * doc/posix-functions/execl.texi (execl): Likewise.
34786         * doc/posix-functions/execle.texi (execle): Likewise.
34787         * doc/posix-functions/execlp.texi (execlp): Likewise.
34788         * doc/posix-functions/execv.texi (execv): Likewise.
34789         * doc/posix-functions/execve.texi (execve): Likewise.
34790         * doc/posix-functions/execvp.texi (execvp): Likewise.
34791         * doc/glibc-functions/canonicalize_file_name.texi
34792         (canonicalize_file_name): Cygwin 1.7 now provides this.
34793         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34794         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34795         on AT_SYMLINK_NOFOLLOW.
34796
34797 2009-09-24  Eric Blake  <ebb9@byu.net>
34798
34799         test-linkat: make test more robust
34800         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34801
34802         getopt: fix inclusion guards for cygwin
34803         * modules/getopt-posix (Depends-on): Add include-next.
34804         (Makefile.am): Substitute more items in replacement header.
34805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34806         <getopt.h>.
34807         * lib/getopt.in.h (includes): Use split inclusion guard, and
34808         prefer <getopt.h> over include <unistd.h> when one is present.
34809         (option): Also override name of 'struct option'.
34810
34811         same-inode: revert prior change; it is not yet ready
34812         * NEWS: Undo mention of this change.
34813         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34814         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34815         * lib/cycle-check.c (cycle_check): Likewise.
34816         * lib/same.c (same_name): Likewise.
34817         * lib/at-func2.c (at_func2): Likewise.
34818
34819 2009-09-23  Eric Blake  <ebb9@byu.net>
34820
34821         linkat: new module
34822         * modules/linkat: New file.
34823         * lib/at-func2.c (at_func2): Likewise.
34824         * lib/linkat.c (linkat): Likewise.
34825         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34826         * lib/openat-priv.h (at_func2): Add declaration.
34827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34828         * modules/unistd (Makefile.am): Substitute them.
34829         * lib/unistd.in.h (linkat): Declare it.
34830         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34831         * doc/posix-functions/linkat.texi (linkat): Likewise.
34832         * doc/posix-functions/link.texi (link): Tweak wording.
34833         * tests/test-link.c (main): Move guts...
34834         * tests/test-link.h (test_link): ...into new file.
34835         * modules/linkat-tests: New test.
34836         * tests/test-linkat.c: Likewise.
34837         * modules/link-tests (Files): Ship new file.
34838         (Depends-on): Add stdbool.
34839
34840         dirname: add library-safe mdir_name
34841         * lib/dirname.h (mdir_name): New prototype.
34842         * lib/dirname.c (dir_name): Move guts...
34843         (mdir_name): ...to new function that avoids xalloc_die.
34844
34845         fchdir: another mingw fix
34846         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34847         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34848         on mingw (where it has not yet been ported), and make it optional
34849         elsewhere.
34850         (_gl_register_fd): Use it.
34851
34852         same-inode: make SAME_INODE tri-state, to port to mingw
34853         * NEWS: Mention this change.
34854         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34855         st_ino always being 0.
34856         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34857         * lib/cycle-check.c (cycle_check): Likewise.
34858         * lib/same.c (same_name): Likewise.
34859
34860         lstat: avoid mingw compilation error
34861         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34862         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34863         lstat ourselves.
34864         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34865         was adequate.
34866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34867         the checks for lstat.
34868         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34869
34870         link: fix test failure on Solaris 9
34871         * lib/link.c (rpl_link): Don't assume link will catch bogus
34872         trailing slash on source.
34873
34874         test-symlinkat: enhance test
34875         * tests/test-readlink.c (main): Move guts...
34876         * tests/test-readlink.h (test_readlink): ...into new file.
34877         * tests/test-symlink.c (main): Move guts...
34878         * tests/test-symlink.h (test_symlink): ...into new file.
34879         * tests/test-symlinkat.c (main): Use new files for further
34880         coverage.
34881         (do_symlink, do_readlink): New helper functions.
34882         * modules/symlink-tests (Files): Ship new file.
34883         (Depends-on): Add stdbool.
34884         * modules/readlink-tests (Files): Ship new file.
34885         (Depends-on): Add stdbool.
34886         * modules/symlinkat-tests (Files): Use new files.
34887
34888 2009-09-23  Eric Blake  <ebb9@byu.net>
34889
34890         readlink: document portability issue with symlink length
34891         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34892         systems have bogus st_size on symlinks, and mention the
34893         areadlink-with-size module.
34894         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34895         * doc/posix-functions/readlink.texi (readlink): Mention the
34896         areadlink module, and ERANGE failure.
34897         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34898         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34899
34900         readlink: fix Solaris 9 bug with trailing slash
34901         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34902         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34903         * doc/posix-functions/readlink.texi (readlink): Document this.
34904         * modules/readlink-tests: New test.
34905         * tests/test-readlink.c: Likewise.
34906
34907         readlink: fix cygwin 1.5.x bug with return type
34908         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34909         * lib/unistd.in.h (readlink): Use ssize_t.
34910         * lib/readlink.c (readlink): Likewise.
34911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34912         * modules/unistd (Makefile.am): Substitute it.
34913         * lib/unistd.in.h (readlink): Declare replacement.
34914         * doc/posix-functions/readlink.texi (readlink): Document this.
34915
34916         symlink: use throughout gnulib
34917         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34918         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34919         symlink is not used.
34920         * modules/symlinkat (Depends-on): Add symlink.
34921         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34922         * modules/canonicalize-tests (Depends-on): Likewise.
34923         * modules/lstat-tests (Depends-on): Likewise.
34924         * modules/openat-tests (Depends-on): Likewise.
34925         * modules/remove-tests (Depends-on): Likewise.
34926         * modules/rmdir-tests (Depends-on): Likewise.
34927         * modules/unlink-tests (Depends-on): Likewise.
34928         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34929         * tests/test-canonicalize.c (symlink): Likewise.
34930         * tests/test-fstatat.c (symlink): Likewise.
34931         * tests/test-lstat.c (symlink): Likewise.
34932         * tests/test-remove.c (symlink): Likewise.
34933         * tests/test-rmdir.c (symlink): Likewise.
34934         * tests/test-unlink.c (symlink): Likewise.
34935         * tests/test-unlinkat.c (symlink): Likewise.
34936
34937         symlink: new module, for Solaris 9 bug
34938         * modules/symlink: New file.
34939         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34940         * lib/symlink.c: Likewise.
34941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34942         * modules/unistd (Makefile.am): Substitute them.
34943         * lib/unistd.in.h (symlink): Declare replacement.
34944         * MODULES.html.sh (File system functions): Mention it.
34945         * doc/posix-functions/symlink.texi (symlink): Likewise.
34946         * modules/symlink-tests: New test.
34947         * tests/test-symlink.c: Likewise.
34948
34949 2009-09-23  Bruno Haible  <bruno@clisp.org>
34950
34951         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34952         when needed.
34953         Test case: gnulib-tool --import --with-tests atexit inttypes.
34954         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34955
34956 2009-09-23  Bruno Haible  <bruno@clisp.org>
34957
34958         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34959         subcommand, not in a subshell.
34960
34961 2009-09-22  Eric Blake  <ebb9@byu.net>
34962
34963         unistd: sort replacement declarations
34964         * lib/unistd.in.h: Sort declarations.
34965
34966         open, openat: minor optimization
34967         * lib/open.c (open): If open succeeded, len is non-zero.
34968         * lib/openat.c (rpl_openat): Likewise.
34969
34970         link-follow: ensure correct result
34971         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34972         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34973         distinguish between possible failures.
34974
34975 2009-09-21  Eric Blake  <ebb9@byu.net>
34976
34977         fts: avoid compiler warning
34978         * lib/fts.c (dirent_inode_sort_may_be_useful)
34979         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34980
34981 2009-09-19  Bruno Haible  <bruno@clisp.org>
34982
34983         * lib/progreloc.c (canonicalize_file_name): New declaration.
34984
34985 2009-09-19  Eric Blake  <ebb9@byu.net>
34986
34987         link: fix quoting
34988         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34989
34990         openat: fix openat bugs on Solaris 9
34991         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34992         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34993         * modules/openat (Depends-on): Add open.
34994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34995         * modules/fcntl-h (Makefile.am): Substitute it.
34996         * lib/fcntl.in.h (openat): Declare replacement.
34997         * doc/posix-functions/openat.texi (openat): Document this.
34998
34999         openat: move fstatat and unlinkat into correct files
35000         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35001         compiled.
35002         * lib/openat.c (fstatat, unlinkat): Move...
35003         * lib/fstatat.c (fstatat): ...into correct files.
35004         * lib/unlinkat.c (unlinkat): Likewise.
35005
35006         openat: fix unlinkat bugs on Solaris 9
35007         * lib/unlinkat.c (unlinkat): New file.
35008         * modules/openat (Depends-on): Add unlink.
35009         (Files): Distribute it.
35010         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35011         trailing slash behavior is broken.
35012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35013         * modules/unistd (Makefile.am): Substitute it.
35014         * lib/unistd.in.h (unlinkat): Declare replacement.
35015         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35016
35017         openat: fix fstatat bugs on Solaris 9
35018         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35019         stat.
35020         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35021
35022         test-unlinkat: enhance test, to expose Solaris 9 bug
35023         * tests/test-unlink.c (main): Factor guts...
35024         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35025         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35026         * tests/test-rmdir.c (main): Adjust caller.
35027         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35028         (unlinker): New helper function.
35029         (rmdirat): Enhance check.
35030         * modules/rmdir-tests (Depends-on): Add stdbool.
35031         * modules/unlink-tests (Depends-on): Likewise.
35032         (Files): Add test-unlink.h.
35033         * modules/openat-tests (Files): Likewise.
35034         (Depends-on): Add unlinkdir.
35035
35036         test-fstatat: new test, to expose Solaris 9 bugs
35037         * tests/test-stat.c (main): Factor guts...
35038         * tests/test-stat.h (test_stat_func): ...into new file.
35039         * tests/test-lstat.c (main): Factor guts...
35040         * tests/test-lstat.h (test_lstat_func): ...into new file.
35041         * tests/test-fstatat.c: New file.
35042         * modules/stat-tests (Files): Add test-stat.h.
35043         * modules/lstat-tests (Files): Add test-lstat.h.
35044         (Depends-on): Add stdbool.
35045         * modules/openat-tests (Depends-on): Add pathmax.
35046         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35047         (Makefile.am): Run new test.
35048
35049         remove: new module, for mingw and Solaris 9 bugs
35050         * modules/remove: New file.
35051         * lib/remove.c: Likewise.
35052         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35054         * modules/stdio (Makefile.am): Use them.
35055         * lib/stdio.in.h (remove): Declare replacement.
35056         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35057         * doc/posix-functions/remove.texi (remove): Likewise.
35058         * modules/remove-tests: New test.
35059         * tests/test-remove.c: Likewise.
35060
35061         unlink: new module, for Solaris 9 bug
35062         * modules/unlink: New file.
35063         * lib/unlink.c: Likewise.
35064         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35066         * modules/unistd (Makefile.am): Use them.
35067         * lib/unistd.in.h (stat): Declare replacement.
35068         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35069         * doc/posix-functions/unlink.texi (unlink): Likewise.
35070         * modules/unlink-tests: New test.
35071         * tests/test-unlink.c: Likewise.
35072
35073         lstat: fix Solaris 9 bug
35074         * lib/lstat.c (lstat): Also check for trailing slash on
35075         non-symlink, non-directories.  Use stat module to simplify logic.
35076         * doc/posix-functions/lstat.texi (lstat): Document it.
35077         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35078         (configure.ac): Check for symlink.
35079         * tests/test-lstat.c (main): Add more tests.
35080
35081         stat: add as dependency to other modules
35082         * modules/chown (Depends-on): Add stat.
35083         * modules/euidaccess (Depends-on): Likewise.
35084         * modules/fchdir (Depends-on): Likewise.
35085         * modules/isdir (Depends-on): Likewise.
35086         * modules/link (Depends-on): Likewise.
35087         * modules/lstat (Depends-on): Likewise.
35088         * modules/mkdir-p (Depends-on): Likewise.
35089         * modules/modechange (Depends-on): Likewise.
35090         * modules/open (Depends-on): Likewise.
35091         * modules/readlink (Depends-on): Likewise.
35092         * modules/same (Depends-on): Likewise.
35093
35094         stat: fix Solaris 9 bug
35095         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35096         slash.
35097         * lib/stat.c (rpl_stat): Work around it.
35098         * doc/posix-functions/stat.texi (stat): Update documentation.
35099
35100         stat: new module, for mingw bug
35101         * modules/stat: New file.
35102         * lib/stat.c: Likewise.
35103         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35105         * modules/sys_stat (Makefile.am): Use them.
35106         * lib/sys_stat.in.h (stat): Declare replacement.
35107         * lib/openat.c (fstatat): Deal with lstat and stat being function
35108         macros.
35109         * modules/openat (Depends-on): Add inline.
35110         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35111         * doc/posix-functions/stat.texi (stat): Likewise.
35112         * modules/stat-tests: New test.
35113         * tests/test-stat.c: Likewise.
35114
35115 2009-09-19  Jim Meyering  <meyering@redhat.com>
35116
35117         syntax-check: detect unnecessary inclusion of canonicalize.h
35118         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35119
35120 2009-09-19  Eric Blake  <ebb9@byu.net>
35121
35122         canonicalize-lgpl: adjust clients to use correct header
35123         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35124         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35125         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35126         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35127         * lib/progreloc.c (includes): Likewise.
35128
35129 2009-09-19  Jim Meyering  <meyering@redhat.com>
35130
35131         test-posixtm.c: correct a comment
35132         * tests/test-posixtm.c: Correct first-line comment.
35133         Spotted by Eric Blake.
35134
35135 2009-09-16  Jim Meyering  <meyering@redhat.com>
35136
35137         posixtm-tests: make T const-correct; add a test case
35138         * tests/test-posixtm.c (T): Declare const.
35139         Add a test for -(2^31+1).
35140         Remove useless can-succeed-only-in-2002 test.
35141
35142         posixtm-tests: adjust the sole failing test
35143         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35144         expected output matches what mktime now produces.  Cross-checked via
35145         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35146
35147         posixtm: move #ifdef'd tests into a new module
35148         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35149         * tests/test-posixtm.c: ... this new file.
35150         * modules/posixtm-tests: New module.
35151
35152 2009-09-19  Eric Blake  <ebb9@byu.net>
35153
35154         openat: simplify use of at-func.c
35155         * lib/at-func.c (includes): Include prerequisites here, to
35156         simplify requirements on client files.
35157         * lib/openat-priv.h: Add double-inclusion guard.
35158         * lib/faccessat.c (includes): Simplify.
35159         * lib/fchmodat.c (includes): Likewise.
35160         * lib/fchownat.c (includes): Likewise.
35161         * lib/mkdirat.c (includes): Likewise.
35162         * lib/mkfifoat.c (includes): Likewise.
35163         * lib/symlinkat.c (includes): Likewise.
35164
35165         openat: allow return of fd 0
35166         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35167         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35168         unistd-safer.
35169         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35170         <fcntl.h>; this module does not leak fds.
35171         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35172         must be allowed to return 0, leaving openat_safer to add the
35173         safety.
35174         (openat_permissive): Avoid writing to just-opened fd 2 if
35175         restoring the current directory fails.
35176         * lib/openat-die.c (openat_restore_fail): Add comment.
35177         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35178         (save_cwd): Guarantee safe fd, but without use of open_safer.
35179         * tests/test-openat.c: New test.
35180         * modules/openat-tests (Files, Makefile.am): Distribute and build
35181         new file.
35182
35183         relocatable-prog-wrapper: fix build
35184         * modules/relocatable-prog-wrapper (Files): Update name of
35185         canonicalize m4 file, broken on 2009-09-17.
35186         Reported by emad hajjar <aleppos@hotmail.com>.
35187
35188 2009-09-19  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35191         * lib/safe-alloc.c: Likewise.
35192         Reported by Ian Beckwith <ianb@erislabs.net>.
35193
35194 2009-09-18  Bruno Haible  <bruno@clisp.org>
35195
35196         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35197         Reported by <erobles@sensacd.com.mx>.
35198
35199 2009-09-17  Eric Blake  <ebb9@byu.net>
35200
35201         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35202         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35203         slashes when checking if last component is missing.
35204         * tests/test-canonicalize.c (main): Test this.
35205
35206         canonicalize, canonicalize-lgpl: honor // if distinct from /
35207         * modules/canonicalize (Files): Add double-slash-root.m4.
35208         * modules/canonicalize-lgpl (Files): Likewise.
35209         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35210         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35211         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35212         fallback definition.
35213         (canonicalize_filename_mode): Use it to protect //.
35214         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35215         (__realpath): Likewise.
35216         * tests/test-canonicalize.c (main): Test this.
35217         * tests/test-canonicalize-lgpl.c (main): Likewise.
35218         * modules/canonicalize-tests (Depends-on): Add same-inode.
35219         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35220
35221         canonicalize-lgpl: fix glibc bug with trailing slash
35222         * m4/canonicalize-lgpl.m4: Move contents...
35223         * m4/canonicalize.m4: ...here.
35224         (gl_CANONICALIZE_LGPL): Factor realpath check...
35225         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35226         glibc 2.3.5 bug, fixed 2005-04-27.
35227         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35228         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35229         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35230         * modules/canonicalize-lgpl (Files): Manage file rename.
35231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35232         * modules/stdlib (Makefile.am): Substitute witness.
35233         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35234         is needed.
35235         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35236         replacement is required.
35237         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35238         * doc/glibc-functions/canonicalize_file_name.texi
35239         (canonicalize_file_name): Document this.
35240         * doc/posix-functions/realpath.texi (realpath): Likewise.
35241
35242         canonicalize-lgpl: reject non-directory with trailing slash
35243         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35244         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35245         catches failures in glibc 2.3.5.
35246         * tests/test-canonicalize.c (main): Likewise.
35247
35248         canonicalize-lgpl: use native realpath if it works
35249         * lib/canonicalize-lgpl.c (realpath): Guard with
35250         FUNC_REALPATH_WORKS.
35251         * lib/stdlib.in.h (realpath): Make declaration optional based on
35252         HAVE_REALPATH.
35253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35254         native realpath works.
35255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35256         * modules/stdlib (Makefile.am): Substitute witness.
35257
35258         canonicalize, canonicalize-lgpl: use <stdlib.h>
35259         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35260         (Include): Mention <stdlib.h>.
35261         (configure.ac): Mention functions we provide.
35262         * modules/canonicalize (configure.ac): Likewise.
35263         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35264         realpath if canonicalize_file_name is missing.
35265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35266         * modules/stdlib (Makefile.am): Substitute witnesses.
35267         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35268         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35269         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35270         * NEWS: Document this.
35271         * doc/glibc-functions/canonicalize_file_name.texi
35272         (canonicalize_file_name): Likewise.
35273         * doc/posix-functions/realpath.texi (realpath): Likewise.
35274         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35275
35276         test-canonicalize: consolidate into single C program
35277         * tests/test-canonicalize.sh: Delete; move setup into...
35278         * tests/test-canonicalize.c (main): ...the program, making it
35279         easier to run in debugger.  Add some tests.
35280         * modules/canonicalize-tests (Files): Remove unused file.
35281         (Depends-on): Add progname.
35282         (configure.ac, Makefile.am): Simplify.
35283
35284         test-canonicalize-lgpl: consolidate into single C program
35285         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35286         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35287         easier to run in debugger.  Add some tests.
35288         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35289         (configure.ac, Makefile.am): Simplify.
35290
35291         canonicalize: avoid resolvepath
35292         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35293         unnecessary checks.
35294         * lib/canonicalize.c (includes): Simplify.
35295         (canonicalize_file_name): Drop resolvepath implementation.
35296         * modules/canonicalize (Depends-on): Drop filenamecat.
35297
35298         canonicalize: don't lose errno
35299         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35300         over calls to free.
35301
35302         canonicalize: simplify errno handling
35303         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35304         assignment.
35305
35306         canonicalize, canonicalize-lgpl: update module dependencies
35307         * modules/canonicalize (Depends-on): Add extensions, lstat,
35308         pathmax, stdlib.
35309         (Files): Drop pathmax.h.
35310         (configure.ac): Adjust macro name.
35311         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35312         lstat, stdlib, sys_stat.
35313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35314         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35315         extensions.
35316         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35317         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35318         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35319         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35320         declaration, if available.
35321         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35322         we can rely on the readlink module.
35323         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35324         (includes): Use <unistd.h> unconditionally.
35325
35326 2009-09-17  Eric Blake  <ebb9@byu.net>
35327
35328         maint: make Include sections of modules consistent
35329         * modules/alloca: Use only header name; no need to list #include.
35330         * modules/alloca-opt: Likewise.
35331         * modules/arpa_inet: Likewise.
35332         * modules/canon-host: Likewise.
35333         * modules/configmake: Likewise.
35334         * modules/dirent: Likewise.
35335         * modules/eealloc: Likewise.
35336         * modules/environ: Likewise.
35337         * modules/fchdir: Likewise.
35338         * modules/fcntl: Likewise.
35339         * modules/fcntl-h: Likewise.
35340         * modules/gethrxtime: Likewise.
35341         * modules/gettime: Likewise.
35342         * modules/ignore-value: Likewise.
35343         * modules/inet_ntop: Likewise.
35344         * modules/inet_pton: Likewise.
35345         * modules/inttypes: Likewise.
35346         * modules/isnand-nolibm: Likewise.
35347         * modules/isnanf-nolibm: Likewise.
35348         * modules/mbchar: Likewise.
35349         * modules/mbfile: Likewise.
35350         * modules/mbiter: Likewise.
35351         * modules/mbuiter: Likewise.
35352         * modules/netdb: Likewise.
35353         * modules/netinet_in: Likewise.
35354         * modules/nproc: Likewise.
35355         * modules/pagealign_alloc: Likewise.
35356         * modules/poll: Likewise.
35357         * modules/printf-frexp: Likewise.
35358         * modules/pthread: Likewise.
35359         * modules/putenv: Likewise.
35360         * modules/random_r: Likewise.
35361         * modules/relocatable-prog: Likewise.
35362         * modules/search: Likewise.
35363         * modules/select: Likewise.
35364         * modules/selinux-h: Likewise.
35365         * modules/settime: Likewise.
35366         * modules/signal: Likewise.
35367         * modules/size_max: Likewise.
35368         * modules/socklen: Likewise.
35369         * modules/ssize_t: Likewise.
35370         * modules/stdarg: Likewise.
35371         * modules/stdbool: Likewise.
35372         * modules/stddef: Likewise.
35373         * modules/stdint: Likewise.
35374         * modules/stdio: Likewise.
35375         * modules/stdlib: Likewise.
35376         * modules/string: Likewise.
35377         * modules/strings: Likewise.
35378         * modules/sys_file: Likewise.
35379         * modules/sys_ioctl: Likewise.
35380         * modules/sys_select: Likewise.
35381         * modules/sys_socket: Likewise.
35382         * modules/sys_stat: Likewise.
35383         * modules/sys_time: Likewise.
35384         * modules/sys_times: Likewise.
35385         * modules/sys_utsname: Likewise.
35386         * modules/sys_wait: Likewise.
35387         * modules/sysexits: Likewise.
35388         * modules/time: Likewise.
35389         * modules/times: Likewise.
35390         * modules/tmpfile: Likewise.
35391         * modules/trim: Likewise.
35392         * modules/unistd: Likewise.
35393         * modules/wchar: Likewise.
35394         * modules/wctype: Likewise.
35395
35396 2009-09-17  Bruno Haible  <bruno@clisp.org>
35397
35398         Make getdate.y compile on QNX and NetBSD 5 / i386.
35399         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35400         TIME_T_FITS_IN_LONG_INT.
35401         * lib/getdate.y (long_time_t): New type.
35402         (relative_time): Change type of 'seconds' field to long_time_t.
35403         (get_date): Update types of local variables. Check against overflow
35404         during conversion from long_time_t to time_t.
35405         Reported by Matt Kraai <kraai@ftbfs.org>
35406         and Hasso Tepper <hasso@netbsd.org>.
35407
35408 2009-09-17  Bruno Haible  <bruno@clisp.org>
35409
35410         * modules/COPYING: Update copyright years.
35411         * modules/README: Likeiwse.
35412         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35413         Reported by Ian Beckwith <ianb@erislabs.net>.
35414
35415 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35416
35417         * users.txt: Update references for gnuit package.
35418
35419 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35420
35421         * m4/getdelim.m4: Fix typo in copyright line.
35422
35423 2009-09-17  Bruno Haible  <bruno@clisp.org>
35424
35425         * lib/atoll.c: Use the standard header with GPL copyright.
35426         * lib/argz.in.h: Likewise.
35427         * lib/glob.c: Likewise.
35428         * lib/glob-libc.h: Likewise.
35429         * lib/random_r.c: Likewise.
35430         * lib/siglist.h: Likewise.
35431         * lib/strsignal.c: Likewise.
35432         Reported by Ian Beckwith <ianb@erislabs.net>.
35433
35434 2009-09-17  Eric Blake  <ebb9@byu.net>
35435
35436         rmdir: ensure correct dependency order
35437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35438
35439 2009-09-17  Bruno Haible  <bruno@clisp.org>
35440
35441         Disable assertion that fails on NetBSD 5 / i386.
35442         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35443         Reported by Sam Steingold <sds@gnu.org>
35444         and Hasso Tepper <hasso@netbsd.org>.
35445
35446 2009-09-16  Eric Blake  <ebb9@byu.net>
35447
35448         unlinkdir: port to mingw
35449         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35450         on which no one can unlink a directory.
35451
35452         stdlib: sort witness names
35453         * modules/stdlib (Makefile.am): Sort replacements.
35454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35455         * lib/stdlib.in.h: Likewise.
35456
35457         parse-duration-tests: avoid link failure
35458         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35459         LIBINTL.
35460         Reported by Tom G. Christensen.
35461
35462         openat-tests: ensure unlinkat behaves like rmdir
35463         * tests/test-rmdir.c (main): Factor guts...
35464         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35465         * modules/rmdir-tests (Files): Ship new file.
35466         * modules/openat-tests: New test.
35467         * tests/test-unlinkat.c: Likewise.
35468
35469         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35470         * modules/rmdir-errno (Status, Notice): Now obsolete.
35471
35472         rmdir: work around cygwin 1.5.x and mingw bugs
35473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35474         * lib/rmdir.c (rmdir): Work around it.
35475         * modules/rmdir (Status, Notice): No longer obsolete.
35476         (Files): Add dos.m4.
35477         (Depends-on): Add unistd.
35478         (configure.ac): Set witnesses.
35479         (License): Relax to LGPLv2+.
35480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35481         * modules/unistd (Makefile.am): Substitute witnesses.
35482         * lib/unistd.in.h (rmdir): Declare replacement.
35483         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35484         * modules/rmdir-tests: New tests.
35485         * tests/test-rmdir.c: Likewise.
35486
35487 2009-09-15  Eric Blake  <ebb9@byu.net>
35488
35489         fchdir: improve use of replacement functions
35490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35492         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35493         REPLACE_CLOSEDIR.
35494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35495         * modules/sys_stat (Makefile.am): Substitute correct witness.
35496         * modules/dirent (Makefile.am): Likewise.
35497         * modules/unistd (Makefile.am): Likewise.
35498         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35499         * lib/unistd.in.h (dup): Likewise.
35500         * lib/sys_stat.in.h (fstat): Likewise.
35501
35502         maint: ignore gnulib-tool temp files
35503         * .gitignore: Ignore files created during gnulib-tool --test.
35504
35505 2009-09-13  Jim Meyering  <meyering@redhat.com>
35506
35507         posixtm: don't reject a time that specify "60" as the number of seconds
35508         * lib/posixtm.c (posixtime): The code to reject invalid dates
35509         would also reject a time specified with the .60 suffix.
35510         But POSIX allows that, in order to accommodate leap seconds.
35511         So don't reject it.
35512         (main): Adjust tests accordingly.
35513         * modules/posixtm (Depends-on): Add stpcpy.
35514
35515 2009-09-11  Jim Meyering  <meyering@redhat.com>
35516
35517         announce-gen: include [$release_type] in emitted Subject:
35518         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35519         e.g., [stable] in the emitted Subject: line.
35520
35521 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35522
35523         Remove obsolete macros from several modules.
35524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35525         obsolete Autoconf macros with their modern counterparts.
35526         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35527         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35530         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35531         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35533         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35534         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35535         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35536         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35538         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35539         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35540         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35541         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35542         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35543         * m4/time_r.m4 (gl_TIME_R): Likewise.
35544         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35545         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35546         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35547
35548         Fix copyright header in build-aux scripts.
35549         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35550         recommendation.
35551         * build-aux/ncftpput-ftp: Likewise.
35552         * build-aux/update-copyright: Likewise.
35553
35554 2009-09-09  Eric Blake  <ebb9@byu.net>
35555
35556         test-link: allow Linux choice of errno
35557         * tests/test-link.c (main): Relax test for alternate error.
35558
35559         strndup: fix improper m4 caching
35560         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35561         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35562         (gl_PREREQ_STRNDUP): Delete.
35563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35564         * modules/string (Makefile.am): Substitute it.
35565         * lib/string.in.h (strndup): Modernize prototype.
35566
35567         getcwd: port to mingw
35568         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35569         different from the POSIX assumptions made throughout the getcwd
35570         module; fortunately, the mingw getcwd does not need replacement.
35571         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35572         * modules/getcwd-tests: New test.
35573         * tests/test-getcwd.c: Likewise.
35574
35575         link: fix platform bugs
35576         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35577         * lib/link.c (link): Work around them.  Fix related mingw bug.
35578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35579         * modules/unistd (Makefile.am): Substitute it.
35580         * lib/unistd.in.h (link): Declare replacement.
35581         * doc/posix-functions/link.texi (link): Document this.
35582         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35583
35584         test-link: consolidate into single C program, test more cases
35585         * tests/test-link.sh: Delete.
35586         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35587         at least Cygwin and Solaris.
35588         * modules/link-tests (Files): Remove unused file.
35589         (Depends-on): Add errno, sys_stat.
35590         (Makefile.am): Simplify.
35591
35592 2009-09-08  Bruno Haible  <bruno@clisp.org>
35593
35594         Work around towlower, towupper bug on mingw.
35595         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35596         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35597         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35598         * doc/posix-functions/towupper.texi: Likewise.
35599         Reported by Eric Blake.
35600
35601 2009-09-08  Jim Meyering  <meyering@redhat.com>
35602
35603         build: don't try to run autoheader if we don't use it
35604         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35605         is not used in configure.ac.
35606
35607 2009-09-08  Eric Blake  <ebb9@byu.net>
35608
35609         euidaccess: fix compilation error
35610         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35611
35612         rawmemchr: relax license
35613         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35614         okay.
35615         Reported by Jim Meyering.
35616
35617         mkfifoat: new module
35618         * modules/mkfifoat: New file.
35619         * lib/mkfifoat.c: Likewise.
35620         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35621         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35622         * modules/sys_stat (Makefile.am): Use them.
35623         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35624         * MODULES.html.sh (File system functions): Mention module.
35625         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35626         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35627         * modules/mkfifoat-tests: New test.
35628         * tests/test-mkfifoat.c: Likewise.
35629
35630         strchrnul: relax license
35631         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35632         okay.
35633         Reported by Jim Meyering.
35634
35635 2009-09-08  Eric Blake  <ebb9@byu.net>
35636
35637         fstatat: fix compilation on Solaris
35638         * lib/fstatat.c (includes): Add fcntl.h.
35639         Reported by Pádraig Brady.
35640
35641 2009-09-07  Eric Blake  <ebb9@byu.net>
35642
35643         rename: modernize replacement
35644         * modules/rename (Depends-on): Add stdio.
35645         (configure.ac): Declare witness.
35646         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35647         stdio take care of replacement.
35648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35649         * modules/stdio (Makefile.am): Substitute them.
35650         * lib/stdio.in.h (rename): Declare replacement.
35651         * lib/rename.c (includes): Allow cross-compilation to non-windows
35652         machines.
35653         * doc/posix-functions/rename.texi (rename): Improve
35654         documentation.
35655
35656         stdio: sort witness names
35657         * modules/stdio (Makefile.am): Sort replacements.
35658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35659         * lib/stdio.in.h: Likewise.
35660
35661         getcwd: minor cleanups
35662         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35663         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35664
35665         openat: provide more convenience names
35666         * modules/faccessat (configure.ac): Add C witness.
35667         * lib/unistd.in.h (readlinkat): Fix typo.
35668         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35669         convenience wrappers.
35670         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35671         wrappers in syntax checks.
35672
35673 2009-09-06  Eric Blake  <ebb9@byu.net>
35674
35675         doc: fix comments in recent patches
35676         * lib/faccessat.c: Mention correct function.
35677         * lib/fchmodat.c: Likewise.
35678         * lib/fchownat.c: Likewise.
35679         * lib/symlinkat.c: Likewise.
35680         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35681         constants.
35682
35683         faccessat, symlinkat: continue cleanup of previous patch
35684         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35685         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35686         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35688         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35689         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35690         set.
35691
35692 2009-09-06  Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35695         (fstatat): Declare if GNULIB_FSTATAT is set.
35696         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35697         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35698         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35699         * modules/fcntl-h (Files): Remove m4/openat.m4.
35700         * modules/sys_stat (Files): Remove m4/openat.m4.
35701         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35702         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35703         * modules/unistd (Files): Remove m4/openat.m4.
35704         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35705         GNULIB_OPENAT.
35706         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35707         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35708         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35709         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35710         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35711         gl_OPENAT_DEFAULTS.
35712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35713         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35714         Don't require gl_OPENAT_DEFAULTS.
35715         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35716         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35717         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35718         (gl_OPENAT_DEFAULTS): Remove macro.
35719
35720 2009-09-06  Bruno Haible  <bruno@clisp.org>
35721
35722         * modules/openat (configure.ac): Remove unneeded witness.
35723
35724 2009-09-06  Bruno Haible  <bruno@clisp.org>
35725
35726         Set errno to ENOSYS when a function is entirely unsupported.
35727         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35728         EOPNOTSUPP.
35729         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35730         * modules/chown (Depends-on): Remove errno.
35731
35732 2009-09-06  Bruno Haible  <bruno@clisp.org>
35733
35734         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35735
35736 2009-09-06  Bruno Haible  <bruno@clisp.org>
35737
35738         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35739
35740 2009-09-06  Ben Pfaff  <blp@gnu.org>
35741             Bruno Haible  <bruno@clisp.org>
35742
35743         Work around a glibc bug in strtok_r.
35744         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35745         Undefine if UNDEFINE_STRTOK_R is set.
35746         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35748         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35749         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35750         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35751         UNDEFINE_STRTOK_R.
35752         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35753
35754 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35755
35756         exclude: minor fix
35757         * lib/exclude.c: Include wctype.h
35758
35759 2009-09-06  Akim Demaille  <demaille@gostai.com>
35760
35761         bootstrap: improve error message
35762         * build-aux/bootstrap (find_tool): Upon failure, report the list
35763         of candidates.
35764         Honor the initial value of the envvar.
35765
35766 2009-09-05  Eric Blake  <ebb9@byu.net>
35767
35768         symlinkat: new module
35769         * modules/symlinkat: New file.
35770         * lib/symlinkat.c: Likewise.
35771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35773         * modules/unistd (Makefile.am): Use them.
35774         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35775         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35776         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35777         * MODULES.html.sh (File system functions): Mention module.
35778         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35779         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35780         * modules/symlinkat-tests: New test.
35781         * tests/test-symlinkat.c: Likewise.
35782
35783         test-openat-safer: add more checks
35784         * tests/test-openat-safer.c (main): Check more code paths.
35785
35786 2009-09-05  Jim Meyering  <meyering@redhat.com>
35787
35788         syntax-check: detect unnecessary inclusion of openat.h
35789         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35790
35791 2009-09-05  Bruno Haible  <bruno@clisp.org>
35792
35793         Support towlower, towupper.
35794         * doc/posix-functions/towlower.texi: Mention module wctype.
35795         * doc/posix-functions/towupper.texi: Likewise.
35796         * lib/wctype.in.h (towlower, towupper): New functions.
35797         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35798         (ASSERT): New macro.
35799         (e): New variable.
35800         (main): Test also towlower, towupper. Test WEOF argument.
35801         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35802
35803 2009-09-05  Bruno Haible  <bruno@clisp.org>
35804
35805         Fix conversion behaviour when the input is invalid.
35806         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35807         mark occurring in first pass of indirect conversion.
35808         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35809         input.
35810         Found by clang's static analyzer.
35811
35812 2009-09-05  Bruno Haible  <bruno@clisp.org>
35813
35814         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35815         where direct conversion is possible.
35816
35817 2009-09-04  Eric Blake  <ebb9@byu.net>
35818
35819         openat: fail with ENOENT on empty name
35820         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35821         buffer.
35822
35823         link-follow: fix logic bug in prior patch
35824         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35825         reversed sense of yes and no in prior patch.  Avoid confusing
35826         compilation failure with desired semantics.
35827
35828         link-follow: accomodate mingw and cross-compilation
35829         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35830         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35831         cross-compilation results to -1, to make linkat easier to
35832         implement when cross-compiling.  Trivially support mingw.
35833         * modules/link-follow (configure.ac): Call new name.
35834         * NEWS: Mention this.
35835
35836 2009-09-03  Eric Blake  <ebb9@byu.net>
35837
35838         faccessat: compile replacement
35839         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35840         needed.
35841
35842         fts: fix compilation error
35843         * lib/fts.c (includes): Re-add "openat.h", for
35844         openat_needs_fchdir.
35845
35846         faccessat: new module
35847         * modules/faccessat: New file.
35848         * lib/faccessat.c: Likewise.
35849         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35851         * modules/unistd (Makefile.am): Use it.
35852         * lib/unistd.in.h (faccessat): Declare it.
35853         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35854         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35855         * MODULES.html.sh (File system functions): Mention it.
35856         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35857         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35858
35859         euidaccess: prefer POSIX over non-standard implementation
35860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35861         * lib/euidaccess.c (euidaccess): Use it if available.
35862
35863         openat: make template easier to use
35864         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35865         AT_FUNC_F2 to be undefined.
35866         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35867         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35868         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35869         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35870         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35871         Likewise.
35872         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35873         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35874         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35875         Likewise.
35876
35877         openat: declare in POSIX headers
35878         * NEWS: Mention this.
35879         * modules/openat (configure.ac): Declare witnesses.
35880         (Depends-on): Add fcntl-h, sys_stat, unistd.
35881         (Include): Mention correct headers.
35882         * modules/fcntl-h (Depends-on): Add link-warning.
35883         (Files): Add openat.m4.
35884         (Makefile.am): Substitute witnesses.
35885         * modules/sys_stat (Files, Makefile.am): Likewise.
35886         * modules/unistd (Files, Makefile.am): Likewise.
35887         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35888         (gl_OPENAT_DEFAULTS): New macro.
35889         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35892         (SYS_STAT_H): Remove unused variable.
35893         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35894         * lib/fcntl--.h (includes): Remove unneeded header.
35895         * lib/openat-safer.c (includes): Likewise.
35896         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35897         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35898         appropriate headers.
35899         (__OPENAT_PREFIX): Delete.
35900         * lib/fcntl.in.h (openat): Provide declaration.
35901         (AT_FDCWD): Fix Solaris bug.
35902         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35903         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35904         * lib/fchmodat.c (includes):  Adjust to find declaration.
35905         * lib/fchownat.c (includes): Likewise.
35906         * lib/mkdirat.c (includes): Likewise.
35907         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35908         still visible.
35909
35910 2009-09-02  Eric Blake  <ebb9@byu.net>
35911
35912         errno: use consistently
35913         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35914         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35915         * lib/canonicalize.c (ELOOP): Likewise.
35916         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35917         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35918         * lib/lchown.c (EOPNOTSUPP): Likewise.
35919         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35920         * lib/savewd.c (ESTALE): Likewise.
35921         * lib/settime.c (ENOSYS): Likewise.
35922         * lib/utimens.c (ENOSYS): Likewise.
35923         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35924         * lib/chdir-safer.c (ELOOP): Likewise.
35925         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35926         * modules/c-stack (Depends-on): Add errno.
35927         * modules/canonicalize (Depends-on): Likewise.
35928         * modules/chdir-safer (Depends-on): Likewise.
35929         * modules/fdopendir (Depends-on): Likewise.
35930         * modules/inet_ntop (Depends-on): Likewise.
35931         * modules/inet_pton (Depends-on): Likewise.
35932         * modules/lchown (Depends-on): Likewise.
35933         * modules/openat (Depends-on): Likewise.
35934         * modules/savewd (Depends-on): Likewise.
35935         * modules/settime (Depends-on): Likewise.
35936         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35937
35938         fts: avoid leaking fds
35939         * modules/fts (Depends-on): Add cloexec.
35940         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35941         flag.
35942
35943         fts: make directory fds more robust
35944         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35945         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35946
35947         backupfile, chdir-long, fts, savedir: make safer
35948         * lib/backupfile.c (includes): Use "dirent--.h", since
35949         numbered_backup can write to stderr during readdir.
35950         * lib/savedir.c (includes): Likewise.
35951         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35952         emulation can write to stderr on failure.
35953         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35954         * lib/getcwd.c: Document why opendir_safer is unused.
35955         * lib/glob.c: Likewise.
35956         * lib/scandir.c: Likewise.
35957         * lib/openat-proc.c: Likewise, for open_safer.
35958         * modules/backupfile (Depends-on): Add dirent-safer.
35959         * modules/savedir (Depends-on): Likewise.
35960         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35961         * modules/chdir-long (Depends-on): Add openat-safer.
35962
35963         openat-safer: new module
35964         * modules/openat-safer: New file.
35965         * lib/openat-safer.c: Likewise.
35966         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35967         * lib/fcntl-safer.h (openat_safer): Declare.
35968         * lib/fcntl--.h (openat): Override.
35969         * MODULES.html.sh (File descriptor based I/O): Mention it.
35970         * lib/openat.h: Add double-inclusion guards.
35971         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35972         "fcntl--.h", so we can implement openat.
35973         * modules/openat-safer-tests: New test.
35974         * tests/test-openat-safer.c: New file.
35975
35976         dirent-safer: new module
35977         * modules/dirent-safer: New file.
35978         * lib/dirent--.h: Likewise.
35979         * lib/dirent-safer.h: Likewise.
35980         * lib/opendir-safer.c: Likewise.
35981         * m4/dirent-safer.m4: Likewise.
35982         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35983         * modules/dirent-safer-tests: New test.
35984         * tests/test-dirent-safer.c: New file.
35985         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35986
35987         fdopendir: optimize on mingw
35988         * lib/unistd.in.h (_gl_directory_name): New prototype.
35989         * lib/fchdir.c (_gl_directory_name): Implement it.
35990         (fchdir): Use it to simplify implementation.
35991         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35992         fchdir, when available, to avoid calling [f]chdir().
35993
35994         fdopendir: split into its own module
35995         * lib/openat.c (fdopendir): Move...
35996         * lib/fdopendir.c: ...into new file.
35997         * modules/fdopendir: New module.
35998         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35999         * modules/openat (Depends-on): Add fdopendir.
36000         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36001         fdopendir here.
36002         * modules/savedir (Depends-on): Only need fdopendir, not full
36003         openat.
36004         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36005         * lib/openat.h (fdopendir): Drop prototype.
36006         * lib/dirent.in.h (fdopendir): Provide prototype.
36007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36008         * modules/dirent (Makefile.am): Substitute them.
36009         * MODULES.html.sh (File system functions): Mention it.
36010         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36011         * modules/fdopendir-tests: New file.
36012         * tests/test-fdopendir.c: Likewise.
36013
36014         fchdir: use more consistent macro convention
36015         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36016         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36017         REPLACE_FCHDIR, rather than relying on config.h macros.
36018         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36019         inside a single make-time REPLACE_FCHDIR block, rather than using
36020         the config.h FCHDIR_REPLACEMENT.
36021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36022         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36023         Manage fstat replacement.
36024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36025         REPLACE_FCHDIR.
36026         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36027         (Makefile.am): Substitute REPLACE_FCHDIR.
36028         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36029         FCHDIR_REPLACEMENT.
36030         * lib/dup-safer.c (dup_safer): Likewise.
36031         * lib/dup2.c (rpl_dup2): Likewise.
36032         * lib/dup3.c (rpl_dup3): Likewise.
36033         * lib/open.c (rpl_open): Likewise.
36034
36035         fchdir: simplify error handling, and support dup3
36036         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36037         stdbool, malloc-posix, realloc-posix.
36038         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36039         (ensure_dirs_slot): Return false on allocation failure.
36040         (rpl_dup2): Delete.
36041         (_gl_register_dup): New function.
36042         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36043         (_gl_register_fd): Close fd on allocation failure.
36044         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36045         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36046         prototype.
36047         (rpl_dup2_fchdir): Delete prototype.
36048         * lib/open.c (open): Update caller.
36049         * lib/dup2.c (dup2): Track fchdir metadata.
36050         * lib/dup3.c (dup3): Likewise.
36051         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36053
36054 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36055
36056         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36057         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36058         don't pass arguments to AC_OUTPUT.
36059
36060 2009-09-02  Bruno Haible  <bruno@clisp.org>
36061
36062         * modules/mkdtemp (License): Relicense under LGPLv2+.
36063         Reported by Paolo Bonzini.
36064
36065 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36066
36067         Replace uses of obsolete autoconf macros in Jim's modules.
36068         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36069         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36070         can evoke a warning from autoconf when run with -Wobsolete
36071         enabled.  They were declared obsolete for good reasons (see
36072         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36073         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36074         should not continue using the deprecated macros.
36075         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36076         obsolete Autoconf macros with modern counterparts.
36077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36078         * m4/dos.m4 (gl_AC_DOS): Likewise.
36079         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36081         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36082         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36083         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36085         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36086         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36087         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36088         Likewise.
36089         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36090         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36091         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36092         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36093         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36095
36096 2009-09-01  Eric Blake  <ebb9@byu.net>
36097
36098         fchdir: fix off-by-one bug in previous patch
36099         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36100         (_gl_unregister_fd): Delete useless if.
36101
36102 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36103
36104         maint.mk: sort the list of syntax-check rules
36105         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36106         easier to get a sense of progress when the rules are run sequentially
36107         and take a long time.
36108
36109 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36110
36111         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36112         * modules/netinet_in: Likewise.
36113         * modules/sys_file: Likewise.
36114         * modules/sys_ioctl: Likewise.
36115         * modules/sys_select: Likewise.
36116         * modules/sys_socket: Likewise.
36117         * modules/sys_stat: Likewise.
36118         * modules/sys_time: Likewise.
36119         * modules/sys_times: Likewise.
36120         * modules/sys_utsname: Likewise.
36121         * modules/sys_wait: Likewise.
36122
36123 2009-09-01  Jim Meyering  <meyering@redhat.com>
36124
36125         fts: help ensure that return values are not ignored
36126         * lib/fts_.h (__GNUC_PREREQ): Define.
36127         (__attribute_warn_unused_result__): Define.
36128         (fts_children, fts_close, fts_open, fts_read): Declare with
36129         __attribute_warn_unused_result__.
36130
36131         fts: fts_close now fails also when closing a dir file descriptor fails
36132         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36133         and propagate to caller, along with errno.
36134
36135         announce-gen: correct formatting in --help output
36136         * build-aux/announce-gen (usage): Move the one-line description in
36137         --help output "up", to where it belongs, just after Usage:.
36138
36139 2009-08-31  Eric Blake  <ebb9@byu.net>
36140
36141         fchdir: port to mingw
36142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36143         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36144         opened, then use a substitute.
36145         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36146         replacement.
36147         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36148         (_gl_register_fd): No need to check stat if open already filters
36149         all directories.
36150         (fchdir): Fix error condition to match POSIX.
36151         * modules/fchdir (Depends-on): Add sys_stat.
36152         * doc/posix-functions/open.texi (open): Document the limitation.
36153         * modules/fchdir-tests: New file.
36154         * tests/test-fchdir.c: Likewise.
36155
36156         canonicalize: allow cross-testing from cygwin to mingw
36157         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36158         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36159         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36160         Likewise.
36161         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36162         target does not support symlinks.
36163         * tests/test-canonicalize-lgpl.sh: Likewise.
36164
36165         chown: avoid compilation warning on mingw
36166         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36167         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36168         mingw.
36169         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36170         * modules/chown (Depends-on): Add errno.
36171
36172 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36173
36174         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36175         command.
36176
36177 2009-08-31  Jim Meyering  <meyering@redhat.com>
36178
36179         canonicalize: remove useless initialization
36180         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36181         initialization of local, "end".
36182
36183 2009-08-30  Bruno Haible  <bruno@clisp.org>
36184
36185         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36186         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36187         ENOSYS.
36188
36189 2009-08-30  Bruno Haible  <bruno@clisp.org>
36190
36191         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36192         /usr/xpg4/bin/tr when it exists.
36193         * tests/test-pipe-filter-gi1.sh: Likewise.
36194
36195 2009-08-30  Bruno Haible  <bruno@clisp.org>
36196
36197         Work around deficient /usr/bin/id program on Solaris.
36198         * tests/test-file-has-acl.sh (ID): New variable.
36199         * tests/test-set-mode-acl.sh (ID): Likewise.
36200         * tests/test-copy-acl.sh (ID): Likewise.
36201         * tests/test-copy-file.sh (ID): Likewise.
36202
36203 2009-08-30  Bruno Haible  <bruno@clisp.org>
36204
36205         New module 'xstriconveh'.
36206         * lib/xstriconveh.h: New file.
36207         * lib/xstriconveh.c: New file.
36208         * modules/xstriconveh: New file.
36209
36210 2009-08-30  Bruno Haible  <bruno@clisp.org>
36211
36212         Make it easier to use mem_cd_iconveh.
36213         * lib/striconveh.h (iconveh_t): New type.
36214         (iconveh_open, iconveh_close): New declarations.
36215         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36216         with a single 'const iconveh_t *' argument.
36217         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36218         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36219         with a single 'const iconveh_t *' argument.
36220         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36221         * tests/test-striconveh.c (main): Update.
36222         * NEWS: Mention the change.
36223
36224 2009-08-30  Bruno Haible  <bruno@clisp.org>
36225
36226         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36227         problem.
36228
36229 2009-08-30  Bruno Haible  <bruno@clisp.org>
36230
36231         Work around iconv_open problem on Solaris.
36232         * lib/iconv_open-solaris.gperf: New file.
36233         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36234         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36235         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36236         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36237         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36238         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36239
36240 2009-08-29  Jim Meyering  <meyering@redhat.com>
36241
36242         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36243         * top/maint.mk (cvs-check): Remove target; it was just an alias
36244         to the better-named vc-diff-check.
36245         (maintainer-distcheck): Remove rule.  It was used only from
36246         the (alpha/beta/major) target, and all of its commands but one
36247         were coreutils-specific.
36248         (vc-dist): Remove rule.
36249         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36250         Run vc-diff-check, not vc-dist.
36251         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36252
36253 2009-08-27  Bruno Haible  <bruno@clisp.org>
36254
36255         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36256         of 0.
36257
36258 2009-08-27  Bruno Haible  <bruno@clisp.org>
36259
36260         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36261         compilers.
36262         * doc/func.texi: Document the SunPRO C bug.
36263
36264 2009-08-27  Bruno Haible  <bruno@clisp.org>
36265
36266         Fix link error on Solaris.
36267         * tests/test-parse-duration.c (xstrdup): Remove function.
36268
36269 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36270
36271         ignore-value: handle pointer types, too
36272         * lib/ignore-value.h (__attribute__): Remove definition.
36273         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36274         of a more concise and more-often effective "(void) i" statement.
36275         (ignore_ptr): New function to suppress warnings from functions that
36276         return pointers, and to make it explicit that one function doesn't
36277         handle all cases.
36278
36279 2009-08-25  Bruno Haible  <bruno@clisp.org>
36280
36281         dup2: work around a Linux bug.
36282         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36283         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36284         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36285         Reported by Simon Josefsson.
36286
36287 2009-08-25  Jim Meyering  <meyering@redhat.com>
36288
36289         libguestfs uses gnulib
36290         * users.txt: Add libguestfs.
36291
36292 2009-08-24  Eric Blake  <ebb9@byu.net>
36293
36294         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36295         * lib/pipe2.c (includes): Add binary-io.h.
36296         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36297
36298 2009-08-24  Bruno Haible  <bruno@clisp.org>
36299
36300         Tolerate declared but missing accept4 syscall.
36301         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36302         available.
36303         * lib/sys_socket.in.h (accept4): If the function is already present,
36304         override it.
36305         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36306         * modules/accept4 (Makefile.am): Compile accept4.c always.
36307         Reported by Paolo Bonzini and Eric Blake.
36308
36309 2009-08-23  Bruno Haible  <bruno@clisp.org>
36310
36311         New module 'accept4'.
36312         * lib/sys_socket.in.h (accept4): New declaration.
36313         * lib/accept4.c: New file.
36314         * m4/accept4.m4: New file.
36315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36316         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36317         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36318         HAVE_ACCEPT4.
36319         * modules/accept4: New file.
36320         * doc/glibc-functions/accept4.texi: Mention the new module.
36321
36322 2009-08-24  Jim Meyering  <meyering@redhat.com>
36323
36324         progname: also set global program_invocation_name, when possible
36325         Before this change, a libtool-enabled program that calls glibc's
36326         error function would report the program name as
36327         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36328         * modules/progname (configure.ac): Check for a declaration of
36329         program_invocation_name.
36330         * lib/progname.c:  Include <errno.h>.
36331         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36332         Set program_invocation_name.
36333
36334 2009-08-23  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/dup3.c: Include <string.h>.
36337
36338 2009-08-23  Bruno Haible  <bruno@clisp.org>
36339
36340         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36341         * lib/pipe2.c (pipe2): Likewise.
36342         Suggested by Eric Blake.
36343
36344 2009-08-23  Bruno Haible  <bruno@clisp.org>
36345
36346         Tolerate declared but missing dup3 syscall.
36347         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36348         * lib/unistd.in.h (dup3): If the function is already present,
36349         override it.
36350         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36351         * modules/dup3 (Makefile.am): Compile dup3.c always.
36352         Reported by Paolo Bonzini.
36353
36354 2009-08-23  Bruno Haible  <bruno@clisp.org>
36355
36356         Tolerate declared but missing pipe2 syscall.
36357         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36358         available.
36359         * lib/unistd.in.h (pipe2): If the function is already present,
36360         override it.
36361         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36362         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36363         Reported by Paolo Bonzini.
36364
36365 2009-08-23  Bruno Haible  <bruno@clisp.org>
36366
36367         * lib/pipe2.c (pipe2): Move #ifs inside function.
36368
36369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36370
36371         quotearg: document limitations of quote_these_too
36372         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36373         those limitations are created.
36374         * lib/quotearg.h (set_char_quoting): Document that digits and
36375         letters that are special after backslash are not permitted.
36376         (quotearg_char): Cross-reference set_char_quoting documentation.
36377
36378 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36379
36380         quotearg: implement custom_quoting_style
36381         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36382         right_quote fields.
36383         (set_custom_quoting): New public function.
36384         (quotearg_buffer_restyled): Add left_quote and right_quote
36385         arguments, handle them very much like locale quoting, and update
36386         all uses.
36387         (quotearg_n_custom): New public function.
36388         (quotearg_n_custom_mem): New public function.
36389         (quotearg_custom): New public function.
36390         (quotearg_custom_mem): New public function.
36391         * lib/quotearg.h: Prototype and document new public functions.
36392         (enum quoting_style): For escape_quoting_style and
36393         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36394         ignored even though they're otherwise like c_quoting_style.
36395         Add custom_quoting_style member and document with comparison to
36396         clocale_quoting_style.
36397         * tests/test-quotearg.c (custom_quotes): New array.
36398         (custom_results): New array.
36399         (main): Extend to test custom quoting.
36400
36401 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36402
36403         quotearg: fix right quote escaping when it's in quote_these_too
36404         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36405         quote, be sure to prepend only one backslash.
36406         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36407         (main): Test it.
36408
36409 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36410
36411         quotearg-tests: test escaping of embedded locale quotes
36412         * tests/test-quotearg.c (struct result_strings): Add member for
36413         new input.
36414         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36415         (inputs): Add new input.
36416         (results_g): Add expected results.
36417         (flag_results): Likewise.
36418         (locale_results): Likewise.
36419         (compare_strings): Check those.
36420
36421 2009-08-23  Bruno Haible  <bruno@clisp.org>
36422
36423         Tests for module 'dup3'.
36424         * modules/dup3-tests: New file.
36425         * tests/test-dup3.c: New file.
36426
36427         New module 'dup3'.
36428         * lib/unistd.in.h (dup3): New declaration.
36429         * lib/dup3.c: New file.
36430         * m4/dup3.m4: New file.
36431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36432         HAVE_DUP3.
36433         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36434         * modules/dup3: New file.
36435         * doc/glibc-functions/dup3.texi: Mention the new module.
36436
36437 2009-08-23  Bruno Haible  <bruno@clisp.org>
36438
36439         Tweak the dup2 test.
36440         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36441         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36442         the test file is still empty. Fix argument order of lseek.
36443
36444 2009-08-23  Bruno Haible  <bruno@clisp.org>
36445
36446         Avoid test link errors when the modules getopt-gnu, gettext are used.
36447         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36449
36450 2009-08-23  Bruno Haible  <bruno@clisp.org>
36451
36452         Fix getdtablesize() on mingw.
36453         * lib/getdtablesize.c (getdtablesize): Implement differently.
36454         * lib/unistd.in.h (getdtablesize): Improve comment.
36455
36456 2009-08-23  Bruno Haible  <bruno@clisp.org>
36457
36458         New module 'mkostemp'.
36459         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36460         * lib/stdlib.in.h (mksotemp): New declaration.
36461         * lib/mkostemp.c: New file, from glibc with modifications.
36462         * lib/tempname.h (GT_FILE): Remove outdated comment.
36463         (gen_tempname): Add flags argument.
36464         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36465         (__GT_FILE): Map to 1.
36466         (small_open, large_open): Remove macros.
36467         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36468         * lib/mkstemp.c (mkstemp): Update.
36469         * lib/mkdtemp.c (mkdtemp): Likewise.
36470         * m4/mkostemp.m4: New file.
36471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36472         HAVE_MKOSTEMP.
36473         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36474         HAVE_MKOSTEMP.
36475         * modules/mkostemp: New file, based on modules/mkstemp.
36476         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36477         * NEWS: Mention the change.
36478
36479 2009-08-23  Bruno Haible  <bruno@clisp.org>
36480
36481         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36482         Reported by Eric Blake.
36483
36484 2009-08-23  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36487         Reported by Eric Blake.
36488
36489 2009-08-23  Bruno Haible  <bruno@clisp.org>
36490
36491         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36492         * modules/pipe2 (Depends-on): Likewise.
36493
36494 2009-08-23  Eric Blake  <ebb9@byu.net>
36495
36496         fcntl-h: add O_TTY_INIT support
36497         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36498         * tests/test-fcntl-h.c (o): Test it.
36499         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36500
36501         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36502         * modules/fcntl: Move <fcntl.h> header replacement...
36503         * modules/fcntl-h: ...to new name, so as not to collide with
36504         like-named function.
36505         * tests/test-fcntl.c: Rename...
36506         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36507         * modules/fcntl-tests: Rename...
36508         * modules/fcntl-h-tests: ...to this.  Update test file name.
36509         * modules/chdir-long (Depends-on): Update clients.
36510         * modules/chdir-safer (Depends-on): Likewise.
36511         * modules/fcntl-safer (Depends-on): Likewise.
36512         * modules/fts (Depends-on): Likewise.
36513         * modules/mkancesdirs (Depends-on): Likewise.
36514         * modules/mkdir-p (Depends-on): Likewise.
36515         * modules/open (Depends-on): Likewise.
36516         * modules/savewd (Depends-on): Likewise.
36517         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36518         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36519
36520 2009-08-22  Bruno Haible  <bruno@clisp.org>
36521
36522         * modules/binary-io (License): Relicense under LGPL.
36523         * modules/pipe2 (License): Likewise.
36524
36525 2009-08-22  Bruno Haible  <bruno@clisp.org>
36526
36527         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36528         return value.
36529         * lib/pipe-filter-gi.c (filter_init): Likewise.
36530         Reported by Eric Blake.
36531
36532 2009-08-22  Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36535         * modules/pipe (Depends-on): Add pipe2.
36536
36537 2009-08-22  Bruno Haible  <bruno@clisp.org>
36538
36539         Tests for module 'pipe2'.
36540         * modules/pipe2-tests: New file.
36541         * tests/test-pipe2.c: New file.
36542
36543         New module 'pipe2'.
36544         * lib/unistd.in.h (pipe2): New declaration.
36545         * lib/pipe2.c: New file.
36546         * m4/pipe2.m4: New file.
36547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36548         HAVE_PIPE2.
36549         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36550         * modules/pipe2: New file.
36551         * doc/glibc-functions/pipe2.texi: Mention the new module.
36552
36553 2009-08-22  Bruno Haible  <bruno@clisp.org>
36554
36555         Reference some new glibc functions.
36556         * doc/glibc-functions/accept4.texi: New file.
36557         * doc/glibc-functions/dup3.texi: New file.
36558         * doc/glibc-functions/mkostemp.texi: New file.
36559         * doc/glibc-functions/pipe2.texi: New file.
36560         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36561         (Glibc sys/socket.h): Refer to accept4.
36562         (Glibc unistd.h): Refer to dup3, pipe2.
36563         Reported by Eric Blake.
36564
36565 2009-08-22  Jim Meyering  <meyering@redhat.com>
36566             Bruno Haible  <bruno@clisp.org>
36567
36568         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36569         This makes it so packages using automake-1.11's silent-rules option
36570         can print e.g., a single "GEN    configmake.h" line, rather than
36571         the 30+ statements that perform the job.  If you want to see the
36572         actual commands, you can still run "make V=1".
36573         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36574         so that make output is abbreviated when those variables are defined
36575         appropriately.
36576         * modules/argz: Likewise.
36577         * modules/arpa_inet: Likewise.
36578         * modules/byteswap: Likewise.
36579         * modules/configmake: Likewise.
36580         * modules/dirent: Likewise.
36581         * modules/errno: Likewise.
36582         * modules/fcntl: Likewise.
36583         * modules/float: Likewise.
36584         * modules/fnmatch: Likewise.
36585         * modules/getopt-posix: Likewise.
36586         * modules/glob: Likewise.
36587         * modules/iconv_open: Likewise.
36588         * modules/inttypes: Likewise.
36589         * modules/localcharset: Likewise.
36590         * modules/locale: Likewise.
36591         * modules/math: Likewise.
36592         * modules/netdb: Likewise.
36593         * modules/netinet_in: Likewise.
36594         * modules/poll: Likewise.
36595         * modules/posix_spawnp-tests: Likewise.
36596         * modules/sched: Likewise.
36597         * modules/search: Likewise.
36598         * modules/selinux-h: Likewise.
36599         * modules/signal: Likewise.
36600         * modules/spawn: Likewise.
36601         * modules/stdarg: Likewise.
36602         * modules/stdbool: Likewise.
36603         * modules/stddef: Likewise.
36604         * modules/stdint: Likewise.
36605         * modules/stdio: Likewise.
36606         * modules/stdlib: Likewise.
36607         * modules/string: Likewise.
36608         * modules/strings: Likewise.
36609         * modules/sys_file: Likewise.
36610         * modules/sys_ioctl: Likewise.
36611         * modules/sys_select: Likewise.
36612         * modules/sys_socket: Likewise.
36613         * modules/sys_stat: Likewise.
36614         * modules/sys_time: Likewise.
36615         * modules/sys_times: Likewise.
36616         * modules/sys_utsname: Likewise.
36617         * modules/sys_wait: Likewise.
36618         * modules/sysexits: Likewise.
36619         * modules/time: Likewise.
36620         * modules/unistd: Likewise.
36621         * modules/wchar: Likewise.
36622         * modules/wctype: Likewise.
36623
36624 2009-08-22  Jim Meyering  <meyering@redhat.com>
36625
36626         announce-gen: detect write failure
36627         * build-aux/announce-gen: Add Coda at end.
36628         Remove equivalent-but-more-verbose block at top.
36629
36630 2009-08-19  Akim Demaille  <demaille@gostai.com>
36631
36632         bootstrap: --help to stdout.
36633         * bootstrap (usage): Don't send --help to stderr.
36634         Use a here doc instead of a long string.
36635
36636 2009-08-21  Eric Blake  <ebb9@byu.net>
36637
36638         test-popen-safer: split from test-popen
36639         * tests/test-popen.c (main): Move...
36640         * tests/test-popen.h: ...into new file.
36641         * tests/test-popen-safer2.c: New file.
36642         * modules/popen-tests (Files): Add test-popen.h.
36643         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36644         Suggested by Bruno Haible.
36645
36646         test-fcntl-safer: split from test-open
36647         * tests/test-open.c (main): Move...
36648         * tests/test-open.h: ...into new file.
36649         * tests/test-fcntl-safer.c: New file.
36650         * modules/open-tests (Files): Add test-open.h.
36651         * modules/fcntl-safer-tests: New file.
36652         Suggested by Bruno Haible.
36653
36654         test-fopen-safer: split from test-fopen
36655         * tests/test-fopen.c (main): Move...
36656         * tests/test-fopen.h: ...into new file.
36657         * tests/test-fopen-safer.c: New file.
36658         * modules/fopen-tests (Files): Add test-fopen.h.
36659         * modules/fopen-safer-tests: New file.
36660         Suggested by Bruno Haible.
36661
36662 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36663
36664         popen-safer: test O_CLOEXEC at run-time.
36665         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36666
36667 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36668
36669         fcntl: move more flags to the header
36670         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36671         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36672         * lib/fcntl.in.h: Do both things here.
36673
36674 2009-08-21  Jim Meyering  <meyering@redhat.com>
36675
36676         consistently remove $@-t before redirecting to it
36677         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36678         * modules/alloca-opt: Likewise.
36679         * modules/byteswap: Likewise.
36680         * modules/fnmatch: Likewise.
36681         * modules/getopt-posix: Likewise.
36682         * modules/glob: Likewise.
36683         * modules/poll: Likewise.
36684         * modules/posix_spawnp-tests: Likewise.
36685         * modules/sys_socket: Likewise.
36686         * modules/sysexits: Likewise.
36687
36688 2009-08-21  Eric Blake  <ebb9@byu.net>
36689
36690         popen: simplify access to original popen
36691         * lib/popen.c (rpl_popen): No need to worry about popen being a
36692         macro.
36693         Reported by Bruno Haible.
36694
36695 2009-08-20  Eric Blake  <ebb9@byu.net>
36696
36697         build: avoid some compiler warnings
36698         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36699         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36700         type.
36701         (new_exclude_segment, excluded_file_pattern_p)
36702         (excluded_file_name_p): Reduce scope.
36703         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36704         old-style declaration.
36705
36706 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36707
36708         * tests/test-exclude1.sh: Handle Windows EOL.
36709         * tests/test-exclude2.sh: Likewise.
36710         * tests/test-exclude3.sh: Likewise.
36711         * tests/test-exclude4.sh: Likewise.
36712         * tests/test-exclude5.sh: Likewise.
36713         * tests/test-exclude6.sh: Likewise.
36714         * tests/test-exclude7.sh: Likewise.
36715
36716 2009-08-19  Akim Demaille  <demaille@gostai.com>
36717
36718         bootstrap: find sha1sum when named gsha1sum.
36719         * bootstrap (find_tool): New.
36720         ($SHA1SUM): New.
36721         Use it.
36722
36723 2009-08-20  Jim Meyering  <meyering@redhat.com>
36724
36725         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36726         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36727         expression that converts "." in a file name to "\." in the resulting
36728         regexp.  Start with a dummy statement, so that prior shell variable
36729         definitions are expanded portably.  Reported by Simon Josefsson.
36730
36731 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36732
36733         Fix polling for writeability of a screen buffer.
36734         * lib/poll.c: Distinguish input and screen buffers for the
36735         Win32 implementation.
36736         * lib/select.c: Likewise.
36737
36738 2009-08-19  Eric Blake  <ebb9@byu.net>
36739
36740         popen-safer: prevent popen from clobbering std descriptors
36741         * modules/popen-safer: New file.
36742         * lib/popen-safer.c: Likewise.
36743         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36744         * lib/stdio--.h (popen): Provide override.
36745         * lib/stdio-safer.h (popen_safer): Provide declaration.
36746         * tests/test-popen.c (includes): Partially test this.
36747         * modules/popen-safer-tests: New file, for more tests.
36748         * tests/test-popen-safer.c: Likewise.
36749         * MODULES.html.sh (file stream based Input/Output): Mention it.
36750
36751         tests: test some of the *-safer modules
36752         * modules/fopen-safer (Depends-on): Add fopen.
36753         * modules/fcntl-safer (Depends-on): Add fcntl.
36754         * modules/stdlib-safer (Depends-on): Add stdlib.
36755         (configure.ac): Set indicator.
36756         * modules/unistd-safer (configure.ac): Likewise.
36757         * modules/tmpfile-safer (configure.ac): Likewise.
36758         (Depends-on): Add tmpfile.
36759         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36760         active.
36761         * tests/test-fopen.c (includes): Test safer versions when they are
36762         in use.
36763         * tests/test-open.c (includes): Likewise.
36764
36765         popen: fix cygwin 1.5 bug when stdin closed
36766         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36767         * modules/popen: New file.
36768         * modules/popen-tests: Likewise.
36769         * tests/test-popen.c: Likewise.
36770         * m4/popen.m4: Likewise.
36771         * lib/popen.c: Likewise.
36772         * lib/stdio.in.h (popen): New declaration.
36773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36774         * modules/stdio (Makefile.am): Likewise.
36775         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36776
36777 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36778
36779         maint.mk: give full control over update-copyright exclusions
36780         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36781         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36782         (update-copyright): Don't force inclusion of top-level
36783         ChangeLog.  Don't force exclusion of all COPYING files, but make
36784         them the default exclusion instead.
36785
36786 2009-08-16  Bruno Haible  <bruno@clisp.org>
36787
36788         Fix test failures on Solaris 10.
36789         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36790         tests when Solaris iconv() is used.
36791         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36792         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36793         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36794         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36795         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36796
36797 2009-08-16  Bruno Haible  <bruno@clisp.org>
36798
36799         Fix test failures on Solaris 10.
36800         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36801         'tr' program and pass it as first argument.
36802         * tests/test-pipe-filter-gi1.sh: Likewise.
36803         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36804         program as first argument.
36805         * tests/test-pipe-filter-gi1.c (main): Likewise.
36806
36807 2009-08-16  Eric Blake  <ebb9@byu.net>
36808
36809         fpurge: fix previous commits
36810         * modules/fpurge (Makefile.am): Make replacement conditional,
36811         partially reverting 2007-04-29 change; missed in previous
36812         attempt.
36813         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36814         is missing.
36815
36816 2009-08-16  Bruno Haible  <bruno@clisp.org>
36817
36818         Clarify fpurge's effect on the file position.
36819         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36820         * tests/test-fpurge.c (main): Make a second pass for checking the file
36821         position.
36822
36823 2009-08-16  Bruno Haible  <bruno@clisp.org>
36824
36825         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36826         declaration of fpurge is missing.
36827         * tests/test-fpurge.c (main): Check that the file has not more contents
36828         than expected. Close the file before removing it.
36829
36830 2009-08-15  Eric Blake  <ebb9@byu.net>
36831
36832         fpurge: don't wrap working cygwin implementation
36833         * lib/fpurge.c (fpurge): Fix comment typo.
36834         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36835         1.7 to avoid replacement.
36836         * tests/test-fpurge.c (main): Enhance test.
36837
36838 2009-08-15  Eric Blake  <ebb9@byu.net>
36839         and Jim Meyering  <meyering@redhat.com>
36840
36841         test-update-copyright: skip if perl is insufficient
36842         * tests/test-update-copyright.sh: Failure to run maintainer tool
36843         should not cause testsuite failure on cygwin 1.5.
36844
36845 2009-08-14  Eric Blake  <ebb9@byu.net>
36846
36847         doc: mention more functions added in cygwin 1.7.0
36848         * doc/posix-headers/limits.texi (limits.h): Update for recent
36849         cygwin additions.
36850         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36851         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36852         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36853         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36854         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36855
36856 2009-08-14  Eric Blake  <ebb9@byu.net>
36857
36858         maint.mk: simplify update-copyright rule
36859         * top/maint.mk (update-copyright-local): Delete, and document how
36860         to do it in cfg.mk instead.
36861         (update-copyright-exclude-regexp): Delete, and document how to do
36862         it in .x-update-copyright instead.
36863         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36864         exclude ChangeLog.
36865
36866 2009-08-14  Bruno Haible  <bruno@clisp.org>
36867
36868         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36869
36870 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36871
36872         maint.mk: support update-copyright-env
36873         * top/maint.mk (update-copyright-env): Define place-holder.
36874         (update-copyright): Expand $(update-copyright-env) before
36875         invoking update-copyright.
36876
36877 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36878
36879         update-copyright: implement forced reformatting
36880         * build-aux/update-copyright: Implement and document
36881         UPDATE_COPYRIGHT_FORCE.
36882         * tests/test-update-copyright.sh: Test it.
36883
36884 2009-08-14  Eric Blake  <ebb9@byu.net>
36885         and Bruno Haible  <bruno@clisp.org>
36886
36887         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36888         * tests/test-locale.c: Revert previous patch related to NULL.
36889         * tests/test-stdio.c: Likewise.
36890         * tests/test-stdlib.c: Likewise.
36891         * tests/test-string.c: Likewise.
36892         * tests/test-unistd.c: Likewise.
36893         * modules/time-tests (Depends-on): Add verify.
36894         * modules/wchar-tests (Depends-on): Likewise.
36895         * tests/test-time.c: Test for NULL compliance.
36896         * tests/test-wchar.c: Likewise.
36897         * modules/locale (Depends-on): Add stddef.
36898         * modules/stdio (Depends-on): Likewise.
36899         * modules/stdlib (Depends-on): Likewise.
36900         * modules/string (Depends-on): Likewise.
36901         * modules/time (Depends-on): Likewise.
36902         * modules/unistd (Depends-on): Likewise.
36903         * modules/wchar (Depends-on): Likewise.
36904         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36905         * lib/stdlib.in.h (includes): Likewise.
36906         * lib/string.in.h (includes): Likewise.
36907         * lib/time.in.h (includes): Likewise.
36908         * lib/unistd.in.h (includes): Likewise.
36909         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36910         replaced.
36911         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36912         * m4/stddef_h.m4: New file.
36913         * modules/stddef: Likewise.
36914         * lib/stddef.in.h: Likewise.
36915         * modules/stddef-tests: Likewise.
36916         * tests/test-stddef.c: Likewise.
36917         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36918         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36919         * doc/posix-headers/locale.texi (locale.h): Likewise.
36920         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36921         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36922         * doc/posix-headers/string.texi (string.h): Likewise.
36923         * doc/posix-headers/time.texi (time.h): Likewise.
36924         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36925         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36926
36927 2009-08-14  Eric Blake  <ebb9@byu.net>
36928
36929         doc: improve git diff of texinfo files
36930         * .gitattributes: Add rule for *.texi files, with hint on how to
36931         use it.
36932         Copied from m4, and based on a report by Bruno Haible.
36933
36934 2009-08-14  Bruno Haible  <bruno@clisp.org>
36935
36936         Disable multithread support by default on Cygwin 1.5.x for real.
36937         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36938
36939 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36940
36941         update-copyright: much ado about intervals
36942         * build-aux/update-copyright: Implement and document
36943         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36944         of copyright year intervals.
36945         Also, document UPDATE_COPYRIGHT_YEAR.
36946         * tests/test-update-copyright.sh: Test it.
36947
36948         update-copyright: convert 2-digit to 4-digit years
36949         * build-aux/update-copyright: Implement and document.
36950         * tests/test-update-copyright.sh: Update.
36951
36952 2009-08-14  Jim Meyering  <meyering@redhat.com>
36953
36954         test-exclude: avoid coreutils "make check" failure
36955         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36956         just as in test-argmatch.c.
36957
36958 2009-08-13  Eric Blake  <ebb9@byu.net>
36959
36960         test-dup2: fix bad assumption
36961         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36962         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36963
36964         test-version-etc: fix CRLF portability issue
36965         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36966         recognize \r.
36967         * tests/test-argp-version-etc-1.sh: Likewise.
36968
36969         getopt: update client modules
36970         * modules/argp (Depends-on): Use getopt-gnu.
36971         * modules/git-merge-changelog (Depends-on): Likewise.
36972         * modules/long-options (Depends-on): Likewise.
36973         * modules/xstrtol (Depends-on): Likewise.
36974
36975 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36976
36977         * tests/test-version-etc.sh: Don't fail on different
36978         project/version.  Don't fail on CRLF differences.  Rewrite to use
36979         multiple -e instead of multiple sed forks, suggested by Eric Blake
36980         <ebb9@byu.net>.
36981         * tests/test-argp-version-etc-1.sh: Likewise.
36982
36983 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36984
36985         * tests/test-version-etc.sh: Don't fail on different
36986         project/version.
36987
36988 2009-08-12  Bruno Haible  <bruno@clisp.org>
36989
36990         Tests for modules 'getopt-posix', 'getopt-gnu'.
36991         * modules/getopt-posix-tests: New file.
36992         * tests/test-getopt.c: New file.
36993         * tests/test-getopt.h: New file.
36994         * tests/test-getopt_long.h: New file.
36995
36996         New modules 'getopt-posix', 'getopt-gnu'.
36997         * modules/getopt-gnu: New file, renamed from modules/getopt.
36998         * modules/getopt-posix: New file.
36999         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37000         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37001         (gl_GETOPT): Remove macro.
37002         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37003         Disable the test against BSD systems that declare optreset. Test
37004         against mingw bug. Test against lack of support of optional arguments
37005         on many platforms.
37006         * doc/glibc-headers/getopt.texi: Update module name and list of
37007         relevant platforms.
37008         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37009         'getopt-gnu' and more portability problems.
37010         * NEWS: Mention the changes.
37011
37012 2009-08-12  Bruno Haible  <bruno@clisp.org>
37013
37014         Ensure that optarg etc. get declared by <unistd.h>.
37015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37016         AC_USE_SYSTEM_EXTENSIONS.
37017         * modules/getopt (Depends-on): Add 'extensions'.
37018
37019 2009-08-12  Bruno Haible  <bruno@clisp.org>
37020
37021         Avoid test link errors.
37022         * modules/pipe-filter-ii-tests (Makefile.am): Define
37023         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37024         * modules/pipe-filter-gi-tests (Makefile.am): Define
37025         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37027
37028 2009-08-12  Bruno Haible  <bruno@clisp.org>
37029
37030         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37031         gl_GETOPT_SUBSTITUTE before.
37032         (gl_GETOPT): Use it.
37033         * m4/argp.m4 (gl_ARGP): Update.
37034         Reported by Sergey Poznyakoff.
37035
37036         * m4/getopt.m4: Reorder macros.
37037         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37038         (gl_GETOPT_SUBSTITUTE): Remove macro.
37039
37040 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37041
37042         Minor improvement in gitlog-to-changelog
37043
37044         * build-aux/gitlog-to-changelog: New option `--format' makes
37045         output format string configurable.
37046
37047 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37048
37049         Optimize exclude: use hash tables for non-wildcard patterns.
37050
37051         * lib/exclude.c: Include hash.h and mbuiter.h
37052         (struct exclude_pattern, exclude_segment): New data types.
37053         (struct exclude): Rewrite.
37054         (fnmatch_pattern_has_wildcards): New function.
37055         (new_exclude_segment, free_exclude_segment): New functions.
37056         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37057         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37058         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37059         * modules/exclude: Depend on hash and mbuiter.
37060
37061         * modules/exclude-tests: New file.
37062         * tests/test-exclude.c: New file.
37063         * tests/test-exclude1.sh: New file.
37064         * tests/test-exclude2.sh: New file.
37065         * tests/test-exclude3.sh: New file.
37066         * tests/test-exclude4.sh: New file.
37067         * tests/test-exclude5.sh: New file.
37068         * tests/test-exclude6.sh: New file.
37069         * tests/test-exclude7.sh: New file.
37070
37071 2009-08-12  Bruno Haible  <bruno@clisp.org>
37072
37073         Ensure that getopt() gets declared by <unistd.h>.
37074         * lib/unistd.in.h: Conditionally include getopt.h.
37075         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37076         Set GNULIB_UNISTD_H_GETOPT.
37077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37078         GNULIB_UNISTD_H_GETOPT.
37079         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37080
37081 2009-08-12  Bruno Haible  <bruno@clisp.org>
37082
37083         Clarify logic.
37084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37085         gl_replace_getopt instead of GETOPT_H.
37086
37087 2009-08-12  Bruno Haible  <bruno@clisp.org>
37088
37089         * m4/getopt.m4: Add comments.
37090
37091 2009-08-12  Bruno Haible  <bruno@clisp.org>
37092
37093         Disable multithread support by default on Cygwin 1.5.x.
37094         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37095         set gl_use_threads=no if not specified otherwise.
37096
37097 2009-08-11  Bruno Haible  <bruno@clisp.org>
37098
37099         Avoid compilation error on NetBSD 5.0.
37100         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37101         * tests/test-stdio.c: Likewise.
37102         * tests/test-stdlib.c: Likewise.
37103         * tests/test-string.c: Likewise.
37104         * tests/test-unistd.c: Likewise.
37105         Reported by Greg Troxel <gdt@ir.bbn.com>
37106         at <https://savannah.gnu.org/support/?106973>.
37107
37108 2009-08-11  Bruno Haible  <bruno@clisp.org>
37109
37110         * modules/dup2-tests (Depends-on): Remove close.
37111
37112         Undo 2009-07-19 commit.
37113         * modules/acl-tests (Depends-on): Remove close.
37114         * modules/binary-io-tests (Depends-on): Likewise.
37115         * modules/closein-tests (Depends-on): Likewise.
37116         * modules/flock-tests (Depends-on): Likewise.
37117         * modules/fsync-tests (Depends-on): Likewise.
37118         * modules/lseek-tests (Depends-on): Likewise.
37119         * modules/pipe-tests (Depends-on): Likewise.
37120         * modules/posix_spawn-tests (Depends-on): Likewise.
37121         * modules/posix_spawnp-tests (Depends-on): Likewise.
37122         * modules/stat-time-tests (Depends-on): Likewise.
37123         * modules/yesno-tests (Depends-on): Likewise.
37124
37125 2009-08-10  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37128
37129 2009-08-10  Bruno Haible  <bruno@clisp.org>
37130
37131         Fix a gcc warning.
37132         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37133
37134 2009-08-10  Bruno Haible  <bruno@clisp.org>
37135
37136         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37137         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37138         not only the first time.
37139         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37140         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37141         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37142         is 1, not only the the first time.
37143
37144 2009-08-10  Bruno Haible  <bruno@clisp.org>
37145
37146         Make it possible to use module 'gethostname' without module 'close'.
37147         * lib/unistd.in.h (close): Evoke a link error only if
37148         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37150         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37151         * modules/unistd (Makefile.am): Substitute
37152         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37153         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37154         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37155         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37156         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37157         * modules/sys_ioctl (Makefile.am): Substitute
37158         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37159         * modules/socket (configure.ac): On native Windows, set
37160         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37161         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37162         Reported by Sam Steingold <sds@gnu.org>.
37163
37164 2009-08-10  Bruno Haible  <bruno@clisp.org>
37165
37166         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37167         * modules/ioctl (configure.ac): Likewise.
37168
37169 2009-08-10  Bruno Haible  <bruno@clisp.org>
37170
37171         Avoid collision between gnulib wrapper and libintl wrapper.
37172         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37173         already defined in intl/printf.c.
37174         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37175         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37176
37177 2009-08-09  Bruno Haible  <bruno@clisp.org>
37178
37179         Make <sys/select.h> really self-contained, also on Solaris 10.
37180         * lib/sys_select.in.h: Include <string.h>.
37181         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37182         Solaris 10 problem.
37183         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37184         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37185         Reported by Jim Meyering.
37186
37187 2009-08-09  Bruno Haible  <bruno@clisp.org>
37188
37189         Avoid warnings from 'aclocal' that are due to a use of macro name
37190         AM_XGETTEXT_OPTION that is not defined in automake.
37191         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37192         automake.
37193         * modules/error (configure.ac): Likewise.
37194         * modules/propername (configure.ac): Likewise.
37195         * modules/vasprintf (configure.ac): Likewise.
37196         * modules/verror (configure.ac): Likewise.
37197         * modules/xprintf (configure.ac): Likewise.
37198         * modules/xvasprintf (configure.ac): Likewise.
37199
37200 2009-08-08  Bruno Haible  <bruno@clisp.org>
37201
37202         Avoid compilation error in C++ mode.
37203         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37204         Reported by Sam Steingold <sds@gnu.org>.
37205
37206 2009-08-08  Bruno Haible  <bruno@clisp.org>
37207
37208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37209         for the various Unix platforms.
37210         * doc/posix-headers/limits.texi: Update platforms list regarding
37211         HOST_NAME_MAX.
37212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37213
37214 2009-08-07  Jim Meyering  <meyering@redhat.com>
37215
37216         selinux-at: fix typo in a comment
37217         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37218         Spotted by Paolo Bonzini.
37219
37220         selinux-at: remove redundant m4 code, add documentation
37221         * modules/selinux-at (configure.ac): Remove redundant code.
37222         LIB_SELINUX is already set via the dependent module, selinux-h.
37223         (Include): Add quotes around selinux-at.h.
37224         * lib/selinux-at.h: Add documentation.
37225         Reported by Bruno Haible in
37226         http://marc.info/?l=gnulib-bug&m=124958988300749
37227
37228 2009-08-07  Bruno Haible  <bruno@clisp.org>
37229
37230         Avoid link error on MacOS X 10.3 and 10.4.
37231         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37232         on non-ELF systems.
37233         * lib/argp-pv.c (argp_program_version): Likewise.
37234         Reported by Simon Josefsson.
37235
37236 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37237
37238         * tests/test-version-etc.sh: Use $EXEEXT.
37239
37240 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37241
37242         update-copyright: update documentation to point to maint.mk
37243         * build-aux/update-copyright: Here.
37244
37245 2009-08-06  Jim Meyering  <meyering@redhat.com>
37246
37247         maint.mk: support update-copyright-local
37248         * top/maint.mk (update-copyright-local): Define place-holder.
37249         (update-copyright): Depend on $(update-copyright-local).
37250
37251 2009-08-06  Jim Meyering  <meyering@redhat.com>
37252
37253         selinux-at: new module
37254         Initially written for coreutils, this module will soon be
37255         used by findutils, too.
37256         * MODULES.html.sh [Misc]: Add selinux-at.
37257         * lib/selinux-at.h: New file, from coreutils.
37258         * lib/selinux-at.c: Likewise.
37259         * modules/selinux-at: Likewise.
37260         (License): Change from LGPL to GPL, since it depends
37261         on the GPL'd openat module.
37262
37263         doc: update README
37264         * README: Remove references to cogito.
37265         Remove cvs-repo-updating instructions from 2007.
37266         Don't imply that CVS is better if you have limited disk space.
37267
37268 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37269
37270         update-copyright: support C-style comments
37271         * build-aux/update-copyright: Implement and document.
37272         * tests/test-update-copyright.sh: Test.
37273
37274 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37275
37276         update-copyright: support omitted "(C)"
37277         * build-aux/update-copyright: Implement and document.  Also,
37278         allow variable whitespace before "(C)".
37279         * tests/test-update-copyright.sh: Test.
37280
37281 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37282
37283         update-copyright: don't trip on non-FSF copyright statements
37284         * build-aux/update-copyright: Fix so that the first correctly
37285         formatted FSF copyright statement is recognized no matter what
37286         appears before it.  Update documentation.
37287         * tests/test-update-copyright.sh: Test that.
37288
37289 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37290
37291         update-copyright: clean up code a little
37292         * build-aux/update-copyright: Append "_re" to the name of any
37293         variable holding a regular expression.
37294         Replace "old" and "new" with "stmt" in variable names.
37295         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37296         handled correctly.
37297         Format code more consistently.
37298
37299 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37300
37301         update-copyright-tests: improve portability
37302         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37303         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37304
37305 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37306
37307         update-copyright: support @copyright{} and &copy;
37308         * build-aux/update-copyright: Implement and document.
37309         * tests/test-update-copyright.sh: Test.
37310
37311 2009-08-04  Jim Meyering  <meyering@redhat.com>
37312
37313         update-copyright-tests: correctly test EOL=\r\n handling
37314         * tests/test-update-copyright.sh: Put \r at the end of some lines
37315         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37316
37317         maint.mk: make update-copyright exclusion list more configurable
37318         * top/maint.mk (update-copyright): Default to excluding COPYING,
37319         but allow an override, in case someone does want to update that file.
37320
37321         maint.mk: don't update copyright date in COPYING
37322         * top/maint.mk (update-copyright): Exclude COPYING.
37323
37324         maint.mk: add a copyright-updating rule
37325         * top/maint.mk (update-copyright): New rule.
37326         Derived from coreutils/Makefile.am.
37327
37328         update-copyright: rename some variables
37329         * build-aux/update-copyright: Rename a few variables for clarity.
37330         Tweak syntax.  List Joel E. Denny as coauthor.
37331
37332 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37333
37334         update-copyright: fix bug for 2-digit last year and add tests
37335         * build-aux/update-copyright: Fix bug.
37336         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37337         specified.
37338         * modules/update-copyright-tests: New
37339         * tests/test-update-copyright.sh: New.
37340
37341 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37342
37343         update-copyright: handle leading tabs in line prefix
37344         * build-aux/update-copyright: Count leading tabs as 8 spaces
37345         when computing margin.  This helps with the formatting of
37346         ChangeLogs, for example.
37347         Fix documentation a little.
37348
37349 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37350
37351         update-copyright: support EOL=\r\n
37352         * build-aux/update-copyright: Implement that.
37353
37354 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37355
37356         update-copyright: automatically format copyright statements
37357         * build-aux/update-copyright: Implement that.
37358         Also, be a little more predictable and safer by always failing
37359         when the full copyright format is not perfectly recognized as an
37360         unbroken whole.  Discussed at
37361         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37362         Rewrite documentation.
37363
37364 2009-08-03  Bruno Haible  <bruno@clisp.org>
37365
37366         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37367
37368 2009-08-02  Bruno Haible  <bruno@clisp.org>
37369
37370         Tests for module 'uname'.
37371         * modules/uname-tests: New file.
37372         * tests/test-uname.c: New file.
37373
37374         New module 'uname'.
37375         * lib/uname.c: New file.
37376         * m4/uname.m4: New file.
37377         * modules/uname: New file.
37378         * doc/posix-functions/uname.texi: Mention the new module.
37379
37380 2009-08-02  Bruno Haible  <bruno@clisp.org>
37381
37382         Tests for module 'sys_utsname'.
37383         * modules/sys_utsname-tests: New file.
37384         * tests/test-sys_utsname.c: New file.
37385
37386         New module 'sys_utsname'.
37387         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37388         * m4/sys_utsname_h.m4: New file.
37389         * modules/sys_utsname: New file.
37390         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37391
37392 2009-08-02  Bruno Haible  <bruno@clisp.org>
37393
37394         Implicitly initialize the sockets library.
37395         * lib/gethostname.c: Include sockets.h.
37396         (rpl_gethostname): Invoke gl_sockets_startup.
37397         * lib/socket.c: Include sockets.h.
37398         (rpl_socket): Invoke gl_sockets_startup.
37399         * modules/gethostname (Depends-on): Add sockets.
37400         * modules/socket (Depends-on): Likewise.
37401         * tests/test-poll.c: Don't include sockets.h.
37402         (main): Don't invoke gl_sockets_startup.
37403         * tests/test-select.c: Don't include sockets.h.
37404         (main): Don't invoke gl_sockets_startup.
37405
37406 2009-08-02  Bruno Haible  <bruno@clisp.org>
37407
37408         Allow multiple calls to gl_sockets_startup.
37409         * lib/sockets.c (initialized_sockets_version): New variable.
37410         (gl_sockets_startup): Do nothing if already called for this or a higher
37411         version.
37412         (gl_sockets_cleanup): Reset initialized_sockets_version.
37413
37414 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37415
37416         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37417         different project/version.
37418
37419 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37420             Bruno Haible  <bruno@clisp.org>
37421
37422         Tests for module 'pipe-filter-gi'.
37423         * modules/pipe-filter-gi-tests: New file.
37424         * tests/test-pipe-filter-gi1.sh: New file.
37425         * tests/test-pipe-filter-gi1.c: New file.
37426         * tests/test-pipe-filter-gi2.sh: New file.
37427         * tests/test-pipe-filter-gi2-main.c: New file.
37428         * tests/test-pipe-filter-gi2-child.c: New file.
37429
37430         New module 'pipe-filter-gi'.
37431         * lib/pipe-filter-gi.c: New file.
37432         * modules/pipe-filter-gi: New file.
37433
37434 2009-08-02  Bruno Haible  <bruno@clisp.org>
37435             Paolo Bonzini  <bonzini@gnu.org>
37436
37437         Tests for module 'pipe-filter-ii'.
37438         * modules/pipe-filter-ii-tests: New file.
37439         * tests/test-pipe-filter-ii1.sh: New file.
37440         * tests/test-pipe-filter-ii1.c: New file.
37441         * tests/test-pipe-filter-ii2.sh: New file.
37442         * tests/test-pipe-filter-ii2-main.c: New file.
37443         * tests/test-pipe-filter-ii2-child.c: New file.
37444
37445         New module 'pipe-filter-ii'.
37446         * lib/pipe-filter.h: New file.
37447         * lib/pipe-filter-ii.c: New file.
37448         * lib/pipe-filter-aux.h: New file.
37449         * modules/pipe-filter-ii: New file.
37450
37451 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37452
37453         * lib/gc-libgcrypt.c: Change copyright to FSF.
37454         * lib/gc-gnulib.c: Likewise.
37455
37456 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37457
37458         * lib/gethostname.c: Include limits.h.
37459
37460 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37461             Bruno Haible  <bruno@clisp.org>
37462
37463         Ensure HOST_NAME_MAX as part of the gethostname module.
37464         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37465         define also HOST_NAME_MAX.
37466         * tests/test-gethostname.c: Include <limits.h>.
37467         (main): Check also HOST_NAME_MAX.
37468         * doc/posix-headers/limits.texi: Document the mingw problem.
37469
37470 2009-08-02  Bruno Haible  <bruno@clisp.org>
37471
37472         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37473         Add comments.
37474
37475 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37476
37477         * lib/gethostname.c: Add Windows wrapper.
37478         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37479         * modules/gethostname: Depend on sys_socket & errno, for also
37480         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37481         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37482
37483 2009-07-31  Jim Meyering  <meyering@redhat.com>
37484
37485         getloadavg: fix symbol name in comment
37486         * lib/getloadavg.c: Correct a typo I introduced when adding
37487         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37488         Matt Kraai spotted the problem.
37489
37490 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37491
37492         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37493         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37494         code also if ! defined N_NAME_POINTER.
37495         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37496         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37497         but the n_name member is a 12-byte array.
37498
37499 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37500
37501         update-copyright: generalize comment handling
37502         * build-aux/update-copyright: Handle copyright statements
37503         within more comment styles.
37504         Document usage.
37505         Report any file with an external copyright holder or parse failure.
37506
37507 2009-07-29  Jim Meyering  <meyering@redhat.com>
37508
37509         mktime: correct setting of REPLACE_MKTIME
37510         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37511
37512         update-copyright: new module
37513         * modules/update-copyright: New file.
37514         * build-aux/update-copyright: New file.
37515         * MODULES.html.sh (maint+release support): Add update-copyright.
37516
37517 2009-07-27  Bruno Haible  <bruno@clisp.org>
37518
37519         Fix compilation error when <ctime> is used and mktime is replaced.
37520         * lib/time.in.h (mktime): New declaration.
37521         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37522         REPLACE_MKTIME instead of defining mktime in config.h.
37523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37524         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37525         Reported by Ross McFarland <rwmcfa1@neces.com>.
37526
37527 2009-07-27  Bruno Haible  <bruno@clisp.org>
37528
37529         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37530         Reported by Matt Kraai <mkraai@beckman.com>.
37531
37532 2009-07-25  Jim Meyering  <meyering@redhat.com>
37533
37534         maint.mk: avoid warnings about missing files
37535         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37536         diagnostic when .prev-version does not exist.
37537         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37538         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37539         nonexistent cfg.mk.
37540         Suggestions from Simon Josefsson.
37541
37542 2009-07-25  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37545         defined as macros. Needed on QNX 6.4.1.
37546         Reported by Matt Kraai <mkraai@beckman.com>.
37547
37548 2009-07-23  Jim Meyering  <meyering@redhat.com>
37549
37550         maint.mk: invoke "make dist" with a working value of XZ_OPT
37551         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37552
37553 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37554
37555         Make fseeko.c compile on QNX.
37556         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37557
37558 2009-07-22  Peter Simons  <simons@cryp.to>
37559
37560         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37561         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37562         * lib/md4.h: Likewise.
37563         * lib/md5.h: Likewise.
37564         * lib/sha1.h: Likewise.
37565         * lib/sha256.h: Likewise.
37566         * lib/sha512.h: Likewise.
37567
37568         tests-sha1: don't assign literal string to 'char *' variable
37569         * tests/test-sha1.c (main): Declare locals with "const" to match
37570         attributes of the right hand side.
37571
37572 2009-07-21  Eric Blake  <ebb9@byu.net>
37573
37574         dup2: fix more mingw problems
37575         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37576         fd to itself.
37577         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37578         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37579         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37580         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37581         care of mingw bugs.
37582
37583 2009-07-21  Jim Meyering  <meyering@redhat.com>
37584
37585         vc-list-files: avoid failure when /bin/sh is dash
37586         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37587         On some Debian based systems, /bin/sh is a symlink to dash, and running
37588         this command would omit the "/" following each 'tests' prefix:
37589           dash -x build-aux/vc-list-files -C . tests
37590         That is because bash and dash work differently:
37591           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37592           bash ok
37593           dash odd
37594
37595 2009-07-21  Eric Blake  <ebb9@byu.net>
37596
37597         dup2-tests: test previous patch
37598         * modules/dup2-tests: New file.
37599         * tests/test-dup2.c: Likewise.
37600         * tests/test-open.c (main): Avoid unspecified behavior.
37601         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37602         test.
37603
37604         dup2: work around mingw and cygwin 1.5 bug
37605         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37607         * modules/unistd (Makefile.am): Substitute it.
37608         * lib/unistd.in.h (dup2): Declare the replacement.
37609         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37610         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37611         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37612         * modules/execute (Depends-on): Add dup2.
37613         * modules/fseterr (Depends-on): Likewise.
37614         * modules/pipe (Depends-on): Likewise.
37615         * modules/posix_spawn-internal (Depends-on): Likewise.
37616
37617 2009-07-21  Bruno Haible  <bruno@clisp.org>
37618
37619         * modules/.gitattributes: New file.
37620
37621 2009-07-20  Bruno Haible  <bruno@clisp.org>
37622
37623         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37624         (main): Use it.
37625
37626 2009-07-20  Eric Blake  <ebb9@byu.net>
37627
37628         test-pipe: make a bit more robust.
37629         * tests/test-pipe.c (myerr): Allow error messages regardless of
37630         what we do to stderr.
37631         (test_pipe): Rearrange to avoid deadlock.
37632         (child_main): Try a larger read, to ensure we avoided deadlock.
37633         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37634         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37635         if misused.
37636
37637 2009-07-19  Jim Meyering  <meyering@redhat.com>
37638
37639         fts: avoid false-positive cycle-detection
37640         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37641         for each new command line argument.
37642
37643 2009-07-19  Bruno Haible  <bruno@clisp.org>
37644
37645         Fix build error on mingw with the modules sys_select and unistd.
37646         * modules/acl-tests (Depends-on): Add close.
37647         * modules/binary-io-tests (Depends-on): Likewise.
37648         * modules/closein-tests (Depends-on): Likewise.
37649         * modules/flock-tests (Depends-on): Likewise.
37650         * modules/fsync-tests (Depends-on): Likewise.
37651         * modules/lseek-tests (Depends-on): Likewise.
37652         * modules/pipe-tests (Depends-on): Likewise.
37653         * modules/posix_spawn-tests (Depends-on): Likewise.
37654         * modules/posix_spawnp-tests (Depends-on): Likewise.
37655         * modules/stat-time-tests (Depends-on): Likewise.
37656         * modules/yesno-tests (Depends-on): Likewise.
37657
37658 2009-07-19  Bruno Haible  <bruno@clisp.org>
37659
37660         Unify conditionals.
37661         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37662         macros, not at the compiler macros.
37663         * lib/pipe.c: Likewise.
37664         * lib/execute.c: Likewise.
37665         * lib/spawni.c: Likewise.
37666
37667 2009-07-19  Bruno Haible  <bruno@clisp.org>
37668
37669         Fix handling of closed stdin/stdout/stderr on mingw.
37670         * lib/w32spawn.h: Include unistd.h.
37671         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37672         file descriptor with O_NOINHERIT flag.
37673         (fd_safer_noinherit): New function, based on fd-safer.c.
37674         (dup_safer_noinherit): New function, based on dup-safer.c.
37675         (undup_safer_noinherit): New function.
37676         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37677         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37678         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37679         instead of fd_safer.
37680         * tests/test-pipe.c: Include <windows.h>.
37681         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37682         result.
37683
37684         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37685         from main.
37686         (test_pipe): Pass an extra argument for disambiguation.
37687         (main): Invoke parent_main or child_main.
37688
37689         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37690         consistently.
37691
37692 2009-07-18  Eric Blake  <ebb9@byu.net>
37693
37694         test-pipe: fix mingw build
37695         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37696
37697 2009-07-18  Bruno Haible  <bruno@clisp.org>
37698
37699         * modules/pipe-tests (Makefile.am): Fix typo.
37700
37701 2009-07-18  Eric Blake  <ebb9@byu.net>
37702
37703         error: fix mingw build
37704         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37705         Reported by Bruno Haible.
37706
37707         error: avoid undefined use of stdout
37708         * lib/error.c (error, error_at_line): Check that fd 1 is open
37709         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37710         is handling faults and the close_stdout module wants to report the
37711         detection of closed stdout as an error.
37712
37713 2009-07-17  Eric Blake  <ebb9@byu.net>
37714
37715         pipe: be robust in face of closed fds
37716         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37717         should cause child to misbehave.
37718         * modules/pipe-tests: New module.
37719         * tests/test-pipe.c: New file.
37720         * tests/test-pipe.sh: New file.
37721         Reported by Akim Demaille.
37722
37723 2009-07-14  Bruno Haible  <bruno@clisp.org>
37724
37725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37726         Reported by anonymous kc.
37727
37728 2009-07-07  Jim Meyering  <meyering@redhat.com>
37729
37730         maint.mk: don't look for translatable strings in *.m4 or *.mk
37731         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37732         when searching for translatable strings.
37733
37734 2009-07-05  Jim Meyering  <meyering@redhat.com>
37735
37736         remove superfluous parentheses in STREQ definition
37737         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37738         * lib/getugroups.c (STREQ): Likewise.
37739         * lib/fnmatch.c (STREQ): Likewise.
37740         Spotted by Bruno Haible.
37741
37742 2009-07-04  Jim Meyering  <meyering@redhat.com>
37743
37744         argv-iter: new module
37745         * MODULES.html.sh: Add argv-iter.
37746         * lib/argv-iter.c, lib/argv-iter.h: New files.
37747         * modules/argv-iter: New file.
37748         * modules/argv-iter-tests: New file.
37749         * tests/test-argv-iter.c: Test it.
37750
37751 2009-07-04  Bruno Haible  <bruno@clisp.org>
37752
37753         Fix assertion.
37754         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37755         contains more exact copies of a given entry than file2, leave the extra
37756         copies unpaired rather than aborting.
37757         Reported by Eric Blake.
37758
37759 2009-07-02  Bruno Haible  <bruno@clisp.org>
37760
37761         Speedup git-merge-changelog for git cherry-pick.
37762         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37763         (entries_mapping_get): New function, extracted from compute_mapping.
37764         (entries_mapping_reverse_get): New function.
37765         (compute_mapping): Add a 'full' argument. Return the result in a
37766         'struct entries_mapping'.
37767         (main): Update. Access the mappings through entries_mapping_get.
37768         Reported by Eric Blake.
37769
37770 2009-07-02  Bruno Haible  <bruno@clisp.org>
37771
37772         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37773         best_i.
37774
37775 2009-07-02  Bruno Haible  <bruno@clisp.org>
37776
37777         Speed up approximate search for matching ChangeLog entries.
37778         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37779         argument. Call fstrcmp_bounded instead of fstrcmp.
37780         (compute_mapping, try_split_merged_entry, main): Update callers.
37781
37782 2009-07-02  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37785
37786 2009-06-30  Bruno Haible  <bruno@clisp.org>
37787
37788         Reduce the number of uc_is_cased calls.
37789         * lib/unicase.h (casing_suffix_context_t): Add
37790         'first_char_except_ignorable' field.
37791         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37792         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37793         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37794         Update initializer.
37795         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37796         case-ignorable characters.
37797         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37798         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37799         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37800         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37801         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37802
37803 2009-06-30  Bruno Haible  <bruno@clisp.org>
37804
37805         Tests for module 'unicase/ignorable'.
37806         * modules/unicase/ignorable-tests: New file.
37807         * tests/unicase/test-ignorable.c: New file, generated by
37808         gen-uni-tables.
37809
37810         Tests for module 'unicase/cased'.
37811         * modules/unicase/cased-tests: New file.
37812         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37813         * tests/unicase/test-predicate-part1.h: New file, derived from
37814         tests/unictype/test-predicate-part1.h.
37815         * tests/unicase/test-predicate-part2.h: New file, same as
37816         tests/unictype/test-predicate-part2.h.
37817
37818         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37819         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37820         (output_casing_properties): New function.
37821         (main): Call it.
37822         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37823         * lib/unicase/cased.c: Include unictype/bitmap.h.
37824         (uc_is_cased): Define through a bitmap lookup.
37825         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37826         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37827         (uc_is_case_ignorable): Define through a bitmap lookup.
37828         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37829         lib/unictype/bitmap.h.
37830         (Depends-on): Add inline. Clean up.
37831         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37832         lib/unictype/bitmap.h.
37833         (Depends-on): Add inline. Clean up.
37834         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37835         recognition.
37836         * tests/unicase/test-u16-tolower.c (main): Likewise.
37837         * tests/unicase/test-u32-tolower.c (main): Likewise.
37838
37839 2009-06-30  Bruno Haible  <bruno@clisp.org>
37840
37841         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37842         * lib/unicase/u16-casemap.c: Likewise.
37843         * lib/unicase/u32-casemap.c: Likewise.
37844
37845 2009-06-29  Bruno Haible  <bruno@clisp.org>
37846
37847         Define u32_casefold as a wrapper around u32_ct_casefold.
37848         * lib/unicase/u32-casefold.c: Update.
37849         * modules/unicase/u32-casefold (Depends-on): Add
37850         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37851         unicase/empty-suffix-context. Clean up.
37852
37853         Define u16_casefold as a wrapper around u16_ct_casefold.
37854         * lib/unicase/u16-casefold.c: Update.
37855         * modules/unicase/u16-casefold (Depends-on): Add
37856         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37857         unicase/empty-suffix-context. Clean up.
37858
37859         Define u8_casefold as a wrapper around u8_ct_casefold.
37860         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37861         * lib/unicase/u8-casefold.c: Update.
37862         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37863         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37864
37865         Define u32_totitle as a wrapper around u32_ct_totitle.
37866         * lib/unicase/u32-totitle.c: Update.
37867         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37869
37870         Define u16_totitle as a wrapper around u16_ct_totitle.
37871         * lib/unicase/u16-totitle.c: Update.
37872         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37873         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37874
37875         Define u8_totitle as a wrapper around u8_ct_totitle.
37876         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37877         functions.
37878         (FUNC): Delegate to U_CT_TOTITLE.
37879         * lib/unicase/u8-totitle.c: Update.
37880         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37881         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37882
37883         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37884         invocation.
37885         * modules/unicase/u32-tolower (Depends-on): Add
37886         unicase/empty-prefix-context, unicase/empty-suffix-context.
37887
37888         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37889         invocation.
37890         * modules/unicase/u16-tolower (Depends-on): Add
37891         unicase/empty-prefix-context, unicase/empty-suffix-context.
37892
37893         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37894         * modules/unicase/u8-tolower (Depends-on): Add
37895         unicase/empty-prefix-context, unicase/empty-suffix-context.
37896
37897         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37898         invocation.
37899         * modules/unicase/u32-toupper (Depends-on): Add
37900         unicase/empty-prefix-context, unicase/empty-suffix-context.
37901
37902         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37903         invocation.
37904         * modules/unicase/u16-toupper (Depends-on): Add
37905         unicase/empty-prefix-context, unicase/empty-suffix-context.
37906
37907         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37908         * modules/unicase/u8-toupper (Depends-on): Add
37909         unicase/empty-prefix-context, unicase/empty-suffix-context.
37910
37911         New module 'unicase/u32-ct-casefold'.
37912         * lib/unicase/u32-ct-casefold.c: New file.
37913         * modules/unicase/u32-ct-casefold: New file.
37914
37915         New module 'unicase/u16-ct-casefold'.
37916         * lib/unicase/u16-ct-casefold.c: New file.
37917         * modules/unicase/u16-ct-casefold: New file.
37918
37919         New module 'unicase/u8-ct-casefold'.
37920         * lib/unicase/u8-ct-casefold.c: New file.
37921         * lib/unicase/u-ct-casefold.h: New file, derived from
37922         lib/unicase/u-casefold.h.
37923         * modules/unicase/u8-ct-casefold: New file.
37924
37925         New module 'unicase/u32-ct-totitle'.
37926         * lib/unicase/u32-ct-totitle.c: New file.
37927         * modules/unicase/u32-ct-totitle: New file.
37928
37929         New module 'unicase/u16-ct-totitle'.
37930         * lib/unicase/u16-ct-totitle.c: New file.
37931         * modules/unicase/u16-ct-totitle: New file.
37932
37933         New module 'unicase/u8-ct-totitle'.
37934         * lib/unicase/u8-ct-totitle.c: New file.
37935         * lib/unicase/u-ct-totitle.h: New file, derived from
37936         lib/unicase/u-totitle.h.
37937         * modules/unicase/u8-ct-totitle: New file.
37938
37939         New module 'unicase/u32-ct-tolower'.
37940         * lib/unicase/u32-ct-tolower.c: New file.
37941         * modules/unicase/u32-ct-tolower: New file.
37942
37943         New module 'unicase/u16-ct-tolower'.
37944         * lib/unicase/u16-ct-tolower.c: New file.
37945         * modules/unicase/u16-ct-tolower: New file.
37946
37947         New module 'unicase/u8-ct-tolower'.
37948         * lib/unicase/u8-ct-tolower.c: New file.
37949         * modules/unicase/u8-ct-tolower: New file.
37950
37951         New module 'unicase/u32-ct-toupper'.
37952         * lib/unicase/u32-ct-toupper.c: New file.
37953         * modules/unicase/u32-ct-toupper: New file.
37954
37955         New module 'unicase/u16-ct-toupper'.
37956         * lib/unicase/u16-ct-toupper.c: New file.
37957         * modules/unicase/u16-ct-toupper: New file.
37958
37959         New module 'unicase/u8-ct-toupper'.
37960         * lib/unicase/u8-ct-toupper.c: New file.
37961         * modules/unicase/u8-ct-toupper: New file.
37962
37963         Add context arguments to u*_casemap functions.
37964         * lib/unicase/unicasemap.h: Include unicase.h.
37965         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37966         suffix_context arguments.
37967         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37968         functions.
37969         (FUNC): Add prefix_context and suffix_context arguments. Use
37970         uc_is_cased and uc_is_case_ignorable.
37971         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37972         * lib/unicase/u16-casemap.c: Likewise.
37973         * lib/unicase/u32-casemap.c: Likewise.
37974         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37975         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37976         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37977         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37978         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37979         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37980
37981         New module 'unicase/u32-suffix-context'.
37982         * lib/unicase/u32-suffix-context.c: New file.
37983         * modules/unicase/u32-suffix-context: New file.
37984
37985         New module 'unicase/u16-suffix-context'.
37986         * lib/unicase/u16-suffix-context.c: New file.
37987         * modules/unicase/u16-suffix-context: New file.
37988
37989         New module 'unicase/u8-suffix-context'.
37990         * lib/unicase/u8-suffix-context.c: New file.
37991         * lib/unicase/u-suffix-context.h: New file.
37992         * modules/unicase/u8-suffix-context: New file.
37993
37994         New module 'unicase/empty-suffix-context'.
37995         * lib/unicase/empty-suffix-context.c: New file.
37996         * modules/unicase/empty-suffix-context: New file.
37997
37998         New module 'unicase/u32-prefix-context'.
37999         * lib/unicase/u32-prefix-context.c: New file.
38000         * modules/unicase/u32-prefix-context: New file.
38001
38002         New module 'unicase/u16-prefix-context'.
38003         * lib/unicase/u16-prefix-context.c: New file.
38004         * modules/unicase/u16-prefix-context: New file.
38005
38006         New module 'unicase/u8-prefix-context'.
38007         * lib/unicase/u8-prefix-context.c: New file.
38008         * lib/unicase/u-prefix-context.h: New file.
38009         * lib/unicase/context.h: New file.
38010         * modules/unicase/u8-prefix-context: New file.
38011
38012         New module 'unicase/empty-prefix-context'.
38013         * lib/unicase/empty-prefix-context.c: New file.
38014         * modules/unicase/empty-prefix-context: New file.
38015
38016         New module 'unicase/ignorable'.
38017         * lib/unicase/ignorable.c: New file.
38018         * modules/unicase/ignorable: New file.
38019
38020         New module 'unicase/cased'.
38021         * lib/unicase/caseprop.h: New file.
38022         * lib/unicase/cased.c: New file.
38023         * modules/unicase/cased: New file.
38024
38025         New functions for case mapping of substrings.
38026         * lib/unicase.h (casing_prefix_context_t): New type.
38027         (unicase_empty_prefix_context): New variable.
38028         (u8_casing_prefix_context, u16_casing_prefix_context,
38029         u32_casing_prefix_context, u8_casing_prefixes_context,
38030         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38031         declarations.
38032         (casing_suffix_context_t): New type.
38033         (unicase_empty_suffix_context): New variable.
38034         (u8_casing_suffix_context, u16_casing_suffix_context,
38035         u32_casing_suffix_context, u8_casing_suffixes_context,
38036         u16_casing_suffixes_context, u32_casing_suffixes_context,
38037         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38038         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38039         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38040         declarations.
38041
38042 2009-06-28  Jim Meyering  <meyering@redhat.com>
38043
38044         boostrap: indent only with spaces
38045         * build-aux/bootstrap: Indent only with spaces, never TABs.
38046
38047         bootstrap: split long lines
38048         * build-aux/bootstrap: Keep line length < 80.
38049
38050         bootstrap: sync from coreutils
38051         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38052         just as autoreconf does.  Verify a list of prerequisite
38053         package-name,version-number pairs if defined in bootstrap.conf.
38054         Refer to README-prereq, if prerequisites are not satisfied.
38055
38056 2009-06-27  Eric Blake  <ebb9@byu.net>
38057
38058         tests: add test for bogus NULL definition
38059         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38060         * tests/test-stdlib.c: Likewise.
38061         * tests/test-string.c: Likewise.
38062         * tests/test-locale.c: Likewise.
38063         * tests/test-unistd.c: Likewise.
38064         * modules/stdio-tests (Depends-on): Add verify.
38065         * modules/stdlib-tests (Depends-on): Likewise.
38066         * modules/string-tests (Depends-on): Likewise.
38067         * modules/locale-tests (Depends-on): Likewise.
38068         * modules/unistd-tests (Depends-on): Likewise.
38069
38070 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38071
38072         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38073         self-explaining comment.
38074         * m4/selinux-selinux-h: Update serial.
38075         (gl_LIBSELINUX): New macro, adding a warning for missing development
38076         packages to code extracted from...
38077         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38078         Add warning for missing development packages here, too.
38079
38080 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38081
38082         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38083
38084 2009-06-25  Eric Blake  <ebb9@byu.net>
38085
38086         version-etc: fix regression
38087         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38088         gcc.
38089         (version_etc): Use it, to catch bugs with trailing NULL.
38090         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38091         (version_etc_va): Fix logic bug.
38092         * modules/version-etc-tests: Add test.
38093         * tests/test-version-etc.c: New file.
38094         * tests/test-version-etc.sh: Likewise.
38095
38096 2009-06-25  Sam Steingold  <sds@gnu.org>
38097
38098         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38099         mbtowc declaration.
38100
38101 2009-06-25  Eric Blake  <ebb9@byu.net>
38102
38103         fpurge: migrate into <stdio.h>
38104         * lib/fpurge.h: Delete...
38105         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38106         * lib/fpurge.c (fpurge): Change declaring header.
38107         * modules/fpurge (Files): Drop deleted file.
38108         (Depends-on): Add stdio.
38109         (configure.ac): Set witness.
38110         * modules/stdio (Makefile.am): Support fpurge macros.
38111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38112         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38113         * lib/fflush.c: Update client.
38114         * tests/test-fpurge.c: Likewise.
38115         * NEWS: Mention the change.
38116
38117 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38118
38119         * lib/argp-version-etc.c (program_authors): Add const
38120         qualifier.
38121         * lib/version-etc.c: Fix typos in the comments.
38122         * modules/argp-version-etc: Depends on version-etc.
38123
38124 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38125
38126         argp-version-etc: new module.
38127
38128         * lib/argp-version-etc.c: New file.
38129         * lib/argp-version-etc.h: New file.
38130         * modules/argp-version-etc: New file.
38131         * modules/argp-version-etc-tests: New file.
38132         * tests/test-argp-version-etc.c: New test.
38133         * tests/test-argp-version-etc-1.sh: New test.
38134
38135 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38136
38137         Provide additional interfaces and documentation for version-etc
38138         module.
38139
38140         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38141         interfaces.
38142         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38143         prototypes.
38144
38145 2009-06-24  Bruno Haible  <bruno@clisp.org>
38146
38147         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38148         HAVE_LIB${NAME} macro.
38149         Reported by Sam Steingold <sds@gnu.org>.
38150
38151 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38152
38153         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38154         needed.
38155
38156 2009-06-21  Bruno Haible  <bruno@clisp.org>
38157
38158         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38159         work.
38160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38161         together with LIB${NAME}, LTLIB${NAME}.
38162         Reported by Sam Steingold <sds@gnu.org>.
38163
38164 2009-06-20  Jim Meyering  <meyering@redhat.com>
38165
38166         tests: make sc_require_test_exit_idiom more generic
38167         * top/maint.mk (Exit_witness_file): New overridable variable.
38168         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38169         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38170
38171 2009-06-19  Jim Meyering  <meyering@redhat.com>
38172
38173         hash: reverse order of src/dst parameters in an internal interface
38174         * lib/hash.c (transfer_entries): Reverse order of parameters to
38175         put DST before SRC.  Adjust callers.
38176
38177         tests: test-hash: avoid wholesale duplication
38178         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38179         Instead, use a loop and add a single conditional.
38180
38181         tests: test-hash: allow seed selection via a command line argument
38182         * tests/test-hash.c (get_seed): New function.
38183         (main): Use it.
38184
38185 2009-06-19  Eric Blake  <ebb9@byu.net>
38186
38187         hash: avoid memory leak on allocation failure
38188         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38189         failure.  Factor repeated algorithm...
38190         (transfer_entries): ...into new helper routine.
38191         (hash_delete): React to hash_rehash return value.
38192
38193         hash: reduce memory pressure in hash_rehash no-op case
38194         * lib/hash.c (next_prime): Avoid overflow.
38195         (hash_initialize): Factor bucket size computation...
38196         (compute_bucket_size): ...into new helper function.
38197         (hash_rehash): Use new function and open coding to reduce memory
38198         pressure, and avoid a memory leak in USE_OBSTACK code.
38199         Reported by Jim Meyering.
38200
38201 2009-06-18  Eric Blake  <ebb9@byu.net>
38202
38203         hash: make rotation more obvious
38204         * modules/hash (Depends-on): Add bitrotate and stdint.
38205         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38206         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38207         (SIZE_MAX): Rely on headers for definition.
38208         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38209         (raw_hasher): Use rotr_sz.
38210         Suggested by Jim Meyering.
38211
38212         hash: fix memory leak in last patch
38213         * lib/hash.c (hash_rehash): Avoid memory leak.
38214
38215         hash: avoid no-op rehashing
38216         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38217
38218         hash: provide default callback functions
38219         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38220         (hash_initialize): Use them as defaults.
38221         * tests/test-hash.c (main): Test this.
38222
38223         hash: minor optimization
38224         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38225         when possible.
38226         (hash_initialize): Document this promise.
38227         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38228         * tests/test-hash.c (hash_compare_strings): Test this.
38229
38230 2009-06-18  Bruno Haible  <bruno@clisp.org>
38231
38232         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38233         going to be replaced anyway.
38234
38235 2009-06-18  Bruno Haible  <bruno@clisp.org>
38236
38237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38238         in one place.
38239         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38240         be replaced anyway.
38241
38242 2009-06-18  Eric Blake  <ebb9@byu.net>
38243
38244         hash: check for resize before insertion
38245         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38246         threshold before insertion, so that a pathological hash_rehash
38247         that fills every bucket can still trigger another rehash.
38248
38249 2009-06-18  Jim Meyering  <meyering@redhat.com>
38250
38251         hash-tests: add a loop around the small tests
38252         * tests/test-hash.c (main): Repeat small tests with selected
38253         small initial table sizes.
38254
38255 2009-06-17  Eric Blake  <ebb9@byu.net>
38256
38257         hash: minor cleanups
38258         * lib/hash.h (hash_entry): Make opaque, by moving...
38259         * lib/hash.c (hash_entry): ...here.
38260         (hash_insert): Clarify restrictions on what can be inserted.
38261         (hash_get_next): Clarify when it is safe to remove an element
38262         during traversal.
38263         (check_tuning): Skip verification when tuning is known safe.
38264         (hash_initialize): Clarify restrictions on tuning.
38265
38266 2009-06-17  Jim Meyering  <jim@meyering.net>
38267         and Eric Blake  <ebb9@byu.net>
38268
38269         hash-tests: new module
38270         * modules/hash-tests: New file.
38271         * tests/test-hash.c: New file.
38272
38273 2009-06-17  Eric Blake  <ebb9@byu.net>
38274
38275         strstr-simple: document new module
38276         * MODULES.html.sh: Document new module.
38277
38278         strstr, strcasestr: replace on platforms with broken memchr
38279         * modules/strstr: Split into...
38280         * modules/strstr-simple: ...new module that does not care about
38281         performance, but does care about glibc bug.
38282         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38283         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38284         if platform memchr is broken, per Debian bug 521737.
38285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38286         memchr.
38287         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38288         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38289         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38290         * modules/mountlist (Depends-on): Add strstr-simple.
38291         * modules/gen-uni-tables (Depends-on): Likewise.
38292         * modules/argz (Depends-on): Add strstr.
38293
38294 2009-06-17  Bruno Haible  <bruno@clisp.org>
38295
38296         * modules/posix_spawn-internal (Depends-on): Add errno.
38297
38298 2009-06-17  Bruno Haible  <bruno@clisp.org>
38299
38300         Define missing ESTALE on Interix 3.5.
38301         * lib/errno.in.h (ESTALE): Assign a value if missing.
38302         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38303         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38304         missing.
38305         * doc/posix-headers/errno.texi: Mention the Interix bug.
38306         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38307
38308 2009-06-15  Eric Blake  <ebb9@byu.net>
38309
38310         memchr, memchr2: add valgrind exception
38311         * lib/memchr.valgrind: New file.
38312         * lib/memchr2.valgrind: New file.
38313         * modules/memchr (Files): Distribute valgrind file.
38314         * modules/memchr2 (Files): Likewise.
38315
38316         docs: memchr is no longer obsolete
38317         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38318         * lib/string.in.h (memchr): Simplify logic.
38319
38320 2009-06-14  Jim Meyering  <meyering@redhat.com>
38321
38322         link-follow: fix the "checking..." message to not mention trailing slash
38323         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38324         never considered trailing slashes.
38325
38326 2009-06-14  Bruno Haible  <bruno@clisp.org>
38327
38328         * m4/memchr.m4: Mention also the bug on IA-64.
38329         * doc/posix-functions/memchr.texi: Likewise.
38330
38331 2009-06-12  Eric Blake  <ebb9@byu.net>
38332
38333         memchr: detect broken x86_64 and alpha implementations
38334         * modules/memchr-tests (Depends-on): Move mmap detection...
38335         * modules/memchr (Depends-on): ...here.
38336         (configure.ac): Set indicator.
38337         * lib/string.in.h (memchr): Declare replacement.
38338         * modules/string (Makefile.am): Trigger replacement.
38339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38340         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38341         bugs.
38342         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38343         * modules/getpagesize (License): Relax license.
38344
38345 2009-06-11  Bruno Haible  <bruno@clisp.org>
38346
38347         * lib/idpriv.h: Add more references.
38348
38349 2009-06-08  Bruno Haible  <bruno@clisp.org>
38350
38351         Tests for module 'idpriv-droptemp'.
38352         * modules/idpriv-droptemp-tests: New file.
38353         * tests/test-idpriv-droptemp.sh: New file.
38354         * tests/test-idpriv-droptemp.su.sh: New file.
38355         * tests/test-idpriv-droptemp.c: New file.
38356
38357         New module 'idpriv-droptemp'.
38358         * lib/idpriv-droptemp.c: New file.
38359         * modules/idpriv-droptemp: New file.
38360
38361 2009-06-08  Bruno Haible  <bruno@clisp.org>
38362
38363         Tests for module 'idpriv-drop'.
38364         * modules/idpriv-drop-tests: New file.
38365         * tests/test-idpriv-drop.sh: New file.
38366         * tests/test-idpriv-drop.su.sh: New file.
38367         * tests/test-idpriv-drop.c: New file.
38368
38369         New module 'idpriv-drop'.
38370         * lib/idpriv.h: New file.
38371         * lib-idpriv-drop.c: New file.
38372         * m4/idpriv.m4: New file.
38373         * modules/idpriv-drop: New file.
38374
38375 2009-06-08  Bruno Haible  <bruno@clisp.org>
38376
38377         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38378         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38379         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38380         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38381         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38382         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38383         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38384
38385 2009-06-08  Eric Blake  <ebb9@byu.net>
38386
38387         test-strstr: use memory fence, when possible
38388         * tests/test-strstr.c (main): Use memory fence, in order to be
38389         more likely to trigger Debian bug 521737.
38390         * modules/strstr-tests (Files): Pull in additional files.
38391
38392         memchr: no longer obsolete, for wider field testing
38393         * modules/memchr (Status, Notice): Delete, this module is no
38394         longer obsolete.
38395         * modules/vasnprintf (Depends-on): Add memchr.
38396
38397 2009-06-07  Jim Meyering  <meyering@redhat.com>
38398
38399         hash: declare some functions with the warn_unused_result attribute
38400         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38401
38402 2009-06-07  Bruno Haible  <bruno@clisp.org>
38403
38404         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38405         Reported by Eric Blake.
38406
38407 2009-06-06  Eric Blake  <ebb9@byu.net>
38408
38409         test-alignof: fix typo with long double
38410         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38411         compiler error.
38412
38413 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38414
38415         Escape non-texinfo { and }s.
38416         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38417         markup error.
38418
38419 2009-06-04  Jim Meyering  <meyering@redhat.com>
38420
38421         gitlog-to-changelog: don't infloop on an empty commit log
38422         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38423         Reported by Boris Petersen <transacid@centerim.org>.
38424
38425 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38426
38427         version-etc: extend for packagers
38428         Add three new configure options, intended for packagers:
38429           --with-packager="packager name"
38430           --with-packager-version="packager-specific version"
38431           --with-packager-bug-reports="packager bug reporting"
38432         An example with coreutils:
38433           $ ./configure \
38434             --with-packager=Gentoo \
38435             --with-packager-bug-report=http://bugs.gentoo.org/ \
38436             --with-packager-version="patchset 1.6"
38437           $ ./src/ls --version | head -n2
38438           ls (GNU coreutils) 7.1-dirty
38439           Packaged by Gentoo (patchset 1.6)
38440         Note that the bug reporting info via --help doesn't show up because
38441         coreutils uses its own custom emit_bug_reporting_address() implementation
38442         in src/system.h.  If it didn't, it'd look like:
38443           $ ./src/ls --help | tail -n4
38444           Report bugs to <bug-coreutils@gnu.org>.
38445           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38446           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38447           General help using GNU software: <http://www.gnu.org/gethelp/>.
38448         * lib/version-etc.c: Print new information, if provided.
38449         * m4/version-etc.m4: New file.
38450         * modules/version-etc (Files): Add m4/version-etc.m4.
38451         (configure.ac): Add gl_VERSION_ETC.
38452
38453 2009-05-31  Bruno Haible  <bruno@clisp.org>
38454
38455         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38456         and 'int64_t'.
38457         * modules/alignof-tests (Dependencies): Add stdint.
38458         Reported by Eric Blake.
38459
38460 2009-05-31  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38463         restriction due to compiler bugs.
38464         Reported by Eric Blake.
38465
38466 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38467             Bruno Haible  <bruno@clisp.org>
38468
38469         Fix test-alignof failure.
38470         * lib/alignof.h (alignof_slot): New macro.
38471         (alignof_type): New macro, with the same semantics as the previous
38472         'alignof'.
38473         (alignof): Alias to alignof_slot.
38474         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38475         check that the results are usable as constant expressions.
38476
38477 2009-05-31  Bruno Haible  <bruno@clisp.org>
38478
38479         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38480         * tests/test-memchr.c (main): Check that memchr does not read past the
38481         first occurrence of the byte.
38482         * tests/test-strstr.c (main): Update comment.
38483         Suggested by Eric Blake.
38484
38485 2009-05-30  Bruno Haible  <bruno@clisp.org>
38486
38487         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38488         detail how to use dumpbin.
38489         Reported by David Byron <dbyron@dbyron.com>.
38490
38491 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38492
38493         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38494
38495 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38496
38497         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38498
38499 2009-05-28  Bruno Haible  <bruno@clisp.org>
38500
38501         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38502         build-aux/ files.
38503
38504 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38505
38506         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38507
38508 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38509
38510         * gnulib-tool (sed_transform_main_lib_file)
38511         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38512         regexps.
38513
38514 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38515
38516         * tests/test-strstr.c: Add another self-test.
38517         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38518         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38519
38520 2009-05-23  Bruno Haible  <bruno@clisp.org>
38521
38522         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38523         change.
38524
38525 2009-05-21  Bruno Haible  <bruno@clisp.org>
38526
38527         Simplify use of mode_t varargs.
38528         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38529         uses 'mode_t' or 'int'.
38530         * lib/openat.c (openat): Likewise.
38531         * lib/open-safer.c (open_safer): Likewise.
38532         * m4/mode_t.m4: New file.
38533         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38534         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38535         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38536         * modules/open (Files): Add m4/mode_t.m4.
38537         * modules/openat (Files): Likewise.
38538         * modules/fcntl-safer (Files): Likewise.
38539         Suggested by Eric Blake.
38540
38541 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38542
38543         * doc/glibc-functions/fallocate.texi: New file.
38544         * doc/gnulib.texi: Include it.
38545
38546 2009-05-21  Eric Blake  <ebb9@byu.net>
38547             Bruno Haible  <bruno@clisp.org>
38548
38549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38550         invocations.
38551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38552
38553 2009-05-21  Eric Blake  <ebb9@byu.net>
38554             Bruno Haible  <bruno@clisp.org>
38555
38556         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38557         include_next. Fix of 2008-11-20 commit.
38558         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38559         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38560         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38561         NEXT_MATH_H.
38562         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38563         instead of NEXT_MATH_H.
38564
38565 2009-05-21  Bruno Haible  <bruno@clisp.org>
38566
38567         Avoid redefinition warnings for SIZE_MAX.
38568         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38569         Reported by Simon Josefsson.
38570
38571 2009-05-21  Bruno Haible  <bruno@clisp.org>
38572
38573         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38574         AC_CACHE_VAL.
38575
38576 2009-05-20  Bruno Haible  <bruno@clisp.org>
38577
38578         Make zeroptr.h work on mingw.
38579         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38580         mprotect.
38581         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38582         * modules/memchr2-tests (configure.ac): Likewise.
38583         * modules/memcmp-tests (configure.ac): Likewise.
38584         * modules/memmem-tests (configure.ac): Likewise.
38585         * modules/memrchr-tests (configure.ac): Likewise.
38586         Reported by Simon Josefsson.
38587
38588 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38589
38590         * tests/test-glob.c: Include string.h for strcmp prototype.
38591
38592 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38593
38594         * modules/getdelim (Depends-on): Add explicit stdint, although it
38595         was implicitly already pulled in via realloc-posix.
38596         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38597
38598 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38599
38600         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38601         G. Christensen" <tgc@jupiterrise.com>.
38602         * m4/sys_socket_h.m4: Check for sa_family_t.
38603         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38604         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38605         * tests/test-sys_socket.c: Check that sa_family_t works.
38606
38607 2009-05-18  Eric Blake  <ebb9@byu.net>
38608
38609         maint.mk: allow gnulib_dir in VPATH build
38610         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38611
38612 2009-05-15  Jim Meyering  <meyering@redhat.com>
38613
38614         maint.mk: Give gnulib_dir a default definition.
38615         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38616         Thus, most packages no longer need to specify this variable in cfg.mk
38617
38618 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38619
38620         rename.m4: fix typos that would make non-mingw cross-configure fail
38621         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38622
38623 2009-05-13  Eric Blake  <ebb9@byu.net>
38624
38625         mmap-anon: avoid out-of-order autoconf expansion
38626         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38627         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38628         * modules/memchr-tests (Depends-on): Add extensions.
38629         * modules/memchr2-tests (Depends-on): Add extensions.
38630         * modules/memcmp-tests (Depends-on): Add extensions.
38631         * modules/memmem-tests (Depends-on): Add extensions.
38632         * modules/memrchr-tests (Depends-on): Add extensions.
38633
38634 2009-05-13  Bruno Haible  <bruno@clisp.org>
38635
38636         Make some tests ISO C 99 compliant.
38637         * tests/zerosize-ptr.h: New file.
38638         * tests/test-memchr.c: Include zerosize-ptr.h.
38639         (main): Use a zero-size object pointer instead of NULL.
38640         * tests/test-memchr2.c: Include zerosize-ptr.h.
38641         (main): Use a zero-size object pointer instead of NULL.
38642         * tests/test-memcmp.c: Include zerosize-ptr.h.
38643         (main): Use a zero-size object pointer instead of NULL.
38644         * tests/test-memmem.c: Include zerosize-ptr.h.
38645         (main): Use a zero-size object pointer instead of NULL.
38646         * tests/test-memrchr.c: Include zerosize-ptr.h.
38647         (main): Use a zero-size object pointer instead of NULL.
38648         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38649         m4/mmap-anon.m4.
38650         (Depends-on): Add getpagesize.
38651         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38652         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38653         m4/mmap-anon.m4.
38654         (Depends-on): Add getpagesize.
38655         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38656         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38657         m4/mmap-anon.m4.
38658         (Depends-on): Add getpagesize.
38659         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38660         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38661         m4/mmap-anon.m4.
38662         (Depends-on): Add getpagesize.
38663         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38664         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38665         m4/mmap-anon.m4.
38666         (Depends-on): Add getpagesize.
38667         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38668
38669 2009-05-12  Bruno Haible  <bruno@clisp.org>
38670
38671         Tests for module 'alignof'.
38672         * modules/alignof-tests: New file.
38673         * tests/test-alignof.c: New file.
38674
38675 2009-05-12  Bruno Haible  <bruno@clisp.org>
38676
38677         Fix alignof macro.
38678         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38679         vendor compilers that are always correct.
38680
38681 2009-05-12  Bruno Haible  <bruno@clisp.org>
38682
38683         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38684         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38685         not whether its fully works.
38686
38687 2009-05-12  Bruno Haible  <bruno@clisp.org>
38688
38689         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38690
38691 2009-05-12  Jim Meyering  <meyering@redhat.com>
38692
38693         * top/maint.mk: Adjust backslash alignment.
38694
38695 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38696
38697         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38698
38699 2009-05-11  Eric Blake  <ebb9@byu.net>
38700
38701         argp: avoid undefined behavior
38702         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38703         macros.
38704
38705 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38706
38707         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38708         user.name to prevent git commit from complaining.
38709
38710 2009-05-10  Bruno Haible  <bruno@clisp.org>
38711
38712         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38713         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38714         it rewrites every file name only once.
38715         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38716
38717 2009-05-08  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38720         instead of 'max'.
38721
38722 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38723
38724         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38725         sockaddr_storage test.
38726
38727 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38728
38729         * modules/sys_socket (Makefile.am): Substitute
38730         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38731         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38732         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38733         * tests/test-sys_socket.c: Check sockaddr_storage.
38734
38735 2009-05-08  Bruno Haible  <bruno@clisp.org>
38736
38737         New module 'alignof'.
38738         * lib/alignof.h: New file.
38739         * modules/alignof: New file.
38740
38741 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38742             Bruno Haible  <bruno@clisp.org>
38743
38744         Fix test-file-has-acl on FreeBSD.
38745         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38746         mask is implicitly added.
38747         * tests/test-file-has-acl.c: Include <signal.h>.
38748         (main): Terminate the test after 5 seconds.
38749         * modules/acl-tests (configure.ac): Check for alarm function.
38750
38751 2009-05-04  Bruno Haible  <bruno@clisp.org>
38752
38753         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38755         * modules/errno (configure.ac): Drop AC_REQUIRE.
38756         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38757         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38758
38759 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38760
38761         * modules/glob-tests: New module.
38762         * tests/test-glob.c: Add.
38763
38764 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38765
38766         * modules/fnmatch-tests: New module.
38767         * tests/test-fnmatch.c: Add.
38768
38769 2009-05-04  Eric Blake  <ebb9@byu.net>
38770
38771         maint: make the new no-submodule-changes rule VPATH-safe
38772         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38773
38774 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38775             Bruno Haible  <bruno@clisp.org>
38776
38777         acl: Fix infinite loop on FreeBSD.
38778         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38779         of return value from acl_get_entry.
38780         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38781         Likewise.
38782
38783 2009-05-03  Bruno Haible  <bruno@clisp.org>
38784
38785         * lib/acl-internal.h (acl_entries): Clarify return value.
38786         * lib/acl_entries.c (acl_entries): Likewise.
38787
38788 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38789
38790         Bug fix in acl module.
38791         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38792
38793 2009-05-03  Bruno Haible  <bruno@clisp.org>
38794
38795         Create gperf-generated file in the source dir, not in the build dir.
38796         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38797         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38798         * modules/unicase/locale-language (unicase/locale-languages.h):
38799         Likewise.
38800         * modules/unicase/special-casing (unicase/special-casing-table.h):
38801         Likewise.
38802         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38803         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38804         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38805         Reported by Ralf Wildenhues.
38806
38807 2009-05-03  Bruno Haible  <bruno@clisp.org>
38808
38809         * modules/fnmatch (Description, configure.ac): Taken from
38810         fnmatch-posix.
38811         * modules/fnmatch-posix: Turn into a symbolic reference to the
38812         'fnmatch' module, and deprecate.
38813         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38814
38815 2009-05-03  Bruno Haible  <bruno@clisp.org>
38816
38817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38818         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38819         Reported by Ralf Wildenhues.
38820
38821 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38822
38823         * m4/fnmatch.m4: Fix fnmatch re-define.
38824
38825 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38826
38827         priv-set: new module and tests; adapt write-any-file
38828         * lib/priv-set.c: New file.
38829         * lib/priv-set.h: New file.
38830         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38831         * lib/write-any-file.c: Simplify by using priv-set module.
38832         * m4/priv-set.m4: New file.
38833         * modules/priv-set: New file.
38834         * modules/unlinkdir: Add dependency on priv-set module.
38835         * modules/write-any-file: Likewise.
38836
38837         Tests for module 'priv-set'.
38838         * modules/priv-set-tests: New file.
38839         * tests/test-priv-set.c: New file.
38840
38841 2009-05-03  Jim Meyering  <meyering@redhat.com>
38842             Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38845         use the converted UTF-8 variant of the name instead.
38846
38847 2009-05-03  Jim Meyering  <meyering@redhat.com>
38848
38849         tests: tighten some getdate tests
38850         * tests/test-getdate.c (main): Tighten tests: require equality,
38851         not just greater than.  Set TZ envvar to UTC0.
38852
38853 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38854
38855         getdate: correctly interpret "next monday" when run on a Monday
38856         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38857         that e.g., "next tues" (when run on a tuesday) results in a date
38858         that is one week in the future, and not today's date.
38859         I.e., add a week when the wday is the same as the current one.
38860         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38861         and earlier by Martin Bernreuther and Jan Minář.
38862         * tests/test-getdate.c (main): Check that "next DAY" is always in
38863         the future and that "last DAY" is always in the past.
38864
38865 2009-05-02  Jim Meyering  <meyering@redhat.com>
38866
38867         build: ensure that a release build fails when a submodule is unclean
38868         * top/maint.mk (no-submodule-changes): New rule.
38869         (alpha beta major): Depend on it.
38870
38871 2009-05-02  Bruno Haible  <bruno@clisp.org>
38872
38873         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38874         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38875         shell variable gl_fnmatch_required to detect which variant is
38876         requested.
38877         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38878         gl_FUNC_FNMATCH_POSIX.
38879         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38880         exclude fnmatch-posix.
38881
38882 2009-05-02  Bruno Haible  <bruno@clisp.org>
38883
38884         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38885         * modules/mbsrtowcs (License): Change to LGPLv2+.
38886         * modules/strnlen1 (License): Likewise.
38887         Reported by Simon Josefsson.
38888
38889 2009-05-02  Bruno Haible  <bruno@clisp.org>
38890
38891         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38892         "cross".
38893         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38894         gnulib-tool was called with option --source-base=lib.
38895
38896 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38897
38898         Use automake *-local hooks without commands, for extensibility.
38899         * modules/localcharset (Makefile.am): Rename install-exec-local
38900         rule to install-exec-localcharset, and make it a prerequisite of
38901         install-exec-local.  Likewise, rename the uninstall-local rule to
38902         uninstall-localcharset, and make it a prerequisite of the former.
38903
38904 2009-05-01  Bruno Haible  <bruno@clisp.org>
38905
38906         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38907         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38908         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38910         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38911         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38912         m4/locale-zh.m4, m4/codeset.m4.
38913
38914         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38915         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38916         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38917         m4/locale-zh.m4.
38918
38919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38920         REPLACE_WCRTOMB if mbstate_t must be replaced.
38921         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38922         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38923
38924 2009-05-01  Bruno Haible  <bruno@clisp.org>
38925
38926         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38927         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38928         dngettext, dcngettext, textdomain, bindtextdomain,
38929         bind_textdomain_codeset): Undefine before redefining.
38930
38931 2009-04-30  Bruno Haible  <bruno@clisp.org>
38932
38933         Fix bug introduced on 2009-04-25.
38934         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38935         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38936         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38937         is defined.
38938         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38939         is defined.
38940         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38941         is defined.
38942         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38943
38944 2009-04-28  Bruno Haible  <bruno@clisp.org>
38945
38946         Comment tweaks.
38947         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38948         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38949         * lib/unicase.h (u*_casexfrm): Likewise.
38950         Reported by Paolo Bonzini.
38951
38952 2009-04-28  Bruno Haible  <bruno@clisp.org>
38953
38954         Fix a compilation error.
38955         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38956         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38957         Reported by Jim Meyering.
38958
38959 2009-04-27  Bruno Haible  <bruno@clisp.org>
38960
38961         New module 'libunistring'.
38962         * modules/libunistring: New file.
38963         * m4/libunistring.m4: New file.
38964         * MODULES.html.sh (Unicode string functions): Add it.
38965
38966 2009-04-27  Eric Blake  <ebb9@byu.net>
38967
38968         maint.mk: allow package-specific header to provide <config.h>
38969         * top/maint.mk (sc_require_config_h): New variable.
38970         (sc_require_config_h, sc_require_config_h_first): Use it.
38971
38972 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38973
38974         * top/maint.mk (sc_avoid_if_before_free): Except
38975         useless-if-before-free script.
38976
38977 2009-04-27  Eric Blake  <ebb9@byu.net>
38978
38979         maintainer-makefile: depend on all required helper scripts
38980         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38981         useless-if-before-free.
38982         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38983         version, rather than assuming gnulib checkout is available.
38984         Reported by Simen Josefsson.
38985
38986 2009-04-26  Bruno Haible  <bruno@clisp.org>
38987
38988         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38989         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38990         "../" or "..".
38991
38992 2009-04-26  Bruno Haible  <bruno@clisp.org>
38993
38994         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38995         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38996         AC_LIB_HAVE_LINKFLAGS.
38997
38998 2009-04-26  Bruno Haible  <bruno@clisp.org>
38999
39000         Simplify calling convention of u*_conv_from_encoding.
39001         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39002         u32_conv_from_encoding): Expect a resultbuf argument and return the
39003         result directly as a pointer.
39004         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39005         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39006         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39007         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39008         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39009         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39010         Update.
39011         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39012         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39013         * lib/vasnprintf.c (VASNPRINTF): Update.
39014         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39015         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39016         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39017         * NEWS: Mention the change.
39018
39019 2009-04-26  Bruno Haible  <bruno@clisp.org>
39020
39021         Simplify calling convention of u*_conv_to_encoding.
39022         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39023         u32_conv_to_encoding): Expect a resultbuf argument and return the
39024         result directly as a pointer.
39025         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39026         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39027         freeing scaled_offsets if mem_iconveha failed.
39028         * lib/unicase/u-casexfrm.h (FUNC): Update.
39029         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39030         * lib/vasnprintf.c (VASNPRINTF): Update.
39031         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39032         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39033         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39034         * NEWS: Mention the change.
39035
39036 2009-04-26  Bruno Haible  <bruno@clisp.org>
39037
39038         Avoid test failures on AIX and OSF/1.
39039         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39040         malloc(0).
39041         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39042         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39043         Likewise.
39044         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39045         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39046         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39047         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39048         * doc/posix-functions/malloc.texi: Document the portability problem
39049         related to malloc(0).
39050
39051 2009-04-26  Bruno Haible  <bruno@clisp.org>
39052
39053         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39054         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39055         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39056
39057 2009-04-25  Bruno Haible  <bruno@clisp.org>
39058
39059         Avoid link error when creating a namespace clean library.
39060         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39061         as macro with arguments if already defined as an alias.
39062         * lib/signbitf.c (gl_signbitf): Don't undefine.
39063         * lib/signbitd.c (gl_signbitd): Don't undefine.
39064         * lib/signbitl.c (gl_signbitl): Don't undefine.
39065
39066 2009-04-25  Jim Meyering  <meyering@redhat.com>
39067
39068         vc-list-files: fix another quoting bug
39069         * build-aux/vc-list-files: Avoid sed backslash expansion
39070         of pathological directory names.
39071
39072 2009-04-25  Eric Blake  <ebb9@byu.net>
39073
39074         vc-list-files: fix shell quoting error
39075         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39076         timestamp.
39077
39078 2009-04-25  Jim Meyering  <meyering@redhat.com>
39079
39080         vc-list-files: restore lost functionality with subdir argument
39081         * build-aux/vc-list-files: When given a non-"." sub-directory
39082         argument, substitute the $dir/ prefix back onto each resulting name.
39083         Otherwise, coreutils' root_tests check would fail.
39084
39085 2009-04-24  Eric Blake  <ebb9@byu.net>
39086
39087         vc-list-files: ignore git symlinks
39088         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39089         than ls-files, to ignore git symlinks.
39090
39091         maint.mk: import improvements from m4
39092         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39093         (move_if_change): Delete unused macro.
39094         (news-date-check, vc-diff-check): Support VPATH builds.
39095         (announcement): Likewise.  Split --bootstrap-tools list...
39096         (boostrap-tools): ...into separate list, which can be overridden
39097         in cfg.mk.
39098         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39099         requiring dependency on useless-if-before-free module.
39100         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39101         Support VPATH builds.
39102
39103 2009-04-24  Jim Meyering  <meyering@redhat.com>
39104
39105         maint.mk: remove coreutils-specific rules and variables
39106         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39107         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39108         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39109
39110         maint.mk: remove obsolete rule
39111         * top/maint.mk (rel-check): Remove rule.
39112         (WGET, WGETFLAGS): Remove now-unused variables.
39113
39114 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39115
39116         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39117         consistency.
39118
39119         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39120         '$(PATH_SEPARATOR)' instead of ':'.
39121
39122 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39123
39124         * lib/getopt1.c (main): Use 'const' for static array.
39125
39126 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39127
39128         * top/maint.mk: Sync with coreutils.
39129         * NEWS: Explain incompatibilities.
39130
39131 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39132             Bruno Haible  <bruno@clisp.org>
39133
39134         Fix cross-compilation results.
39135         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39136         statement, as third argument of AC_TRY_RUN.
39137         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39138         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39139         Likewise.
39140         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39141         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39142         Likewise.
39143         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39145         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39146
39147 2009-04-20  Bruno Haible  <bruno@clisp.org>
39148
39149         Avoid test failure on mingw.
39150         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39151
39152 2009-04-20  Bruno Haible  <bruno@clisp.org>
39153
39154         Avoid compilation error on mingw.
39155         * modules/localename-tests (Depends-on): Add locale.
39156
39157 2009-04-19  Bruno Haible  <bruno@clisp.org>
39158
39159         Support for building a shared library on Windows platforms.
39160         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39161         (main): Test the presence of UNINORM_NFC here.
39162         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39163         (main): Test the presence of UNINORM_NFD here.
39164         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39165         (main): Test the presence of UNINORM_NFKC here.
39166         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39167         (main): Test the presence of UNINORM_NFKD here.
39168
39169 2009-04-19  Bruno Haible  <bruno@clisp.org>
39170
39171         Avoid a compiler warning.
39172         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39173         Change type of variable 'sequence'.
39174
39175 2009-04-19  Bruno Haible  <bruno@clisp.org>
39176
39177         * modules/configmake (Makefile.am): When the contents of configmake.h
39178         does not change, arrange to preserve its modification time.
39179
39180 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39181
39182         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39183         gettext domain.
39184
39185 2009-04-16  Jim Meyering  <meyering@redhat.com>
39186
39187         useless-if-before-free: improve conversion code
39188         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39189         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39190
39191 2009-04-14  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/fcntl (Depends-on): Add extensions.
39194         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39195
39196 2009-04-12  Ben Pfaff  <blp@gnu.org>
39197
39198         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39199         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39200
39201 2009-03-20  Ben Pfaff  <blp@gnu.org>
39202
39203         Make rename replace existing destinations on Windows.
39204         * m4/rename.m4: Add test for Mingw.
39205         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39206         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39207         * doc/posix-functions/rename.texi: Document.
39208
39209 2009-04-10  Bruno Haible  <bruno@clisp.org>
39210
39211         New include file "iconveh.h".
39212         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39213         * lib/striconveh.h: Include it.
39214         (enum iconv_ilseq_handler): Remove definition.
39215         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39216         striconveh.h.
39217         * lib/striconveha.c: Include striconveh.h.
39218         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39219         * modules/striconveh (Files): Add lib/iconveh.h.
39220         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39221         lib/striconveh.h.
39222
39223 2009-04-10  Bruno Haible  <bruno@clisp.org>
39224
39225         * lib/uniconv.h: Update comment.
39226
39227 2009-04-10  Bruno Haible  <bruno@clisp.org>
39228
39229         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39230         always.
39231         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39232         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39233         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39234         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39235         "unistring-notinline.h", so that the function gets defined always.
39236         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39237         * lib/unistr/u8-uctomb.c: Likewise.
39238         * lib/unistr/u16-mbtouc.c: Likewise.
39239         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39240         * lib/unistr/u16-uctomb.c: Likewise.
39241         * lib/unistr/u32-mbtouc.c: Likewise.
39242         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39243         * lib/unistr/u32-uctomb.c: Likewise.
39244
39245 2009-04-10  Bruno Haible  <bruno@clisp.org>
39246
39247         Mark 'utime' obsolete.
39248         * modules/utime (Status, Notice): New sections.
39249         Suggested by Jim Meyering.
39250
39251         Fix cross-compile guess for utime test.
39252         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39253         autoconf.
39254         * doc/posix-functions/utime.texi: Give more precisions.
39255         Reported by Jan <ipif@ymail.com>.
39256
39257 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39258
39259         filevercmp: correct today's change
39260         * lib/filevercmp.c: Also handle coreutils' test inputs.
39261         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39262
39263         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39264         for reporting it.
39265         * lib/filevercmp.c: Special handle for "", "." and "..".
39266         * tests/test-filevercmp.c: Enlarge the set suite.
39267
39268 2009-04-07  Jim Meyering  <meyering@redhat.com>
39269
39270         useless-if-before-free: show how to remove braced useless free, too
39271         * build-aux/useless-if-before-free: still only in a comment, though.
39272
39273 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39274
39275         maint.mk: import changes to syntax-check macros from coreutils
39276         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39277         Use them in the relevant macros.
39278
39279 2009-04-06  Bruno Haible  <bruno@clisp.org>
39280
39281         Fix unportable use of bit-fields.
39282         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39283         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39284         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39285
39286 2009-04-06  Bruno Haible  <bruno@clisp.org>
39287
39288         Avoid test failures on AIX and OSF/1.
39289         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39290         that malloc(0) = NULL.
39291         * tests/unicase/test-u8-tolower.c (check): Likewise.
39292         * tests/unicase/test-u8-totitle.c (check): Likewise.
39293         * tests/unicase/test-u8-toupper.c (check): Likewise.
39294         * tests/unicase/test-u16-casefold.c (check): Likewise.
39295         * tests/unicase/test-u16-tolower.c (check): Likewise.
39296         * tests/unicase/test-u16-totitle.c (check): Likewise.
39297         * tests/unicase/test-u16-toupper.c (check): Likewise.
39298         * tests/unicase/test-u32-casefold.c (check): Likewise.
39299         * tests/unicase/test-u32-tolower.c (check): Likewise.
39300         * tests/unicase/test-u32-totitle.c (check): Likewise.
39301         * tests/unicase/test-u32-toupper.c (check): Likewise.
39302         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39303         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39304         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39305         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39306         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39307         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39308         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39309         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39310         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39311         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39312         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39313         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39314
39315 2009-04-05  Bruno Haible  <bruno@clisp.org>
39316
39317         Work around an autoconf limitation.
39318         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39319         comment line if it would be longer than 3 KB.
39320
39321 2009-04-05  Bruno Haible  <bruno@clisp.org>
39322
39323         Avoid test failure with libiconv-1.13.
39324         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39325         of the expected test results.
39326
39327 2009-04-05  Bruno Haible  <bruno@clisp.org>
39328
39329         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39330         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39331         that it should be installed.
39332
39333 2009-04-05  Bruno Haible  <bruno@clisp.org>
39334
39335         * gnulib-tool: New option --copy-file.
39336         (func_usage): Document it.
39337         (func_dest_tmpfilename): Moved out of func_import.
39338         (func_add_file, func_update_file): New functions, extracted from
39339         func_import.
39340         (func_import): Update.
39341
39342 2009-04-05  Karl Berry  <karl@gnu.org>
39343
39344         * README: prominently mention gnulib-tool.
39345         Rearrange sections so getting the code is near the top.
39346
39347 2009-04-05  Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/unicase.h: Mention u*_cmp2.
39350         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39351         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39352         * lib/unicase/ulc-casecmp.c: Likewise.
39353         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39354         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39355         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39356         unistr/u8-cmp.
39357         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39358         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39359         unistr/u16-cmp.
39360         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39361         unistr/u32-cmp.
39362
39363         * lib/uninorm.h: Mention u*_cmp2.
39364         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39365         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39366         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39367         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39368         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39369         unistr/u8-cmp.
39370         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39371         unistr/u16-cmp.
39372         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39373         unistr/u32-cmp.
39374
39375         New module 'unistr/u32-cmp2'.
39376         * lib/unistr/u32-cmp2.c: New file.
39377         * modules/unistr/u32-cmp2: New file.
39378
39379         New module 'unistr/u16-cmp2'.
39380         * lib/unistr/u16-cmp2.c: New file.
39381         * modules/unistr/u16-cmp2: New file.
39382
39383         New module 'unistr/u8-cmp2'.
39384         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39385         * lib/unistr/u8-cmp2.c: New file.
39386         * lib/unistr/u-cmp2.h: New file.
39387         * modules/unistr/u8-cmp2: New file.
39388
39389 2009-04-05  Bruno Haible  <bruno@clisp.org>
39390
39391         * lib/unictype.h (uc_property_is_valid): New macro.
39392         * tests/unictype/test-pr_byname.c (main): Use it.
39393
39394         * lib/unistr.h: Doc fixes.
39395         * lib/uniconv.h: Doc fixes.
39396         * lib/unictype.h: Doc fixes.
39397
39398 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39399
39400         Port coreutils 7.2 to Solaris 8.
39401
39402         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39403         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39404         for Solaris 8.  This is a bit of a hack, as it means it's the
39405         caller's responsibility to add -lnsl if needed, but most likely it
39406         won't be needed since only getaddrinfo uses this and getaddrinfo
39407         isn't needed on Solaris 8.
39408
39409         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39410         problem to Solaris 8 encountered with coreutils 7.2, which
39411         resulted in a message "fnmatch.c:292: warning: passing argument 4
39412         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39413         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39414
39415 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39416
39417         * m4/ld-version-script.m4: Add FIXME comment.
39418
39419 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39420
39421         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39422         SOVERSION variable.
39423
39424 2009-04-02  Bruno Haible  <bruno@clisp.org>
39425
39426         * Makefile (info, html, dvi, pdf): Combine the rules.
39427         Suggested by Jim Meyering.
39428
39429 2009-04-01  Bruno Haible  <bruno@clisp.org>
39430
39431         * Makefile (info, html, dvi, pdf): New targets.
39432         Reported by Reuben Thomas <rrt@sc3d.org>.
39433
39434 2009-04-01  Bruno Haible  <bruno@clisp.org>
39435
39436         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39437         can be put into PATH.
39438         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39439
39440 2009-04-01  Bruno Haible  <bruno@clisp.org>
39441
39442         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39443
39444 2009-04-01  Bruno Haible  <bruno@clisp.org>
39445
39446         Rename module 'visibility'.
39447         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39448         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39449         * doc/gnulib.texi: Update.
39450         * MODULES.html.sh (Misc): Update.
39451         * NEWS: Mention the change.
39452
39453 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39454
39455         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39456         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39457         Eric Blake <ebb9@byu.net> for review.
39458         * MODULES.html.sh: Add lib-msvc-compat.
39459         * doc/gnulib.texi: Link to new section.
39460         * m4/ld-output-def.m4: New file.
39461         * doc/ld-output-def.texi: New file.
39462
39463 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39464
39465         Rename ld-version-script to lib-symbol-versions.  Suggested by
39466         Bruno Haible <bruno@clisp.org>.
39467         * modules/ld-version-script: Renamed to lib-symbol-versions.
39468         * doc/ld-version-script.texi: Fix module name.
39469         * MODULES.html.sh: Add lib-symbol-versions.
39470
39471 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39472
39473         * modules/u64-tests: New file.
39474         * tests/test-u64.c: New file.
39475
39476 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39477
39478         * MODULES.html.sh: Mention u64.
39479         * modules/u64: New module.
39480         * modules/crypto/sha512: Depend on u64 module instead of providing
39481         u64.h.
39482
39483 2009-03-27  Eric Blake  <ebb9@byu.net>
39484
39485         test-strerror: make debugging EAI_SYSTEM easier
39486         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39487         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39488         failure was EAI_SYSTEM.
39489
39490 2009-03-25  Bruno Haible  <bruno@clisp.org>
39491
39492         Fix a problem with --enable-relocatable on Solaris 7.
39493         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39494         since 2008-02-24.
39495
39496 2009-03-25  Eric Blake  <ebb9@byu.net>
39497
39498         test-sockets: avoid gcc warning
39499         * tests/test-sockets.c (main): Silence compiler warning.
39500
39501 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39502
39503         New modules nproc, pthread, contributed by Glen Lenker.
39504
39505         * MODULES.html.sh: Add pthread, nproc.
39506         * lib/nproc.c: New file.
39507         * lib/nproc.h: New file.
39508         * lib/pthread.in.h: New file.
39509         * m4/pthread.m4: New file.
39510         * modules/nproc: New file.
39511         * modules/pthread: New file.
39512
39513 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39514
39515         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39516         New variable.
39517
39518 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39519
39520         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39521         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39522         * tests/test-filevercmp.c: Add tests for backup suffixes.
39523
39524 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39525
39526         * modules/stdlib (Depends-on): Add stdint, needed when defining
39527         struct random_data on, for example, HP-UX 10.20.  Reported by
39528         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39529
39530 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39531
39532         * lib/readline.c (readline): Call fflush on stdout after printing
39533         prompt.
39534
39535 2009-03-20  Bruno Haible  <bruno@clisp.org>
39536
39537         Remove dependency from 'close' module to -lws2_32 on native Windows.
39538         * lib/close-hook.h: New file.
39539         * lib/close-hook.c: New file.
39540         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39541         w32sock.h.
39542         (_gl_close_fd_maybe_socket): Remove function.
39543         (rpl_close): Invoke execute_all_close_hooks instead of
39544         _gl_close_fd_maybe_socket.
39545         * lib/sockets.c: Include close-hook.h, w32sock.h.
39546         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39547         (close_sockets_hook): New variable.
39548         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39549         (gl_sockets_cleanup): Unregister it.
39550         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39551         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39552         * modules/close-hook: New file.
39553         * modules/close (Files): Remove lib/w32sock.h.
39554         (Depends-on): Add close-hook.
39555         (Link): Remove section.
39556         * modules/sockets (Files): Add lib/w32sock.h.
39557         (Depends-on): Add close-hook.
39558         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39559         invocation.
39560         * NEWS: Mention that LIB_CLOSE is gone.
39561
39562 2009-03-23  Eric Blake  <ebb9@byu.net>
39563
39564         signal-tests: test previous patch
39565         * tests/test-signal.c: New file.
39566         * modules/signal-tests: Likewise.
39567
39568         signal.h: always support 'volatile sig_atomic_t'
39569         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39570         (gl_SIGNAL_H_DEFAULTS): Add a default.
39571         * modules/signal (Makefile.am): Substitute if needed.
39572         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39573         users can blindly add volatile.
39574         * doc/posix-headers/signal.texi (signal.h): Document it.
39575         Reported by Matthew Woehlke.
39576
39577 2009-03-23  Jim Meyering  <meyering@redhat.com>
39578
39579         pathmax: PATH_MAX: use pathconf only when available
39580         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39581         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39582         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39583         This avoids a link failure in a PSP cross-compilation environment
39584         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39585
39586         * lib/vasnprintf.c (divide): Fix typo in comment.
39587
39588 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39589
39590         * gnulib-tool (func_filter_filelist): Fix comment.
39591
39592 2009-03-20  Bruno Haible  <bruno@clisp.org>
39593
39594         Make sockets.h self-contained.
39595         * lib/sockets.c: Include sockets.h first.
39596         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39597
39598 2009-03-19  Eric Blake  <ebb9@byu.net>
39599
39600         doc: mention more functions added in cygwin 1.7.0
39601         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39602         addition.
39603         * doc/posix-functions/log2f.texi: Likewise.
39604
39605 2009-03-19  Jim Meyering  <meyering@redhat.com>
39606
39607         fsusage: avoid syntax error due to statement-before-declaration
39608         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39609         after all declarations.  Reported by Matthew Woehlke in
39610         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39611
39612 2009-03-18  Eric Blake  <ebb9@byu.net>
39613
39614         build-aux/compile: sync from automake
39615         * build-aux/compile: New file, from automake.
39616         * config/srclist.txt: Mention build-aux/compile.
39617
39618 2009-03-17  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/git-merge-changelog.c: Fix typo in comment.
39621         Reported by Reuben Thomas <rrt@sc3d.org>.
39622
39623 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39624
39625         * m4/regex.m4: update and improve help for
39626         --without-included-regex.
39627
39628 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39629
39630         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39631         failure on missing include files.
39632
39633 2009-03-17  Eric Blake  <ebb9@byu.net>
39634
39635         doc: mention more functions added in cygwin 1.7.0
39636         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39637         addition.
39638         * doc/posix-functions/fwscanf.texi: Likewise.
39639         * doc/posix-functions/swprintf.texi: Likewise.
39640         * doc/posix-functions/swscanf.texi: Likewise.
39641         * doc/posix-functions/vfwprintf.texi: Likewise.
39642         * doc/posix-functions/vfwscanf.texi: Likewise.
39643         * doc/posix-functions/vswprintf.texi: Likewise.
39644         * doc/posix-functions/vswscanf.texi: Likewise.
39645         * doc/posix-functions/vwprintf.texi: Likewise.
39646         * doc/posix-functions/vwscanf.texi: Likewise.
39647         * doc/posix-functions/wcscasecmp.texi: Likewise.
39648         * doc/posix-functions/wcsdup.texi: Likewise.
39649         * doc/posix-functions/wcsftime.texi: Likewise.
39650         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39651         * doc/posix-functions/wprintf.texi: Likewise.
39652         * doc/posix-functions/wscanf.texi: Likewise.
39653         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39654
39655 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39656
39657         maint.mk: really add $(AM_MAKEFLAGS)
39658         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39659         was inadvertently omitted in the last commit.
39660         Spotted by Bruno Haible.
39661
39662         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39663         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39664         $(AM_MAKEFLAGS)' rather than plain `make'.
39665
39666         gnulib-tool: execute $MAKE not make
39667         * gnulib-tool: Default $MAKE to 'make'.
39668         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39669         than make.  Initialize $MAKE in the do-autobuild script.
39670
39671         gnulib-tool: use $MAKE not make in generated files
39672         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39673         make, in generated files.  Initialize $MAKE in the do-autobuild
39674         script.
39675
39676         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39677
39678         GNUmakefile: disable parallelism only for multiple, recursive targets
39679         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39680         additions in the Makefile.
39681         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39682         by Automake.
39683         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39684         are listed on the command line and at least one of them is
39685         listed in $(ALL_RECURSIVE_TARGETS).
39686
39687 2009-03-14  Bruno Haible  <bruno@clisp.org>
39688
39689         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39690         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39691         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39692         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39693         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39694         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39695         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39696         unistr/u8-uctomb.
39697         * modules/unistr/u8-strchr (Depends-on): Likewise.
39698         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39699         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39700         unistr/u16-uctomb.
39701         * modules/unistr/u16-strchr (Depends-on): Likewise.
39702         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39703
39704 2009-03-12  Bruno Haible  <bruno@clisp.org>
39705
39706         Work around select() bug on Interix 3.5.
39707         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39708         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39709         * m4/select.m4: New file.
39710         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39711         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39712         * modules/select (Files): Add m4/select.m4.
39713         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39714         * modules/nanosleep (Depends-on): Add select.
39715         * modules/poll (Depends-on): Likewise.
39716         * doc/posix-functions/select.texi: Mention the Interix bug.
39717         Reported by Markus Duft <mduft@gentoo.org>.
39718
39719         * lib/select.c: Renamed from lib/winsock-select.c.
39720         * modules/select (Files): Add lib/select.c, remove
39721         lib/winsock-select.c.
39722         (configure.ac): Update.
39723
39724 2009-03-12  Jim Meyering  <meyering@redhat.com>
39725
39726         avoid gcc warnings about unused macro definitions
39727         * lib/readtokens.c (STREQ): Remove unused definition.
39728         * lib/xmalloc.c (SIZE_MAX): Likewise.
39729         * lib/openat-die.c (N_): Likewise.
39730         * lib/mountlist.c (SIZE_MAX): Remove definition.
39731         Instead, include <stdint.h>.
39732         * lib/readutmp.c: Likewise.
39733         * modules/readutmp (Depends-on): Add stdint.
39734         * modules/mountlist (Depends-on): Add stdint.
39735         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39736
39737 2009-03-10  Bruno Haible  <bruno@clisp.org>
39738
39739         Tests for module 'mbmemcasecoll'.
39740         * modules/mbmemcasecoll-tests: New file.
39741         * tests/test-mbmemcasecoll1.sh: New file.
39742         * tests/test-mbmemcasecoll2.sh: New file.
39743         * tests/test-mbmemcasecoll3.sh: New file.
39744         * tests/test-mbmemcasecoll.c: New file.
39745
39746         New module 'mbmemcasecoll'.
39747         * lib/mbmemcasecoll.h: New file.
39748         * lib/mbmemcasecoll.c: New file.
39749         * modules/mbmemcasecoll: New file.
39750
39751         * tests/test-mbmemcasecmp.h: New file, extracted from
39752         tests/test-mbmemcasecmp.c.
39753         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39754         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39755         (main): Update.
39756         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39757
39758 2009-03-09  Bruno Haible  <bruno@clisp.org>
39759
39760         Tests for module 'mbmemcasecmp'.
39761         * modules/mbmemcasecmp-tests: New file.
39762         * tests/test-mbmemcasecmp1.sh: New file.
39763         * tests/test-mbmemcasecmp2.sh: New file.
39764         * tests/test-mbmemcasecmp3.sh: New file.
39765         * tests/test-mbmemcasecmp.c: New file.
39766
39767         New module 'mbmemcasecmp'.
39768         * lib/mbmemcasecmp.h: New file.
39769         * lib/mbmemcasecmp.c: New file.
39770         * modules/mbmemcasecmp: New file.
39771
39772 2009-03-09  Bruno Haible  <bruno@clisp.org>
39773
39774         Tests for module 'unicase/ulc-casecoll'.
39775         * modules/unicase/ulc-casecoll-tests: New file.
39776         * tests/unicase/test-ulc-casecoll1.sh: New file.
39777         * tests/unicase/test-ulc-casecoll2.sh: New file.
39778         * tests/unicase/test-ulc-casecoll.c: New file.
39779
39780         New module 'unicase/ulc-casecoll'.
39781         * lib/unicase.h (ulc_casecoll): New declaration.
39782         * lib/unicase/ulc-casecoll.c: New file.
39783         * modules/unicase/ulc-casecoll: New file.
39784
39785         New module 'unicase/ulc-casexfrm'.
39786         * lib/unicase.h (ulc_casexfrm): New declaration.
39787         * lib/unicase/ulc-casexfrm.c: New file.
39788         * modules/unicase/ulc-casexfrm: New file.
39789
39790 2009-03-09  Bruno Haible  <bruno@clisp.org>
39791
39792         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39793         invocations.
39794
39795         * m4/mbscasecmp.m4: Remove file.
39796         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39797         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39798
39799         * m4/mbscasestr.m4: Remove file.
39800         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39801         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39802
39803         * m4/mbschr.m4: Remove file.
39804         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39805         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39806
39807         * m4/mbscspn.m4: Remove file.
39808         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39809         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39810
39811         * m4/mbslen.m4: Remove file.
39812         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39813         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39814
39815         * m4/mbsncasecmp.m4: Remove file.
39816         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39817         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39818
39819         * m4/mbsnlen.m4: Remove file.
39820         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39821         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39822
39823         * m4/mbspbrk.m4: Remove file.
39824         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39825         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39826
39827         * m4/mbspcasecmp.m4: Remove file.
39828         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39829         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39830
39831         * m4/mbsrchr.m4: Remove file.
39832         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39833         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39834
39835         * m4/mbssep.m4: Remove file.
39836         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39837         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39838
39839         * m4/mbsspn.m4: Remove file.
39840         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39841         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39842
39843         * m4/mbsstr.m4: Remove file.
39844         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39845         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39846
39847         * m4/mbstok_r.m4: Remove file.
39848         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39849         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39850
39851         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39852
39853         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39854         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39855
39856         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39857
39858 2009-03-08  Bruno Haible  <bruno@clisp.org>
39859
39860         Tests for module 'unicase/ulc-casecmp'.
39861         * modules/unicase/ulc-casecmp-tests: New file.
39862         * tests/unicase/test-ulc-casecmp1.sh: New file.
39863         * tests/unicase/test-ulc-casecmp2.sh: New file.
39864         * tests/unicase/test-ulc-casecmp.c: New file.
39865
39866         New module 'unicase/ulc-casecmp'.
39867         * lib/unicase.h (ulc_casecmp): New declaration.
39868         * lib/unicase/ulc-casecmp.c: New file.
39869         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39870         'const SRC_UNIT *'.
39871         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39872         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39873         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39874         * modules/unicase/ulc-casecmp: New file.
39875
39876         Tests for module 'unicase/u32-is-cased'.
39877         * modules/unicase/u32-is-cased-tests: New file.
39878         * tests/unicase/test-u32-is-cased.c: New file.
39879
39880         Tests for module 'unicase/u16-is-cased'.
39881         * modules/unicase/u16-is-cased-tests: New file.
39882         * tests/unicase/test-u16-is-cased.c: New file.
39883
39884         Tests for module 'unicase/u8-is-cased'.
39885         * modules/unicase/u8-is-cased-tests: New file.
39886         * tests/unicase/test-u8-is-cased.c: New file.
39887         * tests/unicase/test-is-cased.h: New file.
39888
39889         New module 'unicase/u32-is-cased'.
39890         * lib/unicase/u32-is-cased.c: New file.
39891         * modules/unicase/u32-is-cased: New file.
39892
39893         New module 'unicase/u16-is-cased'.
39894         * lib/unicase/u16-is-cased.c: New file.
39895         * modules/unicase/u16-is-cased: New file.
39896
39897         New module 'unicase/u8-is-cased'.
39898         * lib/unicase/u8-is-cased.c: New file.
39899         * lib/unicase/u-is-cased.h: New file.
39900         * modules/unicase/u8-is-cased: New file.
39901
39902         Tests for module 'unicase/u32-is-casefolded'.
39903         * modules/unicase/u32-is-casefolded-tests: New file.
39904         * tests/unicase/test-u32-is-casefolded.c: New file.
39905
39906         Tests for module 'unicase/u16-is-casefolded'.
39907         * modules/unicase/u16-is-casefolded-tests: New file.
39908         * tests/unicase/test-u16-is-casefolded.c: New file.
39909
39910         Tests for module 'unicase/u8-is-casefolded'.
39911         * modules/unicase/u8-is-casefolded-tests: New file.
39912         * tests/unicase/test-u8-is-casefolded.c: New file.
39913         * tests/unicase/test-is-casefolded.h: New file.
39914
39915         New module 'unicase/u32-is-casefolded'.
39916         * lib/unicase/u32-is-casefolded.c: New file.
39917         * modules/unicase/u32-is-casefolded: New file.
39918
39919         New module 'unicase/u16-is-casefolded'.
39920         * lib/unicase/u16-is-casefolded.c: New file.
39921         * modules/unicase/u16-is-casefolded: New file.
39922
39923         New module 'unicase/u8-is-casefolded'.
39924         * lib/unicase/u8-is-casefolded.c: New file.
39925         * modules/unicase/u8-is-casefolded: New file.
39926
39927         Tests for module 'unicase/u32-is-titlecase'.
39928         * modules/unicase/u32-is-titlecase-tests: New file.
39929         * tests/unicase/test-u32-is-titlecase.c: New file.
39930
39931         Tests for module 'unicase/u16-is-titlecase'.
39932         * modules/unicase/u16-is-titlecase-tests: New file.
39933         * tests/unicase/test-u16-is-titlecase.c: New file.
39934
39935         Tests for module 'unicase/u8-is-titlecase'.
39936         * modules/unicase/u8-is-titlecase-tests: New file.
39937         * tests/unicase/test-u8-is-titlecase.c: New file.
39938         * tests/unicase/test-is-titlecase.h: New file.
39939
39940         New module 'unicase/u32-is-titlecase'.
39941         * lib/unicase/u32-is-titlecase.c: New file.
39942         * modules/unicase/u32-is-titlecase: New file.
39943
39944         New module 'unicase/u16-is-titlecase'.
39945         * lib/unicase/u16-is-titlecase.c: New file.
39946         * modules/unicase/u16-is-titlecase: New file.
39947
39948         New module 'unicase/u8-is-titlecase'.
39949         * lib/unicase/u8-is-titlecase.c: New file.
39950         * modules/unicase/u8-is-titlecase: New file.
39951
39952         Tests for module 'unicase/u32-is-lowercase'.
39953         * modules/unicase/u32-is-lowercase-tests: New file.
39954         * tests/unicase/test-u32-is-lowercase.c: New file.
39955
39956         Tests for module 'unicase/u16-is-lowercase'.
39957         * modules/unicase/u16-is-lowercase-tests: New file.
39958         * tests/unicase/test-u16-is-lowercase.c: New file.
39959
39960         Tests for module 'unicase/u8-is-lowercase'.
39961         * modules/unicase/u8-is-lowercase-tests: New file.
39962         * tests/unicase/test-u8-is-lowercase.c: New file.
39963         * tests/unicase/test-is-lowercase.h: New file.
39964
39965         New module 'unicase/u32-is-lowercase'.
39966         * lib/unicase/u32-is-lowercase.c: New file.
39967         * modules/unicase/u32-is-lowercase: New file.
39968
39969         New module 'unicase/u16-is-lowercase'.
39970         * lib/unicase/u16-is-lowercase.c: New file.
39971         * modules/unicase/u16-is-lowercase: New file.
39972
39973         New module 'unicase/u8-is-lowercase'.
39974         * lib/unicase/u8-is-lowercase.c: New file.
39975         * modules/unicase/u8-is-lowercase: New file.
39976
39977         Tests for module 'unicase/u32-is-uppercase'.
39978         * modules/unicase/u32-is-uppercase-tests: New file.
39979         * tests/unicase/test-u32-is-uppercase.c: New file.
39980
39981         Tests for module 'unicase/u16-is-uppercase'.
39982         * modules/unicase/u16-is-uppercase-tests: New file.
39983         * tests/unicase/test-u16-is-uppercase.c: New file.
39984
39985         Tests for module 'unicase/u8-is-uppercase'.
39986         * modules/unicase/u8-is-uppercase-tests: New file.
39987         * tests/unicase/test-u8-is-uppercase.c: New file.
39988         * tests/unicase/test-is-uppercase.h: New file.
39989
39990         New module 'unicase/u32-is-uppercase'.
39991         * lib/unicase/u32-is-uppercase.c: New file.
39992         * modules/unicase/u32-is-uppercase: New file.
39993
39994         New module 'unicase/u16-is-uppercase'.
39995         * lib/unicase/u16-is-uppercase.c: New file.
39996         * modules/unicase/u16-is-uppercase: New file.
39997
39998         New module 'unicase/u8-is-uppercase'.
39999         * lib/unicase/u8-is-uppercase.c: New file.
40000         * modules/unicase/u8-is-uppercase: New file.
40001
40002         New module 'unicase/u32-is-invariant'.
40003         * lib/unicase/u32-is-invariant.c: New file.
40004         * modules/unicase/u32-is-invariant: New file.
40005
40006         New module 'unicase/u16-is-invariant'.
40007         * lib/unicase/u16-is-invariant.c: New file.
40008         * modules/unicase/u16-is-invariant: New file.
40009
40010         New module 'unicase/u8-is-invariant'.
40011         * lib/unicase/u8-is-invariant.c: New file.
40012         * lib/unicase/invariant.h: New file.
40013         * lib/unicase/u-is-invariant.h: New file.
40014         * modules/unicase/u8-is-invariant: New file.
40015
40016         Tests for module 'unicase/u32-casecoll'.
40017         * modules/unicase/u32-casecoll-tests: New file.
40018         * tests/unicase/test-u32-casecoll.c: New file.
40019
40020         Tests for module 'unicase/u16-casecoll'.
40021         * modules/unicase/u16-casecoll-tests: New file.
40022         * tests/unicase/test-u16-casecoll.c: New file.
40023
40024         Tests for module 'unicase/u8-casecoll'.
40025         * modules/unicase/u8-casecoll-tests: New file.
40026         * tests/unicase/test-u8-casecoll.c: New file.
40027
40028         New module 'unicase/u32-casecoll'.
40029         * lib/unicase/u32-casecoll.c: New file.
40030         * modules/unicase/u32-casecoll: New file.
40031
40032         New module 'unicase/u16-casecoll'.
40033         * lib/unicase/u16-casecoll.c: New file.
40034         * modules/unicase/u16-casecoll: New file.
40035
40036         New module 'unicase/u8-casecoll'.
40037         * lib/unicase/u8-casecoll.c: New file.
40038         * lib/unicase/u-casecoll.h: New file.
40039         * modules/unicase/u8-casecoll: New file.
40040
40041         New module 'unicase/u32-casexfrm'.
40042         * lib/unicase/u32-casexfrm.c: New file.
40043         * modules/unicase/u32-casexfrm: New file.
40044
40045         New module 'unicase/u16-casexfrm'.
40046         * lib/unicase/u16-casexfrm.c: New file.
40047         * modules/unicase/u16-casexfrm: New file.
40048
40049         New module 'unicase/u8-casexfrm'.
40050         * lib/unicase/u8-casexfrm.c: New file.
40051         * lib/unicase/u-casexfrm.h: New file.
40052         * modules/unicase/u8-casexfrm: New file.
40053
40054         Tests for module 'unicase/u32-casecmp'.
40055         * modules/unicase/u32-casecmp-tests: New file.
40056         * tests/unicase/test-u32-casecmp.c: New file.
40057
40058         Tests for module 'unicase/u16-casecmp'.
40059         * modules/unicase/u16-casecmp-tests: New file.
40060         * tests/unicase/test-u16-casecmp.c: New file.
40061
40062         Tests for module 'unicase/u8-casecmp'.
40063         * modules/unicase/u8-casecmp-tests: New file.
40064         * tests/unicase/test-u8-casecmp.c: New file.
40065         * tests/unicase/test-casecmp.h: New file.
40066
40067         New module 'unicase/u32-casecmp'.
40068         * lib/unicase/u32-casecmp.c: New file.
40069         * modules/unicase/u32-casecmp: New file.
40070
40071         New module 'unicase/u16-casecmp'.
40072         * lib/unicase/u16-casecmp.c: New file.
40073         * modules/unicase/u16-casecmp: New file.
40074
40075         New module 'unicase/u8-casecmp'.
40076         * lib/unicase/u8-casecmp.c: New file.
40077         * lib/unicase/u-casecmp.h: New file.
40078         * modules/unicase/u8-casecmp: New file.
40079
40080         Tests for module 'unicase/u32-casefold'.
40081         * modules/unicase/u32-casefold-tests: New file.
40082         * tests/unicase/test-u32-casefold.c: New file.
40083
40084         Tests for module 'unicase/u16-casefold'.
40085         * modules/unicase/u16-casefold-tests: New file.
40086         * tests/unicase/test-u16-casefold.c: New file.
40087
40088         Tests for module 'unicase/u8-casefold'.
40089         * modules/unicase/u8-casefold-tests: New file.
40090         * tests/unicase/test-u8-casefold.c: New file.
40091
40092         New module 'unicase/u32-casefold'.
40093         * lib/unicase/u32-casefold.c: New file.
40094         * modules/unicase/u32-casefold: New file.
40095
40096         New module 'unicase/u16-casefold'.
40097         * lib/unicase/u16-casefold.c: New file.
40098         * modules/unicase/u16-casefold: New file.
40099
40100         New module 'unicase/u8-casefold'.
40101         * lib/unicase/u8-casefold.c: New file.
40102         * lib/unicase/u-casefold.h: New file.
40103         * modules/unicase/u8-casefold: New file.
40104
40105         New module 'unicase/tocasefold'.
40106         * lib/unicase/casefold.h: New file.
40107         * lib/unicase/tocasefold.c: New file.
40108         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40109         * modules/unicase/tocasefold: New file.
40110
40111         Tests for module 'unicase/u32-totitle'.
40112         * modules/unicase/u32-totitle-tests: New file.
40113         * tests/unicase/test-u32-totitle.c: New file.
40114
40115         Tests for module 'unicase/u16-totitle'.
40116         * modules/unicase/u16-totitle-tests: New file.
40117         * tests/unicase/test-u16-totitle.c: New file.
40118
40119         Tests for module 'unicase/u8-totitle'.
40120         * modules/unicase/u8-totitle-tests: New file.
40121         * tests/unicase/test-u8-totitle.c: New file.
40122
40123         New module 'unicase/u32-totitle'.
40124         * lib/unicase/u32-totitle.c: New file.
40125         * modules/unicase/u32-totitle: New file.
40126
40127         New module 'unicase/u16-totitle'.
40128         * lib/unicase/u16-totitle.c: New file.
40129         * modules/unicase/u16-totitle: New file.
40130
40131         New module 'unicase/u8-totitle'.
40132         * lib/unicase/u8-totitle.c: New file.
40133         * lib/unicase/u-totitle.h: New file.
40134         * modules/unicase/u8-totitle: New file.
40135
40136         Tests for module 'unicase/u32-tolower'.
40137         * modules/unicase/u32-tolower-tests: New file.
40138         * tests/unicase/test-u32-tolower.c: New file.
40139
40140         Tests for module 'unicase/u16-tolower'.
40141         * modules/unicase/u16-tolower-tests: New file.
40142         * tests/unicase/test-u16-tolower.c: New file.
40143
40144         Tests for module 'unicase/u8-tolower'.
40145         * modules/unicase/u8-tolower-tests: New file.
40146         * tests/unicase/test-u8-tolower.c: New file.
40147
40148         New module 'unicase/u32-tolower'.
40149         * lib/unicase/u32-tolower.c: New file.
40150         * modules/unicase/u32-tolower: New file.
40151
40152         New module 'unicase/u16-tolower'.
40153         * lib/unicase/u16-tolower.c: New file.
40154         * modules/unicase/u16-tolower: New file.
40155
40156         New module 'unicase/u8-tolower'.
40157         * lib/unicase/u8-tolower.c: New file.
40158         * modules/unicase/u8-tolower: New file.
40159
40160         Tests for module 'unicase/u32-toupper'.
40161         * modules/unicase/u32-toupper-tests: New file.
40162         * tests/unicase/test-u32-toupper.c: New file.
40163
40164         Tests for module 'unicase/u16-toupper'.
40165         * modules/unicase/u16-toupper-tests: New file.
40166         * tests/unicase/test-u16-toupper.c: New file.
40167
40168         Tests for module 'unicase/u8-toupper'.
40169         * modules/unicase/u8-toupper-tests: New file.
40170         * tests/unicase/test-u8-toupper.c: New file.
40171
40172         New module 'unicase/u32-toupper'.
40173         * lib/unicase/u32-toupper.c: New file.
40174         * modules/unicase/u32-toupper: New file.
40175
40176         New module 'unicase/u16-toupper'.
40177         * lib/unicase/u16-toupper.c: New file.
40178         * modules/unicase/u16-toupper: New file.
40179
40180         New module 'unicase/u8-toupper'.
40181         * lib/unicase/u8-toupper.c: New file.
40182         * modules/unicase/u8-toupper: New file.
40183
40184         New module 'unicase/u32-casemap'.
40185         * lib/unicase/u32-casemap.c: New file.
40186         * modules/unicase/u32-casemap: New file.
40187
40188         New module 'unicase/u16-casemap'.
40189         * lib/unicase/u16-casemap.c: New file.
40190         * modules/unicase/u16-casemap: New file.
40191
40192         New module 'unicase/u8-casemap'.
40193         * lib/unicase/unicasemap.h: New file.
40194         * lib/unicase/u8-casemap.c: New file.
40195         * lib/unicase/u-casemap.h: New file.
40196         * modules/unicase/u8-casemap: New file.
40197
40198         New module 'unicase/special-casing'.
40199         * lib/unicase/special-casing.h: New file.
40200         * lib/unicase/special-casing.c: New file.
40201         * lib/unicase/special-casing-table.gperf: New file, generated by
40202         gen-uni-tables.c.
40203         * modules/unicase/special-casing: New file.
40204
40205         Tests for module 'unicase/locale-language'.
40206         * modules/unicase/locale-language-tests: New file.
40207         * tests/unicase/test-locale-language.sh: New file.
40208         * tests/unicase/test-locale-language.c: New file.
40209
40210         New module 'unicase/locale-language'.
40211         * lib/unicase/locale-language.c: New file.
40212         * lib/unicase/locale-languages.gperf: New file.
40213         * modules/unicase/locale-language: New file.
40214
40215         Generate more tables for case conversion and case folding.
40216         * lib/gen-uni-tables.c (SCC_*): New enum items.
40217         (struct special_casing_rule): New type.
40218         (casing_rules, num_casing_rules, allocated_casing_rules): New
40219         variables.
40220         (add_casing_rule, fill_casing_rules): New functions.
40221         (struct casefold_rule): New type.
40222         (casefolding_rules, num_casefolding_rules,
40223         allocated_casefolding_rules): New variables.
40224         (fill_casefolding_rules): New function.
40225         (unicode_casefold): New variable.
40226         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40227         sort_casing_rules, output_casing_rules): New functions.
40228         (main): Accept to more arguments: SpecialCasing.txt and
40229         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40230         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40231         Output mapping for casefolding.
40232
40233         * lib/unicase.h: Include stdbool.h, uninorm.h.
40234         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40235         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40236         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40237         arguments.
40238         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40239         resultp arguments.
40240         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40241         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40242         resultp arguments.
40243         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40244         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40245         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40246         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40247         declarations.
40248         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40249
40250 2009-03-08  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40253         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40254         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40255         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40256
40257 2009-03-07  Bruno Haible  <bruno@clisp.org>
40258
40259         Adjust u*_normcmp, u*_normcoll API.
40260         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40261         u16_normcoll, u32_normcoll): Change failure conventions.
40262         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40263         errno and return -1.
40264         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40265
40266 2009-03-07  Bruno Haible  <bruno@clisp.org>
40267
40268         Tests for module 'uninorm/u32-normcoll'.
40269         * modules/uninorm/u32-normcoll-tests: New file.
40270         * tests/uninorm/test-u32-normcoll.c: New file.
40271
40272         Tests for module 'uninorm/u16-normcoll'.
40273         * modules/uninorm/u16-normcoll-tests: New file.
40274         * tests/uninorm/test-u16-normcoll.c: New file.
40275
40276         Tests for module 'uninorm/u8-normcoll'.
40277         * modules/uninorm/u8-normcoll-tests: New file.
40278         * tests/uninorm/test-u8-normcoll.c: New file.
40279
40280 2009-03-07  Bruno Haible  <bruno@clisp.org>
40281
40282         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40283         tests/uninorm/test-u32-normcmp.c.
40284         * tests/uninorm/test-u32-normcmp.c: Include it.
40285         (test_nonascii): New function, extracted from main. Add some more
40286         tests.
40287         (main): Invoke test_ascii and test_nonascii.
40288         * modules/uninorm/u32-normcmp-tests (Files): Add
40289         tests/uninorm/test-u32-normcmp.h.
40290         (Depends-on): Remove uninorm/u32-normcmp.
40291
40292         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40293         tests/uninorm/test-u16-normcmp.c.
40294         * tests/uninorm/test-u16-normcmp.c: Include it.
40295         (test_nonascii): New function, extracted from main. Add some more
40296         tests.
40297         (main): Invoke test_ascii and test_nonascii.
40298         * modules/uninorm/u16-normcmp-tests (Files): Add
40299         tests/uninorm/test-u16-normcmp.h.
40300         (Depends-on): Remove uninorm/u16-normcmp.
40301
40302         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40303         tests/uninorm/test-u8-normcmp.c.
40304         * tests/uninorm/test-u8-normcmp.c: Include it.
40305         (test_nonascii): New function, extracted from main. Add some more
40306         tests.
40307         (main): Invoke test_ascii and test_nonascii.
40308         * modules/uninorm/u8-normcmp-tests (Files): Add
40309         tests/uninorm/test-u8-normcmp.h.
40310         (Depends-on): Remove uninorm/u8-normcmp.
40311
40312 2009-03-07  Bruno Haible  <bruno@clisp.org>
40313
40314         New module 'uninorm/u32-normcoll'.
40315         * lib/uninorm/u32-normcoll.c: New file.
40316         * modules/uninorm/u32-normcoll: New file.
40317
40318         New module 'uninorm/u16-normcoll'.
40319         * lib/uninorm/u16-normcoll.c: New file.
40320         * modules/uninorm/u16-normcoll: New file.
40321
40322         New module 'uninorm/u8-normcoll'.
40323         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40324         declarations.
40325         * lib/uninorm/u8-normcoll.c: New file.
40326         * lib/uninorm/u-normcoll.h: New file.
40327         * modules/uninorm/u8-normcoll: New file.
40328
40329         New module 'uninorm/u32-normxfrm'.
40330         * lib/uninorm/u32-normxfrm.c: New file.
40331         * modules/uninorm/u32-normxfrm: New file.
40332
40333         New module 'uninorm/u16-normxfrm'.
40334         * lib/uninorm/u16-normxfrm.c: New file.
40335         * modules/uninorm/u16-normxfrm: New file.
40336
40337         New module 'uninorm/u8-normxfrm'.
40338         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40339         declarations.
40340         * lib/uninorm/u8-normxfrm.c: New file.
40341         * lib/uninorm/u-normxfrm.h: New file.
40342         * modules/uninorm/u8-normxfrm: New file.
40343
40344 2009-03-07  Bruno Haible  <bruno@clisp.org>
40345
40346         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40347         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40348         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40349
40350 2009-03-07  Bruno Haible  <bruno@clisp.org>
40351
40352         New module 'memxfrm'.
40353         * lib/memxfrm.h: New file.
40354         * lib/memxfrm.c: New file.
40355         * modules/memxfrm: New file.
40356
40357 2009-03-07  Bruno Haible  <bruno@clisp.org>
40358
40359         New module 'memcmp2'.
40360         * lib/memcmp2.h: New file.
40361         * lib/memcmp2.c: New file.
40362         * modules/memcmp2: New file.
40363
40364 2009-03-07  Bruno Haible  <bruno@clisp.org>
40365
40366         Tests for module 'uninorm/decomposing-form'.
40367         * modules/uninorm/decomposing-form-tests: New file.
40368         * tests/uninorm/test-decomposing-form.c: New file.
40369
40370         New module 'uninorm/decomposing-form'.
40371         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40372         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40373         Add 'decomposing_variant' field.
40374         * lib/uninorm/decomposing-form.c: New file.
40375         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40376         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40377         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40378         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40379         * modules/uninorm/decomposing-form: New file.
40380         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40381         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40382
40383 2009-03-07  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40386         strings.
40387
40388 2009-03-06  Bruno Haible  <bruno@clisp.org>
40389
40390         Tests for module 'uninorm/u32-normcmp'.
40391         * tests/uninorm/test-u32-normcmp.c: New file.
40392         * modules/uninorm/u32-normcmp-tests: New file.
40393
40394         Tests for module 'uninorm/u16-normcmp'.
40395         * tests/uninorm/test-u16-normcmp.c: New file.
40396         * modules/uninorm/u16-normcmp-tests: New file.
40397
40398         Tests for module 'uninorm/u8-normcmp'.
40399         * tests/uninorm/test-u8-normcmp.c: New file.
40400         * modules/uninorm/u8-normcmp-tests: New file.
40401
40402         New module 'uninorm/u32-normcmp'.
40403         * lib/uninorm/u32-normcmp.c: New file.
40404         * modules/uninorm/u32-normcmp: New file.
40405
40406         New module 'uninorm/u16-normcmp'.
40407         * lib/uninorm/u16-normcmp.c: New file.
40408         * modules/uninorm/u16-normcmp: New file.
40409
40410         New module 'uninorm/u8-normcmp'.
40411         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40412         declarations.
40413         * lib/uninorm/u8-normcmp.c: New file.
40414         * lib/uninorm/u-normcmp.h: New file.
40415         * modules/uninorm/u8-normcmp: New file.
40416
40417 2009-03-06  Bruno Haible  <bruno@clisp.org>
40418
40419         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40420         Reported by Eric Blake.
40421
40422 2009-03-06  Eric Blake  <ebb9@byu.net>
40423             Bruno Haible  <bruno@clisp.org>
40424
40425         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40426         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40427         condition.
40428         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40429         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40430         condition.
40431         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40432
40433 2009-03-06  Eric Blake  <ebb9@byu.net>
40434
40435         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40436         to avoid compiler warnings.
40437         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40438
40439 2009-03-05  Bruno Haible  <bruno@clisp.org>
40440
40441         * tests/test-ftell.c (main): Disable test beyond end of file on
40442         FreeMiNT.
40443         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40444
40445 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40446
40447         * lib/filevercmp.c: Move hidden files up in ordering.
40448         * tests/test-filevercmp.c: Add tests for hidden files.
40449
40450 2009-03-04  Bruno Haible  <bruno@clisp.org>
40451
40452         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40453         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40454         AM_CFLAGS.
40455         Reported by Simon Josefsson.
40456
40457 2009-03-03  Bruno Haible  <bruno@clisp.org>
40458
40459         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40460         Reported by Simon Josefsson.
40461
40462         * doc/ld-version-script.texi: Update node reference.
40463
40464 2009-03-03  Bruno Haible  <bruno@clisp.org>
40465
40466         * modules/visibility (License): Change to 'unlimited'.
40467         Suggested by Simon Josefsson.
40468
40469 2009-03-03  Jim Meyering  <meyering@redhat.com>
40470
40471         unlinkdir: cannot_unlink_dir may modify process state
40472         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40473         it's neither thread-safe nor appropriate for use in a library.
40474
40475 2009-03-03  Eric Blake  <ebb9@byu.net>
40476
40477         test-closein: silence test under Darwin
40478         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40479         care if it dies from EPIPE or EBADF.
40480
40481 2009-03-03  Bruno Haible  <bruno@clisp.org>
40482
40483         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40484         earlier.
40485         * doc/visibility.texi: Fix @node and @section.
40486
40487 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40488
40489         * doc/gnulib.texi: Link to sections for ld version script and
40490         visibility.
40491         * doc/visibility.texi: Add @node and @section.
40492         * modules/ld-version-script: New module.
40493         * m4/ld-version-script.m4: New file.
40494         * doc/ld-version-script.texi: New file.
40495
40496 2009-03-02  David Lutterkort  <lutter@redhat.com>
40497
40498         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40500
40501 2009-03-02  Bruno Haible  <bruno@clisp.org>
40502
40503         * doc/visibility.texi: Mention libtool's -export-symbols option.
40504
40505 2009-03-02  Jim Meyering  <meyering@redhat.com>
40506
40507         announce-gen: new option: --no-print-checksums
40508         * build-aux/announce-gen (usage): Describe it.
40509         (print_checksums): Print a newline here, not in the [*] footnote.
40510         (main): Honor it.
40511
40512 2009-03-01  Bruno Haible  <bruno@clisp.org>
40513
40514         Use socklen_t in the native Windows replacements prototypes.
40515         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40516         instead of 'int'.
40517         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40518         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40519         * modules/getsockopt (Depends-on): Add socklen.
40520         * modules/setsockopt (Depends-on): Add socklen.
40521
40522 2009-03-01  Bruno Haible  <bruno@clisp.org>
40523
40524         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40525         least 4.2.
40526
40527 2009-03-01  Eric Blake  <ebb9@byu.net>
40528             Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40531         error messages.
40532         * lib/wait-process.c (wait_subprocess): Omit error message about
40533         deadly signal sent to the child of termsigp != NULL.
40534
40535 2009-03-01  Eric Blake  <ebb9@byu.net>
40536
40537         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40538
40539 2009-03-01  Bruno Haible  <bruno@clisp.org>
40540
40541         Avoid a gcc warning.
40542         * tests/test-sched.c (b): Make global.
40543         Reported by Eric Blake.
40544
40545 2009-01-19  Martin Lambers  <marlam@marlam.de>
40546
40547         Provide POSIX semantics for socket timeout options on W32.
40548         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40549         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40550         * modules/setsockopt: Depend on sys_time module for struct timeval.
40551         * modules/getsockopt: Depend on sys_time module for struct timeval.
40552
40553 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40554
40555         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40556         __USE_GNU, for consistency with netdb.in.h.
40557         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40558
40559 2009-03-01  Bruno Haible  <bruno@clisp.org>
40560
40561         More support for FreeMiNT.
40562         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40563         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40564
40565 2009-03-01  Bruno Haible  <bruno@clisp.org>
40566
40567         More support for FreeMiNT.
40568         * lib/fpurge.c (fpurge): Correct last commit.
40569         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40570
40571 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40572
40573         Fix unportable awk script in vc-list-files.
40574         * build-aux/vc-list-files: In the replacement awk script, use
40575         substr with a second argument of 1, not zero.
40576         Report by Simon Josefsson.
40577
40578 2009-02-28  Bruno Haible  <bruno@clisp.org>
40579
40580         More support for FreeMiNT.
40581         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40582         to FreeMiNT today.
40583         * lib/fwriting.c (fwriting): Likewise.
40584         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40585
40586 2009-02-28  Bruno Haible  <bruno@clisp.org>
40587
40588         * tests/test-freadseek.c (main): Disable test beyond end of file on
40589         FreeMiNT.
40590         * tests/test-ftello.c (main): Likewise.
40591         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40592
40593 2009-02-28  Bruno Haible  <bruno@clisp.org>
40594
40595         Add tentative support for FreeMiNT.
40596         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40597         * lib/fpurge.c (fpurge): Likewise.
40598         * lib/freadable.c (freadable): Likewise.
40599         * lib/freading.c (freading): Likewise.
40600         * lib/freadptr.c (freadptr): Likewise.
40601         * lib/freadseek.c (freadptrinc): Likewise.
40602         * lib/fseeko.c (rpl_fseeko): Likewise.
40603         * lib/fseterr.c (fseterr): Likewise.
40604         * lib/fwritable.c (fwritable): Likewise.
40605         * lib/fwriting.c (fwriting): Likewise.
40606         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40607         Hourihane.
40608         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40609
40610 2009-02-28  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40613         SIGCHLD.
40614         Reported by Jim Meyering.
40615
40616 2009-02-28  Bruno Haible  <bruno@clisp.org>
40617
40618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40619         Mention the results of these tests on various platforms.
40620         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40621         order.
40622         * doc/posix-functions/printf.texi: Likewise.
40623         * doc/posix-functions/snprintf.texi: Likewise.
40624         * doc/posix-functions/sprintf.texi: Likewise.
40625         * doc/posix-functions/vfprintf.texi: Likewise.
40626         * doc/posix-functions/vprintf.texi: Likewise.
40627         * doc/posix-functions/vsnprintf.texi: Likewise.
40628         * doc/posix-functions/vsprintf.texi: Likewise.
40629         * doc/glibc-functions/obstack_printf.texi: Likewise.
40630         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40631
40632 2009-02-28  Bruno Haible  <bruno@clisp.org>
40633
40634         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40635         Reported by Loïc Minier <lool@dooz.org>.
40636
40637 2009-02-27  Bruno Haible  <bruno@clisp.org>
40638
40639         * gnulib-tool (func_import): Make the sed expression used to create the
40640         sed script for updating the .gitignore file POSIX compliant.
40641         Reported by Eric Blake.
40642
40643 2009-02-27  Bruno Haible  <bruno@clisp.org>
40644
40645         * gnulib-tool (sed): Don't alias as "sed --posix".
40646         Reported by Eric Blake.
40647
40648 2009-02-27  Bruno Haible  <bruno@clisp.org>
40649
40650         Avoid test link errors.
40651         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40652         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40653         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40654         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40656
40657 2009-02-27  Bruno Haible  <bruno@clisp.org>
40658
40659         Avoid spurious "(cached)" in configure output.
40660         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40661         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40662         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40663         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40664         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40665         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40666         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40667         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40668         Reported by Eric Blake.
40669
40670 2009-02-27  Eric Blake  <ebb9@byu.net>
40671
40672         printf: fix regression in previous patch
40673         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40674
40675 2009-02-27  Bruno Haible  <bruno@clisp.org>
40676
40677         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40678         value.
40679         * lib/stdint.in.h: Likewise.
40680         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40681
40682 2009-02-27  Eric Blake  <ebb9@byu.net>
40683
40684         doc: mention more functions added in cygwin 1.7.0
40685         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40686         addition.
40687         * doc/posix-functions/open_wmemstream.texi: Likewise.
40688         * doc/posix-functions/wcsnlen.texi: Likewise.
40689         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40690         * doc/posix-functions/wcstod.texi: Likewise.
40691         * doc/posix-functions/wcstof.texi: Likewise.
40692         * doc/posix-functions/wcstoimax.texi: Likewise.
40693         * doc/posix-functions/wcstok.texi: Likewise.
40694         * doc/posix-functions/wcstoumax.texi: Likewise.
40695
40696         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40698         * doc/posix-functions/fprintf.texi: Update.
40699         * doc/posix-functions/printf.texi: Update.
40700         * doc/posix-functions/snprintf.texi: Update.
40701         * doc/posix-functions/sprintf.texi: Update.
40702         * doc/posix-functions/vfprintf.texi: Update.
40703         * doc/posix-functions/vprintf.texi: Update.
40704         * doc/posix-functions/vsnprintf.texi: Update.
40705         * doc/posix-functions/vsprintf.texi: Update.
40706         * doc/glibc-functions/obstack_printf.texi: Update.
40707         * doc/glibc-functions/obstack_vprintf.texi: Update.
40708
40709 2009-02-26  Eric Blake  <ebb9@byu.net>
40710
40711         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40712         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40713         compilation bug by using runtime conversion.
40714         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40715         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40716         * modules/ceill-tests (Files): Use nan.h.
40717         * modules/floorl-tests (Files): Likewise.
40718         * modules/frexpl-tests (Files): Likewise.
40719         * modules/isnanl-tests (Files): Likewise.
40720         * modules/ldexpl-tests (Files): Likewise.
40721         * modules/roundl-tests (Files): Likewise.
40722         * modules/truncl-tests (Files): Likewise.
40723         * tests/test-ceill.c (main): Use a working NaN.
40724         * tests/test-floorl.c (main): Likewise.
40725         * tests/test-frexpl.c (main): Likewise.
40726         * tests/test-isnan.c (test_long_double): Likewise.
40727         * tests/test-isnanl.h (main): Likewise.
40728         * tests/test-ldexpl.h (main): Likewise.
40729         * tests/test-roundl.h (main): Likewise.
40730         * tests/test-truncl.h (main): Likewise.
40731         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40732
40733 2009-02-26  Eric Blake  <ebb9@byu.net>
40734             Bruno Haible  <bruno@clisp.org>
40735
40736         Work around a *printf bug with %ls on Solaris.
40737         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40738         precision is specified, sprintf stops converting the wide string
40739         argument when the number of bytes that have been produced by this
40740         conversion equals or exceeds the precision.
40741         * doc/posix-functions/fprintf.texi: Update.
40742         * doc/posix-functions/printf.texi: Update.
40743         * doc/posix-functions/snprintf.texi: Update.
40744         * doc/posix-functions/sprintf.texi: Update.
40745         * doc/posix-functions/vfprintf.texi: Update.
40746         * doc/posix-functions/vprintf.texi: Update.
40747         * doc/posix-functions/vsnprintf.texi: Update.
40748         * doc/posix-functions/vsprintf.texi: Update.
40749         * doc/glibc-functions/obstack_printf.texi: Update.
40750         * doc/glibc-functions/obstack_vprintf.texi: Update.
40751
40752 2009-02-26  Eric Blake  <ebb9@byu.net>
40753
40754         stdlib: favor compiler check of random.h
40755         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40756         to avoid an ObjC random.h installed by Swarm.
40757
40758 2009-02-26  Bruno Haible  <bruno@clisp.org>
40759
40760         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40761         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40762         Reported by Gary V. Vaughan <gary@gnu.org>.
40763
40764 2009-02-26  Bruno Haible  <bruno@clisp.org>
40765
40766         Fix *printf behaviour regarding the %ls directive.
40767         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40768         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40769         NEED_PRINTF_DIRECTIVE_LS.
40770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40771         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40773         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40774         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40775         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40776         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40777         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40781         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40785         * doc/posix-functions/fprintf.texi: Update.
40786         * doc/posix-functions/printf.texi: Update.
40787         * doc/posix-functions/snprintf.texi: Update.
40788         * doc/posix-functions/sprintf.texi: Update.
40789         * doc/posix-functions/vfprintf.texi: Update.
40790         * doc/posix-functions/vprintf.texi: Update.
40791         * doc/posix-functions/vsnprintf.texi: Update.
40792         * doc/posix-functions/vsprintf.texi: Update.
40793         * doc/glibc-functions/obstack_printf.texi: Update.
40794         * doc/glibc-functions/obstack_vprintf.texi: Update.
40795         Reported by Eric Blake.
40796
40797 2009-02-25  Bruno Haible  <bruno@clisp.org>
40798
40799         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40800         with known value.
40801         Reported by Gary V. Vaughan <gary@gnu.org>.
40802
40803 2009-02-25  Bruno Haible  <bruno@clisp.org>
40804
40805         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40806         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40807         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40808         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40809         Reported by Gary V. Vaughan <gary@gnu.org>.
40810
40811 2009-02-25  Bruno Haible  <bruno@clisp.org>
40812
40813         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40814         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40815         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40816         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40817         Reported by Gary V. Vaughan <gary@gnu.org>.
40818
40819 2009-02-25  Eric Blake  <ebb9@byu.net>
40820
40821         tests: skip fseek/ftell tests if ungetc is broken
40822         * m4/ungetc.m4: New file.
40823         * modules/fseek-tests: Split test, so ungetc dependency is
40824         separate from rest of test.
40825         * modules/fseeko-tests: Likewise.
40826         * modules/ftell-tests: Likewise.
40827         * modules/ftello-tests: Likewise.
40828         * tests/test-fseek.c (main): Isolate ungetc dependency.
40829         * tests/test-fseeko.c (main): Likewise.
40830         * tests/test-ftell.c (main): Likewise.
40831         * tests/test-ftello.c (main): Likewise.
40832         * tests/test-fseek2.sh: New file.
40833         * tests/test-fseeko2.sh: Likewise.
40834         * tests/test-ftell2.sh: Likewise.
40835         * tests/test-ftello2.sh: Likewise.
40836
40837 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40838
40839         test-getaddrinfo: fix usage of skip return code 77
40840         * tests/test-gettaddrinfo.c: Return skip code 77 only
40841         for first occurance of skip (4x77 is not 77)
40842
40843 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40844
40845         strtod: avoid C99 decl-after-statement
40846         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40847
40848 2009-02-24  Eric Blake  <ebb9@byu.net>
40849
40850         strtod: detect HP-UX 11.31 bug
40851         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40852         Reported by Gary V. Vaughan.
40853
40854 2009-02-23  Bruno Haible  <bruno@clisp.org>
40855
40856         Fix invalid read past end of memory block.
40857         * lib/vasnprintf.c (DCHAR_SET): Define.
40858         (local_wcslen): Define only when needed.
40859         (local_strnlen, local_wcsnlen): New functions.
40860         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40861         directives that involve a conversion ourselves.
40862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40863         wcsnlen, mbrtowc, wcrtomb.
40864         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40865         * tests/test-vasprintf-posix.c (test_function): Likewise.
40866         * tests/test-snprintf-posix.h (test_function): Likewise.
40867         * tests/test-sprintf-posix.h (test_function): Likewise.
40868         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40869
40870 2009-02-22  Bruno Haible  <bruno@clisp.org>
40871
40872         Implement new clarified decomposition of Hangul syllables.
40873         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40874         of type LTV, return only a pairwise decomposition.
40875         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40876         Likewise.
40877         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40878         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40879         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40880
40881 2009-02-22  Bruno Haible  <bruno@clisp.org>
40882
40883         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40884         zero-length results and shrink excess allocated memory.
40885         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40886         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40887         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40888         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40889         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40890         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40891         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40892         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40893         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40894         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40895         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40896         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40897
40898 2009-02-21  Bruno Haible  <bruno@clisp.org>
40899
40900         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40901         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40902         spaces after a period. Put a space between a macro name and its
40903         argument list. Trivial rewordings.
40904         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40905         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40906         (main): Return 0 explicitly.
40907
40908 2009-02-21  Bruno Haible  <bruno@clisp.org>
40909
40910         Tests for module 'uninorm/filter'.
40911         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40912         * modules/uninorm/filter-tests: New file.
40913
40914         New module 'uninorm/filter'.
40915         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40916         uninorm_filter_flush, uninorm_filter_free): New declarations.
40917         * lib/uninorm/uninorm-filter.c: New file.
40918         * modules/uninorm/filter: New file.
40919
40920 2009-02-21  Bruno Haible  <bruno@clisp.org>
40921
40922         Tests for module 'uninorm/nfkc'.
40923         * tests/uninorm/test-nfkc.c: New file.
40924         * tests/uninorm/test-u8-nfkc.c: New file.
40925         * tests/uninorm/test-u16-nfkc.c: New file.
40926         * tests/uninorm/test-u32-nfkc.c: New file.
40927         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40928         * tests/uninorm/test-u32-nfkc-big.c: New file.
40929         * modules/uninorm/nfkc-tests: New file.
40930
40931         New module 'uninorm/nfkc'.
40932         * lib/uninorm/nfkc.c: New file.
40933         * modules/uninorm/nfkc: New file.
40934
40935         Tests for module 'uninorm/nfkd'.
40936         * tests/uninorm/test-nfkd.c: New file.
40937         * tests/uninorm/test-u8-nfkd.c: New file.
40938         * tests/uninorm/test-u16-nfkd.c: New file.
40939         * tests/uninorm/test-u32-nfkd.c: New file.
40940         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40941         * tests/uninorm/test-u32-nfkd-big.c: New file.
40942         * modules/uninorm/nfkd-tests: New file.
40943
40944         New module 'uninorm/nfkd'.
40945         * lib/uninorm/nfkd.c: New file.
40946         * modules/uninorm/nfkd: New file.
40947
40948         Tests for module 'uninorm/nfc'.
40949         * tests/uninorm/test-nfc.c: New file.
40950         * tests/uninorm/test-u8-nfc.c: New file.
40951         * tests/uninorm/test-u16-nfc.c: New file.
40952         * tests/uninorm/test-u32-nfc.c: New file.
40953         * tests/uninorm/test-u32-nfc-big.sh: New file.
40954         * tests/uninorm/test-u32-nfc-big.c: New file.
40955         * modules/uninorm/nfc-tests: New file.
40956
40957         New module 'uninorm/nfc'.
40958         * lib/uninorm/nfc.c: New file.
40959         * modules/uninorm/nfc: New file.
40960
40961         Tests for module 'uninorm/nfd'.
40962         * tests/uninorm/test-nfd.c: New file.
40963         * tests/uninorm/test-u8-nfd.c: New file.
40964         * tests/uninorm/test-u16-nfd.c: New file.
40965         * tests/uninorm/test-u32-nfd.c: New file.
40966         * tests/uninorm/test-u32-nfd-big.sh: New file.
40967         * tests/uninorm/test-u32-nfd-big.c: New file.
40968         * tests/uninorm/test-u32-normalize-big.h: New file.
40969         * tests/uninorm/test-u32-normalize-big.c: New file.
40970         * tests/uninorm/NormalizationTest.txt: New file, created from
40971         Unicode 5.1.0 NormalizationTest.txt.
40972         * modules/uninorm/nfd-tests: New file.
40973
40974         New module 'uninorm/nfd'.
40975         * lib/uninorm/nfd.c: New file.
40976         * modules/uninorm/nfd: New file.
40977
40978         New module 'uninorm/u32-normalize'.
40979         * lib/uninorm/u32-normalize.c: New file.
40980         * modules/uninorm/u32-normalize: New file.
40981
40982         New module 'uninorm/u16-normalize'.
40983         * lib/uninorm/u16-normalize.c: New file.
40984         * modules/uninorm/u16-normalize: New file.
40985
40986         New module 'uninorm/u8-normalize'.
40987         * lib/uninorm/u8-normalize.c: New file.
40988         * lib/uninorm/normalize-internal.h: New file.
40989         * lib/uninorm/u-normalize-internal.h: New file.
40990         * modules/uninorm/u8-normalize: New file.
40991
40992         New module 'uninorm/decompose-internal'.
40993         * lib/uninorm/decompose-internal.c: New file.
40994         * modules/uninorm/decompose-internal: New file.
40995
40996         Tests for module 'uninorm/composition'.
40997         * tests/uninorm/test-composition.c: New file.
40998         * modules/uninorm/composition-tests: New file.
40999
41000         New module 'uninorm/composition'.
41001         * lib/uninorm/composition.c: New file.
41002         * lib/uninorm/composition-table.gperf: New file, generated by
41003         gen-uni-tables.
41004         * modules/uninorm/composition: New file.
41005
41006         Tests for module 'uninorm/compat-decomposition'.
41007         * tests/uninorm/test-compat-decomposition.c: New file.
41008         * modules/uninorm/compat-decomposition-tests: New file.
41009
41010         New module 'uninorm/compat-decomposition'.
41011         * lib/uninorm/decompose-internal.h: New file.
41012         * lib/uninorm/compat-decomposition.c: New file.
41013         * modules/uninorm/compat-decomposition: New file.
41014
41015         Tests for module 'uninorm/canonical-decomposition'.
41016         * tests/uninorm/test-canonical-decomposition.c: New file.
41017         * modules/uninorm/canonical-decomposition-tests: New file.
41018
41019         New module 'uninorm/canonical-decomposition'.
41020         * lib/uninorm/canonical-decomposition.c: New file.
41021         * modules/uninorm/canonical-decomposition: New file.
41022
41023         Tests for module 'uninorm/decomposition'.
41024         * tests/uninorm/test-decomposition.c: New file.
41025         * modules/uninorm/decomposition-tests: New file.
41026
41027         New module 'uninorm/decomposition'.
41028         * lib/uninorm/decomposition.c: New file.
41029         * modules/uninorm/decomposition: New file.
41030
41031         New module 'uninorm/decomposition-table'.
41032         * lib/uninorm/decomposition-table.h: New file.
41033         * lib/uninorm/decomposition-table.c: New file.
41034         * lib/uninorm/decomposition-table1.h: New file, generated by
41035         gen-uni-tables.
41036         * lib/uninorm/decomposition-table2.h: New file, generated by
41037         gen-uni-tables.
41038         * modules/uninorm/decomposition-table: New file.
41039
41040         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41041         (UC_DECOMP_*): New enumeration items.
41042         (get_decomposition): New function.
41043         (struct decomp_table): New type.
41044         (output_decomposition, output_decomposition_tables): New functions.
41045         (unicode_composition_exclusions): New variable.
41046         (fill_composition_exclusions, debug_output_composition_tables): New
41047         functions.
41048         (main): Accept one more argument. Invoke fill_composition_exclusions.
41049         Output decomposition and composition tables.
41050
41051         New module 'uninorm/base'.
41052         * lib/uninorm.h: New file.
41053         * lib/unictype.h: Update comment.
41054         * modules/uninorm/base: New file.
41055
41056 2009-02-21  David Lutterkort  <lutter@redhat.com>
41057
41058         Tests for module 'safe-alloc'.
41059         * tests/test-safe-alloc.c: New file.
41060         * modules/safe-alloc-tests: New file.
41061
41062         New module 'safe-alloc'.
41063         * lib/safe-alloc.h: New file.
41064         * lib/safe-alloc.c: New file.
41065         * m4/safe-alloc.m4: New file.
41066         * modules/safe-alloc: New file.
41067         * doc/safe-alloc.texi: New file.
41068         * doc/gnulib.texi: Include it.
41069         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41070         safe-alloc.
41071
41072 2009-02-18  Bruno Haible  <bruno@clisp.org>
41073
41074         Fix link error on non-glibc systems.
41075         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41076         variable.
41077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41078
41079 2009-02-18  Jim Meyering  <meyering@redhat.com>
41080
41081         fts: avoid used-uninitialized error due to recent change
41082         * lib/fts.c (fts_read): Guard uses of the new member,
41083         parent->fts_n_dirs_remaining, since it's not relevant for
41084         the parent of a directory specified on the command-line.
41085
41086 2009-02-17  James Youngman  <jay@gnu.org>
41087             Bruno Haible  <bruno@clisp.org>
41088
41089         * m4/include_next.m4: Reformulate comment.
41090
41091 2009-02-16  Jim Meyering  <meyering@redhat.com>
41092
41093         fts: add #if guards so that the fts_lgpl module still builds
41094         * lib/fts.c: Guard just-added hash-table-using parts with
41095         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41096         Reported by Simon Josefsson.
41097
41098 2009-02-15  Bruno Haible  <bruno@clisp.org>
41099
41100         * modules/array-mergesort-tests: New file.
41101         * tests/test-array-mergesort.c: New file.
41102
41103         New module 'array-mergesort'.
41104         * modules/array-mergesort: New file.
41105         * lib/array-mergesort.h: New file.
41106
41107 2009-02-15  Bruno Haible  <bruno@clisp.org>
41108
41109         Fix 2009-02-07 commit.
41110         * lib/gen-uni-tables.c (output_predicate, output_category,
41111         output_combclass, output_bidi_category, output_decimal_digit,
41112         output_digit, output_numeric, output_mirror, output_scripts,
41113         output_ident_category, output_simple_mapping): Fix format directives.
41114         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41115
41116 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41117
41118         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41119         fixes are available from IBM.
41120
41121 2009-02-13  Jim Meyering  <meyering@redhat.com>
41122
41123         fts: arrange not to stat non-directories in more cases
41124         This makes GNU find (when it doesn't need to stat each file)
41125         *much* more efficient at traversing reiserfs file systems.
41126         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41127         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41128         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41129         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41130         (leaf_optimization_applies): New function.
41131         (LCO_hash, LCO_compare): New helper functions.
41132         (link_count_optimize_ok): New function.
41133         (fts_stat): Initialize new member (if dir).
41134         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41135         we've just stat'ed a directory.  Skip the stat call when possible.
41136         ---
41137         Note this AFS-related exchange:
41138         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41139         and note find's pioctl call in find/fstype.c.
41140         But that is necessary only if you want to enable the
41141         optimization for AFS, and for now, I don't.
41142
41143         fts: move a function definition "up" (no semantic change)
41144         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41145         "up" to precede upcoming use of a related function.
41146
41147 2009-02-11  Jim Meyering  <meyering@redhat.com>
41148
41149         fts: correct internal computation of nlinks (optimization-related)
41150         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41151         whether the current entry is a directory, so don't test it.
41152
41153 2009-02-10  Bruno Haible  <bruno@clisp.org>
41154
41155         Tests for module 'uniwbrk/ulc-wordbreaks'.
41156         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41157         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41158         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41159
41160         Tests for module 'uniwbrk/u32-wordbreaks'.
41161         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41162         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41163
41164         Tests for module 'uniwbrk/u16-wordbreaks'.
41165         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41166         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41167
41168         Tests for module 'uniwbrk/u8-wordbreaks'.
41169         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41170         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41171
41172 2009-02-10  Bruno Haible  <bruno@clisp.org>
41173
41174         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41175         property.
41176         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41177         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41178         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41179
41180 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41181
41182         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41183         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41184
41185 2009-02-10  Bruno Haible  <bruno@clisp.org>
41186
41187         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41188         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41189         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41190         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41191         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41192         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41193
41194 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41195
41196         * lib/sockets.h (gl_fd_to_handle): New function.
41197
41198         * tests/test-sockets.c: Call gl_fd_to_handle.
41199
41200 2009-02-09  Bruno Haible  <bruno@clisp.org>
41201
41202         * doc/havelib.texi: Document the conventions on bi-arch systems.
41203
41204 2009-02-08  Bruno Haible  <bruno@clisp.org>
41205
41206         Document the AC_LIB_LINKFLAGS macro.
41207         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41208         * doc/gnulib.texi: Include it.
41209
41210 2009-02-08  Bruno Haible  <bruno@clisp.org>
41211
41212         Fix wrong order of sections, compared to TOC.
41213         * doc/gnulib.texi: Include relocatable-maint.texi after the
41214         "Regular expressions" node, not before.
41215
41216 2009-02-08  Bruno Haible  <bruno@clisp.org>
41217
41218         Tests for module 'unicase/totitle'.
41219         * modules/unicase/totitle-tests: New file.
41220
41221         Tests for module 'unicase/tolower'.
41222         * modules/unicase/tolower-tests: New file.
41223
41224         Tests for module 'unicase/toupper'.
41225         * modules/unicase/toupper-tests: New file.
41226         * tests/unicase/test-mapping-part1.h: New file.
41227         * tests/unicase/test-mapping-part2.h: New file.
41228
41229         New module 'unicase/totitle'.
41230         * modules/unicase/totitle: New file.
41231         * lib/unicase/totitle.c: New file.
41232
41233         New module 'unicase/tolower'.
41234         * modules/unicase/tolower: New file.
41235         * lib/unicase/tolower.c: New file.
41236
41237         New module 'unicase/toupper'.
41238         * modules/unicase/toupper: New file.
41239         * lib/unicase/toupper.c: New file.
41240         * lib/unicase/simple-mapping.h: New file.
41241
41242         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41243         (mapping_table): New structure.
41244         (output_simple_mapping): New function.
41245         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41246         * modules/gen-uni-tables (Description): Update.
41247         * lib/unicase/toupper.h: New file, automatically generated by
41248         gen-uni-tables.
41249         * lib/unicase/tolower.h: New file, automatically generated by
41250         gen-uni-tables.
41251         * lib/unicase/totitle.h: New file, automatically generated by
41252         gen-uni-tables.
41253         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41254         gen-uni-tables.
41255         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41256         gen-uni-tables.
41257         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41258         gen-uni-tables.
41259
41260         New module 'unicase/base'.
41261         * modules/unicase/base: New file.
41262         * lib/unicase.h: New file.
41263
41264 2009-02-08  Bruno Haible  <bruno@clisp.org>
41265
41266         New module 'uniwbrk/ulc-wordbreaks'.
41267         * modules/uniwbrk/ulc-wordbreaks: New file.
41268         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41269
41270         New module 'uniwbrk/u32-wordbreaks'.
41271         * modules/uniwbrk/u32-wordbreaks: New file.
41272         * lib/uniwbrk/u32-wordbreaks.c: New file.
41273
41274         New module 'uniwbrk/u16-wordbreaks'.
41275         * modules/uniwbrk/u16-wordbreaks: New file.
41276         * lib/uniwbrk/u16-wordbreaks.c: New file.
41277
41278         New module 'uniwbrk/u8-wordbreaks'.
41279         * modules/uniwbrk/u8-wordbreaks: New file.
41280         * lib/uniwbrk/u8-wordbreaks.c: New file.
41281         * lib/uniwbrk/u-wordbreaks.h: New file.
41282
41283         New module 'uniwbrk/table'.
41284         * modules/uniwbrk/table: New file.
41285         * lib/uniwbrk/wbrktable.h: New file.
41286         * lib/uniwbrk/wbrktable.c: New file.
41287
41288         New module 'uniwbrk/wordbreak-property'.
41289         * modules/uniwbrk/wordbreak-property: New file.
41290         * lib/uniwbrk/wordbreak-property.c: New file.
41291
41292         * lib/gen-uni-tables.c (WBP_*): New enum items.
41293         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41294         (unicode_org_wbp): New variable.
41295         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41296         New functions.
41297         (wbp_table): New structure.
41298         (output_wbp, output_wbrk_tables): New functions.
41299         (main): Accept additional argument. Invoke fill_org_wbp,
41300         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41301         output_wbrk_tables.
41302         * modules/gen-uni-tables (Description): Update.
41303         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41304         gen-uni-tables.
41305
41306         New module 'uniwbrk/base'.
41307         * modules/uniwbrk/base: New file.
41308         * lib/uniwbrk.h: New file.
41309
41310 2009-02-08  Bruno Haible  <bruno@clisp.org>
41311
41312         Update to Unicode 5.1.0.
41313         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41314         U+2185..U+2188.
41315         (is_property_default_ignorable_code_point): Don't include characters
41316         of category Cc or Cs and not-a-characters.
41317         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41318         U+0D79, U+109E, U+109F, U+A60C.
41319         * lib/unictype/bidi_of.h: Regenerated.
41320         * lib/unictype/blocks.h: Regenerated.
41321         * lib/unictype/categ_C.h: Regenerated.
41322         * lib/unictype/categ_Cf.h: Regenerated.
41323         * lib/unictype/categ_Cn.h: Regenerated.
41324         * lib/unictype/categ_L.h: Regenerated.
41325         * lib/unictype/categ_Ll.h: Regenerated.
41326         * lib/unictype/categ_Lm.h: Regenerated.
41327         * lib/unictype/categ_Lo.h: Regenerated.
41328         * lib/unictype/categ_Lu.h: Regenerated.
41329         * lib/unictype/categ_M.h: Regenerated.
41330         * lib/unictype/categ_Mc.h: Regenerated.
41331         * lib/unictype/categ_Me.h: Regenerated.
41332         * lib/unictype/categ_Mn.h: Regenerated.
41333         * lib/unictype/categ_N.h: Regenerated.
41334         * lib/unictype/categ_Nd.h: Regenerated.
41335         * lib/unictype/categ_Nl.h: Regenerated.
41336         * lib/unictype/categ_No.h: Regenerated.
41337         * lib/unictype/categ_P.h: Regenerated.
41338         * lib/unictype/categ_Pd.h: Regenerated.
41339         * lib/unictype/categ_Pe.h: Regenerated.
41340         * lib/unictype/categ_Pf.h: Regenerated.
41341         * lib/unictype/categ_Pi.h: Regenerated.
41342         * lib/unictype/categ_Po.h: Regenerated.
41343         * lib/unictype/categ_Ps.h: Regenerated.
41344         * lib/unictype/categ_S.h: Regenerated.
41345         * lib/unictype/categ_Sk.h: Regenerated.
41346         * lib/unictype/categ_Sm.h: Regenerated.
41347         * lib/unictype/categ_So.h: Regenerated.
41348         * lib/unictype/categ_of.h: Regenerated.
41349         * lib/unictype/combining.h: Regenerated.
41350         * lib/unictype/ctype_alnum.h: Regenerated.
41351         * lib/unictype/ctype_alpha.h: Regenerated.
41352         * lib/unictype/ctype_graph.h: Regenerated.
41353         * lib/unictype/ctype_lower.h: Regenerated.
41354         * lib/unictype/ctype_print.h: Regenerated.
41355         * lib/unictype/ctype_punct.h: Regenerated.
41356         * lib/unictype/ctype_upper.h: Regenerated.
41357         * lib/unictype/decdigit.h: Regenerated.
41358         * lib/unictype/digit.h: Regenerated.
41359         * lib/unictype/mirror.h: Regenerated.
41360         * lib/unictype/numeric.h: Regenerated.
41361         * lib/unictype/pr_alphabetic.h: Regenerated.
41362         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41363         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41364         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41365         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41366         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41367         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41368         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41369         * lib/unictype/pr_combining.h: Regenerated.
41370         * lib/unictype/pr_dash.h: Regenerated.
41371         * lib/unictype/pr_decimal_digit.h: Regenerated.
41372         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41373         * lib/unictype/pr_deprecated.h: Regenerated.
41374         * lib/unictype/pr_diacritic.h: Regenerated.
41375         * lib/unictype/pr_extender.h: Regenerated.
41376         * lib/unictype/pr_format_control.h: Regenerated.
41377         * lib/unictype/pr_grapheme_base.h: Regenerated.
41378         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41379         * lib/unictype/pr_grapheme_link.h: Regenerated.
41380         * lib/unictype/pr_id_continue.h: Regenerated.
41381         * lib/unictype/pr_id_start.h: Regenerated.
41382         * lib/unictype/pr_ideographic.h: Regenerated.
41383         * lib/unictype/pr_ignorable_control.h: Regenerated.
41384         * lib/unictype/pr_lowercase.h: Regenerated.
41385         * lib/unictype/pr_math.h: Regenerated.
41386         * lib/unictype/pr_numeric.h: Regenerated.
41387         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41388         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41389         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41390         * lib/unictype/pr_other_id_continue.h: Regenerated.
41391         * lib/unictype/pr_other_lowercase.h: Regenerated.
41392         * lib/unictype/pr_other_math.h: Regenerated.
41393         * lib/unictype/pr_punctuation.h: Regenerated.
41394         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41395         * lib/unictype/pr_soft_dotted.h: Regenerated.
41396         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41397         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41398         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41399         * lib/unictype/pr_uppercase.h: Regenerated.
41400         * lib/unictype/pr_xid_continue.h: Regenerated.
41401         * lib/unictype/pr_xid_start.h: Regenerated.
41402         * lib/unictype/pr_zero_width.h: Regenerated.
41403         * lib/unictype/scripts.h: Regenerated.
41404         * lib/unictype/scripts_byname.gperf: Regenerated.
41405         * lib/unictype/sy_java_ident.h: Regenerated.
41406         * lib/unilbrk/lbrkprop1.h: Regenerated.
41407         * lib/unilbrk/lbrkprop2.h: Regenerated.
41408         * tests/unictype/test-categ_C.c: Regenerated.
41409         * tests/unictype/test-categ_Cf.c: Regenerated.
41410         * tests/unictype/test-categ_Cn.c: Regenerated.
41411         * tests/unictype/test-categ_L.c: Regenerated.
41412         * tests/unictype/test-categ_Ll.c: Regenerated.
41413         * tests/unictype/test-categ_Lm.c: Regenerated.
41414         * tests/unictype/test-categ_Lo.c: Regenerated.
41415         * tests/unictype/test-categ_Lu.c: Regenerated.
41416         * tests/unictype/test-categ_M.c: Regenerated.
41417         * tests/unictype/test-categ_Mc.c: Regenerated.
41418         * tests/unictype/test-categ_Me.c: Regenerated.
41419         * tests/unictype/test-categ_Mn.c: Regenerated.
41420         * tests/unictype/test-categ_N.c: Regenerated.
41421         * tests/unictype/test-categ_Nd.c: Regenerated.
41422         * tests/unictype/test-categ_Nl.c: Regenerated.
41423         * tests/unictype/test-categ_No.c: Regenerated.
41424         * tests/unictype/test-categ_P.c: Regenerated.
41425         * tests/unictype/test-categ_Pd.c: Regenerated.
41426         * tests/unictype/test-categ_Pe.c: Regenerated.
41427         * tests/unictype/test-categ_Pf.c: Regenerated.
41428         * tests/unictype/test-categ_Pi.c: Regenerated.
41429         * tests/unictype/test-categ_Po.c: Regenerated.
41430         * tests/unictype/test-categ_Ps.c: Regenerated.
41431         * tests/unictype/test-categ_S.c: Regenerated.
41432         * tests/unictype/test-categ_Sk.c: Regenerated.
41433         * tests/unictype/test-categ_Sm.c: Regenerated.
41434         * tests/unictype/test-categ_So.c: Regenerated.
41435         * tests/unictype/test-ctype_alnum.c: Regenerated.
41436         * tests/unictype/test-ctype_alpha.c: Regenerated.
41437         * tests/unictype/test-ctype_graph.c: Regenerated.
41438         * tests/unictype/test-ctype_lower.c: Regenerated.
41439         * tests/unictype/test-ctype_print.c: Regenerated.
41440         * tests/unictype/test-ctype_punct.c: Regenerated.
41441         * tests/unictype/test-ctype_upper.c: Regenerated.
41442         * tests/unictype/test-decdigit.h: Regenerated.
41443         * tests/unictype/test-digit.h: Regenerated.
41444         * tests/unictype/test-numeric.h: Regenerated.
41445         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41446         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41447         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41448         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41449         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41450         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41451         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41452         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41453         * tests/unictype/test-pr_combining.c: Regenerated.
41454         * tests/unictype/test-pr_dash.c: Regenerated.
41455         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41456         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41457         * tests/unictype/test-pr_deprecated.c: Regenerated.
41458         * tests/unictype/test-pr_diacritic.c: Regenerated.
41459         * tests/unictype/test-pr_extender.c: Regenerated.
41460         * tests/unictype/test-pr_format_control.c: Regenerated.
41461         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41462         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41463         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41464         * tests/unictype/test-pr_id_continue.c: Regenerated.
41465         * tests/unictype/test-pr_id_start.c: Regenerated.
41466         * tests/unictype/test-pr_ideographic.c: Regenerated.
41467         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41468         * tests/unictype/test-pr_lowercase.c: Regenerated.
41469         * tests/unictype/test-pr_math.c: Regenerated.
41470         * tests/unictype/test-pr_numeric.c: Regenerated.
41471         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41472         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41473         Regenerated.
41474         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41475         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41476         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41477         * tests/unictype/test-pr_other_math.c: Regenerated.
41478         * tests/unictype/test-pr_punctuation.c: Regenerated.
41479         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41480         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41481         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41482         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41483         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41484         * tests/unictype/test-pr_uppercase.c: Regenerated.
41485         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41486         * tests/unictype/test-pr_xid_start.c: Regenerated.
41487         * tests/unictype/test-pr_zero_width.c: Regenerated.
41488
41489         Update to Unicode 5.1.0.
41490         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41491         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41492         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41493         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41494         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41495         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41496         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41497         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41498         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41499         (nonspacing_table_ind): Update.
41500         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41501
41502         Update to Unicode 5.1.0.
41503         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41504         code transform.
41505         * lib/uniname/uniname.c (unicode_character_name,
41506         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41507         * lib/uniname/uninames.h: Regenerated.
41508         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41509
41510 2009-02-07  Bruno Haible  <bruno@clisp.org>
41511
41512         Merge gen-ctype and gen-lbrk into a single program.
41513         * lib/gen-uni-tables.c: New file, incorporating
41514         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41515         Add directory prefixes to the names of the generated files.
41516         * lib/unictype/gen-ctype.c: Remove file.
41517         * lib/unilbrk/gen-lbrk.c: Remove file.
41518         * modules/gen-uni-tables: New file.
41519         * modules/unictype/gen-ctype: Remove file.
41520         * modules/unilbrk/gen-lbrk: Remove file.
41521
41522 2009-02-07  Bruno Haible  <bruno@clisp.org>
41523
41524         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41525
41526         New module 'unistr/u32-strcoll'.
41527         * modules/unistr/u32-strcoll: New file.
41528         * lib/unistr/u32-strcoll.c: New file.
41529
41530         New module 'unistr/u16-strcoll'.
41531         * modules/unistr/u16-strcoll: New file.
41532         * lib/unistr/u16-strcoll.c: New file.
41533
41534         New module 'unistr/u8-strcoll'.
41535         * modules/unistr/u8-strcoll: New file.
41536         * lib/unistr/u8-strcoll.c: New file.
41537         * lib/unistr/u-strcoll.h: New file.
41538
41539 2009-02-07  Bruno Haible  <bruno@clisp.org>
41540
41541         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41542         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41543         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41544         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41545         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41546         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41547
41548 2009-02-07  Bruno Haible  <bruno@clisp.org>
41549
41550         Make 64-bit clean.
41551         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41552         output_combclass, output_bidi_category, output_decimal_digit,
41553         output_digit, output_numeric, output_mirror, output_scripts,
41554         output_ident_category): Use proper width specifier in format strings.
41555
41556 2009-02-07  Bruno Haible  <bruno@clisp.org>
41557
41558         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41559         failure behaviour.
41560
41561 2009-02-07  Jim Meyering  <meyering@redhat.com>
41562
41563         regex: avoid compilation failure with upcoming gcc-4.4
41564         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41565         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41566         "... error: integer overflow in preprocessor expression".
41567
41568 2009-02-05  Ben Pfaff  <blp@gnu.org>
41569
41570         Fix link errors on Windows when close module is used.
41571         * modules/close: Add $(LIB_CLOSE) to Link section.
41572         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41573         $(LIB_CLOSE) on Windows.
41574
41575 2009-02-05  Jim Meyering  <meyering@redhat.com>
41576
41577         still avoid unused-parameter warnings, but do it cleanly
41578         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41579         (get_fs_usage): Cast to void instead.
41580         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41581         (dev_from_mount_options, read_file_system_list): Cast to void.
41582         Prompted by Bruno Haible.
41583
41584 2009-02-04  Jim Meyering  <meyering@redhat.com>
41585
41586         fsusage.c: correct copyright year
41587         * lib/fsusage.c: Reflect year in which the change is pushed into
41588
41589         avoid misc. warnings
41590         * lib/fsusage.c (UNUSED_PARAM): Define.
41591         (get_fs_usage): Mark parameter "disk" as unused.
41592         * lib/getugroups.c (getgrent): Use "void" in prototype.
41593         * lib/mountlist.c: Mark unused parameters.
41594         (read_file_system_list): Declare a local with "const".
41595         * lib/nanosleep.c (getnow): Declare static.
41596         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41597
41598         dirfd: set errno upon failure
41599         * lib/dirfd.c: Include <errno.h>.
41600         Set errno to ENOTSUP when returning -1.
41601         * modules/dirfd (Depends-on): Add errno.
41602         Suggested by John Kodis <kodis@comcast.net>.
41603
41604 2009-02-01  Bruno Haible  <bruno@clisp.org>
41605
41606         Don't assume sizeof (long) >= sizeof (void *).
41607         * lib/memcmp.c: Include stdint.h.
41608         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41609         srcp2 to 'const byte *'.
41610         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41611         types to uintptr_t.
41612         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41613         * modules/memcmp (Depends-on): Add stdint.
41614         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41615
41616 2009-01-30  Eric Blake  <ebb9@byu.net>
41617
41618         fix more require-before-expand issues
41619         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41620         expand, AC_PROG_AWK.
41621         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41622
41623 2009-01-28  Eric Blake  <ebb9@byu.net>
41624
41625         version-etc: use consistent URL formatting
41626         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41627         Improve formatting.  Use fputs for string without %.
41628
41629 2009-01-28  Jim Meyering  <meyering@redhat.com>
41630
41631         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41632         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41633         "underquoted definition of NAME" from autoconf-2.59.
41634
41635 2009-01-28  Bruno Haible  <bruno@clisp.org>
41636
41637         * doc/gnulib.texi: Add "Obsolete modules" to index.
41638
41639 2009-01-28  Jim Meyering  <meyering@redhat.com>
41640
41641         useless-if-before-free: recognize more variants
41642         * build-aux/useless-if-before-free: Also recognize e.g.,
41643         if (NULL != p) free (p);
41644
41645 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41646
41647         test-getaddrinfo: skip (don't fail) this test when there's no network
41648         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41649         on the presumption that it means you lack network access.
41650
41651 2009-01-26  Jim Meyering  <meyering@redhat.com>
41652
41653         fflush: avoid warnings on modern systems
41654         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41655         pos and result, into scopes where they're used.
41656
41657 2009-01-26  Eric Blake  <ebb9@byu.net>
41658
41659         Silence warning reintroduced by recent extensions patch.
41660         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41661         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41662         autoconf.
41663
41664         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41665         * m4/00gnulib.m4: New file.
41666         * gnulib-tool (func_get_filelist): Always use it.
41667         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41668         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41669
41670 2009-01-25  Bruno Haible  <bruno@clisp.org>
41671
41672         Make test-quotearg work on MacOS X and AIX.
41673         * tests/test-quotearg.sh: New file.
41674         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41675         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41676         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41677         include <libintl.h>.
41678         (fake_locale): Remove variable.
41679         (gettext, dgettext, dcgettext): Remove functions.
41680         (main): Instead of setting a fake locale, set a real locale. Call
41681         textdomain and bindtextdomain.
41682         * modules/quotearg-tests (Files): Add the new files.
41683         (Depends-on): Add gettext, setenv, unsetenv.
41684         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41685         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41686         Augment TESTS_ENVIRONMENT.
41687
41688 2009-01-25  Bruno Haible  <bruno@clisp.org>
41689
41690         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41691         fr_FR.ISO8859-1 locale on MacOS X.
41692         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41693         ja_JP.eucJP locale on MacOS X.
41694         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41695         zh_CN.GB18030 locale on MacOS X.
41696
41697 2009-01-25  Bruno Haible  <bruno@clisp.org>
41698
41699         Avoid link errors on MacOS X 10.3.
41700         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41701         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41702
41703 2009-01-25  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41706         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41707         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41708         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41709         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41710         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41711         posix_spawnattr_init, posix_spawnattr_setsigmask,
41712         posix_spawnattr_setflags, posix_spawnattr_destroy.
41713
41714         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41715         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41716         * modules/execute (Files): Remove m4/posix_spawn.m4.
41717         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41718         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41719         posix_spawnattr_init, posix_spawnattr_setsigmask,
41720         posix_spawnattr_setflags, posix_spawnattr_destroy.
41721
41722 2009-01-25  Bruno Haible  <bruno@clisp.org>
41723
41724         * lib/glthread/threadlib.c: Include <stdlib.h>.
41725
41726 2009-01-25  Bruno Haible  <bruno@clisp.org>
41727
41728         * lib/glthread/threadlib.c (dummy): New declaration.
41729
41730 2009-01-25  Bruno Haible  <bruno@clisp.org>
41731
41732         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41733         multibyte characters also for the GB18030 encoding. Don't crash when
41734         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41735
41736 2009-01-25  Bruno Haible  <bruno@clisp.org>
41737
41738         Avoid redefining 'struct random_data' on OSF/1 5.1.
41739         * lib/stdlib.in.h: Include <random.h> if it exists.
41740         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41741         HAVE_RANDOM_H. Include <random.h> when testing whether
41742         'struct random_data' exists.
41743         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41744
41745 2009-01-25  Bruno Haible  <bruno@clisp.org>
41746
41747         Don't install charset.alias on MacOS X >= 10.3.
41748         * lib/localcharset.c (DARWIN7): New macro.
41749         (get_charset_aliases): Hardcode the result for Darwin7.
41750         * modules/localcharset (install-exec-local): Don't install
41751         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41752
41753 2009-01-25  Bruno Haible  <bruno@clisp.org>
41754
41755         Don't install charset.alias on mingw and Cygwin.
41756         * modules/localcharset (install-exec-local): Don't install
41757         charset.alias on mingw and Cygwin, if the file does not yet exist.
41758         The result for these platforms is hardcoded in localcharset.c.
41759
41760 2009-01-25  Bruno Haible  <bruno@clisp.org>
41761
41762         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41764         before requiring AC_USE_SYSTEM_EXTENSIONS.
41765
41766 2009-01-25  Jim Meyering  <meyering@redhat.com>
41767
41768         c-strtod: avoid warnings
41769         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41770         "assignment discards qualifiers from pointer target type" warnings.
41771
41772 2009-01-24  Bruno Haible  <bruno@clisp.org>
41773
41774         Add support for non-UTF-8 locales on MacOS X.
41775         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41776         canonical encodings. For Darwin 7 and newer, don't map traditional
41777         encodings to UTF-8.
41778         Reported by Vincent Lefevre <vincent@vinc17.org>
41779         at <http://savannah.gnu.org/bugs/?25235>.
41780
41781 2009-01-24  Bruno Haible  <bruno@clisp.org>
41782
41783         * doc/gnulib.texi (Obsolete modules): New section.
41784         Reported by Mike Frysinger <vapier@gentoo.org>.
41785
41786 2009-01-24  Bruno Haible  <bruno@clisp.org>
41787
41788         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41789         (%.dvi): New rule.
41790
41791 2009-01-24  Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41794         Reported by Eric Blake.
41795
41796 2009-01-24  Bruno Haible  <bruno@clisp.org>
41797
41798         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41799         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41800         Reported by Gary V. Vaughan <gary@gnu.org>.
41801
41802 2009-01-24  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41805
41806 2009-01-23  Bruno Haible  <bruno@clisp.org>
41807
41808         Make c-strtod, c-strtold usable in libraries.
41809         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41810         (C_STRTOD): Call strdup instead of xstrdup.
41811         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41812         * modules/c-strtold (Depends-on): Likewise.
41813         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41814         * NEWS: Mention the change.
41815         Reported by Michael Gold <mgold@ncf.ca>.
41816
41817 2009-01-23  Jim Meyering  <meyering@redhat.com>
41818
41819         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41820         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41821         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41822
41823 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41824
41825         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41826         GNU CoreUtils.
41827         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41828         * modules/version-etc (Description): Update.
41829
41830 2009-01-22  Bruno Haible  <bruno@clisp.org>
41831
41832         Cache the C locale object.
41833         * lib/c-strtod.c (c_locale_cache): New variable.
41834         (c_locale): New function.
41835         (C_STRTOD): Use it, and don't call freelocale.
41836         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41837         Suggested by Paolo Bonzini.
41838
41839 2009-01-21  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41842         conditions other than overflow.
41843
41844 2009-01-21  Bruno Haible  <bruno@clisp.org>
41845
41846         * lib/c-strtod.c: Include errno.h.
41847         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41848         value from STRTOD_L and STRTOD.
41849
41850 2009-01-21  Bruno Haible  <bruno@clisp.org>
41851         and Jim Meyering  <meyering@redhat.com>
41852
41853         nanosleep: skip configure test (fail it) for apple universal builds
41854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41855         universal builds, assume that nanosleep does not work.
41856         * modules/nanosleep (Depends-on): Add multiarch.
41857
41858         mktime: skip configure test (fail it) for apple universal builds
41859         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41860         universal builds, assume that mktime does not work.
41861         * modules/mktime (Depends-on): Add multiarch.
41862
41863 2009-01-21  Eric Blake  <ebb9@byu.net>
41864
41865         multiarch: avoid expand-before-require warning
41866         * modules/multiarch (configure.ac): Require, rather than expand,
41867         gl_MULTIARCH.
41868         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41869         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41870         enforce that all clients require it.  Partial reversion of
41871         2008-12-29 patch.
41872
41873         error: avoid expand-before-require warning
41874         * modules/errno (configure.ac): Require, rather than expand,
41875         gl_HEADER_ERRNO_H.
41876         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41877         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41878         enforce that all clients require it.
41879
41880         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41881         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41882         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41883         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41884
41885 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41886
41887         Revert:
41888         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41889
41890         regex: do not depend on obsolete modules.
41891         * modules/regex: Remove memcmp and memmove.
41892
41893 2009-01-20  Bruno Haible  <bruno@clisp.org>
41894
41895         Make the 'link' module link on Windows NT 4.
41896         * lib/link.c (_WIN32_WINNT): Don't define.
41897         (CreateHardLinkFuncType): New type.
41898         (CreateHardLinkFunc, initialized): New variables.
41899         (initialize): New function.
41900         (link): Invoke CreateHardLink indirectly through the function pointer.
41901
41902 2009-01-20  Bruno Haible  <bruno@clisp.org>
41903
41904         Fix compilation failure on mingw.
41905         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41906
41907 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41908
41909         * doc/c-strtod.texi: Mention a couple of restrictions.
41910
41911 2009-01-20  Jim Meyering  <meyering@redhat.com>
41912
41913         gettimeofday: move more declarations out of functions
41914         * lib/gettimeofday.c: Move extern declarations of tzset and
41915         gmtime out of containing functions.  Prompted by Bruno Haible.
41916
41917 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41918
41919         regex: do not depend on obsolete modules.
41920         * modules/regex: Remove memcmp and memmove.
41921
41922 2009-01-19  Bruno Haible  <bruno@clisp.org>
41923
41924         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41925         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41926         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41927         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41928         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41929
41930 2009-01-19  Bruno Haible  <bruno@clisp.org>
41931
41932         * tests/test-link.c: Include <errno.h>.
41933         (main): Exit with code 77 when a hard link cannot be created due to
41934         the file system.
41935         * tests/test-link.sh: Skip test when a hard link cannot be created due
41936         to the file system.
41937         Suggested by Eric Blake.
41938
41939 2009-01-19  Martin Lambers  <marlam@marlam.de>
41940
41941         * modules/link-tests: New file.
41942         * tests/test-link.sh: New file.
41943         * tests/test-link.c: New file.
41944
41945 2009-01-19  Eric Blake  <ebb9@byu.net>
41946
41947         doc: mention another function added in cygwin 1.7.0
41948         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41949         Another new function in cygwin 1.7.
41950
41951 2009-01-19  Bruno Haible  <bruno@clisp.org>
41952
41953         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41954         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41955         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41956         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41958         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41959         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41960         * m4/md4.m4 (gl_MD4): Likewise.
41961         * m4/md5.m4 (gl_MD5): Likewise.
41962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41963         * m4/sha1.m4 (gl_SHA1): Likewise.
41964         * m4/sha256.m4 (gl_SHA256): Likewise.
41965         * m4/sha512.m4 (gl_SHA512): Likewise.
41966
41967 2009-01-19  Bruno Haible  <bruno@clisp.org>
41968
41969         * modules/uniname/uniname-tests (Depends-on): Add progname.
41970         * tests/uniname/test-uninames.c: Include progname.h.
41971         (main): Call set_program_name.
41972
41973         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41974         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41975         (main): Call set_program_name.
41976
41977         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41978         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41979         (main): Call set_program_name.
41980
41981         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41982         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41983         (main): Call set_program_name.
41984
41985         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41986         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41987         (main): Call set_program_name.
41988
41989         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41990         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41991         (main): Call set_program_name.
41992
41993         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41994         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41995         (main): Call set_program_name.
41996
41997         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41998         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41999         (main): Call set_program_name.
42000
42001         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42002         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42003         (main): Call set_program_name.
42004
42005 2009-01-19  Eric Blake  <ebb9@byu.net>
42006
42007         test-unistd: test previous patch
42008         * tests/test-unistd.c: Test *_FILENO macros.
42009
42010         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42011         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42012         Guarantee a definition.
42013         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42014         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42015         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42016         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42017         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42018         Likewise.
42019         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42020         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42021         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42022         Likewise.
42023         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42024         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42025         (STDERR_FILENO): Likewise.
42026         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42027         (STDERR_FILENO): Likewise.
42028         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42029         (STDERR_FILENO): Likewise.
42030         Reported by Elbert Pol.
42031
42032 2009-01-19  Eric Blake  <ebb9@byu.net>
42033
42034         doc: mention more functions added in cygwin 1.7.0
42035         * doc/posix-functions/abort.texi (abort): Update wording related
42036         to cygwin.
42037         * doc/posix-functions/daylight.texi (daylight): Likewise.
42038         * doc/posix-functions/optarg.texi (optarg): Likewise.
42039         * doc/posix-functions/optarg.texi (opterr): Likewise.
42040         * doc/posix-functions/optarg.texi (optind): Likewise.
42041         * doc/posix-functions/optarg.texi (optopt): Likewise.
42042         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42043         worked in 1.5.x, and was withdrawn in 1.7.
42044         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42045         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42046         cygwin versions.
42047         * doc/posix-functions/perror.texi (perror): Likewise.
42048         * doc/posix-functions/printf.texi (printf): Likewise.
42049         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42050         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42051         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42052         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42053         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42054         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42055         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42056         Likewise.
42057         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42058         Likewise.
42059         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42060         this function.
42061         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42062         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42063         Likewise.
42064         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42065         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42066         * doc/posix-functions/confstr.texi (confstr): Likewise.
42067         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42068         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42069         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42070         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42071         * doc/posix-functions/fputws.texi (fputws): Likewise.
42072         * doc/posix-functions/fwide.texi (fwide): Likewise.
42073         * doc/posix-functions/getwc.texi (getwc): Likewise.
42074         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42075         * doc/posix-functions/putwc.texi (putwc): Likewise.
42076         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42077         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42078         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42079         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42080         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42081         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42082         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42083         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42084         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42085         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42086         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42087
42088 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42089
42090         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42091         * lib/ioctl.c: Include <sys/ioctl.h>.
42092
42093 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42094
42095         * modules/getdate-tests (Depends-on): Add progname.
42096         * tests/test-getdate.c: Use progname module, to avoid link errors
42097         on non-glibc systems.
42098
42099 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42100
42101         * modules/filenamecat-tests (Depends-on): Add progname.
42102         * modules/fstrcmp-tests (Depends-on): Likewise.
42103
42104         * tests/test-filenamecat.c: Use progname module, to avoid link
42105         errors on non-glibc systems.
42106         * tests/test-fstrcmp.c: Likewise.
42107
42108 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42109
42110         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42111         * lib/gettimeofday.c: Move extern declaration out of function.
42112
42113 2009-01-18  Bruno Haible  <bruno@clisp.org>
42114
42115         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42116         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42117         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42118
42119 2009-01-18  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/strftime.c (MEMPCPY): Remove unused macro.
42122         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42123
42124 2009-01-18  Martin Lambers  <marlam@marlam.de>
42125
42126         New module 'link'.
42127         * lib/unistd.in.h (link): New declaration.
42128         * lib/link.c: New file.
42129         * m4/link.m4: New file.
42130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42131         HAVE_LINK.
42132         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42133         * modules/link: New file.
42134         * doc/posix-functions/link.texi: Mention the new module.
42135
42136 2009-01-18  Bruno Haible  <bruno@clisp.org>
42137
42138         * tests/test-avltree_list.c (main): Call set_program_name.
42139         * tests/test-avltree_oset.c (main): Likewise.
42140         * tests/test-obstack-printf.c: Include progname.h.
42141         (main): Call set_program_name.
42142         * tests/test-quotearg.c: Include progname.h.
42143         (main): Call set_program_name.
42144         * tests/test-xmemdup0.c: Include progname.h.
42145         (main): Call set_program_name.
42146
42147 2009-01-18  Bruno Haible  <bruno@clisp.org>
42148
42149         New module 'alphasort'.
42150         * lib/dirent.in.h (alphasort): New declaration.
42151         * lib/alphasort.c: New file, from glibc with modifications.
42152         * m4/alphasort.m4: New file.
42153         * modules/alphasort: New file.
42154         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42155         HAVE_ALPHASORT.
42156         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42157         HAVE_ALPHASORT.
42158         * doc/posix-functions/alphasort.texi: Mention the new module and the
42159         portability problems.
42160
42161 2009-01-18  Bruno Haible  <bruno@clisp.org>
42162
42163         New module 'scandir'.
42164         * lib/dirent.in.h (scandir): New declaration.
42165         * lib/scandir.c: New file, from glibc with modifications.
42166         * m4/scandir.m4: New file.
42167         * modules/scandir: New file.
42168         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42169         HAVE_SCANDIR.
42170         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42171         HAVE_SCANDIR.
42172         * doc/posix-functions/scandir.texi: Mention the new module and the
42173         portability problems.
42174
42175 2009-01-17  Bruno Haible  <bruno@clisp.org>
42176
42177         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42178         Update documentation.
42179         (func_remove_suffix): Escape all dots in the suffix. Update
42180         documentation.
42181         (func_filter_filelist): Update documentation.
42182         Reported by Ralf Wildenhues.
42183
42184 2009-01-17  Bruno Haible  <bruno@clisp.org>
42185
42186         * modules/dprintf-posix-tests: New file.
42187         * tests/test-dprintf-posix.sh: New file.
42188         * tests/test-dprintf-posix.c: New file.
42189
42190         New modules 'dprintf', 'dprintf-posix'.
42191         * lib/stdio.in.h (dprintf): New declaration.
42192         * lib/dprintf.c: New file.
42193         * m4/dprintf.m4: New file.
42194         * m4/dprintf-posix.m4: New file.
42195         * modules/dprintf: New file.
42196         * modules/dprintf-posix: New file.
42197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42198         HAVE_DPRINTF, REPLACE_DPRINTF.
42199         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42200         HAVE_DPRINTF, REPLACE_DPRINTF.
42201         * doc/posix-functions/dprintf.texi: Mention the new modules.
42202
42203 2009-01-17  Bruno Haible  <bruno@clisp.org>
42204
42205         * modules/vdprintf-posix-tests: New file.
42206         * tests/test-vdprintf-posix.sh: New file.
42207         * tests/test-vdprintf-posix.c: New file.
42208
42209         New modules 'vdprintf', 'vdprintf-posix'.
42210         * lib/stdio.in.h (vdprintf): New declaration.
42211         * lib/vdprintf.c: New file.
42212         * m4/vdprintf.m4: New file.
42213         * m4/vdprintf-posix.m4: New file.
42214         * modules/vdprintf: New file.
42215         * modules/vdprintf-posix: New file.
42216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42217         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42218         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42219         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42220         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42221
42222 2009-01-17  Bruno Haible  <bruno@clisp.org>
42223
42224         Fix replacement of fopen on mingw.
42225         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42226         mingw.
42227
42228 2009-01-17  Bruno Haible  <bruno@clisp.org>
42229
42230         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42231         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42232
42233 2009-01-17  Bruno Haible  <bruno@clisp.org>
42234
42235         Avoid test-fflush2.sh failure on mingw.
42236         * tests/test-fflush2.c: Include binary-io.h.
42237         (main): Put standard input into binary mode.
42238         * modules/fflush-tests (Depends-on): Add binary-io.
42239
42240 2009-01-17  Bruno Haible  <bruno@clisp.org>
42241
42242         * lib/wchar.in.h: In another particular situation, include only the
42243         system's <wchar.h> file.
42244         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42245         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42246         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42247
42248 2009-01-17  Bruno Haible  <bruno@clisp.org>
42249
42250         Support for stripping executables in --enable-relocatable.
42251         * build-aux/install-reloc: Expect one more argument, or an environment
42252         variable RELOC_STRIP_PROG. If set, strip the destination program and
42253         its wrapper.
42254         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42255         RELOC_STRIP_PROG.
42256         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42257         to set RELOCATABLE_STRIP.
42258         * NEWS: Mention the new Makefile requirement.
42259
42260 2009-01-17  Bruno Haible  <bruno@clisp.org>
42261
42262         * build-aux/install-reloc: Remove debugging information left over by
42263         C compiler on MacOS X.
42264
42265 2009-01-17  Bruno Haible  <bruno@clisp.org>
42266
42267         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42268         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42269         _NSGetExecutablePath.
42270
42271 2009-01-16  Jim Meyering  <meyering@redhat.com>
42272
42273         strerror: avoid warnings about discarding "const"
42274         * lib/strerror.c (rpl_strerror): Instead of returning a const
42275         string from each and every "case", use a variable, and add a single
42276         cast after the switch.
42277
42278 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42279
42280         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42281
42282 2009-01-16  Bruno Haible  <bruno@clisp.org>
42283
42284         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42285         array initializer syntax that also works in C++ mode.
42286         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42287
42288 2009-01-16  Jim Meyering  <meyering@redhat.com>
42289
42290         poll: suppress a warning
42291         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42292         to ignore "...unsigned expression < 0 is always false" warnings.
42293
42294 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42295
42296         poll: remove declarations of unused variables
42297         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42298         sockbuf and optlen.
42299
42300 2009-01-15  Bruno Haible  <bruno@clisp.org>
42301
42302         Make fflush-after-ungetc POSIX compliant on BSD systems.
42303         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42304         (clear_ungetc_buffer): Implement also for other systems.
42305         (rpl_fflush): On glibc systems, invoke
42306         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42307         clear_ungetc_buffer after fetching the stream's position, not before.
42308
42309 2009-01-15  Bruno Haible  <bruno@clisp.org>
42310
42311         Make fflush-after-ungetc POSIX compliant on glibc systems.
42312         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42313         after ungetc.
42314         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42315         (rpl_fflush): On glibc systems, simply call the system's fflush
42316         function after clearing the ungetc buffer.
42317         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42318         Instead, lseek only to the end of file, then use the system's fseeko
42319         for the rest. On glibc systems, reset the EOF indicator bit.
42320
42321 2009-01-15  Jim Meyering  <meyering@redhat.com>
42322
42323         openmp.m4: revert quote-adding change, for portability to older autoconf
42324         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42325         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42326         Simon Josefsson noticed the problem when using autoconf-2.61.
42327
42328 2009-01-15  Bruno Haible  <bruno@clisp.org>
42329
42330         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42331         * tests/test-fflush2.c (ASSERT): Always fail.
42332         (main): Add two tests for fflush() after ungetc(), taking into account
42333         the Austin Group's clarification.
42334         Suggested by Eric Blake.
42335
42336 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42337
42338         mktime.m4: remove K&R-style function prototypes
42339         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42340         for the Sun C++ compiler.
42341
42342 2009-01-14  Bruno Haible  <bruno@clisp.org>
42343
42344         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42345         while including <wchar.h>.
42346         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42347         the system's <wchar.h> file.
42348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42349
42350 2009-01-14  Bruno Haible  <bruno@clisp.org>
42351
42352         * m4/csharp.m4: Don't mention gettext on the serial number line.
42353         * m4/csharpexec.m4: Likewise.
42354         * m4/eaccess.m4: Likewise.
42355         * m4/javaexec.m4: Likewise.
42356         * m4/sig_atomic_t.m4: Likewise.
42357         * m4/tmpdir.m4: Likewise.
42358         * m4/intldir.m4: Bump gettext version.
42359         * m4/lib-ld.m4: Likewise.
42360
42361 2009-01-14  Bruno Haible  <bruno@clisp.org>
42362
42363         * lib/progname.c (set_program_name): Add more comments.
42364         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42365
42366 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42367
42368         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42369         were sys/stat.h does not define it.
42370
42371 2009-01-14  Jim Meyering  <meyering@redhat.com>
42372
42373         many *.m4 files: improve m4 quoting
42374         99% of this change was performed by running the following commands:
42375         git ls-files | grep '\.m4$' | xargs perl -pi \
42376           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42377           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42378           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42379           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42380         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42381         The remainder were to add Copyright dates, increment serial numbers,
42382         undo some changes in comments, exclude m4/intl.m4, and add quotes
42383         around the "1" in ",1" where the unusual spacing prohibited the
42384         above regexps from doing the job.  For more details, see
42385         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42386         * m4/acl.m4: Modified.
42387         * m4/afs.m4: Likewise.
42388         * m4/alloca.m4: Likewise.
42389         * m4/argp.m4: Likewise.
42390         * m4/argz.m4: Likewise.
42391         * m4/atexit.m4: Likewise.
42392         * m4/bison-i18n.m4: Likewise.
42393         * m4/bison.m4: Likewise.
42394         * m4/byteswap.m4: Likewise.
42395         * m4/c-stack.m4: Likewise.
42396         * m4/c-strtod.m4: Likewise.
42397         * m4/calloc.m4: Likewise.
42398         * m4/canonicalize-lgpl.m4: Likewise.
42399         * m4/chown.m4: Likewise.
42400         * m4/clock_time.m4: Likewise.
42401         * m4/codeset.m4: Likewise.
42402         * m4/copy-file.m4: Likewise.
42403         * m4/csharp.m4: Likewise.
42404         * m4/csharpcomp.m4: Likewise.
42405         * m4/csharpexec.m4: Likewise.
42406         * m4/d-ino.m4: Likewise.
42407         * m4/d-type.m4: Likewise.
42408         * m4/dirfd.m4: Likewise.
42409         * m4/double-slash-root.m4: Likewise.
42410         * m4/eaccess.m4: Likewise.
42411         * m4/eealloc.m4: Likewise.
42412         * m4/environ.m4: Likewise.
42413         * m4/errno_h.m4: Likewise.
42414         * m4/euidaccess.m4: Likewise.
42415         * m4/execute.m4: Likewise.
42416         * m4/fatal-signal.m4: Likewise.
42417         * m4/fchdir.m4: Likewise.
42418         * m4/fcntl_h.m4: Likewise.
42419         * m4/fileblocks.m4: Likewise.
42420         * m4/filenamecat.m4: Likewise.
42421         * m4/findprog.m4: Likewise.
42422         * m4/flexmember.m4: Likewise.
42423         * m4/fnmatch.m4: Likewise.
42424         * m4/fopen.m4: Likewise.
42425         * m4/fpending.m4: Likewise.
42426         * m4/fprintf-posix.m4: Likewise.
42427         * m4/free.m4: Likewise.
42428         * m4/frexp.m4: Likewise.
42429         * m4/frexpl.m4: Likewise.
42430         * m4/fsusage.m4: Likewise.
42431         * m4/ftruncate.m4: Likewise.
42432         * m4/gc-camellia.m4: Likewise.
42433         * m4/gc-random.m4: Likewise.
42434         * m4/gc.m4: Likewise.
42435         * m4/getaddrinfo.m4: Likewise.
42436         * m4/getcwd-abort-bug.m4: Likewise.
42437         * m4/getcwd-path-max.m4: Likewise.
42438         * m4/getdate.m4: Likewise.
42439         * m4/getdomainname.m4: Likewise.
42440         * m4/getgroups.m4: Likewise.
42441         * m4/gethostname.m4: Likewise.
42442         * m4/gethrxtime.m4: Likewise.
42443         * m4/getline.m4: Likewise.
42444         * m4/getloadavg.m4: Likewise.
42445         * m4/getndelim2.m4: Likewise.
42446         * m4/getpass.m4: Likewise.
42447         * m4/gettext.m4: Likewise.
42448         * m4/gettime.m4: Likewise.
42449         * m4/gettimeofday.m4: Likewise.
42450         * m4/gnulib-common.m4: Likewise.
42451         * m4/group-member.m4: Likewise.
42452         * m4/host-os.m4: Likewise.
42453         * m4/iconv.m4: Likewise.
42454         * m4/iconv_open.m4: Likewise.
42455         * m4/inet_ntop.m4: Likewise.
42456         * m4/inet_pton.m4: Likewise.
42457         * m4/inline.m4: Likewise.
42458         * m4/intldir.m4: Likewise.
42459         * m4/intlmacosx.m4: Likewise.
42460         * m4/intmax.m4: Likewise.
42461         * m4/intmax_t.m4: Likewise.
42462         * m4/inttypes.m4: Likewise.
42463         * m4/inttypes_h.m4: Likewise.
42464         * m4/inttypes-pri.m4: Likewise.
42465         * m4/isapipe.m4: Likewise.
42466         * m4/isnand.m4: Likewise.
42467         * m4/isnanf.m4: Likewise.
42468         * m4/isnanl.m4: Likewise.
42469         * m4/javacomp.m4: Likewise.
42470         * m4/javaexec.m4: Likewise.
42471         * m4/jm-winsz1.m4: Likewise.
42472         * m4/jm-winsz2.m4: Likewise.
42473         * m4/lchown.m4: Likewise.
42474         * m4/lcmessage.m4: Likewise.
42475         * m4/ldexpl.m4: Likewise.
42476         * m4/lib-ld.m4: Likewise.
42477         * m4/lib-link.m4: Likewise.
42478         * m4/libsigsegv.m4: Likewise.
42479         * m4/link-follow.m4: Likewise.
42480         * m4/localcharset.m4: Likewise.
42481         * m4/locale-fr.m4: Likewise.
42482         * m4/locale-ja.m4: Likewise.
42483         * m4/locale-tr.m4: Likewise.
42484         * m4/locale-zh.m4: Likewise.
42485         * m4/lock.m4: Likewise.
42486         * m4/longlong.m4: Likewise.
42487         * m4/ls-mntd-fs.m4: Likewise.
42488         * m4/lstat.m4: Likewise.
42489         * m4/malloc.m4: Likewise.
42490         * m4/mathl.m4: Likewise.
42491         * m4/mbrtowc.m4: Likewise.
42492         * m4/mbstate_t.m4: Likewise.
42493         * m4/mbswidth.m4: Likewise.
42494         * m4/memchr.m4: Likewise.
42495         * m4/memcmp.m4: Likewise.
42496         * m4/memcpy.m4: Likewise.
42497         * m4/memmem.m4: Likewise.
42498         * m4/memmove.m4: Likewise.
42499         * m4/mempcpy.m4: Likewise.
42500         * m4/memrchr.m4: Likewise.
42501         * m4/memset.m4: Likewise.
42502         * m4/minmax.m4: Likewise.
42503         * m4/mkdir-slash.m4: Likewise.
42504         * m4/mkdtemp.m4: Likewise.
42505         * m4/mktime.m4: Likewise.
42506         * m4/mmap-anon.m4: Likewise.
42507         * m4/mountlist.m4: Likewise.
42508         * m4/nanosleep.m4: Likewise.
42509         * m4/nls.m4: Likewise.
42510         * m4/nocrash.m4: Likewise.
42511         * m4/open.m4: Likewise.
42512         * m4/openat.m4: Likewise.
42513         * m4/openmp.m4: Likewise.
42514         * m4/pathmax.m4: Likewise.
42515         * m4/perl.m4: Likewise.
42516         * m4/physmem.m4: Likewise.
42517         * m4/pipe.m4: Likewise.
42518         * m4/po.m4: Likewise.
42519         * m4/poll.m4: Likewise.
42520         * m4/posixtm.m4: Likewise.
42521         * m4/posixver.m4: Likewise.
42522         * m4/printf-frexp.m4: Likewise.
42523         * m4/printf-frexpl.m4: Likewise.
42524         * m4/printf-posix.m4: Likewise.
42525         * m4/printf-posix-rpl.m4: Likewise.
42526         * m4/printf.m4: Likewise.
42527         * m4/progtest.m4: Likewise.
42528         * m4/putenv.m4: Likewise.
42529         * m4/readline.m4: Likewise.
42530         * m4/readlink.m4: Likewise.
42531         * m4/readutmp.m4: Likewise.
42532         * m4/realloc.m4: Likewise.
42533         * m4/regex.m4: Likewise.
42534         * m4/relocatable.m4: Likewise.
42535         * m4/relocatable-lib.m4: Likewise.
42536         * m4/rename-dest-slash.m4: Likewise.
42537         * m4/rename.m4: Likewise.
42538         * m4/rmdir-errno.m4: Likewise.
42539         * m4/rmdir.m4: Likewise.
42540         * m4/roundf.m4: Likewise.
42541         * m4/roundl.m4: Likewise.
42542         * m4/rpmatch.m4: Likewise.
42543         * m4/save-cwd.m4: Likewise.
42544         * m4/selinux-selinux-h.m4: Likewise.
42545         * m4/setenv.m4: Likewise.
42546         * m4/settime.m4: Likewise.
42547         * m4/sig2str.m4: Likewise.
42548         * m4/sig_atomic_t.m4: Likewise.
42549         * m4/signalblocking.m4: Likewise.
42550         * m4/signbit.m4: Likewise.
42551         * m4/sigpipe.m4: Likewise.
42552         * m4/sockets.m4: Likewise.
42553         * m4/sockpfaf.m4: Likewise.
42554         * m4/st_dm_mode.m4: Likewise.
42555         * m4/stat-time.m4: Likewise.
42556         * m4/stdbool.m4: Likewise.
42557         * m4/stdint.m4: Likewise.
42558         * m4/stdint_h.m4: Likewise.
42559         * m4/stpcpy.m4: Likewise.
42560         * m4/stpncpy.m4: Likewise.
42561         * m4/strcase.m4: Likewise.
42562         * m4/strchrnul.m4: Likewise.
42563         * m4/strcspn.m4: Likewise.
42564         * m4/strdup.m4: Likewise.
42565         * m4/strftime.m4: Likewise.
42566         * m4/strndup.m4: Likewise.
42567         * m4/strnlen.m4: Likewise.
42568         * m4/strpbrk.m4: Likewise.
42569         * m4/strptime.m4: Likewise.
42570         * m4/strsep.m4: Likewise.
42571         * m4/strtod.m4: Likewise.
42572         * m4/strtoimax.m4: Likewise.
42573         * m4/strtok_r.m4: Likewise.
42574         * m4/strtol.m4: Likewise.
42575         * m4/strtoll.m4: Likewise.
42576         * m4/strtoul.m4: Likewise.
42577         * m4/strtoull.m4: Likewise.
42578         * m4/strtoumax.m4: Likewise.
42579         * m4/strverscmp.m4: Likewise.
42580         * m4/threadlib.m4: Likewise.
42581         * m4/timegm.m4: Likewise.
42582         * m4/tm_gmtoff.m4: Likewise.
42583         * m4/tmpdir.m4: Likewise.
42584         * m4/tmpfile.m4: Likewise.
42585         * m4/tzset.m4: Likewise.
42586         * m4/uintmax_t.m4: Likewise.
42587         * m4/unlinkdir.m4: Likewise.
42588         * m4/unlocked-io.m4: Likewise.
42589         * m4/uptime.m4: Likewise.
42590         * m4/userspec.m4: Likewise.
42591         * m4/utimbuf.m4: Likewise.
42592         * m4/utime.m4: Likewise.
42593         * m4/utimes-null.m4: Likewise.
42594         * m4/utimes.m4: Likewise.
42595         * m4/vararrays.m4: Likewise.
42596         * m4/vasnprintf.m4: Likewise.
42597         * m4/vfprintf-posix.m4: Likewise.
42598         * m4/vprintf-posix.m4: Likewise.
42599         * m4/wait-process.m4: Likewise.
42600         * m4/wchar_t.m4: Likewise.
42601         * m4/wint_t.m4: Likewise.
42602         * m4/write-any-file.m4: Likewise.
42603         * m4/yield.m4: Likewise.
42604
42605 2009-01-13  Bruno Haible  <bruno@clisp.org>
42606
42607         Avoid test-copy-file.sh failures when ACL support insufficient.
42608         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42609         TESTS_ENVIRONMENT.
42610         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42611         Reported by Jim Meyering.
42612
42613 2009-01-13  Bruno Haible  <bruno@clisp.org>
42614
42615         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42616         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42617         * modules/unistdio/u8-printf-parse (Files): Likewise.
42618         * modules/unistdio/u32-printf-parse (Files): Likewise.
42619         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42620
42621 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42622
42623         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42624         and m4/inttypes_h.m4 too.
42625
42626 2009-01-12  Eric Blake  <ebb9@byu.net>
42627
42628         tests: IRIX 6.2 cc can't compile -0.0 into .data
42629         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42630         rather than at compile-time.
42631         * tests/test-floorl.c (minus_zero): Likewise.
42632         * tests/test-frexpl.c (minus_zero): Likewise.
42633         * tests/test-isnan.c (minus_zerol): Likewise.
42634         * tests/test-isnanl.h (minus_zero): Likewise.
42635         * tests/test-ldexpl.c (minus_zero): Likewise.
42636         * tests/test-roundl.c (minus_zero): Likewise.
42637         * tests/test-signbit.c (minus_zerol): Likewise.
42638         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42639         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42640         * tests/test-truncl.c (minus_zero): Likewise.
42641         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42642         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42643         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42644
42645 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42646
42647         regex: fix glibc bug 9697
42648         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42649         handling.
42650
42651 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42652
42653         regex: fix glibc bug 697
42654         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42655         being NULL also if there are no backreferences.
42656
42657 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42658
42659         regex: merge glibc changes
42660         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42661         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42662         re_string_skip_chars, re_string_reconstruct): Likewise.
42663         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42664
42665 2009-01-07  Jim Meyering  <meyering@redhat.com>
42666
42667         poll: filter through cppi
42668         * lib/poll.c: Indent cpp directives to reflect nesting.
42669
42670 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42671
42672         poll: don't return uninitialized
42673         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42674
42675 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42676
42677         avoid compile failure on AIX 6.1
42678         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42679         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42680
42681 2009-01-04  Jim Meyering  <meyering@redhat.com>
42682
42683         remove duplicate inclusion of <stdio.h>
42684         * tests/test-fprintf-posix.c: Likewise.
42685         * tests/test-printf-posix.c: Likewise.
42686         * tests/test-snprintf-posix.c: Likewise.
42687         * tests/test-sprintf-posix.c: Likewise.
42688         * tests/test-vasprintf-posix.c: Likewise.
42689         * tests/test-vfprintf-posix.c: Likewise.
42690         * tests/test-vprintf-posix.c: Likewise.
42691         * tests/test-vsnprintf-posix.c: Likewise.
42692         * tests/test-vsprintf-posix.c: Likewise.
42693
42694 2009-01-03  Jim Meyering  <meyering@redhat.com>
42695
42696         gnulib-tool: fix sed-based filtering
42697         * gnulib-tool (func_filter_filelist): Remove extra backslash
42698         in sed_fff_filter definition.
42699
42700 2009-01-02  Jim Meyering  <meyering@redhat.com>
42701
42702         strftime: avoid compilation failure on Solaris 2.6
42703         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42704         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42705         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42706         be available.  Reported by Tom G. Christensen.  Details in
42707         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42708
42709 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42710             Bruno Haible  <bruno@clisp.org>
42711
42712         Speed up gnulib-tool by doing more string processing through shell
42713         built-ins.
42714         * gnulib-tool (fast_func_append): New variable.
42715         (func_remove_prefix, func_remove_suffix): New functions.
42716         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42717         (func_filter_filelist): New function.
42718         (func_get_dependencies): Use func_remove_suffix instead of sed.
42719         (func_get_automake_snippet): Use func_filter_filelist instead of a
42720         subshell and sed invocation.
42721
42722 2009-01-01  Bruno Haible  <bruno@clisp.org>
42723
42724         Fix a security bug.
42725         * gnulib-tool (func_import, import, update): Don't allow the characters
42726         '"', '$', '`', '\' in macro arguments that become part of commands that
42727         are evaluated.
42728
42729 2009-01-01  Bruno Haible  <bruno@clisp.org>
42730
42731         * gnulib-tool (func_reset_sigpipe): Add more comments.
42732
42733 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42734
42735         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42736         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42737         already know the answer.
42738
42739 2009-01-01  Jim Meyering  <meyering@redhat.com>
42740
42741         * lib/version-etc.c (version_etc_va): Update copyright year.
42742
42743 2008-12-30  Bruno Haible  <bruno@clisp.org>
42744
42745         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42746         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42747         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42748
42749 2008-12-29  Eric Blake  <ebb9@byu.net>
42750
42751         multiarch: avoid autoconf AC_REQUIRE bug
42752         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42753         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42754         2.63 and older.
42755         Reported by Bruno Haible, and analyzed in
42756         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42757
42758 2008-12-29  Bruno Haible  <bruno@clisp.org>
42759
42760         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42761         files in subdirectories correctly.
42762         Reported by Ralf Wildenhues.
42763
42764 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42765
42766         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42767         rather than 'join FILE -', for Solaris join.
42768
42769 2008-12-29  Bruno Haible  <bruno@clisp.org>
42770
42771         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42772         quoting.
42773         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42774         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42775         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42776         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42777         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42778         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42779         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42780         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42781         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42782         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42783         * m4/nls.m4 (AM_NLS): Likewise.
42784         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42785         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42786         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42787         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42788         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42789         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42790         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42791         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42792         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42793         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42794         * m4/xsize.m4 (gl_XSIZE): Likewise.
42795         Suggested by Jim Meyering.
42796
42797 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42798
42799         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42800         * lib/parse-duration.c: use a switch instead of cascading if's.
42801
42802 2008-12-29  Eric Blake  <ebb9@byu.net>
42803
42804         wchar.h: supply WEOF on Irix 5.3
42805         * lib/wchar.in.h (wint_t): Also supply WEOF.
42806         * lib/wctype.in.h (wint_t): Likewise.
42807         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42808         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42809         Reported by Tom G. Christensen.
42810
42811 2008-12-26  Bruno Haible  <bruno@clisp.org>
42812
42813         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42814         i486, i586, i686.
42815
42816 2008-12-26  Bruno Haible  <bruno@clisp.org>
42817
42818         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42819
42820 2008-12-26  Bruno Haible  <bruno@clisp.org>
42821
42822         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42823         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42824         not __STDC_CONSTANT_MACROS.
42825         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42826
42827 2008-12-25  Bruno Haible  <bruno@clisp.org>
42828
42829         Add support for universal builds to vasnprintf.
42830         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42831         universal builds, guess no.
42832         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42833         * modules/vasprintf-posix (Depends-on): Likewise.
42834         * modules/fprintf-posix (Depends-on): Likewise.
42835         * modules/vfprintf-posix (Depends-on): Likewise.
42836         * modules/snprintf-posix (Depends-on): Likewise.
42837         * modules/vsnprintf-posix (Depends-on): Likewise.
42838         * modules/sprintf-posix (Depends-on): Likewise.
42839         * modules/vsprintf-posix (Depends-on): Likewise.
42840         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42841         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42842         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42843         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42844         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42845         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42846         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42847
42848         Add support for universal builds to <inttypes.h>.
42849         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42850         _SCNu64_PREFIX): In Apple
42851         universal builds, define directly, using _LP64.
42852         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42853         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42854         * modules/inttypes (Depends-on): Add multiarch.
42855         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42856
42857         Add support for universal builds to <stdint.h>.
42858         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42859         universal builds, define directly, using _LP64.
42860         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42861         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42862         and size_t.
42863         * modules/stdint (Depends-on): Add multiarch.
42864         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42865
42866         New module 'multiarch'.
42867         * modules/multiarch: New file.
42868         * m4/multiarch.m4: New file.
42869
42870 2008-12-25  Bruno Haible  <bruno@clisp.org>
42871
42872         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42873
42874 2008-12-25  Bruno Haible  <bruno@clisp.org>
42875
42876         * modules/btowc (License): Relicense under LGPLv2+.
42877         * modules/mbsinit (License): Likewise.
42878         * modules/mbrtowc (License): Likewise.
42879         * modules/wcrtomb (License): Likewise.
42880         * modules/streq (License): Likewise.
42881         Reported by David Lutterkort <lutter@redhat.com>.
42882
42883 2008-12-23  Bruno Haible  <bruno@clisp.org>
42884
42885         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42886
42887 2008-12-23  Bruno Haible  <bruno@clisp.org>
42888
42889         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42891         GETADDRINFO_LIB, not in LIBS.
42892         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42893         * modules/canon-host (Link): Likewise.
42894         * NEWS: Mention the change.
42895         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42896         GETADDRINFO_LIB.
42897
42898 2008-12-22  Bruno Haible  <bruno@clisp.org>
42899
42900         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42901         * doc/posix-functions/iswalpha_l.texi: Likewise.
42902         * doc/posix-functions/iswblank_l.texi: Likewise.
42903         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42904         * doc/posix-functions/iswctype_l.texi: Likewise.
42905         * doc/posix-functions/iswdigit_l.texi: Likewise.
42906         * doc/posix-functions/iswgraph_l.texi: Likewise.
42907         * doc/posix-functions/iswlower_l.texi: Likewise.
42908         * doc/posix-functions/iswprint_l.texi: Likewise.
42909         * doc/posix-functions/iswpunct_l.texi: Likewise.
42910         * doc/posix-functions/iswspace_l.texi: Likewise.
42911         * doc/posix-functions/iswupper_l.texi: Likewise.
42912         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42913         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42914         * doc/posix-functions/open_wmemstream.texi: Likewise.
42915         * doc/posix-functions/swscanf.texi: Likewise.
42916         * doc/posix-functions/towctrans_l.texi: Likewise.
42917         * doc/posix-functions/towlower.texi: Likewise.
42918         * doc/posix-functions/towlower_l.texi: Likewise.
42919         * doc/posix-functions/towupper.texi: Likewise.
42920         * doc/posix-functions/towupper_l.texi: Likewise.
42921         * doc/posix-functions/vfwprintf.texi: Likewise.
42922         * doc/posix-functions/vfwscanf.texi: Likewise.
42923         * doc/posix-functions/vswscanf.texi: Likewise.
42924         * doc/posix-functions/vwprintf.texi: Likewise.
42925         * doc/posix-functions/vwscanf.texi: Likewise.
42926         * doc/posix-functions/wcpcpy.texi: Likewise.
42927         * doc/posix-functions/wcpncpy.texi: Likewise.
42928         * doc/posix-functions/wcscasecmp.texi: Likewise.
42929         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42930         * doc/posix-functions/wcscoll_l.texi: Likewise.
42931         * doc/posix-functions/wcsdup.texi: Likewise.
42932         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42933         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42934         * doc/posix-functions/wcsnlen.texi: Likewise.
42935         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42936         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42937         * doc/posix-functions/wctrans_l.texi: Likewise.
42938         * doc/posix-functions/wctype_l.texi: Likewise.
42939         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42940         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42941         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42942         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42943         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42944         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42945         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42946         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42947         * doc/glibc-functions/wcschrnul.texi: Likewise.
42948         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42949         * doc/glibc-functions/wcstod_l.texi: Likewise.
42950         * doc/glibc-functions/wcstof_l.texi: Likewise.
42951         * doc/glibc-functions/wcstol_l.texi: Likewise.
42952         * doc/glibc-functions/wcstold_l.texi: Likewise.
42953         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42954         * doc/glibc-functions/wcstoq.texi: Likewise.
42955         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42956         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42957         * doc/glibc-functions/wcstouq.texi: Likewise.
42958         * doc/glibc-functions/wmempcpy.texi: Likewise.
42959
42960 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42961             Eric Blake  <ebb9@byu.net>
42962             Paolo Bonzini  <bonzini@gnu.org>
42963             Bruno Haible  <bruno@clisp.org>
42964
42965         Make c-stack work on Haiku.
42966         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42967         (c_stack_action): Use SA_ONSTACK flag.
42968
42969 2008-12-22  Bruno Haible  <bruno@clisp.org>
42970
42971         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42972
42973 2008-12-22  Bruno Haible  <bruno@clisp.org>
42974
42975         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42976         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42977         being overridden.
42978         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42979         New macros.
42980         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42982         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42983         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42984
42985 2008-12-22  Bruno Haible  <bruno@clisp.org>
42986
42987         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42988         from test code.
42989
42990 2008-12-22  Eric Blake  <ebb9@byu.net>
42991
42992         Avoid gcc warnings on cygwin.
42993         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42994         Avoid unused variable.
42995         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42996         Likewise.
42997
42998 2008-12-22  Bruno Haible  <bruno@clisp.org>
42999
43000         Remove HAVE_MBRTOWC conditionals.
43001         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43002         (mbscasecmp): Assume mbrtowc function.
43003         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43004         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43005         * lib/mbschr.c: Include mbuiter.h unconditionally.
43006         (mbschr): Assume mbrtowc function.
43007         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43008         (mbscspn): Assume mbrtowc function.
43009         * lib/mbslen.c: Include mbuiter.h unconditionally.
43010         (mbslen): Assume mbrtowc function.
43011         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43012         (mbsncasecmp): Assume mbrtowc function.
43013         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43014         (mbsnlen): Assume mbrtowc function.
43015         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43016         (mbspbrk): Assume mbrtowc function.
43017         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43018         (mbspcasecmp): Assume mbrtowc function.
43019         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43020         (mbsrchr): Assume mbrtowc function.
43021         * lib/mbssep.c: Include mbuiter.h unconditionally.
43022         (mbssep): Assume mbrtowc function.
43023         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43024         (mbsspn): Assume mbrtowc function.
43025         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43026         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43027         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43028         (mbstok_r): Assume mbrtowc function.
43029         * lib/propername.c: Include mbuiter.h unconditionally.
43030         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43031         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43032         (trim2): Assume mbrtowc function.
43033         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43034         (mbsnwidth): Assume mbrtowc function.
43035         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43036         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43037         fallback definitions.
43038         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43039
43040 2008-12-22  Bruno Haible  <bruno@clisp.org>
43041
43042         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43043
43044 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43045
43046         * modules/regex: Request emulations for the mb*/wc* functions we need.
43047         * m4/regex.m4: Don't look for those functions here.
43048         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43049
43050 2008-12-22  Bruno Haible  <bruno@clisp.org>
43051
43052         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43053
43054 2008-12-21  Bruno Haible  <bruno@clisp.org>
43055
43056         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43057         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43058         (Include): Remove conditionalization.
43059         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43060         (Include): Remove conditionalization.
43061         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43062         (Include): Remove conditionalization.
43063         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43064         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43065         * NEWS: Mention the change.
43066         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43067         via Sergey Poznyakoff <gray@gnu.org.ua>.
43068
43069 2008-12-21  Bruno Haible  <bruno@clisp.org>
43070
43071         * MODULES.html.sh (Extended multibyte and wide character utilities
43072         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43073         wcrtomb, wcsrtombs.
43074         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43075         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43076         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43077         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43078
43079 2008-12-21  Bruno Haible  <bruno@clisp.org>
43080
43081         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43082
43083 2008-12-21  Bruno Haible  <bruno@clisp.org>
43084
43085         * modules/wcsnrtombs-tests: New file.
43086         * tests/test-wcsnrtombs1.sh: New file.
43087         * tests/test-wcsnrtombs2.sh: New file.
43088         * tests/test-wcsnrtombs3.sh: New file.
43089         * tests/test-wcsnrtombs4.sh: New file.
43090         * tests/test-wcsnrtombs.c: New file.
43091
43092         New module 'wcsnrtombs'.
43093         * lib/wchar.in.h (wcsnrtombs): New declaration.
43094         * lib/wcsnrtombs.c: New file.
43095         * lib/wcsrtombs-state.c: New file.
43096         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43097         (internal_state): Remove variable.
43098         * m4/wcsnrtombs.m4: New file.
43099         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43100         compilation units.
43101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43102         HAVE_WCSNRTOMBS.
43103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43104         HAVE_WCSNRTOMBS.
43105         * modules/wcsnrtombs: New file.
43106         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43107         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43108
43109 2008-12-21  Bruno Haible  <bruno@clisp.org>
43110
43111         * modules/wcsrtombs-tests: New file.
43112         * tests/test-wcsrtombs1.sh: New file.
43113         * tests/test-wcsrtombs2.sh: New file.
43114         * tests/test-wcsrtombs3.sh: New file.
43115         * tests/test-wcsrtombs4.sh: New file.
43116         * tests/test-wcsrtombs.c: New file.
43117
43118         New module 'wcsrtombs'.
43119         * lib/wchar.in.h (wcsrtombs): New declaration.
43120         * lib/wcsrtombs.c: New file.
43121         * m4/wcsrtombs.m4: New file.
43122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43123         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43125         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43126         * modules/wcsrtombs: New file.
43127         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43128         bugs.
43129
43130 2008-12-21  Bruno Haible  <bruno@clisp.org>
43131
43132         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43133         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43134         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43135         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43136         if not correct.
43137         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43138         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43139         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43140         m4/locale-zh.m4, m4/codeset.m4.
43141         * doc/posix-functions/wcrtomb.texi: Document the bug.
43142
43143 2008-12-21  Bruno Haible  <bruno@clisp.org>
43144
43145         Work around a btowc() bug on IRIX 6.5.
43146         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43147         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43148         REPLACE_WTOBC if not.
43149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43150         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43151         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43152
43153 2008-12-21  Bruno Haible  <bruno@clisp.org>
43154
43155         * modules/wcrtomb-tests: New file.
43156         * tests/test-wcrtomb.sh: New file.
43157         * tests/test-wcrtomb.c: New file.
43158
43159         New module 'wcrtomb'.
43160         * lib/wchar.in.h (wcrtomb): New declaration.
43161         * lib/wcrtomb.c: New file.
43162         * m4/wcrtomb.m4: New file.
43163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43164         HAVE_WCRTOMB.
43165         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43166         HAVE_WCRTOMB.
43167         * modules/wcrtomb: New file.
43168         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43169
43170 2008-12-21  Bruno Haible  <bruno@clisp.org>
43171
43172         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43173         * modules/mbsrtowcs (Files): Likewise.
43174         * modules/wctob (Files): Likewise.
43175         * modules/c-strcase-tests (Files): Likewise.
43176         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43177         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43178         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43179         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43180         * modules/vasnprintf-posix-tests (Files): Likewise.
43181
43182 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43183
43184         gitlog-to-changelog: pass all command-line arguments to git-log
43185         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43186         it is sometimes convenient to filter the commits in various ways.
43187         gitlog-to-changelog only allows --since to specify a start date,
43188         but git-log itself supports many other filtering mechanisms.
43189         At the moment, I want to filter by branch name.  Rather than
43190         adding a --branch option to gitlog-to-changelog, it seems more
43191         flexible to simply pass all options directly to git-log and let
43192         git do the work.  Notice that this effectively makes --since a
43193         redundant option for gitlog-to-changelog, but removing it would
43194         require current usage to change since calls would then require
43195         an additional '--'.
43196
43197 2008-12-21  Bruno Haible  <bruno@clisp.org>
43198
43199         * modules/mbsnrtowcs-tests: New file.
43200         * tests/test-mbsnrtowcs1.sh: New file.
43201         * tests/test-mbsnrtowcs2.sh: New file.
43202         * tests/test-mbsnrtowcs3.sh: New file.
43203         * tests/test-mbsnrtowcs4.sh: New file.
43204         * tests/test-mbsnrtowcs.c: New file.
43205
43206         New module 'mbsnrtowcs'.
43207         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43208         * lib/mbsnrtowcs.c: New file.
43209         * lib/mbsrtowcs-state.c: New file.
43210         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43211         (internal_state): Remove variable.
43212         * m4/mbsnrtowcs.m4: New file.
43213         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43214         compilation units.
43215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43216         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43217         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43218         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43219         * modules/mbsnrtowcs: New file.
43220         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43221         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43222         portability problem.
43223
43224 2008-12-21  Bruno Haible  <bruno@clisp.org>
43225
43226         Work around mbsrtowcs bug.
43227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43228         (gl_FUNC_MBSRTOWCS): Invoke it.
43229         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43230         m4/locale-zh.m4.
43231         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43232
43233 2008-12-21  Bruno Haible  <bruno@clisp.org>
43234
43235         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43236
43237 2008-12-21  Bruno Haible  <bruno@clisp.org>
43238
43239         Update doc for AIX.
43240         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43241         16-bit wchar_t type.
43242         * doc/posix-functions/btowc.texi: Likewise.
43243         * doc/posix-functions/fgetwc.texi: Likewise.
43244         * doc/posix-functions/fgetws.texi: Likewise.
43245         * doc/posix-functions/fputwc.texi: Likewise.
43246         * doc/posix-functions/fputws.texi: Likewise.
43247         * doc/posix-functions/fwide.texi: Likewise.
43248         * doc/posix-functions/fwprintf.texi: Likewise.
43249         * doc/posix-functions/fwscanf.texi: Likewise.
43250         * doc/posix-functions/getwchar.texi: Likewise.
43251         * doc/posix-functions/getwc.texi: Likewise.
43252         * doc/posix-functions/iswalnum.texi: Likewise.
43253         * doc/posix-functions/iswalpha.texi: Likewise.
43254         * doc/posix-functions/iswblank.texi: Likewise.
43255         * doc/posix-functions/iswcntrl.texi: Likewise.
43256         * doc/posix-functions/iswctype.texi: Likewise.
43257         * doc/posix-functions/iswdigit.texi: Likewise.
43258         * doc/posix-functions/iswgraph.texi: Likewise.
43259         * doc/posix-functions/iswlower.texi: Likewise.
43260         * doc/posix-functions/iswprint.texi: Likewise.
43261         * doc/posix-functions/iswpunct.texi: Likewise.
43262         * doc/posix-functions/iswspace.texi: Likewise.
43263         * doc/posix-functions/iswupper.texi: Likewise.
43264         * doc/posix-functions/iswxdigit.texi: Likewise.
43265         * doc/posix-functions/mbrtowc.texi: Likewise.
43266         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43267         * doc/posix-functions/mbstowcs.texi: Likewise.
43268         * doc/posix-functions/mbtowc.texi: Likewise.
43269         * doc/posix-functions/putwchar.texi: Likewise.
43270         * doc/posix-functions/putwc.texi: Likewise.
43271         * doc/posix-functions/swprintf.texi: Likewise.
43272         * doc/posix-functions/tolower.texi: Likewise.
43273         * doc/posix-functions/toupper.texi: Likewise.
43274         * doc/posix-functions/towctrans.texi: Likewise.
43275         * doc/posix-functions/ungetwc.texi: Likewise.
43276         * doc/posix-functions/vswprintf.texi: Likewise.
43277         * doc/posix-functions/wcrtomb.texi: Likewise.
43278         * doc/posix-functions/wcscat.texi: Likewise.
43279         * doc/posix-functions/wcschr.texi: Likewise.
43280         * doc/posix-functions/wcscmp.texi: Likewise.
43281         * doc/posix-functions/wcscoll.texi: Likewise.
43282         * doc/posix-functions/wcscpy.texi: Likewise.
43283         * doc/posix-functions/wcscspn.texi: Likewise.
43284         * doc/posix-functions/wcsftime.texi: Likewise.
43285         * doc/posix-functions/wcslen.texi: Likewise.
43286         * doc/posix-functions/wcsncat.texi: Likewise.
43287         * doc/posix-functions/wcsncmp.texi: Likewise.
43288         * doc/posix-functions/wcsncpy.texi: Likewise.
43289         * doc/posix-functions/wcspbrk.texi: Likewise.
43290         * doc/posix-functions/wcsrchr.texi: Likewise.
43291         * doc/posix-functions/wcsrtombs.texi: Likewise.
43292         * doc/posix-functions/wcsspn.texi: Likewise.
43293         * doc/posix-functions/wcsstr.texi: Likewise.
43294         * doc/posix-functions/wcstod.texi: Likewise.
43295         * doc/posix-functions/wcstof.texi: Likewise.
43296         * doc/posix-functions/wcstoimax.texi: Likewise.
43297         * doc/posix-functions/wcstok.texi: Likewise.
43298         * doc/posix-functions/wcstold.texi: Likewise.
43299         * doc/posix-functions/wcstoll.texi: Likewise.
43300         * doc/posix-functions/wcstol.texi: Likewise.
43301         * doc/posix-functions/wcstombs.texi: Likewise.
43302         * doc/posix-functions/wcstoull.texi: Likewise.
43303         * doc/posix-functions/wcstoul.texi: Likewise.
43304         * doc/posix-functions/wcstoumax.texi: Likewise.
43305         * doc/posix-functions/wcswidth.texi: Likewise.
43306         * doc/posix-functions/wcsxfrm.texi: Likewise.
43307         * doc/posix-functions/wctob.texi: Likewise.
43308         * doc/posix-functions/wctomb.texi: Likewise.
43309         * doc/posix-functions/wctrans.texi: Likewise.
43310         * doc/posix-functions/wctype.texi: Likewise.
43311         * doc/posix-functions/wcwidth.texi: Likewise.
43312         * doc/posix-functions/wmemchr.texi: Likewise.
43313         * doc/posix-functions/wmemcmp.texi: Likewise.
43314         * doc/posix-functions/wmemcpy.texi: Likewise.
43315         * doc/posix-functions/wmemmove.texi: Likewise.
43316         * doc/posix-functions/wmemset.texi: Likewise.
43317         * doc/posix-functions/wprintf.texi: Likewise.
43318         * doc/posix-functions/wscanf.texi: Likewise.
43319
43320 2008-12-21  Bruno Haible  <bruno@clisp.org>
43321
43322         Update doc for HP-UX 11.11.
43323         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43324         in HP-UX version 11.00, not in all versions of HP-UX 11.
43325         * doc/posix-functions/fwide.texi: Likewise.
43326         * doc/posix-functions/fwprintf.texi: Likewise.
43327         * doc/posix-functions/fwscanf.texi: Likewise.
43328         * doc/posix-functions/inet_ntop.texi: Likewise.
43329         * doc/posix-functions/inet_pton.texi: Likewise.
43330         * doc/posix-functions/mbrlen.texi: Likewise.
43331         * doc/posix-functions/mbrtowc.texi: Likewise.
43332         * doc/posix-functions/mbsinit.texi: Likewise.
43333         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43334         * doc/posix-functions/swprintf.texi: Likewise.
43335         * doc/posix-functions/swscanf.texi: Likewise.
43336         * doc/posix-functions/towctrans.texi: Likewise.
43337         * doc/posix-functions/vfwprintf.texi: Likewise.
43338         * doc/posix-functions/vswprintf.texi: Likewise.
43339         * doc/posix-functions/vwprintf.texi: Likewise.
43340         * doc/posix-functions/wcrtomb.texi: Likewise.
43341         * doc/posix-functions/wcsrtombs.texi: Likewise.
43342         * doc/posix-functions/wcsstr.texi: Likewise.
43343         * doc/posix-functions/wctob.texi: Likewise.
43344         * doc/posix-functions/wctrans.texi: Likewise.
43345         * doc/posix-functions/wmemchr.texi: Likewise.
43346         * doc/posix-functions/wmemcmp.texi: Likewise.
43347         * doc/posix-functions/wmemcpy.texi: Likewise.
43348         * doc/posix-functions/wmemmove.texi: Likewise.
43349         * doc/posix-functions/wmemset.texi: Likewise.
43350         * doc/posix-functions/wprintf.texi: Likewise.
43351         * doc/posix-functions/wscanf.texi: Likewise.
43352
43353 2008-12-21  Bruno Haible  <bruno@clisp.org>
43354
43355         Work around a portability problem.
43356         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43357         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43358
43359 2008-12-20  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43362         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43363         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43365         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43366
43367         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43368         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43369         set.
43370         (GNULIB_defined_mbstate_t): New macro.
43371         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43372         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43373         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43374         reuses the system's mbrtowc function but works around the bugs.
43375         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43376         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43377         macros.
43378         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43379         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43380         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43381         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43382         REPLACE_MBSINIT if mbsinit needs to be overridden.
43383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43384         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43385         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43386         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43387         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43388         m4/locale-zh.m4.
43389         (Depends): Add mbsinit.
43390         * modules/mbsinit (Depends): Add mbrtowc.
43391         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43392
43393 2008-12-20  Bruno Haible  <bruno@clisp.org>
43394
43395         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43396         so that there are no conversion errors on AIX.
43397         * tests/test-mbsrtowcs.c (main): LIkewise.
43398
43399 2008-12-20  Bruno Haible  <bruno@clisp.org>
43400
43401         Work around wctob bug on Solaris <= 9.
43402         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43403         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43405         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43406         * modules/wctob (Files): Add m4/locale-fr.m4.
43407         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43408
43409 2008-12-20  Bruno Haible  <bruno@clisp.org>
43410
43411         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43412         /dev/null.
43413         * tests/test-select-in.sh: Likewise.
43414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43415
43416 2008-12-20  Bruno Haible  <bruno@clisp.org>
43417
43418         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43419         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43420         Cygwin 1.5.x.
43421
43422 2008-12-20  Bruno Haible  <bruno@clisp.org>
43423
43424         Ensure mbstate_t is defined on HP-UX 11.11.
43425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43426         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43427         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43428         AC_USE_SYSTEM_EXTENSIONS.
43429         * modules/fnmatch (Depends-on): Add extensions.
43430         * modules/mbrlen (Depends-on): Likewise.
43431         * modules/mbrtowc (Depends-on): Likewise.
43432         * modules/mbsinit (Depends-on): Likewise.
43433         * modules/mbsrtowcs (Depends-on): Likewise.
43434         * modules/mbswidth (Depends-on): Likewise.
43435         * modules/quotearg (Depends-on): Likewise.
43436         * modules/strftime (Depends-on): Likewise.
43437
43438 2008-12-20  Bruno Haible  <bruno@clisp.org>
43439
43440         Ensure wctob is declared on IRIX 6.5.
43441         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43442         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43443         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43445         of HAVE_WCTOB.
43446         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43447         HAVE_WCTOB.
43448         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43449
43450 2008-12-19  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/mbsrtowcs-tests: New file.
43453         * tests/test-mbsrtowcs1.sh: New file.
43454         * tests/test-mbsrtowcs2.sh: New file.
43455         * tests/test-mbsrtowcs3.sh: New file.
43456         * tests/test-mbsrtowcs4.sh: New file.
43457         * tests/test-mbsrtowcs.c: New file.
43458
43459         New module 'mbsrtowcs'.
43460         * lib/wchar.in.h (mbsrtowcs): New declaration.
43461         * lib/mbsrtowcs.c: New file.
43462         * m4/mbsrtowcs.m4: New file.
43463         * modules/mbsrtowcs: New file.
43464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43465         HAVE_MBSRTOWCS.
43466         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43467         HAVE_MBSRTOWCS.
43468         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43469
43470 2008-12-19  Bruno Haible  <bruno@clisp.org>
43471
43472         New module 'mbrlen'.
43473         * lib/wchar.in.h (mbrlen): New declaration.
43474         * lib/mbrlen.c: New file.
43475         * m4/mbrlen.m4: New file.
43476         * modules/mbrlen: New file.
43477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43478         HAVE_MBRLEN.
43479         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43480         HAVE_MBRLEN.
43481         * doc/posix-functions/mbrlen.texi: Document the new module.
43482
43483 2008-12-19  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43486         * modules/mbrtowc (Depends-on): Add verify.
43487         Suggested by Paul Eggert.
43488
43489 2008-12-18  Bruno Haible  <bruno@clisp.org>
43490
43491         * modules/mbsinit-tests: New file.
43492         * tests/test-mbsinit.sh: New file.
43493         * tests/test-mbsinit.c: New file.
43494
43495 2008-12-18  Bruno Haible  <bruno@clisp.org>
43496
43497         * modules/mbrtowc-tests: New file.
43498         * tests/test-mbrtowc1.sh: New file.
43499         * tests/test-mbrtowc2.sh: New file.
43500         * tests/test-mbrtowc3.sh: New file.
43501         * tests/test-mbrtowc4.sh: New file.
43502         * tests/test-mbrtowc.c: New file.
43503
43504         New module 'mbrtowc'.
43505         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43506         mbsinit and mbrtowc.
43507         (mbrtowc): New declaration.
43508         * lib/mbrtowc.c: New file.
43509         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43510         * modules/mbrtowc: New file.
43511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43512         HAVE_MBRTOWC.
43513         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43514         HAVE_MBRTOWC.
43515         * doc/posix-functions/mbrtowc.texi: Document the new module.
43516
43517 2008-12-18  Bruno Haible  <bruno@clisp.org>
43518
43519         New module 'wctob'.
43520         * lib/wchar.in.h (wctob): New declaration.
43521         * lib/wctob.c: New file.
43522         * m4/wctob.m4: New file.
43523         * modules/wctob: New file.
43524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43525         HAVE_WCTOB.
43526         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43527         * doc/posix-functions/wctob.texi: Document the new module.
43528
43529 2008-12-18  Bruno Haible  <bruno@clisp.org>
43530
43531         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43532         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43533
43534 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43535
43536         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43537         G. Christensen" <tgc@jupiterrise.com>.
43538
43539         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43540         G. Christensen" <tgc@jupiterrise.com>.
43541
43542         * lib/flock.c: Need to include string.h.  Reported by "Tom
43543         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43544         <ebb9@byu.net>.
43545
43546 2008-12-18  Bruno Haible  <bruno@clisp.org>
43547
43548         * m4/locale-ja.m4: New file, from GNU gettext.
43549
43550 2008-12-17  Bruno Haible  <bruno@clisp.org>
43551
43552         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43553         Suggested by Eric Blake.
43554
43555 2008-12-17  Bruno Haible  <bruno@clisp.org>
43556
43557         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43558
43559 2008-12-17  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43562         * modules/mbsinit (Depends-on): Add verify.
43563         Suggested by Paul Eggert.
43564
43565 2008-12-17  Bruno Haible  <bruno@clisp.org>
43566
43567         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43568         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43569         gl_FUNC_MBRTOWC.
43570         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43571         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43572         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43573         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43574         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43575         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43576         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43577         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43578         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43579         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43580         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43581         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43582         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43583         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43584         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43585         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43586         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43587         * modules/trim (configure.ac): Likewise.
43588
43589 2008-12-17  Bruno Haible  <bruno@clisp.org>
43590
43591         * modules/btowc-tests: New file.
43592         * tests/test-btowc1.sh: New file.
43593         * tests/test-btowc2.sh: New file.
43594         * tests/test-btowc.c: New file.
43595
43596         New module 'btowc'.
43597         * lib/wchar.in.h (btowc): New declaration.
43598         * lib/btowc.c: New file.
43599         * m4/btowc.m4: New file.
43600         * modules/btowc: New file.
43601         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43602         HAVE_BTOWC.
43603         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43604         * doc/posix-functions/btowc.texi: Document the new module.
43605
43606 2008-12-17  Bruno Haible  <bruno@clisp.org>
43607
43608         New module 'mbsinit'.
43609         * lib/wchar.in.h (mbsinit): New declaration.
43610         * lib/mbsinit.c: New file.
43611         * m4/mbsinit.m4: New file.
43612         * modules/mbsinit: New file.
43613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43614         HAVE_MBSINIT.
43615         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43616         HAVE_MBSINIT.
43617         * doc/posix-functions/mbsinit.texi: Document the new module.
43618
43619 2008-12-16  Bruno Haible  <bruno@clisp.org>
43620
43621         * lib/unistd.in.h: Add comment.
43622         * tests/test-environ.c: Don't include <stdlib.h>.
43623
43624 2008-12-16  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/parse-duration.h (parse_duration): Document return value
43627         convention.
43628         * lib/parse-duration.c: Include specification header first. Add
43629         comments.
43630         (_): Remove macro.
43631         (parse_year_month_day, parse_hour_minute_second): Move side effects
43632         outside of strchr call.
43633         (parse_non_iso8601): Move side effects outside of isspace call.
43634         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43635         call.
43636
43637 2008-12-16  Bruno Haible  <bruno@clisp.org>
43638
43639         * tests/test-parse-duration.sh: Produce no output when the test
43640         succeeds.
43641
43642 2008-12-16  Bruno Haible  <bruno@clisp.org>
43643
43644         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43645         expressions.
43646
43647 2008-12-15  Bruno Haible  <bruno@clisp.org>
43648
43649         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43650         * doc/glibc-functions/flistxattr.texi: Likewise.
43651         * doc/glibc-functions/fopencookie.texi: Likewise.
43652         * doc/glibc-functions/fremovexattr.texi: Likewise.
43653         * doc/glibc-functions/fsetxattr.texi: Likewise.
43654         * doc/glibc-functions/getxattr.texi: Likewise.
43655         * doc/glibc-functions/lgetxattr.texi: Likewise.
43656         * doc/glibc-functions/listxattr.texi: Likewise.
43657         * doc/glibc-functions/llistxattr.texi: Likewise.
43658         * doc/glibc-functions/lremovexattr.texi: Likewise.
43659         * doc/glibc-functions/lsetxattr.texi: Likewise.
43660         * doc/glibc-functions/removexattr.texi: Likewise.
43661         * doc/glibc-functions/setxattr.texi: Likewise.
43662         * doc/posix-functions/open_memstream.texi: Likewise.
43663
43664 2008-12-15  Eric Blake  <ebb9@byu.net>
43665
43666         Update doc for cygwin 1.7.
43667         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43668         functions.
43669         * doc/posix-functions/fchmodat.texi: Likewise.
43670         * doc/posix-functions/fchownat.texi: Likewise.
43671         * doc/posix-functions/fdopendir.texi: Likewise.
43672         * doc/posix-functions/fmemopen.texi: Likewise.
43673         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43674         * doc/posix-functions/fstatat.texi: Likewise.
43675         * doc/posix-functions/futimens.texi: Likewise.
43676         * doc/posix-functions/gai_strerror.texi: Likewise.
43677         * doc/posix-functions/getaddrinfo.texi: Likewise.
43678         * doc/posix-functions/getnameinfo.texi: Likewise.
43679         * doc/posix-functions/if_freenameindex.texi: Likewise.
43680         * doc/posix-functions/if_indextoname.texi: Likewise.
43681         * doc/posix-functions/if_nameindex.texi: Likewise.
43682         * doc/posix-functions/if_nametoindex.texi: Likewise.
43683         * doc/posix-functions/insque.texi: Likewise.
43684         * doc/posix-functions/linkat.texi: Likewise.
43685         * doc/posix-functions/llrint.texi: Likewise.
43686         * doc/posix-functions/llrintf.texi: Likewise.
43687         * doc/posix-functions/llrintl.texi: Likewise.
43688         * doc/posix-functions/lockf.texi: Likewise.
43689         * doc/posix-functions/lrintl.texi: Likewise.
43690         * doc/posix-functions/mkdirat.texi: Likewise.
43691         * doc/posix-functions/mkfifoat.texi: Likewise.
43692         * doc/posix-functions/mknodat.texi: Likewise.
43693         * doc/posix-functions/mq_close.texi: Likewise.
43694         * doc/posix-functions/mq_getattr.texi: Likewise.
43695         * doc/posix-functions/mq_notify.texi: Likewise.
43696         * doc/posix-functions/mq_open.texi: Likewise.
43697         * doc/posix-functions/mq_receive.texi: Likewise.
43698         * doc/posix-functions/mq_send.texi: Likewise.
43699         * doc/posix-functions/mq_setattr.texi: Likewise.
43700         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43701         * doc/posix-functions/mq_timedsend.texi: Likewise.
43702         * doc/posix-functions/mq_unlink.texi: Likewise.
43703         * doc/posix-functions/open_memstream.texi: Likewise.
43704         * doc/posix-functions/openat.texi: Likewise.
43705         * doc/posix-functions/posix_fadvise.texi: Likewise.
43706         * doc/posix-functions/posix_fallocate.texi: Likewise.
43707         * doc/posix-functions/posix_madvise.texi: Likewise.
43708         * doc/posix-functions/posix_memalign.texi: Likewise.
43709         * doc/posix-functions/posix_openpt.texi: Likewise.
43710         * doc/posix-functions/readlinkat.texi: Likewise.
43711         * doc/posix-functions/remque.texi: Likewise.
43712         * doc/posix-functions/renameat.texi: Likewise.
43713         * doc/posix-functions/rintl.texi: Likewise.
43714         * doc/posix-functions/sem_unlink.texi: Likewise.
43715         * doc/posix-functions/shm_open.texi: Likewise.
43716         * doc/posix-functions/shm_unlink.texi: Likewise.
43717         * doc/posix-functions/signgam.texi: Likewise.
43718         * doc/posix-functions/sigset.texi: Likewise.
43719         * doc/posix-functions/stpcpy.texi: Likewise.
43720         * doc/posix-functions/stpncpy.texi: Likewise.
43721         * doc/posix-functions/strerror.texi: Likewise.
43722         * doc/posix-functions/strtod.texi: Likewise.
43723         * doc/posix-functions/symlinkat.texi: Likewise.
43724         * doc/posix-functions/unlinkat.texi: Likewise.
43725         * doc/posix-functions/utimensat.texi: Likewise.
43726         * doc/glibc-functions/bindresvport.texi: Likewise.
43727         * doc/glibc-functions/dn_expand.texi: Likewise.
43728         * doc/glibc-functions/exp10.texi: Likewise.
43729         * doc/glibc-functions/exp10f.texi: Likewise.
43730         * doc/glibc-functions/fgetxattr.texi: Likewise.
43731         * doc/glibc-functions/flistxattr.texi: Likewise.
43732         * doc/glibc-functions/fopencookie.texi: Likewise.
43733         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43734         * doc/glibc-functions/fremovexattr.texi: Likewise.
43735         * doc/glibc-functions/fsetxattr.texi: Likewise.
43736         * doc/glibc-functions/getifaddrs.texi: Likewise.
43737         * doc/glibc-functions/getxattr.texi: Likewise.
43738         * doc/glibc-functions/lgetxattr.texi: Likewise.
43739         * doc/glibc-functions/listxattr.texi: Likewise.
43740         * doc/glibc-functions/llistxattr.texi: Likewise.
43741         * doc/glibc-functions/lremovexattr.texi: Likewise.
43742         * doc/glibc-functions/lsetxattr.texi: Likewise.
43743         * doc/glibc-functions/pow10.texi: Likewise.
43744         * doc/glibc-functions/pow10f.texi: Likewise.
43745         * doc/glibc-functions/rcmd_af.texi: Likewise.
43746         * doc/glibc-functions/removexattr.texi: Likewise.
43747         * doc/glibc-functions/res_init.texi: Likewise.
43748         * doc/glibc-functions/res_mkquery.texi: Likewise.
43749         * doc/glibc-functions/res_query.texi: Likewise.
43750         * doc/glibc-functions/res_querydomain.texi: Likewise.
43751         * doc/glibc-functions/res_send.texi: Likewise.
43752         * doc/glibc-functions/rresvport_af.texi: Likewise.
43753         * doc/glibc-functions/setxattr.texi: Likewise.
43754         * doc/glibc-functions/strcasestr.texi: Likewise.
43755
43756 2008-12-15  Bruno Haible  <bruno@clisp.org>
43757
43758         Fix compilation error on OSF/1 4.0.
43759         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43760         <sys/time.h>, simply delegate to the system header.
43761         Reported by Daniel Richard G. <oss@teragram.com>.
43762
43763 2008-12-15  Bruno Haible  <bruno@clisp.org>
43764
43765         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43766         * doc/posix-functions/fchmodat.texi: Likewise.
43767         * doc/posix-functions/fchownat.texi: Likewise.
43768         * doc/posix-functions/fdopendir.texi: Likewise.
43769         * doc/posix-functions/fstatat.texi: Likewise.
43770         * doc/posix-functions/mkdirat.texi: Likewise.
43771         * doc/posix-functions/unlinkat.texi: Likewise.
43772
43773 2008-12-14  Bruno Haible  <bruno@clisp.org>
43774
43775         Update doc for POSIX:2008.
43776         * doc/posix-functions/faccessat.texi: New file.
43777         * doc/posix-functions/fchmodat.texi: New file.
43778         * doc/posix-functions/fchownat.texi: New file.
43779         * doc/posix-functions/fdopendir.texi: New file.
43780         * doc/posix-functions/fstatat.texi: New file.
43781         * doc/posix-functions/futimens.texi: New file.
43782         * doc/posix-functions/linkat.texi: New file.
43783         * doc/posix-functions/mkdirat.texi: New file.
43784         * doc/posix-functions/mkfifoat.texi: New file.
43785         * doc/posix-functions/mknodat.texi: New file.
43786         * doc/posix-functions/open_wmemstream.texi: New file.
43787         * doc/posix-functions/openat.texi: New file.
43788         * doc/posix-functions/psiginfo.texi: New file.
43789         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43790         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43791         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43792         * doc/posix-functions/readlinkat.texi: New file.
43793         * doc/posix-functions/renameat.texi: New file.
43794         * doc/posix-functions/strerror_l.texi: New file.
43795         * doc/posix-functions/symlinkat.texi: New file.
43796         * doc/posix-functions/unlinkat.texi: New file.
43797         * doc/posix-functions/utimensat.texi: New file.
43798         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43799
43800 2008-12-14  Bruno Haible  <bruno@clisp.org>
43801
43802         Update doc for POSIX:2008.
43803         * doc/posix-functions/alphasort.texi: Renamed from
43804         doc/glibc-functions/alphasort.texi.
43805         * doc/posix-functions/dirfd.texi: Renamed from
43806         doc/glibc-functions/dirfd.texi.
43807         * doc/posix-functions/dprintf.texi: Renamed from
43808         doc/glibc-functions/dprintf.texi.
43809         * doc/posix-functions/duplocale.texi: Renamed from
43810         doc/glibc-functions/duplocale.texi.
43811         * doc/posix-functions/fexecve.texi: Renamed from
43812         doc/glibc-functions/fexecve.texi.
43813         * doc/posix-functions/fmemopen.texi: Renamed from
43814         doc/glibc-functions/fmemopen.texi.
43815         * doc/posix-functions/freelocale.texi: Renamed from
43816         doc/glibc-functions/freelocale.texi.
43817         * doc/posix-functions/getdate_err.texi: Renamed from
43818         doc/glibc-functions/getdate_err.texi.
43819         * doc/posix-functions/isalnum_l.texi: Renamed from
43820         doc/glibc-functions/isalnum_l.texi.
43821         * doc/posix-functions/isalpha_l.texi: Renamed from
43822         doc/glibc-functions/isalpha_l.texi.
43823         * doc/posix-functions/isblank_l.texi: Renamed from
43824         doc/glibc-functions/isblank_l.texi.
43825         * doc/posix-functions/iscntrl_l.texi: Renamed from
43826         doc/glibc-functions/iscntrl_l.texi.
43827         * doc/posix-functions/isdigit_l.texi: Renamed from
43828         doc/glibc-functions/isdigit_l.texi.
43829         * doc/posix-functions/isgraph_l.texi: Renamed from
43830         doc/glibc-functions/isgraph_l.texi.
43831         * doc/posix-functions/islower_l.texi: Renamed from
43832         doc/glibc-functions/islower_l.texi.
43833         * doc/posix-functions/isprint_l.texi: Renamed from
43834         doc/glibc-functions/isprint_l.texi.
43835         * doc/posix-functions/ispunct_l.texi: Renamed from
43836         doc/glibc-functions/ispunct_l.texi.
43837         * doc/posix-functions/isspace_l.texi: Renamed from
43838         doc/glibc-functions/isspace_l.texi.
43839         * doc/posix-functions/isupper_l.texi: Renamed from
43840         doc/glibc-functions/isupper_l.texi.
43841         * doc/posix-functions/iswalnum_l.texi: Renamed from
43842         doc/glibc-functions/iswalnum_l.texi.
43843         * doc/posix-functions/iswalpha_l.texi: Renamed from
43844         doc/glibc-functions/iswalpha_l.texi.
43845         * doc/posix-functions/iswblank_l.texi: Renamed from
43846         doc/glibc-functions/iswblank_l.texi.
43847         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43848         doc/glibc-functions/iswcntrl_l.texi.
43849         * doc/posix-functions/iswctype_l.texi: Renamed from
43850         doc/glibc-functions/iswctype_l.texi.
43851         * doc/posix-functions/iswdigit_l.texi: Renamed from
43852         doc/glibc-functions/iswdigit_l.texi.
43853         * doc/posix-functions/iswgraph_l.texi: Renamed from
43854         doc/glibc-functions/iswgraph_l.texi.
43855         * doc/posix-functions/iswlower_l.texi: Renamed from
43856         doc/glibc-functions/iswlower_l.texi.
43857         * doc/posix-functions/iswprint_l.texi: Renamed from
43858         doc/glibc-functions/iswprint_l.texi.
43859         * doc/posix-functions/iswpunct_l.texi: Renamed from
43860         doc/glibc-functions/iswpunct_l.texi.
43861         * doc/posix-functions/iswspace_l.texi: Renamed from
43862         doc/glibc-functions/iswspace_l.texi.
43863         * doc/posix-functions/iswupper_l.texi: Renamed from
43864         doc/glibc-functions/iswupper_l.texi.
43865         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43866         doc/glibc-functions/iswxdigit_l.texi.
43867         * doc/posix-functions/isxdigit_l.texi: Renamed from
43868         doc/glibc-functions/isxdigit_l.texi.
43869         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43870         doc/glibc-functions/mbsnrtowcs.texi.
43871         * doc/posix-functions/mkdtemp.texi: Renamed from
43872         doc/glibc-functions/mkdtemp.texi.
43873         * doc/posix-functions/newlocale.texi: Renamed from
43874         doc/glibc-functions/newlocale.texi.
43875         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43876         doc/glibc-functions/nl_langinfo_l.texi.
43877         * doc/posix-functions/open_memstream.texi: Renamed from
43878         doc/glibc-functions/open_memstream.texi.
43879         * doc/posix-functions/opterr.texi: Renamed from
43880         doc/glibc-functions/opterr.texi.
43881         * doc/posix-functions/optind.texi: Renamed from
43882         doc/glibc-functions/optind.texi.
43883         * doc/posix-functions/optopt.texi: Renamed from
43884         doc/glibc-functions/optopt.texi.
43885         * doc/posix-functions/psignal.texi: Renamed from
43886         doc/glibc-functions/psignal.texi.
43887         * doc/posix-functions/scandir.texi: Renamed from
43888         doc/glibc-functions/scandir.texi.
43889         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43890         doc/glibc-functions/sched_get_priority_min.texi.
43891         * doc/posix-functions/signgam.texi: Renamed from
43892         doc/glibc-functions/signgam.texi.
43893         * doc/posix-functions/stpcpy.texi: Renamed from
43894         doc/glibc-functions/stpcpy.texi.
43895         * doc/posix-functions/stpncpy.texi: Renamed from
43896         doc/glibc-functions/stpncpy.texi.
43897         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43898         doc/glibc-functions/strcasecmp_l.texi.
43899         * doc/posix-functions/strcoll_l.texi: Renamed from
43900         doc/glibc-functions/strcoll_l.texi.
43901         * doc/posix-functions/strfmon_l.texi: Renamed from
43902         doc/glibc-functions/strfmon_l.texi.
43903         * doc/posix-functions/strftime_l.texi: Renamed from
43904         doc/glibc-functions/strftime_l.texi.
43905         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43906         doc/glibc-functions/strncasecmp_l.texi.
43907         * doc/posix-functions/strndup.texi: Renamed from
43908         doc/glibc-functions/strndup.texi.
43909         * doc/posix-functions/strnlen.texi: Renamed from
43910         doc/glibc-functions/strnlen.texi.
43911         * doc/posix-functions/strsignal.texi: Renamed from
43912         doc/glibc-functions/strsignal.texi.
43913         * doc/posix-functions/strxfrm_l.texi: Renamed from
43914         doc/glibc-functions/strxfrm_l.texi.
43915         * doc/posix-functions/timer_gettime.texi: Renamed from
43916         doc/glibc-functions/timer_gettime.texi.
43917         * doc/posix-functions/tolower_l.texi: Renamed from
43918         doc/glibc-functions/tolower_l.texi.
43919         * doc/posix-functions/toupper_l.texi: Renamed from
43920         doc/glibc-functions/toupper_l.texi.
43921         * doc/posix-functions/towctrans_l.texi: Renamed from
43922         doc/glibc-functions/towctrans_l.texi.
43923         * doc/posix-functions/towlower_l.texi: Renamed from
43924         doc/glibc-functions/towlower_l.texi.
43925         * doc/posix-functions/towupper_l.texi: Renamed from
43926         doc/glibc-functions/towupper_l.texi.
43927         * doc/posix-functions/uselocale.texi: Renamed from
43928         doc/glibc-functions/uselocale.texi.
43929         * doc/posix-functions/vdprintf.texi: Renamed from
43930         doc/glibc-functions/vdprintf.texi.
43931         * doc/posix-functions/wcpcpy.texi:
43932         Renamed from doc/glibc-functions/wcpcpy.texi.
43933         * doc/posix-functions/wcpncpy.texi: Renamed from
43934         doc/glibc-functions/wcpncpy.texi.
43935         * doc/posix-functions/wcscasecmp.texi: Renamed from
43936         doc/glibc-functions/wcscasecmp.texi.
43937         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43938         doc/glibc-functions/wcscasecmp_l.texi.
43939         * doc/posix-functions/wcscoll_l.texi: Renamed from
43940         doc/glibc-functions/wcscoll_l.texi.
43941         * doc/posix-functions/wcsdup.texi: Renamed from
43942         doc/glibc-functions/wcsdup.texi.
43943         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43944         doc/glibc-functions/wcsncasecmp.texi.
43945         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43946         doc/glibc-functions/wcsncasecmp_l.texi.
43947         * doc/posix-functions/wcsnlen.texi: Renamed from
43948         doc/glibc-functions/wcsnlen.texi.
43949         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43950         doc/glibc-functions/wcsnrtombs.texi.
43951         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43952         doc/glibc-functions/wcsxfrm_l.texi.
43953         * doc/posix-functions/wctrans_l.texi: Renamed from
43954         doc/glibc-functions/wctrans_l.texi.
43955         * doc/posix-functions/wctype_l.texi: Renamed from
43956         doc/glibc-functions/wctype_l.texi.
43957         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43958         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43959         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43960         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43961         these subsections.
43962         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43963         Remove sections.
43964
43965 2008-12-14  Bruno Haible  <bruno@clisp.org>
43966
43967         Update doc for POSIX:2008.
43968         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43969
43970 2008-12-14  Bruno Haible  <bruno@clisp.org>
43971
43972         Update doc for POSIX:2008.
43973         * doc/pastposix-functions/bcmp.texi: Renamed from
43974         doc/posix-functions/bcmp.texi.
43975         * doc/pastposix-functions/bcopy.texi: Renamed from
43976         doc/posix-functions/bcopy.texi.
43977         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43978         doc/posix-functions/bsd_signal.texi.
43979         * doc/pastposix-functions/bzero.texi: Renamed from
43980         doc/posix-functions/bzero.texi.
43981         * doc/pastposix-functions/ecvt.texi: Renamed from
43982         doc/posix-functions/ecvt.texi.
43983         * doc/pastposix-functions/fcvt.texi: Renamed from
43984         doc/posix-functions/fcvt.texi.
43985         * doc/pastposix-functions/ftime.texi: Renamed from
43986         doc/posix-functions/ftime.texi.
43987         * doc/pastposix-functions/gcvt.texi: Renamed from
43988         doc/posix-functions/gcvt.texi.
43989         * doc/pastposix-functions/getcontext.texi: Renamed from
43990         doc/posix-functions/getcontext.texi.
43991         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43992         doc/posix-functions/gethostbyaddr.texi.
43993         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43994         doc/posix-functions/gethostbyname.texi.
43995         * doc/pastposix-functions/getwd.texi: Renamed from
43996         doc/posix-functions/getwd.texi.
43997         * doc/pastposix-functions/h_errno.texi: Renamed from
43998         doc/posix-functions/h_errno.texi.
43999         * doc/pastposix-functions/index.texi: Renamed from
44000         doc/posix-functions/index.texi.
44001         * doc/pastposix-functions/makecontext.texi: Renamed from
44002         doc/posix-functions/makecontext.texi.
44003         * doc/pastposix-functions/mktemp.texi: Renamed from
44004         doc/posix-functions/mktemp.texi.
44005         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44006         doc/posix-functions/pthread_attr_getstackaddr.texi.
44007         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44008         doc/posix-functions/pthread_attr_setstackaddr.texi.
44009         * doc/pastposix-functions/rindex.texi: Renamed from
44010         doc/posix-functions/rindex.texi.
44011         * doc/pastposix-functions/scalb.texi: Renamed from
44012         doc/posix-functions/scalb.texi.
44013         * doc/pastposix-functions/setcontext.texi: Renamed from
44014         doc/posix-functions/setcontext.texi.
44015         * doc/pastposix-functions/swapcontext.texi: Renamed from
44016         doc/posix-functions/swapcontext.texi.
44017         * doc/pastposix-functions/ualarm.texi: Renamed from
44018         doc/posix-functions/ualarm.texi.
44019         * doc/pastposix-functions/usleep.texi: Renamed from
44020         doc/posix-functions/usleep.texi.
44021         * doc/pastposix-functions/vfork.texi: Renamed from
44022         doc/posix-functions/vfork.texi.
44023         * doc/pastposix-functions/wcswcs.texi: Renamed from
44024         doc/posix-functions/wcswcs.texi.
44025         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44026         (Function Substitutes): Update.
44027
44028 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44029
44030         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44031         m4/strerror.m4.
44032
44033 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44034             Bruno Haible  <bruno@clisp.org>
44035
44036         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44037
44038 2008-12-13  Bruno Haible  <bruno@clisp.org>
44039
44040         * modules/strtoull (Depends-on): Remove unistd.
44041
44042 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44043
44044         * modules/strtoull (Depends-on): Add stdlib.
44045
44046 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44047
44048         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44049
44050 2008-12-10  Jim Meyering  <meyering@redhat.com>
44051
44052         gl_ASSERT: don't say assertions are disabled when they're not
44053         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44054         "checking whether to enable assertions... no", when they are in
44055         fact enabled.  This is solely a bug in the output of configure.
44056         In spite of saying "no", NDEBUG was not defined in that case.
44057         Also, as noted by Eric Blake, leave assertions enabled upon
44058         --enable-assert=INVALID.
44059
44060 2008-12-10  Bruno Haible  <bruno@clisp.org>
44061
44062         Change MODULES.html to refer to POSIX:2008 where possible.
44063         * MODULES.html.sh (POSIX2008_URL): New variable.
44064         (posix_headers): Remove sys/timeb, ucontext.
44065         (posix2001_headers): New variable.
44066         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44067         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44068         index, makecontext, mktemp, pthread_attr_getstackaddr,
44069         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44070         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44071         (posix2001_functions): New variable.
44072         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44073         otherwise.
44074
44075 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44076
44077         add missing include to parse-duration.c
44078         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44079         * modules/parse-duration (Depends-on): Add xalloc.
44080
44081         fix sed script reading maint.mk
44082         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44083         (syntax-check-rules): Use it.
44084
44085 2008-12-09  Bruno Haible  <bruno@clisp.org>
44086
44087         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44088         MacOS X 10.4/PowerPC.
44089         Reported by Simon Josefsson.
44090
44091 2008-12-08  Jim Meyering  <meyering@redhat.com>
44092
44093         work around mingw's lack of some S_IF definitions
44094         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44095         Reported by Simon Josefsson.
44096
44097 2008-12-08  Bruno Haible  <bruno@clisp.org>
44098
44099         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44100         applied to variables. Needed on MacOS X 10.4/PowerPC.
44101         Reported by Simon Josefsson.
44102
44103 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44104         and Eric Blake  <ebb9@byu.net>
44105
44106         assert: honor --enable-assert
44107         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44108         order to honor --enable-assert, rather than treating it as a
44109         synonym for --disable-assert.
44110
44111 2008-12-08  Jim Meyering  <meyering@redhat.com>
44112
44113         * lib/posixtm.c: Remove now-useless declaration of mktime.
44114
44115         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44116
44117 2008-12-07  Bruno Haible  <bruno@clisp.org>
44118
44119         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44120         test_once): Mark functions as static.
44121         * tests/test-tls.c (test_tls): Likewise.
44122
44123 2008-12-07  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44126         iconv_register_autodetect.
44127
44128 2008-12-07  Jim Meyering  <meyering@redhat.com>
44129
44130         posixtm.c: avoid a warning
44131         * lib/posixtm.c (posixtime): Don't initialize tm0.
44132         It's no longer needed to placate gcc4's -Wuninitialized,
44133         and the attempt to placate would elicit a new warning.
44134
44135         unicodeio.c: mark unused parameters
44136         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44137         (fallback_failure_callback): Likewise.
44138
44139 2008-12-07  Bruno Haible  <bruno@clisp.org>
44140
44141         * gnulib-tool (func_create_testdir): When building the tests
44142         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44143         Reported by Simon Josefsson.
44144
44145 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44146
44147         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44148
44149 2008-12-06  Bruno Haible  <bruno@clisp.org>
44150
44151         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44152         Suggested by Eric Blake.
44153
44154 2008-12-06  Bruno Haible  <bruno@clisp.org>
44155
44156         Fix a c-stack test failure on MacOS X.
44157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44158         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44159         handler for SIGBUS as well.
44160         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44161         install a signal handler for SIGBUS as well.
44162         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44163
44164 2008-12-06  Bruno Haible  <bruno@clisp.org>
44165
44166         Advocacy documentation.
44167         * doc/gnulib-intro.texi (Benefits): New section.
44168         * doc/gnulib.texi: Update.
44169
44170 2008-12-06  Bruno Haible  <bruno@clisp.org>
44171
44172         Document the 'manywarnings' module.
44173         * doc/manywarnings.texi: New file.
44174         * doc/gnulib.texi: Include it.
44175
44176 2008-12-05  Eric Blake  <ebb9@byu.net>
44177
44178         tests: silence some gcc warnings
44179         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44180         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44181         type mismatches.
44182
44183 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44184             Bruno Haible  <bruno@clisp.org>
44185
44186         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44187
44188 2008-11-29  Jim Meyering  <meyering@redhat.com>
44189
44190         unicodeio.c: mark unused parameters
44191         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44192         (fallback_failure_callback): Likewise.
44193
44194         fts: fix a thinko
44195         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44196         (set_stat_type): Return S_IF*-valued "type" directly.
44197         Prompted by James Youngman's spotting a related bug.
44198         Confirmed by further testing through find.
44199
44200         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44201         * lib/fts.c (D_TYPE): Define.
44202         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44203         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44204         (s_ifmt_shift_bits): New function.
44205         (set_stat_type): New function.
44206         (fts_build): When not calling fts_stat, call set_stat_type
44207         to propagate dirent.d_type info to fts_read caller.
44208         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44209         fts_statp->st_mode type information may be valid.
44210
44211 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44212
44213         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44214         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44215         <sds@gnu.org>.
44216
44217 2008-11-20  Bruno Haible  <bruno@clisp.org>
44218
44219         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44220         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44221         INCLUDE_NEXT.
44222         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44223         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44224         * modules/math (Makefile.am): Substitute
44225         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44226         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44227
44228 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44229             Bruno Haible  <bruno@clisp.org>
44230
44231         * lib/stdint.in.h: Define all type macros so that their expansion is
44232         a single typedef'ed token. Fixes a compilation failure in Boost which
44233         does "using ::int8_t;".
44234
44235 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44236
44237         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44238         gl_MANYWARN_ALL_GCC.
44239         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44240         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44241         * modules/manywarnings: New file.
44242         * MODULES.html.sh: Mention manywarnings module.
44243
44244 2008-11-18  Bruno Haible  <bruno@clisp.org>
44245
44246         * doc/gnulib-tool.texi (Unit tests): New section.
44247
44248 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44249
44250         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44251         paths like 'lib/po/foo.po'.
44252
44253 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44254
44255         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44256         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44257
44258 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44259
44260         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44261         parameter works.
44262
44263 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44264
44265         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44266
44267 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44268
44269         * modules/parse-duration-tests: New file.
44270         * tests/test-parse-duration.sh: New file.
44271         * tests/test-parse-duration.c: New file.
44272
44273         New module 'parse-duration'.
44274         * lib/parse-duration.h: New file.
44275         * lib/parse-duration.c: New file.
44276         * modules/parse-duration: New file.
44277
44278 2008-11-17  Bruno Haible  <bruno@clisp.org>
44279
44280         * tests/test-select-out.sh: Comment out the first pipe test.
44281         Reported by Simon Josefsson.
44282
44283 2008-11-17  Bruno Haible  <bruno@clisp.org>
44284
44285         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44287         gl_HOSTENT.
44288
44289 2008-11-17  Bruno Haible  <bruno@clisp.org>
44290
44291         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44292         -lnetwork and -lnet. Needed for Haiku and BeOS.
44293
44294 2008-11-16  Bruno Haible  <bruno@clisp.org>
44295
44296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44297
44298 2008-11-16  Bruno Haible  <bruno@clisp.org>
44299
44300         Avoid test failure on Haiku.
44301         * tests/test-fsync.c: Include <errno.h>.
44302         (main): Don't require that fsync (0) fails.
44303
44304 2008-11-15  Bruno Haible  <bruno@clisp.org>
44305
44306         New module 'hostent'.
44307         * modules/hostent: New file.
44308         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44309
44310 2008-11-15  Bruno Haible  <bruno@clisp.org>
44311
44312         New module 'servent'.
44313         * modules/servent: New file.
44314         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44315
44316 2008-11-15  Bruno Haible  <bruno@clisp.org>
44317
44318         Avoid generating same test program with two different rules.
44319         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44320         test-frexp to test-frexp-nolibm.
44321         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44322         test-frexpl to test-frexpl-nolibm.
44323
44324 2008-11-15  Bruno Haible  <bruno@clisp.org>
44325
44326         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44327         $(FREXPL_LIBM).
44328
44329 2008-11-15  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/netdb.in.h: Activate the definitions also when the system's
44332         <netdb.h> has 'struct addrinfo'.
44333         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44334         EAI_OVERFLOW or AI_NUMERICSERV.
44335         * doc/posix-headers/netdb.texi: Document the problem.
44336
44337 2008-11-15  Bruno Haible  <bruno@clisp.org>
44338
44339         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44340
44341         Make the 'sched' module work on platforms where <sched.h> exists but
44342         is incomplete (such as Haiku).
44343         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44344         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44345         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44346         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44347         HAVE_STRUCT_SCHED_PARAM.
44348         * modules/sched (Depends-on): Add include_next.
44349         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44350         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44351         * doc/posix-headers/sched.texi: Document the issue.
44352
44353 2008-11-13  Jim Meyering  <meyering@redhat.com>
44354
44355         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44356         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44357         test would fail due to the difference in the Report bugs to ...
44358         line.  The expected address is empty, "<>", while the actual
44359         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44360
44361 2008-11-12  Bruno Haible  <bruno@clisp.org>
44362
44363         lstat: don't compile lstat.c on systems lacking lstat
44364         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44365         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44366         Reported by Daniel P. Berrange via Jim Meyering.
44367
44368 2008-11-12  Jim Meyering  <meyering@redhat.com>
44369
44370         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44371
44372 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44373
44374         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44375         instead.
44376
44377 2008-11-12  Bruno Haible  <bruno@clisp.org>
44378
44379         * lib/unicodeio.c: Include unistr.h.
44380         (utf8_wctomb): Remove function.
44381         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44382
44383 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44384
44385         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44386         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44387         <bruno@clisp.org>.
44388         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44389
44390 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44391
44392         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44393         * doc/gnulib.texi: Add section for warnings.
44394
44395 2008-11-11  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/sockets.h: Add a comment.
44398
44399 2008-11-11  Karl Berry  <karl@gnu.org>
44400
44401         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44402
44403 2008-11-11  Eric Blake  <ebb9@byu.net>
44404
44405         fdl.texi: avoid git symlinks
44406         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44407
44408 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44409
44410         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44411
44412 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44413
44414         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44415         (gl_WARN_ADD): Substitute $2 if literal.
44416
44417 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44418
44419         * m4/warning.m4: Remove.
44420
44421 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44422
44423         * m4/warnings.m4: Almost complete rewrite. :-)
44424
44425 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44426
44427         * modules/warnings: New module.
44428         * m4/warnings.m4: New file.
44429         * MODULES.html.sh: Mention warnings module.
44430         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44431         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44432
44433 2008-11-10  Eric Blake  <ebb9@byu.net>
44434
44435         fdl.texi: make a symlink to the latest version
44436         * doc/standards.texi: Revert today's earlier change.
44437         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44438         * doc/fdl.texi: ...and replace this with a symlink to the newer
44439         fdl-1.3.texi.
44440
44441 2008-11-10  Bruno Haible  <bruno@clisp.org>
44442
44443         * tests/test-select-fd.c (main): Accept the result file name as fourth
44444         argument.
44445         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44446         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44447
44448 2008-11-10  Bruno Haible  <bruno@clisp.org>
44449
44450         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44451         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44452         as autoconf-substituted macros.
44453         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44455         gl_NETDB_H_DEFAULTS. Set these variables.
44456         * modules/netdb (Makefile.am): Substitute these variables.
44457
44458 2008-11-10  Eric Blake  <ebb9@byu.net>
44459
44460         standards.texi: include correct file for FDL 1.3
44461         * doc/standards.texi (GNU Free Documentation License): Change
44462         include file to pull in FDL 1.3, not 1.2.
44463
44464         fdl.texi: revert accidental change to license
44465         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44466
44467 2008-11-10  Bruno Haible  <bruno@clisp.org>
44468
44469         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44470         cross-compiling guesses also when the native compile gives no result.
44471
44472 2008-11-10  Bruno Haible  <bruno@clisp.org>
44473
44474         * lib/spawni.c (__spawni): Force variable into the stack.
44475
44476 2008-11-10  Bruno Haible  <bruno@clisp.org>
44477
44478         Add support for Haiku.
44479         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44480         glibc and BeOS, but also on Haiku.
44481         * lib/fpurge.c (fpurge): Likewise.
44482         * lib/freadable.c (freadable): Likewise.
44483         * lib/freadahead.c (freadahead): Likewise.
44484         * lib/freading.c (freading): Likewise.
44485         * lib/freadptr.c (freadptr): Likewise.
44486         * lib/freadseek.c (freadptrinc): Likewise.
44487         * lib/fseeko.c (rpl_fseeko): Likewise.
44488         * lib/fseterr.c (fseterr): Likewise.
44489         * lib/fwritable.c (fwritable): Likewise.
44490         * lib/fwriting.c (fwriting): Likewise.
44491         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44492
44493 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44494
44495         * lib/config.charset: Treat Haiku like BeOS.
44496
44497 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44498
44499         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44500         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44501
44502 2008-11-08  Bruno Haible  <bruno@clisp.org>
44503
44504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44505         AC_CACHE_CHECK.
44506
44507 2008-11-08  Bruno Haible  <bruno@clisp.org>
44508
44509         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44510
44511 2008-11-08  Bruno Haible  <bruno@clisp.org>
44512
44513         * tests/test-select-fd.c: New file.
44514         * tests/test-select-in.sh: New file.
44515         * tests/test-select-out.sh: New file.
44516         * tests/test-select-stdin.c: New file.
44517         * modules/select-tests (Files): Add the new files.
44518         (Depends-on): Add gettimeofday.
44519         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44520         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44521         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44522
44523 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44524             Bruno Haible  <bruno@clisp.org>
44525
44526         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44527
44528 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44529
44530         * build-aux/pmccabe2html: Added support for C++ source files.
44531
44532 2008-11-05  Ben Pfaff  <blp@gnu.org>
44533
44534         Fix lib/close.c build on Windows.
44535         * modules/close (Files): Add lib/w32sock.h.
44536
44537 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44538
44539         Accept Bison's NEWS format.
44540         * build-aux/announce-gen (print_news_deltas): Tweak
44541         $re_prefix.
44542
44543 2008-11-04  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/random_r (Maintainer): Add glibc.
44546
44547 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44548
44549         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44550         by karl@freefriends.org (Karl Berry).
44551         * doc/alloca.texi: Likewise.
44552         * doc/c-ctype.texi: Likewise.
44553         * doc/c-strcase.texi: Likewise.
44554         * doc/c-strcaseeq.texi: Likewise.
44555         * doc/c-strcasestr.texi: Likewise.
44556         * doc/c-strstr.texi: Likewise.
44557         * doc/c-strtod.texi: Likewise.
44558         * doc/c-strtold.texi: Likewise.
44559         * doc/ctime.texi: Likewise.
44560         * doc/error.texi: Likewise.
44561         * doc/fdl.texi: Likewise.
44562         * doc/gcd.texi: Likewise.
44563         * doc/getdate.texi: Likewise.
44564         * doc/gnulib-intro.texi: Likewise.
44565         * doc/gnulib-tool.texi: Likewise.
44566         * doc/gnulib.texi: Likewise.
44567         * doc/inet_ntoa.texi: Likewise.
44568         * doc/maintain.texi: Likewise.
44569         * doc/make-stds.texi: Likewise.
44570         * doc/quote.texi: Likewise.
44571         * doc/regexprops-generic.texi: Likewise.
44572         * doc/standards.texi: Likewise.
44573         * doc/verify.texi: Likewise.
44574         * doc/visibility.texi: Likewise.
44575         * doc/gnulib.texi (GNU Free Documentation License): Include
44576         fdl-1.3.texi instead of fdl.texi.
44577
44578 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44579
44580         * doc/fdl-1.3.texi: New file, from
44581         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44582         * modules/fdl-1.3: Add.
44583         * MODULES.html.sh: Add fdl-1.3.
44584
44585 2008-11-03  Bruno Haible  <bruno@clisp.org>
44586
44587         Make determination of absolute name of header file work with AIX xlc.
44588         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44589         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44590         preprocessing.
44591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44592         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44593
44594 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44595
44596         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44597         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44598         <ludo@gnu.org>.
44599
44600 2008-11-02  Bruno Haible  <bruno@clisp.org>
44601
44602         Mark 'strpbrk' obsolete.
44603         * modules/strpbrk (Status, Notice): New sections.
44604         * modules/strtok_r (Depends-on): Add strpbrk.
44605
44606 2008-11-02  Bruno Haible  <bruno@clisp.org>
44607
44608         Mark 'strdup' obsolete.
44609         * modules/strdup (Status, Notice): New sections.
44610         * modules/findprog (Depends-on): Add strdup.
44611         * modules/getaddrinfo (Depends-on): Likewise.
44612         * modules/localename (Depends-on): Likewise.
44613         * modules/relocatable-lib (Depends-on): Likewise.
44614         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44615         * modules/relocatable-prog (Depends-on): Likewise.
44616         * modules/trim (Depends-on): Likewise.
44617         * modules/unictype/gen-ctype (Depends-on): Likewise.
44618         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44619
44620 2008-11-02  Bruno Haible  <bruno@clisp.org>
44621
44622         Mark 'strcspn' obsolete.
44623         * modules/strcspn (Status, Notice): New sections.
44624
44625 2008-11-02  Bruno Haible  <bruno@clisp.org>
44626
44627         Mark 'rmdir' obsolete.
44628         * modules/rmdir (Status, Notice): New sections.
44629         * modules/clean-temp (Depends-on): Add rmdir.
44630         * modules/openat (Depends-on): Likewise.
44631
44632 2008-11-02  Bruno Haible  <bruno@clisp.org>
44633
44634         Mark 'raise' obsolete.
44635         * modules/raise (Status, Notice): New sections.
44636         (Include): Specify <signal.h>.
44637         * modules/stdio (Depends-on): Add raise.
44638         * modules/write (Depends-on): Likewise.
44639
44640 2008-11-02  Bruno Haible  <bruno@clisp.org>
44641
44642         Mark 'memset' obsolete.
44643         * modules/memset (Status, Notice): New sections.
44644
44645 2008-11-02  Bruno Haible  <bruno@clisp.org>
44646
44647         Mark 'memmove' obsolete.
44648         * modules/memmove (Status, Notice): New sections.
44649         * modules/argp (Depends-on): Add memmove.
44650         * modules/argz (Depends-on): Likewise.
44651         * modules/canonicalize (Depends-on): Likewise.
44652         * modules/canonicalize-lgpl (Depends-on): Likewise.
44653         * modules/fts (Depends-on): Likewise.
44654         * modules/getcwd (Depends-on): Likewise.
44655         * modules/human (Depends-on): Likewise.
44656         * modules/regex (Depends-on): Likewise.
44657         * modules/striconveh (Depends-on): Likewise.
44658         * modules/trim (Depends-on): Likewise.
44659         * modules/unistr/u8-move (Depends-on): Likewise.
44660         * modules/unistr/u16-move (Depends-on): Likewise.
44661         * modules/unistr/u32-move (Depends-on): Likewise.
44662
44663 2008-11-02  Bruno Haible  <bruno@clisp.org>
44664
44665         Mark 'memcpy' obsolete.
44666         * modules/memcpy (Status, Notice): New sections.
44667
44668 2008-11-02  Bruno Haible  <bruno@clisp.org>
44669
44670         Mark 'memcmp' obsolete.
44671         * modules/memcmp (Status, Notice): New sections.
44672         * modules/argmatch (Depends-on): Add memchr.
44673         * modules/backupfile (Depends-on): Likewise.
44674         * modules/c-strcasestr (Depends-on): Likewise.
44675         * modules/crypto/des (Depends-on): Likewise.
44676         * modules/csharpcomp (Depends-on): Likewise.
44677         * modules/fnmatch (Depends-on): Likewise.
44678         * modules/git-merge-changelog (Depends-on): Likewise.
44679         * modules/isnand (Depends-on): Likewise.
44680         * modules/isnand-nolibm (Depends-on): Likewise.
44681         * modules/isnanf (Depends-on): Likewise.
44682         * modules/isnanf-nolibm (Depends-on): Likewise.
44683         * modules/isnanl (Depends-on): Likewise.
44684         * modules/isnanl-nolibm (Depends-on): Likewise.
44685         * modules/mbchar (Depends-on): Likewise.
44686         * modules/memcoll (Depends-on): Likewise.
44687         * modules/quotearg (Depends-on): Likewise.
44688         * modules/regex (Depends-on): Likewise.
44689         * modules/relocatable-prog (Depends-on): Likewise.
44690         * modules/same (Depends-on): Likewise.
44691         * modules/signbit (Depends-on): Likewise.
44692         * modules/strcasestr-simple (Depends-on): Likewise.
44693         * modules/unictype/gen-ctype (Depends-on): Likewise.
44694         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44695         * modules/uniname/uniname (Depends-on): Likewise.
44696         * modules/unistr/u8-cmp (Depends-on): Likewise.
44697
44698 2008-11-02  Bruno Haible  <bruno@clisp.org>
44699
44700         Mark 'memchr' obsolete.
44701         * modules/memchr (Status, Notice): New sections.
44702         * modules/argp (Depends-on): Add memchr.
44703         * modules/base64 (Depends-on): Likewise.
44704         * modules/c-strcasestr (Depends-on): Likewise.
44705         * modules/chdir-long (Depends-on): Likewise.
44706         * modules/fnmatch (Depends-on): Likewise.
44707         * modules/getsubopt (Depends-on): Likewise.
44708         * modules/git-merge-changelog (Depends-on): Likewise.
44709         * modules/glob (Depends-on): Likewise.
44710         * modules/strcasestr-simple (Depends-on): Likewise.
44711         * modules/strnlen (Depends-on): Likewise.
44712
44713 2008-11-02  Bruno Haible  <bruno@clisp.org>
44714
44715         Mark 'atexit' obsolete.
44716         * modules/atexit (Status, Notice): New sections.
44717         * modules/chdir-long (Depends-on): Add atexit.
44718         * modules/wait-process (Depends-on): Likewise.
44719
44720 2008-11-02  Bruno Haible  <bruno@clisp.org>
44721
44722         * gnulib-tool: New option --with-obsolete.
44723         (func_usage): Document it.
44724         (func_modules_transitive_closure): Drop obsolete dependencies if
44725         incobsolete is not true.
44726         (func_import): Read and save the incobsolete variable to the cache.
44727
44728 2008-11-02  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44731         * gnulib-tool: New option --extract-status.
44732         (func_usage): Document it.
44733         (sed_extract_prog): Recognize it.
44734         (func_get_status): New function.
44735
44736 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44737
44738         * modules/sockets (License): Change from LGPL to LGPLv2+.
44739
44740 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44741
44742         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44743
44744 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44745
44746         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44747         Mention times and sys_times.
44748         * modules/sys_times, modules/sys_times-tests: New modules.
44749         * modules/times, modules/times-tests: Likewise
44750         * m4/sys_times_h.m4: New file.
44751         * lib/sys_times.in.h: Likewise
44752         * lib/times.c: Likewise.
44753         * tests/test-sys_times.c: Likewise.
44754         * tests/test-times.c: Likewise.
44755         * doc/posix-headers/sys_times.texi: Update.
44756         * doc/posix-functions/times.texi: Update.
44757
44758 2008-10-28  Jim Meyering  <meyering@redhat.com>
44759
44760         * modules/tempname (Depends-on): Add lstat.
44761
44762         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44763
44764 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44765
44766         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44767         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44768         using idiom used elsewhere in gnulib.
44769
44770 2008-10-27  Jim Meyering  <meyering@redhat.com>
44771
44772         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44773
44774 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44775
44776         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44777         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44778         programs.
44779         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44780
44781 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44782
44783         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44784
44785 2008-10-27  Bruno Haible  <bruno@clisp.org>
44786
44787         * tests/test-lstat.c: Include <stdio.h>.
44788
44789 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44790
44791         * modules/lstat-tests: New module.
44792         * tests/test-lstat.c: New file.
44793
44794 2008-10-26  Jim Meyering  <meyering@redhat.com>
44795
44796         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44797
44798 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44799             Bruno Haible  <bruno@clisp.org>
44800
44801         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44802         * modules/configmake (Include): Add a note that the include must come
44803         after all system headers.
44804         * lib/javaversion.c: Include configmake.h after all other includes.
44805
44806 2008-10-26  Bruno Haible  <bruno@clisp.org>
44807
44808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44809         HAVE_STRUCT_RANDOM_DATA to 1.
44810         (gl_STDLIB_H): Simplify.
44811
44812 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44813
44814         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44815         substitute HAVE_STRUCT_RANDOM_DATA.
44816         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44817         random_data.
44818         * modules/stdlib (Makefile.am): Substitute
44819         HAVE_STRUCT_RANDOM_DATA.
44820
44821 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44822
44823         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44824         * doc/gnulib-intro.texi (Copyright): Likewise.
44825
44826 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44827
44828         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44829         findings.
44830
44831 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44832             Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/unistd.in.h: Include <winsock2.h>.
44835         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44836         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44837         Provide dummy declarations.
44838         (gethostname): Override.
44839         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44841         gl_PREREQ_SYS_H_WINSOCK2.
44842         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44843         * doc/posix-functions/gethostname.texi: More details.
44844
44845 2008-10-25  Bruno Haible  <bruno@clisp.org>
44846
44847         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44848         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44849         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44850
44851         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44852         here ...
44853         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44855         gl_UNISTD_H_DEFAULTS.
44856
44857 2008-10-25  Eric Blake  <ebb9@byu.net>
44858
44859         signbit: avoid spurious compiler failure
44860         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44861         declarations inside function.
44862
44863 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44864             Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44867         * modules/random_r (Depends-on): Add stdint.
44868
44869 2008-10-24  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44872         Eggert.
44873         * modules/strerror (License): Likewise.
44874
44875 2008-10-24  Jim Meyering  <meyering@redhat.com>
44876
44877         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44878         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44879
44880 2008-10-24  Eric Blake  <ebb9@byu.net>
44881
44882         getgroups: fix compilation when getgroups is available
44883         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44884         but with <config.h> override of getgroups disabled.
44885
44886 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44887
44888         * doc/gnulib.texi (Header files): Add note about C++ problems.
44889         Explained by Bruno Haible <bruno@clisp.org>.
44890
44891 2008-10-23  Bruno Haible  <bruno@clisp.org>
44892
44893         Define a dummy SA_NODEFER macro on Interix.
44894         * lib/signal.in.h (SA_NODEFER): Define fallback.
44895         Reported by Aleksey Cheusov <cheusov@tut.by> via
44896         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44897
44898 2008-10-23  Bruno Haible  <bruno@clisp.org>
44899
44900         * modules/freadahead (License): Change to LGPLv2+.
44901         Suggested by Simon Josefsson.
44902
44903 2008-10-23  Jim Meyering  <meyering@redhat.com>
44904
44905         random_r: new module
44906         * modules/random_r: New file.
44907         * m4/random_r.m4: New file.
44908         * lib/random_r.c: New file, from glibc.
44909         * modules/random_r-tests: New file.
44910         * tests/test-random_r.c: New file.
44911         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44912          Declare.
44913         (RAND_MAX): Define.
44914         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44915         * modules/stdlib: Substitute them, too.
44916         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44917         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44918         * doc/glibc-functions/random_r.texi: Likewise.
44919         * doc/glibc-functions/setstate_r.texi: Likewise.
44920         * doc/glibc-functions/srandom_r.texi: Likewise.
44921         * config/srclist.txt: Mention it.
44922
44923 2008-10-23  David Lutterkort  <lutter@redhat.com>
44924
44925         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44926         link requirement
44927
44928 2008-10-23  Jim Meyering  <meyering@redhat.com>
44929
44930         selinux-h: mark parameters of stub functions as intentionally unused
44931         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44932         * lib/se-context.in.h: Likewise.
44933
44934 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44935
44936         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44937
44938 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44939
44940         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44941
44942 2008-10-22  Eric Blake  <ebb9@byu.net>
44943
44944         glthread/thread: avoid compiler warning
44945         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44946         Add unreachable abort to silence compiler.
44947
44948 2008-10-22  Eric Blake  <ebb9@byu.net>
44949
44950         netdb: also supply struct addrinfo for cygwin 1.5.x
44951         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44952         older cygwin.
44953         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44954         cygwin.
44955         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44956
44957 2008-10-22  Bruno Haible  <bruno@clisp.org>
44958
44959         * users.txt: Update entry about pspp.
44960
44961 2008-10-21  Bruno Haible  <bruno@clisp.org>
44962
44963         Simplification.
44964         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44965         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44966
44967         Simplification.
44968         * lib/ioctl.c (ioctl): Don't undefine.
44969         * lib/socket.c (socket): Don't undefine.
44970
44971         Remove unused module indicator macros.
44972         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44973         GNULIB_$1 as a C macro.
44974
44975         * doc/posix-functions/close.texi: Undo last change.
44976         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44977         Windows platforms.
44978
44979 2008-10-21  Bruno Haible  <bruno@clisp.org>
44980
44981         Add gethostname() declaration to <unistd.h>.
44982         * lib/unistd.in.h (gethostname): New declaration.
44983         * lib/gethostname.c: Include <unistd.h>.
44984         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44985         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44987         and HAVE_GETHOSTNAME.
44988         * modules/gethostname (Depends-on): Add unistd.
44989         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44990         (Include): Specify <unistd.h>.
44991         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44992         HAVE_GETHOSTNAME.
44993         * tests/test-gethostname.c: Include <unistd.h> first.
44994
44995 2008-10-21  Bruno Haible  <bruno@clisp.org>
44996
44997         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44998         * modules/select-tests (Depends-on): Likewise.
44999         Reported by Simon Josefsson.
45000
45001 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45002
45003         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45004         * lib/accept.c: New file, based on winsock.c.
45005         * lib/bind.c: New file, based on winsock.c.
45006         * lib/connect.c: New file, based on winsock.c.
45007         * lib/getpeername.c: New file, based on winsock.c.
45008         * lib/getsockname.c: New file, based on winsock.c.
45009         * lib/getsockopt.c: New file, based on winsock.c.
45010         * lib/ioctl.c: New file, based on winsock.c.
45011         * lib/listen.c: New file, based on winsock.c.
45012         * lib/recv.c: New file, based on winsock.c.
45013         * lib/recvfrom.c: New file, based on winsock.c.
45014         * lib/send.c: New file, based on winsock.c.
45015         * lib/sendto.c: New file, based on winsock.c.
45016         * lib/setsockopt.c: New file, based on winsock.c.
45017         * lib/shutdown.c: New file, based on winsock.c.
45018         * lib/socket.c: New file, based on winsock.c.
45019         * lib/w32sock.h: New file, based on winsock.c.
45020         * lib/winsock.c: Remove file.
45021         * modules/accept: Likewise.
45022         * modules/bind: Likewise.
45023         * modules/connect: Likewise.
45024         * modules/getpeername: Likewise.
45025         * modules/getsockname: Likewise.
45026         * modules/getsockopt: Likewise.
45027         * modules/ioctl: Likewise.
45028         * modules/listen: Likewise.
45029         * modules/recv: Likewise.
45030         * modules/recvfrom: Likewise.
45031         * modules/send: Likewise.
45032         * modules/sendto: Likewise.
45033         * modules/setsockopt: Likewise.
45034         * modules/shutdown: Likewise.
45035         * modules/socket: Use socket.c instead of winsock.c.
45036         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45037         * doc/posix-functions/accept.texi: Doc fix.
45038         * doc/posix-functions/bind.texi: Doc fix.
45039         * doc/posix-functions/close.texi: Doc fix.
45040         * doc/posix-functions/connect.texi: Doc fix.
45041         * doc/posix-functions/getpeername.texi: Doc fix.
45042         * doc/posix-functions/getsockname.texi: Doc fix.
45043         * doc/posix-functions/getsockopt.texi: Doc fix.
45044         * doc/posix-functions/ioctl.texi: Doc fix.
45045         * doc/posix-functions/listen.texi: Doc fix.
45046         * doc/posix-functions/recv.texi: Doc fix.
45047         * doc/posix-functions/recvfrom.texi: Doc fix.
45048         * doc/posix-functions/send.texi: Doc fix.
45049         * doc/posix-functions/sendto.texi: Doc fix.
45050         * doc/posix-functions/setsockopt.texi: Doc fix.
45051         * doc/posix-functions/shutdown.texi: Doc fix.
45052         * doc/posix-functions/socket.texi: Doc fix.
45053
45054 2008-10-20  Bruno Haible  <bruno@clisp.org>
45055
45056         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45057         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45058         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45059         as an alias for SIGABRT.
45060         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45061         (sigaction): Map it to SIGABRT.
45062         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45063
45064 2008-10-20  Bruno Haible  <bruno@clisp.org>
45065
45066         * lib/fts.c: Don't include lstat.h.
45067         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45068
45069         Move the lstat() declaration to <sys/stat.h>.
45070         * lib/lstat.h: Remove file.
45071         * lib/sys_stat.in.h: Add special invocation convention.
45072         (lstat): New declaration.
45073         * lib/lstat.c (orig_lstat): New function.
45074         (rpl_lstat): Use orig_lstat instead of lstat.
45075         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45076         AC_C_INLINE. Set REPLACE_LSTAT.
45077         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45078         and REPLACE_LSTAT.
45079         * modules/lstat (Files): Remove lib/lstat.h.
45080         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45081         (Include): Specify <sys/stat.h> instead of lstat.h.
45082         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45083         REPLACE_LSTAT.
45084         * NEWS: Mention the change.
45085
45086 2008-10-20  Bruno Haible  <bruno@clisp.org>
45087
45088         * modules/posix_spawn-tests: New file.
45089         * tests/test-posix_spawn3.c: New file.
45090
45091 2008-10-20  Bruno Haible  <bruno@clisp.org>
45092
45093         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45094         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45095         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45096         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45097         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45098
45099 2008-10-20  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45102         of posix_spawn on AIX 5.3.
45103
45104 2008-10-20  Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45107
45108 2008-10-20  Bruno Haible  <bruno@clisp.org>
45109
45110         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45111         of AC_LANG_PROGRAM.
45112
45113 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45114
45115         * lib/netdb.in.h: Don't define GNU specific constants until they
45116         are supported or needed.  Reported by Bruno Haible
45117         <bruno@clisp.org>.
45118
45119 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45120
45121         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45122
45123 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45124
45125         * lib/getaddrinfo.h: Remove file.
45126         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45127         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45128         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45129         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45130         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45131         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45132         * tests/test-getaddrinfo.c: Likewise.
45133         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45134         * NEWS: Mention change.
45135
45136 2008-10-19  Bruno Haible  <bruno@clisp.org>
45137
45138         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45139
45140 2008-10-19  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/wait-process.c: Include simply <sys/wait.h>.
45143         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45144         WIFSTOPPED): Remove fallback definitions.
45145         * modules/wait-process (Depends-on): Add sys_wait.
45146
45147         New module 'sys_wait'.
45148         * modules/sys_wait: New file.
45149         * lib/sys_wait.in.h: New file, partially copied from
45150         lib/wait-process.c.
45151         * m4/sys_wait_h.m4: New file.
45152         * doc/posix-headers/sys_wait.texi: Mention the new module.
45153
45154 2008-10-19  Bruno Haible  <bruno@clisp.org>
45155
45156         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45157
45158 2008-10-19  Bruno Haible  <bruno@clisp.org>
45159
45160         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45161         * lib/wait-process.c (WAIT_T): Remove type.
45162         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45163         (wait_subprocess): Update.
45164
45165 2008-10-19  Bruno Haible  <bruno@clisp.org>
45166
45167         New module 'atoll'.
45168         * modules/atoll: New file.
45169         * lib/stdlib.in.h (atoll): New declaration.
45170         * lib/atoll.c: New file, from glibc with modifications.
45171         * m4/atoll.m4: New file.
45172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45173         HAVE_ATOLL.
45174         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45175         * doc/posix-functions/atoll.texi: Mention the new module.
45176
45177 2008-10-19  Bruno Haible  <bruno@clisp.org>
45178
45179         Add strtoull() declaration to <stdlib.h>.
45180         * lib/stdlib.in.h (strtoull): New declaration.
45181         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45182         Set HAVE_STRTOULL.
45183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45184         HAVE_STRTOULL.
45185         * modules/strtoull (Depends-on): Add stdlib.
45186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45187         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45188         HAVE_STRTOULL.
45189
45190 2008-10-19  Bruno Haible  <bruno@clisp.org>
45191
45192         Add strtoll() declaration to <stdlib.h>.
45193         * lib/stdlib.in.h (strtoll): New declaration.
45194         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45195         Set HAVE_STRTOLL.
45196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45197         HAVE_STRTOLL.
45198         * modules/strtoll (Depends-on): Add stdlib.
45199         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45200         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45201
45202 2008-10-19  Bruno Haible  <bruno@clisp.org>
45203
45204         * modules/bcopy (Depends-on): Add strings.
45205         (Include): Specify <strings.h>.
45206
45207 2008-10-19  Bruno Haible  <bruno@clisp.org>
45208
45209         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45210
45211 2008-10-19  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45214         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45215         mingw.
45216
45217 2008-10-19  Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/atanl.c: Don't include isnanl.h.
45220         * lib/cosl.c: Likewise.
45221         * lib/ldexpl.c: Likewise.
45222         * lib/logl.c: Likewise.
45223         * lib/sinl.c: Likewise.
45224         * lib/sqrtl.c: Likewise.
45225         * lib/tanl.c: Likewise.
45226
45227         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45228         * lib/isnanf.h: Remove file.
45229         * lib/isnand.h: Remove file.
45230         * lib/isnanl.h: Remove file.
45231         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45232         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45233         macros.
45234         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45235         HAVE_ISNANF, don't define it as a C macro.
45236         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45237         HAVE_ISNAND, don't define it as a C macro.
45238         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45239         HAVE_ISNANL, don't define it as a C macro.
45240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45241         HAVE_ISNAN[FDL].
45242         * modules/isnanf (Files): Remove lib/isnanf.h.
45243         (Depends-on): Add math.
45244         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45245         (Include): Specify <math.h> instead of isnanf.h.
45246         * modules/isnand (Files): Remove lib/isnand.h.
45247         (Depends-on): Add math.
45248         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45249         (Include): Specify <math.h> instead of isnand.h.
45250         * modules/isnanl (Files): Remove lib/isnanl.h.
45251         (Depends-on): Add math.
45252         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45253         (Include): Specify <math.h> instead of isnanl.h.
45254         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45255         HAVE_ISNAN[FDL].
45256         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45257         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45258         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45259         * NEWS: Mention the change.
45260
45261 2008-10-18  Bruno Haible  <bruno@clisp.org>
45262
45263         Add getusershell(), setusershell(), endusershell() declarations to
45264         <unistd.h>.
45265         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45266         declarations.
45267         * lib/getusershell.c: Include unistd.h.
45268         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45269         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45270         HAVE_GETUSERSHELL.
45271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45272         and HAVE_GETUSERSHELL.
45273         * modules/getusershell (Depends-on): Add unistd, extensions.
45274         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45275         (Include): Specify <unistd.h>.
45276         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45277         HAVE_GETUSERSHELL.
45278
45279 2008-10-18  Bruno Haible  <bruno@clisp.org>
45280
45281         Add a getloadavg() declaration to <stdlib.h>.
45282         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45283         getloadavg declaration.
45284         (getloadavg): New declaration.
45285         * lib/getloadavg.c: Include <stdlib.h> first.
45286         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45287         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45288         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45290         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45291         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45293         (Include): Specify <stdlib.h>.
45294         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45295         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45296
45297 2008-10-18  Bruno Haible  <bruno@clisp.org>
45298
45299         * lib/dirchownmod.c: Don't include lchmod.h.
45300
45301         Move the lchmod() declaration to <sys/stat.h>.
45302         * lib/lchmod.h: Remove file.
45303         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45304         (lchmod): New declaration, moved here from lib/lchown.h.
45305         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45306         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45308         and HAVE_LCHMOD.
45309         * modules/lchmod (Files): Remove lib/lchmod.h.
45310         (Depends-on): Add sys_stat, extensions.
45311         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45312         (Include): Specify <sys/stat.h> instead of lchmod.h.
45313         * modules/sys_stat (Depends-on): Add link-warning.
45314         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45315         definition of GL_LINK_WARNING.
45316         * NEWS: Mention the change.
45317
45318 2008-10-18  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/fchdir.c: Don't include dirfd.h.
45321         * lib/fts.c: Likewise.
45322         * lib/getcwd.c: Likewise.
45323         * lib/glob.c: Likewise.
45324
45325         Move the dirfd() declaration to <dirent.h>.
45326         * lib/dirfd.h: Remove file.
45327         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45328         (dirfd): New declaration.
45329         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45330         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45331         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45332         HAVE_DECL_DIRFD.
45333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45334         HAVE_DECL_DIRFD.
45335         * modules/dirfd (Files): Remove lib/dirfd.h.
45336         (Depends-on): Add dirent, extensions.
45337         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45338         (Include): Specify <dirent.h> instead of dirfd.h.
45339         * modules/dirent (Depends-on): Add link-warning.
45340         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45341         definition of GL_LINK_WARNING.
45342         * NEWS: Mention the change.
45343
45344 2008-10-18  Bruno Haible  <bruno@clisp.org>
45345
45346         Move the euidaccess() declaration to <unistd.h>.
45347         * lib/euidaccess.h: Remove file.
45348         * lib/unistd.in.h (euidaccess): New declaration.
45349         * lib/euidaccess.c: Don't include euidaccess.h.
45350         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45351         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45353         and HAVE_EUIDACCESS.
45354         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45355         (Depends-on): Add unistd.
45356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45357         (Include): Specify <unistd.h> instead of euidaccess.h.
45358         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45359         HAVE_EUIDACCESS.
45360         * NEWS: Mention the change.
45361
45362 2008-10-18  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45365
45366         Move the getdomainname() declaration to <unistd.h>.
45367         * lib/getdomainname.h: Remove file.
45368         * lib/unistd.in.h (getdomainname): New declaration.
45369         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45370         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45371         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45372         HAVE_GETDOMAINNAME.
45373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45374         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45375         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45376         (Depends-on): Add unistd, extensions.
45377         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45378         (Includes): Specify <unistd.h> instead of getdomainname.h.
45379         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45380         HAVE_GETDOMAINNAME.
45381         * NEWS: Mention the change.
45382
45383 2008-10-18  Bruno Haible  <bruno@clisp.org>
45384
45385         * modules/dirent: New file.
45386         * m4/dirent_h.m4: New file.
45387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45388         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45389         * modules/fchdir (Files): Remove lib/dirent.in.h.
45390         (Depends-on): Add dirent.
45391         (Makefile.am): Move rules to modules/dirent.
45392         * doc/posix-headers/dirent.texi: Mention the new module.
45393
45394 2008-10-18  Bruno Haible  <bruno@clisp.org>
45395
45396         Avoid -Wunused-parameter warnings in public gnulib header files.
45397         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45398         macro.
45399         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45400
45401 2008-10-18  Bruno Haible  <bruno@clisp.org>
45402
45403         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45404         * doc/glibc-functions/error.texi: Mention the module 'error'.
45405         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45406         * doc/glibc-functions/getdomainname.texi: Mention the module
45407         'getdomainname'.
45408         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45409         * doc/glibc-functions/getpagesize.texi: Mention the module
45410         'getpagesize'.
45411         * doc/glibc-functions/getusershell.texi: Mention the module
45412         'getusershell'.
45413         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45414         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45415         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45416         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45417         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45418         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45419         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45420         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45421         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45422         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45423         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45424         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45425         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45426         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45427
45428 2008-10-17  Bruno Haible  <bruno@clisp.org>
45429
45430         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45431         HP-UX and IRIX, use -0.0L.
45432         * tests/test-ceill.c (minus_zero): Likewise.
45433         * tests/test-floorl.c (minus_zero): Likewise.
45434         * tests/test-frexpl.c (minus_zero): Likewise.
45435         * tests/test-isnan.c (minus_zerol): Likewise.
45436         * tests/test-isnanl.h (minus_zero): Likewise.
45437         * tests/test-ldexpl.c (minus_zero): Likewise.
45438         * tests/test-roundl.c (minus_zero): Likewise.
45439         * tests/test-signbit.c (minus_zerol): Likewise.
45440         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45441         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45442         * tests/test-truncl.c (minus_zero): Likewise.
45443         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45444         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45445         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45446         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45447
45448 2008-10-17  Bruno Haible  <bruno@clisp.org>
45449
45450         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45451         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45452         that it gets activated only for gcc >= 3.0.
45453         * lib/dirent.in.h: Likewise.
45454         * lib/errno.in.h: Likewise.
45455         * lib/fcntl.in.h: Likewise.
45456         * lib/float.in.h: Likewise.
45457         * lib/iconv.in.h: Likewise.
45458         * lib/inttypes.in.h: Likewise.
45459         * lib/locale.in.h: Likewise.
45460         * lib/math.in.h: Likewise.
45461         * lib/netdb.in.h: Likewise.
45462         * lib/netinet_in.in.h: Likewise.
45463         * lib/search.in.h: Likewise.
45464         * lib/signal.in.h: Likewise.
45465         * lib/spawn.in.h: Likewise.
45466         * lib/stdarg.in.h: Likewise.
45467         * lib/stdint.in.h: Likewise.
45468         * lib/stdio.in.h: Likewise.
45469         * lib/stdlib.in.h: Likewise.
45470         * lib/string.in.h: Likewise.
45471         * lib/strings.in.h: Likewise.
45472         * lib/sys_file.in.h: Likewise.
45473         * lib/sys_ioctl.in.h: Likewise.
45474         * lib/sys_select.in.h: Likewise.
45475         * lib/sys_socket.in.h: Likewise.
45476         * lib/sys_stat.in.h: Likewise.
45477         * lib/sys_time.in.h: Likewise.
45478         * lib/sysexits.in.h: Likewise.
45479         * lib/time.in.h: Likewise.
45480         * lib/unistd.in.h: Likewise.
45481         * lib/wchar.in.h: Likewise.
45482         * lib/wctype.in.h: Likewise.
45483         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45484
45485 2008-10-17  Jim Meyering  <meyering@redhat.com>
45486
45487         ignore-value: don't depend on inline module
45488         * modules/ignore-value (Depends-on): Remove 'inline'.
45489         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45490         Suggestion from Bruno Haible.
45491
45492 2008-10-17  Bruno Haible  <bruno@clisp.org>
45493
45494         New implementation of condition variables for Win32.
45495         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45496         (gl_linked_waitqueue_t): New type.
45497         (gl_cond_t): Use it.
45498         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45499         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45500         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45501         (glthread_cond_init_func, glthread_cond_wait_func,
45502         glthread_cond_timedwait_func, glthread_cond_signal_func,
45503         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45504         Reimplemented on the basis of gl_linked_waitqueue_t.
45505         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45506         gl_waitqueue_t.
45507         (gl_rwlock_t): Update.
45508         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45509
45510 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45511
45512         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45513         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45514
45515 2008-10-17  Jim Meyering  <meyering@redhat.com>
45516
45517         ignore-value: new module
45518         * modules/ignore-value: New file.
45519         * lib/ignore-value.h: New file.
45520         * MODULES.html.sh (Compiler warning management): New section,
45521         just for this module.  More to come.
45522
45523 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45524
45525         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45526         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45527         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45528
45529 2008-10-16  Jim Meyering  <meyering@redhat.com>
45530
45531         openat-die.c: avoid 'no previous prototype' warning
45532         * lib/openat-die.c: Include "openat.h".
45533         Reported by Reuben Thomas <rrt@sc3d.org>.
45534
45535 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45536
45537         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45538         * lib/netdb.in.h: Fix typo.
45539         Reported by Bruno Haible  <bruno@clisp.org>
45540
45541         * lib/netdb.in.h: Include sys/socket.h for platforms without
45542         netdb.h, to get structures like hostent on MinGW.
45543         * modules/netdb (Depends-on): Add sys_socket.
45544
45545 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45546
45547         * modules/netdb, modules/netdb-tests: New file.
45548         * m4/netdb_h.m4: New file.
45549         * lib/netdb.in.h: Add, currently just an empty file pending
45550         definitions.
45551         * tests/test-netdb.c: New file.
45552         * doc/posix-headers/netdb.texi: Mention that we replace it if
45553         needed.
45554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45555         netdb.
45556
45557 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45558
45559         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45560         with code.
45561
45562 2008-10-13  Bruno Haible  <bruno@clisp.org>
45563
45564         * lib/glthread/cond.c (glthread_cond_wait_func,
45565         glthread_cond_timedwait_func): Add a comment.
45566
45567 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45568
45569         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45570         * tests/test-select.c: Likewise,
45571
45572 2008-10-13  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/glthread/cond.c (glthread_cond_wait_func,
45575         glthread_cond_timedwait_func): Fix variable name.
45576         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45577
45578 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45579
45580         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45582         struct sockaddr.sa_len.
45583         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45584
45585 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45586
45587         * build-aux/pmccabe2html: Add css and css_url parameters.
45588
45589 2008-10-12  Bruno Haible  <bruno@clisp.org>
45590
45591         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45592         calling aclx_get.
45593         Reported by Rainer Tammer <tammer@tammer.net>.
45594
45595 2008-10-12  Bruno Haible  <bruno@clisp.org>
45596
45597         Use msvcrt aware primitives for creation/termination of Win32 threads.
45598         * lib/glthread/thread.c: Include <process.h>.
45599         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45600         (wrapper_func): Update signature.
45601         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45602
45603 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45604             Bruno Haible  <bruno@clisp.org>
45605
45606         Provide a Win32 implementation of the 'cond' module.
45607         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45608         * lib/glthread/cond.c (glthread_cond_init_func,
45609         glthread_cond_wait_func, glthread_cond_timedwait_func,
45610         glthread_cond_signal_func, glthread_cond_broadcast_func,
45611         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45612         * modules/cond (Dependencies): Add gettimeofday.
45613
45614 2008-10-11  Bruno Haible  <bruno@clisp.org>
45615
45616         Make sleep work on older versions of mingw.
45617         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45618         only whether it exists.
45619         * doc/posix-functions/sleep.texi: Mention the problem with older
45620         versions of mingw.
45621
45622 2008-10-11  Bruno Haible  <bruno@clisp.org>
45623
45624         New module 'shutdown'.
45625         * modules/shutdown: New file.
45626         * lib/sys_socket.in.h (shutdown): New declaration.
45627         * lib/winsock.c (shutdown): New function.
45628         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45629         GNULIB_SHUTDOWN.
45630         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45631         * doc/posix-functions/shutdown.texi: Document the new module.
45632
45633 2008-10-11  Jim Meyering  <meyering@redhat.com>
45634
45635         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45636
45637 2008-10-11  Bruno Haible  <bruno@clisp.org>
45638
45639         New module 'fclose'.
45640         * modules/fclose: New file.
45641         * lib/stdio.in.h (fclose): New declaration.
45642         * lib/fclose.c: New file.
45643         * m4/fclose.m4: New file.
45644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45645         REPLACE_FCLOSE.
45646         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45647         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45648         REPLACE_FCLOSE.
45649         * modules/close (Depends-on): fclose.
45650         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45651
45652 2008-10-11  Bruno Haible  <bruno@clisp.org>
45653
45654         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45655         set errno and don't call _close.
45656
45657 2008-10-10  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45660         ACL, not afterwards. Fixes test failure on Cygwin.
45661
45662 2008-10-09  Ben Pfaff  <blp@gnu.org>
45663
45664         * build-aux/announce-gen: Fix gnulib version related part of usage
45665         message.  Die with a useful error message if no tarballs are
45666         found.
45667
45668 2008-10-10  Jim Meyering  <meyering@redhat.com>
45669
45670         bootstrap: use git's --depth=N option only if it's supported
45671         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45672         recognize the --depth option.  Reported by Pádraig Brady.
45673
45674 2008-10-09  Bruno Haible  <bruno@clisp.org>
45675
45676         New module 'ioctl'.
45677         * modules/ioctl: New file.
45678         * lib/sys_socket.in.h (ioctl): Remove declaration.
45679         * lib/winsock.c: Include <sys/ioctl.h>.
45680         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45681         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45682         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45683         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45684         * doc/posix-functions/ioctl.texi: Mention the new module.
45685
45686 2008-10-09  Bruno Haible  <bruno@clisp.org>
45687
45688         New module 'sys_ioctl'.
45689         * lib/sys_ioctl.in.h: New file.
45690         * m4/sys_ioctl_h.m4: New file.
45691         * modules/sys_ioctl: New file.
45692         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45693
45694 2008-10-09  Bruno Haible  <bruno@clisp.org>
45695
45696         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45697         * lib/winsock.c: Include <stdarg.h>.
45698         (rpl_ioctl): Change to second argument 'int' and then varargs.
45699
45700 2008-10-09  Bruno Haible  <bruno@clisp.org>
45701
45702         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45703         when the sys_socket module is present and the system has <winsock2.h>.
45704
45705 2008-10-09  Bruno Haible  <bruno@clisp.org>
45706
45707         * doc/posix-functions/close.texi: Mention module 'close' instead of
45708         module 'sys_socket'.
45709
45710 2008-10-09  Bruno Haible  <bruno@clisp.org>
45711
45712         * doc/glibc-headers/sys_ioctl.texi: New file.
45713         * doc/gnulib.texi: Include it.
45714
45715 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45716             Bruno Haible  <bruno@clisp.org>
45717
45718         Combine the two replacements of 'close'.
45719         * lib/sys_socket.in.h (close): Define to a reminder to include
45720         <unistd.h>.
45721         (_gl_close_fd_maybe_socket): New declaration.
45722         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45723         * lib/winsock.c (close): Remove undefinition.
45724         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45725         needed for the gnulib module 'close'.
45726         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45727         define to an error symbol or to a warning, if suitable.
45728         * lib/close.c: Include <sys/socket.h>.
45729         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45730         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45731         UNISTD_H_HAVE_WINSOCK2_H.
45732         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45734         UNISTD_H_HAVE_WINSOCK2_H.
45735         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45736         (configure.ac): Set a module indicator.
45737         (Makefile.am): Substitute GNULIB_CLOSE.
45738         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45739         * modules/poll-tests (Depends-on): Add close.
45740         * modules/select-tests (Depends-on): Likewise.
45741
45742 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45743             Bruno Haible  <bruno@clisp.org>
45744
45745         New module 'close'.
45746         * modules/close: New file.
45747         * lib/unistd.in.h (close): Move declaration out of the
45748         FCHDIR_REPLACEMENT scope.
45749         (_gl_unregister_fd): New declaration.
45750         * lib/close.c: New file.
45751         * lib/fchdir.c (rpl_close): Remove function.
45752         * m4/close.m4: New file.
45753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45754         close.
45755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45756         REPLACE_CLOSE.
45757         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45758         REPLACE_CLOSE.
45759         * modules/fchdir (Depends-on): Add close.
45760
45761 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45762             Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/fcntl.in.h (open): Simplify conditionals.
45765         (_gl_register_fd): New declaration.
45766         * lib/fchdir.c (rpl_open): Remove function.
45767         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45768         also.
45769         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45771         open.
45772
45773 2008-10-09  Jim Meyering  <meyering@redhat.com>
45774
45775         GNUmakefile: use the more name-space-friendly "_version"
45776         * top/GNUmakefile (_dummy): Update.
45777         (_version): Rename from "version".
45778
45779 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45780             Bruno Haible  <bruno@clisp.org>
45781
45782         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45783         rpl_close.
45784         (_gl_register_fd): New function, extracted from rpl_open.
45785         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45786         (rpl_open, rpl_opendir): Use _gl_register_fd.
45787
45788 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45789
45790         Fix organization of 'open' replacement.
45791         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45792         (gl_FUNC_OPEN): Use it.
45793         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45794
45795 2008-10-08  Bruno Haible  <bruno@clisp.org>
45796
45797         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45798
45799 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45800
45801         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45802         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45803         listen).
45804
45805 2008-10-08  Eric Blake  <ebb9@byu.net>
45806
45807         GNUmakefile: add 'make version' target
45808         * top/GNUmakefile (_curr-ver): Split version update rules...
45809         (version): ...into a target.
45810
45811 2008-10-07  Bruno Haible  <bruno@clisp.org>
45812
45813         Use a more portable replacement expression for -0.0L.
45814         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45815         instead of -0.0L. Fix m4 quotation.
45816
45817         * tests/test-signbit.c: Include <float.h>.
45818         (minus_zero): New variable.
45819         (test_signbitl): Use minus_zero instead of -zero.
45820         * modules/signbit-tests (Depends-on): Add float.
45821
45822         * tests/test-ceill.c: Include <float.h>.
45823         (zero): Remove variable.
45824         (minus_zero): New variable.
45825         (main): Use minus_zero instead of -zero.
45826         * modules/ceill-tests (Depends-on): Add float.
45827
45828         * tests/test-floorl.c: Include <float.h>.
45829         (zero): Remove variable.
45830         (minus_zero): New variable.
45831         (main): Use minus_zero instead of -zero.
45832         * modules/floorl-tests (Depends-on): Add float.
45833
45834         * tests/test-roundl.c: Include <float.h>.
45835         (zero): Remove variable.
45836         (minus_zero): New variable.
45837         (main): Use minus_zero instead of -zero.
45838         * modules/roundl-tests (Depends-on): Add float.
45839
45840         * tests/test-truncl.c: Include <float.h>.
45841         (zero): Remove variable.
45842         (minus_zero): New variable.
45843         (main): Use minus_zero instead of -zero.
45844         * modules/truncl-tests (Depends-on): Add float.
45845
45846         * tests/test-frexpl.c (zero): Remove variable.
45847         (minus_zero): New variable.
45848         (main): Use minus_zero instead of -zero.
45849         * modules/frexpl-tests (Depends-on): Add float.
45850
45851         * tests/test-isnan.c (zerol): Remove variable.
45852         (minus_zerol): New variable.
45853         (test_long_double): Use minus_zerol instead of -zerol.
45854         * modules/isnan-tests (Depends-on): Add float.
45855
45856         * tests/test-isnanl.h (zero): Remove variable.
45857         (minus_zero): New variable.
45858         (main): Use minus_zero instead of -zero.
45859         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45860         * modules/isnanl-tests (Depends-on): Add float.
45861
45862         * tests/test-ldexpl.c (zero): Remove variable.
45863         (minus_zero): New variable.
45864         (main): Use minus_zero instead of -zero.
45865         * modules/ldexpl-tests (Depends-on): Add float.
45866
45867         * tests/test-snprintf-posix.h (zerol): Remove variable.
45868         (minus_zerol): New variable.
45869         (test_function): Use minus_zerol instead of -zerol.
45870         * modules/snprintf-posix-tests (Depends-on): Add float.
45871         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45872
45873         * tests/test-sprintf-posix.h (zerol): Remove variable.
45874         (minus_zerol): New variable.
45875         (test_function): Use minus_zerol instead of -zerol.
45876         * modules/sprintf-posix-tests (Depends-on): Add float.
45877         * modules/vsprintf-posix-tests (Depends-on): Add float.
45878
45879         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45880         (minus_zerol): New variable.
45881         (test_function): Use minus_zerol instead of -zerol.
45882         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45883
45884         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45885         (minus_zerol): New variable.
45886         (test_function): Use minus_zerol instead of -zerol.
45887         * modules/vasprintf-posix-tests (Depends-on): Add float.
45888
45889 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45890
45891         * MODULES.html.sh (Support for building documentation): Mention
45892         pmccabe2html.  Sort entries.
45893
45894         Add pmccabe2html module, from gnupdf.
45895         * build-aux/pmccabe.css: New file.
45896         * build-aux/pmccabe2html: New file.
45897         * m4/pmccabe2html.m4: New file.
45898         * modules/pmccabe2html: New file.
45899
45900 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45901
45902         flock: new module
45903         * MODULES.html.sh: Add to list of modules.
45904         * lib/flock.c: flock implementation for Windows and Unix systems
45905         which have fcntl.
45906         * doc/glibc-functions/flock.texi: Update documentation.
45907         * lib/sys_file.in.h: <sys/file.h> header file.
45908         * m4/flock.m4: M4 macros.
45909         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45910         * modules/flock: flock module.
45911         * modules/flock-tests: flock tests module.
45912         * modules/sys_file: sys/file.h module.
45913         * tests/test-flock.c: test suite for flock.
45914
45915 2008-10-06  Jim Meyering  <meyering@redhat.com>
45916
45917         bootstrap: check for LT_INIT more portably still ;-)
45918         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45919         Spotted by Bruno Haible.
45920
45921 2008-10-06  Eric Blake  <ebb9@byu.net>
45922
45923         test-signbit: avoid tripping Irix cc bug on -0.0L
45924         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45925         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45926         entire testsuite consistent and avoids an Irix 6.2 bug.
45927
45928 2008-10-05  Bruno Haible  <bruno@clisp.org>
45929             Jim Meyering  <jim@meyering.net>
45930
45931         Add an option for ignoring EPIPE during close_stdout.
45932         * lib/closeout.h: Include <stdbool.h>.
45933         (close_stdout_set_ignore_EPIPE): New declaration.
45934         * lib/closeout.c: Include <stdbool.h>.
45935         (ignore_EPIPE): New variable.
45936         (close_stdout_set_ignore_EPIPE): New function.
45937         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45938         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45939         failure.
45940         * modules/closeout (Depends-on): Add stdbool.
45941
45942 2008-10-05  Bruno Haible  <bruno@clisp.org>
45943
45944         * modules/accept: New file.
45945         * modules/bind: New file.
45946         * modules/connect: New file.
45947         * modules/getpeername: New file.
45948         * modules/getsockname: New file.
45949         * modules/getsockopt: New file.
45950         * modules/listen: New file.
45951         * modules/recv: New file.
45952         * modules/recvfrom: New file.
45953         * modules/send: New file.
45954         * modules/sendto: New file.
45955         * modules/setsockopt: New file.
45956         * modules/socket: New file.
45957         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45958         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45959         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45960         the particular module is requested. Add a link warning when the
45961         particular module is not requested.
45962         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45963         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45964         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45965         the particular module is requested.
45966         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45967         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45968         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45969         * modules/sys_socket (Depends-on): Add link-warning.
45970         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45971         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45972         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45973         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45974         GL_LINK_WARNING.
45975         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45976         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45977         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45978         * doc/posix-functions/getpeername.texi: Mention the new module
45979         'getpeername'.
45980         * doc/posix-functions/getsockname.texi: Mention the new module
45981         'getsockname'.
45982         * doc/posix-functions/getsockopt.texi: Mention the new module
45983         'getsockopt'.
45984         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45985         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45986         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45987         * doc/posix-functions/send.texi: Mention the new module 'send'.
45988         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45989         * doc/posix-functions/setsockopt.texi: Mention the new module
45990         'setsockopt'.
45991         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45992         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45993         listen, connect, accept.
45994         * modules/select-tests (Depends-on): Likewise.
45995
45996 2008-10-05  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/winsock.c (strerror): Remove unused #undef.
45999         (rpl_close): Remove unused local variable.
46000
46001         * modules/sys_socket (Depends-on); Add errno.
46002
46003 2008-10-05  Bruno Haible  <bruno@clisp.org>
46004
46005         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46006         (select): Add a link warning when the 'select' module is not used.
46007         * modules/sys_select (Depends-on): Add link-warning.
46008         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46009         Suggested by Paolo Bonzini.
46010
46011 2008-10-05  Jim Meyering  <meyering@redhat.com>
46012
46013         bootstrap: check for LT_INIT more portably
46014         * build-aux/bootstrap: Avoid using grep -E, since it's not
46015         portable enough.  Suggestion from Bruno Haible.
46016
46017 2008-10-05  Bruno Haible  <bruno@clisp.org>
46018
46019         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46020         as being fixed by gnulib.
46021
46022 2008-10-05  Bruno Haible  <bruno@clisp.org>
46023
46024         * modules/select-tests: New file, mostly copied from
46025         modules/sys_select-tests.
46026         * tests/test-select.c: New file, mostly copied from
46027         tests/test-sys_select.c.
46028         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46029         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46030         (Makefile.am): Remove test_sys_select_LDADD.
46031
46032         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46033         to an undefined symbol, for an error message.
46034         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46035         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46036         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46037         winsock-select.c here.
46038         * modules/sys_select (Files): Remove lib/winsock-select.c.
46039         (Depends-on): Remove alloca.
46040         (Makefile.am): Substitute GNULIB_SELECT.
46041         * modules/select: New file.
46042         * doc/posix-functions/select.texi: Update.
46043
46044 2008-10-05  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46047         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46048         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46049         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46050         getdtablesize.
46051         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46052         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46053
46054 2008-10-05  Bruno Haible  <bruno@clisp.org>
46055
46056         * modules/getdtablesize-tests: New file.
46057         * tests/test-getdtablesize.c: New file.
46058
46059         New module 'getdtablesize'.
46060         * lib/unistd.in.h (getdtablesize): New declaration.
46061         * lib/getdtablesize.c: New file.
46062         * m4/getdtablesize.m4: New file.
46063         * modules/getdtablesize: New file.
46064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46065         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46066         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46067         HAVE_GETDTABLESIZE.
46068         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46069
46070 2008-10-05  Bruno Haible  <bruno@clisp.org>
46071
46072         * modules/sched (Makefile.am): Fix typo.
46073         Reported by Simon Josefsson.
46074
46075 2008-10-05  Jim Meyering  <meyering@redhat.com>
46076
46077         bootstrap: check for LT_INIT, too
46078         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46079         are deprecated.  Suggestion from Ralf Wildenhues.
46080
46081 2008-10-05  Bruno Haible  <bruno@clisp.org>
46082
46083         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46084         overriding them by ours.
46085         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46086
46087 2008-10-05  Jim Meyering  <meyering@redhat.com>
46088
46089         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46090         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46091         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46092
46093 2008-10-04  Bruno Haible  <bruno@clisp.org>
46094
46095         * modules/dup2 (License): Change to LGPLv2+.
46096         * modules/sleep (License): Likewise.
46097         * modules/perror (License): Likewise.
46098         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46099         Blake.
46100         * modules/signal (License): Likewise.
46101         * modules/sigprocmask (License): Likewise.
46102         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46103         Meyering.
46104
46105 2008-10-04  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46108         Reported by Rainer Tammer <tammer@tammer.net>.
46109
46110 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46111             Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46114         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46115         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46116
46117 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46118
46119         filevercmp: new module
46120         * lib/filevercmp.h: New function filevercmp comparing version strings.
46121         * lib/filevercmp.c: Implementation of filevercmp function.
46122         * modules/filevercmp: Module metadata.
46123         * tests/test-filevercmp.c: Unit test for new module.
46124         * modules/filevercmp-tests: Unit test metadata.
46125         * MODULES.html.sh: Add filevercmp module.
46126
46127 2008-10-03  Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/c-ctype.h: Add comment.
46130         Reported by Jim Meyering.
46131
46132 2008-10-02  Bruno Haible  <bruno@clisp.org>
46133
46134         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46135
46136 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46137
46138         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46139         name of bootstrap.conf accordingly.
46140
46141 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46142
46143         * build-aux/bootstrap: Install git-merge-changelog configuration
46144         items into .gitconfig if needed.
46145
46146 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46147
46148         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46149         git repository, and initialize/update it accordingly.
46150
46151 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46152
46153         * modules/fsync-tests: New file.
46154         * tests/test-fsync.c: New file.
46155
46156         New module 'fsync'.
46157         * lib/fsync.c: New file.
46158         * m4/fsync.m4: New file.
46159         * modules/fsync: New file.
46160         * lib/unistd.in.h (fsync): New declaration.
46161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46162         GNULIB_FSYNC and HAVE_FSYNC.
46163         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46164         * MODULES.html.sh (posix_functions): Add fsync.
46165         * doc/posix-functions/fsync.texi: Mention the new module.
46166
46167 2008-10-02  Jim Meyering  <meyering@redhat.com>
46168
46169         fts.c: sync with similar code from coreutils' remove.c
46170         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46171         Guard also with "#if defined __linux__", since for now at least,
46172         this code is Linux-kernel-specific.
46173
46174 2008-10-02  Jim Meyering  <meyering@redhat.com>
46175
46176         fts: bug fixes
46177         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46178         Include <sys/vfs.h>, not <sys/statfs.h>.
46179
46180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46181         Include <sys/vfs.h>, not <sys/statfs.h>.
46182
46183 2008-10-01  Bruno Haible  <bruno@clisp.org>
46184
46185         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46187         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46188         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46189         * doc/posix-functions/posix_spawnp.texi: Likewise.
46190         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46191         whether posix_spawn actually works.
46192         * m4/pipe.m4 (gl_PIPE): Likewise.
46193         * modules/execute (Files): Add m4/posix_spawn.m4.
46194         * modules/pipe (Files): Add m4/posix_spawn.m4.
46195         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46196
46197 2008-10-01  Jim Meyering  <meyering@redhat.com>
46198
46199         remove trailing spaces
46200         * NEWS: Likewise.
46201         * lib/poll.c (poll): Likewise.
46202         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46203         * lib/winsock.c (rpl_close): Likewise.
46204         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46205         * modules/yield: Likewise.
46206         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46207         * tests/test-sys_select.c (connect_to_socket): Likewise.
46208
46209         fts.c: adjust a new interface to be more generally useful
46210         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46211         (fts_build): Adjust caller.
46212
46213 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46214
46215         * modules/cond-tests: New file.
46216         * tests/test-cond.c: New file.
46217
46218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46219             Bruno Haible  <bruno@clisp.org>
46220
46221         * modules/cond (Dependencies): Add errno, time.
46222         * lib/glthread/cond.h: Include <time.h>.
46223         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46224         across platforms.
46225
46226 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46227             Bruno Haible  <bruno@clisp.org>
46228
46229         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46230
46231 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46232             Bruno Haible  <bruno@clisp.org>
46233
46234         * modules/tls-tests (Depends-on): Add thread, yield.
46235         (configure.ac): Remove all checks.
46236         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46237         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46238         gl_thread_self): Remove definitions. Include glthread/thread.h and
46239         glthread/yield.h instead.
46240         (test_tls): Pass an additional NULL argument to gl_thread_join.
46241
46242 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46243             Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/lock-tests (Depends-on): Add thread, yield.
46246         (configure.ac): Remove all checks.
46247         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46248         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46249         gl_thread_self): Remove definitions. Include glthread/thread.h and
46250         glthread/yield.h instead.
46251         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46252         additional NULL argument to gl_thread_join.
46253
46254 2008-09-30  Bruno Haible  <bruno@clisp.org>
46255
46256         Fix the Win32 implementation of the 'thread' module.
46257         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46258         pointer type.
46259         (gl_thread_self): Invoke gl_thread_self_func.
46260         (gl_thread_self_func): New declaration.
46261         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46262         (do_init_self_key, init_self_key): New functions.
46263         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46264         Remove some fields.
46265         (running_threads, running_lock): Remove variables.
46266         (get_current_thread_handle): New function.
46267         (gl_thread_self_func, wrapper_func, glthread_create_func,
46268         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46269         simplified.
46270
46271 2008-09-30  Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46274         files.
46275
46276 2008-09-30  Jim Meyering  <meyering@redhat.com>
46277
46278         fts.m4: correct the test for statfs.f_type
46279         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46280         when checking for statfs.f_type.
46281
46282 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46283
46284         tests: avoid some compiler warnings
46285         * tests/test-memchr.c (main): Pass NULL indirectly.
46286         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46287
46288 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46289
46290         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46291         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46292         exactly specified dayshifts.
46293         (dayshift): New rule.
46294         (rel): Add dayshift.
46295         (relative_time_table) [tomorrow, yesterday, today, now]:
46296         Use tDAY_SHIFT in place of tDAY_UNIT.
46297         * tests/test-getdate.c: Add tests for now-disallowed countable
46298         dayshifts, e.g., "4 yesterday ago".
46299
46300 2008-09-29  Bruno Haible  <bruno@clisp.org>
46301
46302         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46303         * tests/test-posix_spawn1.in.sh: Renamed from
46304         tests/test-posix_spawn.in.sh.
46305         * tests/test-posix_spawn2.c: New file.
46306         * tests/test-posix_spawn2.in.sh: New file.
46307         * modules/posix_spawnp-tests (Files): Update.
46308         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46309
46310 2008-09-29  Bruno Haible  <bruno@clisp.org>
46311
46312         Propagate effects of putenv/setenv/unsetenv to child processes.
46313         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46314         * lib/pipe.c (create_pipe): Likewise.
46315
46316 2008-09-29  Bruno Haible  <bruno@clisp.org>
46317
46318         Enable use of shell scripts as executables in mingw.
46319         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46320         run the program as a shell script.
46321         * lib/pipe.c (create_pipe): Likewise.
46322         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46323         resulting array.
46324
46325 2008-09-29  Eric Blake  <ebb9@byu.net>
46326
46327         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46328
46329 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46330
46331         * doc/posix-functions/accept.texi: Update mingw problems.
46332         * doc/posix-functions/bind.texi: Update mingw problems.
46333         * doc/posix-functions/close.texi: Update mingw problems.
46334         * doc/posix-functions/connect.texi: Update mingw problems.
46335         * doc/posix-functions/getpeername.texi: Update mingw problems.
46336         * doc/posix-functions/getsockname.texi: Update mingw problems.
46337         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46338         * doc/posix-functions/ioctl.texi: Update mingw problems.
46339         * doc/posix-functions/listen.texi: Update mingw problems.
46340         * doc/posix-functions/recv.texi: Update mingw problems.
46341         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46342         * doc/posix-functions/select.texi: Update mingw problems.
46343         * doc/posix-functions/send.texi: Update mingw problems.
46344         * doc/posix-functions/sendto.texi: Update mingw problems.
46345         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46346         * doc/posix-functions/socket.texi: Update mingw problems.
46347
46348 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46349             Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/sys_select.in.h: Include sys/time.h.
46352         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46353         * modules/sys_select: Depend on sys_time.
46354         * tests/test-sys_select.c: Test that sys/select.h defines struct
46355         timeval fully.
46356
46357 2008-09-29  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46360         * lib/sys_select.in.h: Likewise.
46361
46362 2008-09-29  Bruno Haible  <bruno@clisp.org>
46363
46364         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46365
46366 2008-09-29  Bruno Haible  <bruno@clisp.org>
46367
46368         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46369         Set LIBSOCKET instead of augmenting LIBS.
46370         * modules/sockets (Link): New section.
46371         * modules/sockets-tests (test_sockets_LDADD): New variable.
46372         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46373         * modules/poll-tests (test_poll_LDADD): New variable.
46374         * NEWS: Document the change.
46375
46376 2008-09-29  Bruno Haible  <bruno@clisp.org>
46377
46378         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46379         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46380         ARPA_INET_H directly.
46381         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46382
46383 2008-09-28  Bruno Haible  <bruno@clisp.org>
46384
46385         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46386         from gl_HEADER_SYS_SOCKET.
46387         (gl_HEADER_SYS_SOCKET): Invoke it.
46388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46389
46390 2008-09-28  Bruno Haible  <bruno@clisp.org>
46391
46392         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46393         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46394         Needed on OSF/1 4.0.
46395
46396 2008-09-28  Bruno Haible  <bruno@clisp.org>
46397
46398         Override open more carefully.
46399         * lib/open.c (orig_open): New function.
46400         (rpl_open): Use orig_open instead of open.
46401         * lib/fcntl.in.h: Add special invocation convention.
46402         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46403         (gl_FUNC_OPEN): Invoke it.
46404
46405         Override freopen more carefully.
46406         * lib/freopen.c (orig_freopen): New function.
46407         (rpl_freopen): Use orig_freopen instead of freopen.
46408         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46409         (gl_FUNC_FREOPEN): Invoke it.
46410
46411         Override fopen more carefully.
46412         * lib/fopen.c (orig_fopen): New function.
46413         (rpl_fopen): Use orig_fopen instead of fopen.
46414         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46415         (gl_FUNC_FOPEN): Invoke it.
46416         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46417
46418 2008-09-28  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46421         SIGPIPE.
46422
46423 2008-09-28  Bruno Haible  <bruno@clisp.org>
46424
46425         * tests/test-sigaction.c (handler, main): Disable the check whether
46426         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46427         glibc systems with LinuxThreads.
46428
46429 2008-09-28  Bruno Haible  <bruno@clisp.org>
46430
46431         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46432
46433         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46434         with AIX xlc.
46435         * lib/fcntl.in.h (open): Likewise.
46436         Reported by Rainer Tammer <tammer@tammer.net>.
46437
46438 2008-09-28  Bruno Haible  <bruno@clisp.org>
46439
46440         * modules/posix_spawnp-tests: New file.
46441         * tests/test-posix_spawn.c: New file.
46442         * tests/test-posix_spawn.in.sh: New file.
46443
46444         New module 'posix_spawnp'.
46445         * modules/posix_spawnp: New file.
46446         * lib/spawnp.c: New file, from GNU libc with modifications.
46447         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46448
46449         New module 'posix_spawn'.
46450         * modules/posix_spawn: New file.
46451         * lib/spawn.c: New file, from GNU libc with modifications.
46452         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46453
46454         New module 'posix_spawnattr_destroy'.
46455         * modules/posix_spawnattr_destroy: New file.
46456         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46457         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46458         module.
46459
46460         New module 'posix_spawnattr_setsigmask'.
46461         * modules/posix_spawnattr_setsigmask: New file.
46462         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46463         modifications.
46464         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46465         new module.
46466
46467         New module 'posix_spawnattr_getsigmask'.
46468         * modules/posix_spawnattr_getsigmask: New file.
46469         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46470         modifications.
46471         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46472         new module.
46473
46474         New module 'posix_spawnattr_setsigdefault'.
46475         * modules/posix_spawnattr_setsigdefault: New file.
46476         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46477         modifications.
46478         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46479         new module.
46480
46481         New module 'posix_spawnattr_getsigdefault'.
46482         * modules/posix_spawnattr_getsigdefault: New file.
46483         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46484         modifications.
46485         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46486         new module.
46487
46488         New module 'posix_spawnattr_setschedpolicy'.
46489         * modules/posix_spawnattr_setschedpolicy: New file.
46490         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46491         modifications.
46492         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46493         new module.
46494
46495         New module 'posix_spawnattr_getschedpolicy'.
46496         * modules/posix_spawnattr_getschedpolicy: New file.
46497         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46498         modifications.
46499         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46500         new module.
46501
46502         New module 'posix_spawnattr_setschedparam'.
46503         * modules/posix_spawnattr_setschedparam: New file.
46504         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46505         modifications.
46506         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46507         new module.
46508
46509         New module 'posix_spawnattr_getschedparam'.
46510         * modules/posix_spawnattr_getschedparam: New file.
46511         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46512         modifications.
46513         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46514         new module.
46515
46516         New module 'posix_spawnattr_setpgroup'.
46517         * modules/posix_spawnattr_setpgroup: New file.
46518         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46519         modifications.
46520         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46521         module.
46522
46523         New module 'posix_spawnattr_getpgroup'.
46524         * modules/posix_spawnattr_getpgroup: New file.
46525         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46526         modifications.
46527         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46528         module.
46529
46530         New module 'posix_spawnattr_setflags'.
46531         * modules/posix_spawnattr_setflags: New file.
46532         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46533         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46534         module.
46535
46536         New module 'posix_spawnattr_getflags'.
46537         * modules/posix_spawnattr_getflags: New file.
46538         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46539         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46540         module.
46541
46542         New module 'posix_spawnattr_init'.
46543         * modules/posix_spawnattr_init: New file.
46544         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46545         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46546         module.
46547
46548         New module 'posix_spawn_file_actions_destroy'.
46549         * modules/posix_spawn_file_actions_destroy: New file.
46550         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46551         modifications.
46552         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46553         the new module.
46554
46555         New module 'posix_spawn_file_actions_addopen'.
46556         * modules/posix_spawn_file_actions_addopen: New file.
46557         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46558         modifications.
46559         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46560         the new module.
46561
46562         New module 'posix_spawn_file_actions_adddup2'.
46563         * modules/posix_spawn_file_actions_adddup2: New file.
46564         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46565         modifications.
46566         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46567         the new module.
46568
46569         New module 'posix_spawn_file_actions_addclose'.
46570         * modules/posix_spawn_file_actions_addclose: New file.
46571         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46572         modifications.
46573         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46574         the new module.
46575
46576         New module 'posix_spawn_file_actions_init'.
46577         * modules/posix_spawn_file_actions_init: New file.
46578         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46579         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46580         new module.
46581
46582         New module 'posix_spawn-internal'.
46583         * modules/posix_spawn-internal: New file.
46584         * lib/spawn_int.h: New file, from GNU libc with modifications.
46585         * lib/spawni.c: New file, from GNU libc with modifications.
46586         * m4/posix_spawn.m4: New file.
46587
46588         New module 'spawn'.
46589         * modules/spawn: New file.
46590         * lib/spawn.in.h: New file, from GNU libc with modifications.
46591         * m4/spawn_h.m4: New file.
46592         * doc/posix-headers/spawn.texi: Mention the new module.
46593
46594 2008-09-28  Bruno Haible  <bruno@clisp.org>
46595
46596         * modules/sched-tests: New file.
46597         * tests/test-sched.c: New file.
46598
46599         New module 'sched'.
46600         * modules/sched: New file.
46601         * lib/sched.in.h: New file.
46602         * m4/sched_h.m4: New file.
46603         * doc/posix-headers/sched.texi: Mention the new module.
46604
46605 2008-09-27  Eric Blake  <ebb9@byu.net>
46606
46607         Fix previous patch, and tweak references to $0.
46608         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46609         (func_version, func_gnulib_dir): Don't call this program
46610         gnulib-tool.
46611         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46612         with using $0 in function.
46613         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46614         (func_fatal_error): Reuse the name the user invoked us with.
46615
46616 2008-09-27  Bruno Haible  <bruno@clisp.org>
46617
46618         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46619         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46620         (gl_ICONV_H): Not here.
46621         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46622         instead of assigning ICONV_H directly.
46623
46624         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46626         WCHAR_H directly.
46627
46628 2008-09-27  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46631         * modules/arpa_inet (Depends-on): Add link-warning.
46632         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46633         * modules/unistd (Makefile.am): Likewise.
46634
46635 2008-09-26  Bruno Haible  <bruno@clisp.org>
46636
46637         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46638         variables.
46639         (func_version): Essentially copied from gnulib-tool.
46640         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46641         func_readlink): Copied from gnulib-tool.
46642
46643 2008-09-26  Bruno Haible  <bruno@clisp.org>
46644
46645         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46646         invoking git-version-gen.
46647
46648 2008-09-26  Bruno Haible  <bruno@clisp.org>
46649
46650         * posix-modules: Update to directory names changed on 2008-01-19.
46651         Remove commas in output before splitting into words. No more need to
46652         avoid 'ftruncate' since 2007-02-19.
46653
46654 2008-09-26  Bruno Haible  <bruno@clisp.org>
46655
46656         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46657
46658 2008-09-26  Bruno Haible  <bruno@clisp.org>
46659
46660         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46661         * modules/fwriteerror (Depends-on): Add errno.
46662
46663 2008-09-26  Bruno Haible  <bruno@clisp.org>
46664
46665         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46666         * tests/test-vc-list-files-cvs.sh: Likewise.
46667
46668 2008-09-26  Bruno Haible  <bruno@clisp.org>
46669
46670         * doc/posix-headers/sys_resource.texi: Reorder items.
46671
46672 2008-09-26  Jim Meyering  <meyering@redhat.com>
46673
46674         fts: tweak inode comparison function
46675         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46676         inode numbers, as documented.
46677
46678         fts: sort dirent entries on inode number before traversing
46679         This avoids a quadratic, seek-related performance penalty when
46680         operating on a directory containing many entries (measurable at 10k;
46681         3.5 hours at 2 million entries with a cold cache) on certain types
46682         of file systems, including ext3 and ext4, but not tmpfs.
46683         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46684         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46685         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46686         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46687         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46688         (fts_build): Set the stat.st_ino member from D_INO.
46689         If it is likely to be useful, sort dirent entries on inode number.
46690
46691         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46692         and the struct statfs.f_type member.
46693         * modules/fts (Depends-on): Add d-ino.
46694
46695 2008-09-26  Bruno Haible  <bruno@clisp.org>
46696
46697         * modules/sigpipe-die (Depends-on): Add sigpipe.
46698
46699         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46700         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46701         and GNULIB_STDIO_H_SIGPIPE are set.
46702         * lib/stdio-write.c: New file.
46703         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46704         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46705         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46706         REPLACE_STDIO_WRITE_FUNCS.
46707         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46708         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46709         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46710         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46711         * modules/stdio (Files): Add lib/stdio-write.c.
46712         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46713         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46714         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46715         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46716         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46717         REPLACE_FPRINTF_POSIX.
46718         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46719         REPLACE_PRINTF_POSIX.
46720         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46721         REPLACE_VFPRINTF_POSIX.
46722         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46723         REPLACE_VPRINTF_POSIX.
46724         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46725         SIGPIPE issue.
46726         * doc/posix-functions/fputc.texi: Likewise.
46727         * doc/posix-functions/fputs.texi: Likewise.
46728         * doc/posix-functions/fwrite.texi: Likewise.
46729         * doc/posix-functions/printf.texi: Likewise.
46730         * doc/posix-functions/putc.texi: Likewise.
46731         * doc/posix-functions/putchar.texi: Likewise.
46732         * doc/posix-functions/puts.texi: Likewise.
46733         * doc/posix-functions/vfprintf.texi: Likewise.
46734         * doc/posix-functions/vprintf.texi: Likewise.
46735
46736         * modules/safe-write (Depends-on): Add write.
46737
46738         * modules/sigpipe-tests: New file.
46739         * tests/test-sigpipe.c: New file.
46740         * tests/test-sigpipe.sh: New file.
46741
46742         * modules/write: New file.
46743         * lib/unistd.in.h: Include <sys/types.h>.
46744         (write): New declaration.
46745         * lib/write.c: New file.
46746         * m4/write.m4: New file.
46747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46748         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46749         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46750         GNULIB_WRITE, REPLACE_WRITE.
46751         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46752         and the SIGPIPE issue.
46753
46754         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46755         (raise): New declaration.
46756         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46757         (ext_signal): New function.
46758         (rpl_raise): New function.
46759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46760         GNULIB_SIGNAL_H_SIGPIPE.
46761         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46762         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46763
46764         * modules/sigpipe: New file.
46765         * m4/sigpipe.m4: New file.
46766
46767 2008-09-25  Derek Price  <derek@ximbiot.com>
46768             Bruno Haible  <bruno@clisp.org>
46769
46770         * gnulib-tool (func_import): Report all license incompatibilities, not
46771         just the first one.
46772
46773 2008-09-25  Bruno Haible  <bruno@clisp.org>
46774
46775         * gnulib-tool (func_import): When computing the edits, consider not
46776         only the Makefile.ams that exist but also those that will be generated.
46777
46778 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46779
46780         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46781         fixes gnulib-tool --test warning about duplicate dependency.
46782
46783 2008-09-25  Bruno Haible  <bruno@clisp.org>
46784
46785         * gnulib-tool: Don't ask the user to perform edits in the generated
46786         Makefile.ams.
46787         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46788         apply to the Makefile.am being generated.
46789         (func_emit_tests_Makefile_am): Execute edits that apply to the
46790         Makefile.am being generated.
46791         (func_import): Setup list of Makefile.am edits before emitting the
46792         Makefile.ams, not at the end.
46793         (func_create_testdir): Update.
46794         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46795
46796 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46797
46798         * gnulib-tool (func_import): Store the --tests-base option in the
46799         comment in gnulib-cache.m4.
46800
46801 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46802
46803         * NEWS: Document increased portability that sys_select now provides.
46804
46805         * lib/sys_select.in.h: Install select wrapper.
46806         * lib/sys_socket.in.h: Use more descriptive name when there is no
46807         select wrapper.
46808         * lib/winsock-select.c: New.
46809         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46810         Require gl_HEADER_SYS_SOCKET.
46811         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46812         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46813         * tests/test-sys_select.c: Add functional tests.
46814
46815 2008-09-24  Eric Blake  <ebb9@byu.net>
46816
46817         open, fopen: close fd leak in last patch
46818         * lib/open.c (rpl_open): Close fd before returning error.
46819         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46820         * doc/posix-functions/open.texi (open): Document that Irix also
46821         has the bug.
46822         * doc/posix-functions/fopen.texi (fopen): Likewise.
46823         Reported by Paolo Bonzini.
46824
46825 2008-09-24  Bruno Haible  <bruno@clisp.org>
46826
46827         Ensure that a filename ending in a slash cannot be used to access a
46828         non-directory.
46829         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46830         to check whether it's really a directory.
46831         * lib/fopen.c: Include fcntl.h, unistd.h.
46832         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46833         and fdopen().
46834         * modules/fopen (Depends-on): Add unistd.
46835         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46836         * tests/test-fopen.c (main): Likewise.
46837         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46838         * doc/posix-functions/fopen.texi: Likewise.
46839         Reported by Eric Blake.
46840
46841 2008-09-23  Eric Blake  <ebb9@byu.net>
46842
46843         c-stack: avoid compiler optimizations when provoking overflow
46844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46845         recursion harder to optimize, to ensure a stack overflow occurs.
46846         * tests/test-c-stack.c (recurse): Likewise.
46847         Borrowed from libsigsegv.
46848
46849         c-stack: work around Irix sigaltstack bug
46850         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46851         whether sigaltstack uses wrong end of stack_t (copied in part from
46852         libsigsegv).
46853         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46854         Irix bug, without requiring an over-allocation.
46855         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46856         bug.
46857
46858         fopen: document mingw bug on directories
46859         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46860         not allowing a stream visiting a directory, even though reading
46861         from such a stream is not portable.
46862
46863 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46864
46865         * lib/poll.c: Rewrite.
46866         * modules/poll: Depend on alloca.
46867
46868 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46869
46870         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46871         instead define prototypes for a full set of wrappers.  Ensure
46872         that Cygwin does not use the compatibility code, which is only
46873         for MinGW.
46874         * lib/winsock.c: New.
46875         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46876         * modules/sys_socket: Add lib/winsock.c.
46877
46878         * modules/poll-tests: Add errno and perror.
46879         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46880
46881 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46882
46883         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46884
46885 2008-09-23  Bruno Haible  <bruno@clisp.org>
46886
46887         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46888         * doc/glibc-functions/*: Likewise.
46889
46890 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46891
46892         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46893         success.
46894
46895 2008-09-22  Eric Blake  <ebb9@byu.net>
46896             Bruno Haible  <bruno@clisp.org>
46897
46898         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46899         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46900         supply %A but mishandle pseudo-NaN.
46901         Reported by Simon Josefsson.
46902
46903 2008-09-21  Bruno Haible  <bruno@clisp.org>
46904
46905         * tests/test-lock.c (main): Tweak skip message.
46906         * tests/test-tls.c (main): Likewise.
46907
46908 2008-09-21  Bruno Haible  <bruno@clisp.org>
46909
46910         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46911         whether 'struct sigaction' has sa_sigaction here...
46912         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46913         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46914
46915 2008-09-21  Bruno Haible  <bruno@clisp.org>
46916
46917         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46918         section.
46919         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46920         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46921         the new section.
46922         (Support for obsolete systems lacking POSIX:2001): New section.
46923         (String handling <string.h>): Move strdup to the new section.
46924         Suggested by Simon Josefsson and Paolo Bonzini.
46925
46926 2008-09-21  Bruno Haible  <bruno@clisp.org>
46927
46928         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46929         exponents in %e and %g results on 'long double'. Needed for mingw's
46930         improved *printf functions.
46931         * tests/test-vasprintf-posix.c (test_function): Likewise.
46932         * tests/test-snprintf-posix.h (test_function): Likewise.
46933         * tests/test-sprintf-posix.h (test_function): Likewise.
46934         Reported by Eric Blake.
46935
46936 2008-09-21  Bruno Haible  <bruno@clisp.org>
46937
46938         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46939         * tests/test-sprintf-posix.h (test_function): Likewise.
46940
46941 2008-09-21  Bruno Haible  <bruno@clisp.org>
46942
46943         * modules/getpass (Depends-on): Add strdup-posix.
46944
46945         New module 'strdup-posix'.
46946         * modules/strdup-posix: New file.
46947         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46948         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46950         REPLACE_STRDUP.
46951         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46952         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46954         strdup-posix.
46955
46956         * modules/strdup (Depends-on): Remove malloc-posix.
46957
46958 2008-09-20  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46961         Wildenhues.
46962
46963 2008-09-20  Bruno Haible  <bruno@clisp.org>
46964
46965         Ensure that wint_t gets defined on IRIX 5.3.
46966         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46967         * lib/wctype.in.h (wint_t): Likewise.
46968         (__wctype_wint_t): Remove type.
46969         (isw*): Use wint_t instead of __wctype_wint_t.
46970         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46971         * modules/wchar (Files): Add m4/wint_t.m4.
46972         (Makefile.am): Substitute HAVE_WINT_T.
46973         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46974         * tests/test-wctype.c: Check that wint_t is defined.
46975         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46976         * doc/posix-headers/wctype.texi: Likewise.
46977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46978
46979 2008-09-18  Bruno Haible  <bruno@clisp.org>
46980
46981         * gnulib-tool (func_exit): Update comment.
46982
46983 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46984
46985         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46986         assumes strdup exists and does not depend on strdup to return
46987         ENOMEM on out of memory conditions.
46988
46989 2008-09-18  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46992         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46993         digits for the exponent.
46994
46995 2008-09-18  Jim Meyering  <meyering@redhat.com>
46996             Bruno Haible  <bruno@clisp.org>
46997
46998         * lib/vasnprintf.c (decimal_point_char): Define also if
46999         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47000
47001 2008-09-16  Bruno Haible  <bruno@clisp.org>
47002         and Eric Blake  <ebb9@byu.net>
47003
47004         vasnprintf: support Irix 5.3
47005         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47006         that mishandle long double infinity.
47007         Reported by Tom G. Christensen.
47008
47009 2008-09-16  Bruno Haible  <bruno@clisp.org>
47010
47011         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47012         Solaris 9.
47013         * doc/glibc-functions/alphasort.texi: Likewise.
47014         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47015
47016 2008-09-16  Jim Meyering  <meyering@redhat.com>
47017
47018         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47019         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47020         a umask modification leak out of a subshell.  Otherwise, the
47021         opensolaris /bin/sh would be accepted and thus cause unwarranted
47022         failures in the coreutils test suite.
47023
47024 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47025
47026         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47027         to succeed.
47028
47029 2008-09-16  Jim Meyering  <meyering@redhat.com>
47030
47031         avoid spurious test failure when library is built without ACL support
47032         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47033         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47034         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47035         * tests/test-copy-acl.sh: Likewise.
47036
47037 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47038
47039         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47040         based on character occurrence counts.
47041
47042 2008-09-15  Eric Blake  <ebb9@byu.net>
47043
47044         tests: avoid some compiler warnings
47045         * tests/test-memchr.c (main): Pass NULL indirectly.
47046         * tests/test-closein.c (main): Avoid unused variable.
47047
47048 2008-09-15  Bruno Haible  <bruno@clisp.org>
47049
47050         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47051         are missing on OpenBSD 4.0 individually.
47052         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47053
47054 2008-09-15  Bruno Haible  <bruno@clisp.org>
47055
47056         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47057         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47058         * doc/posix-functions/perror.texi: Likewise.
47059         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47060         is missing.
47061         Reported by Eric Blake.
47062
47063         * lib/errno.in.h: Use replacement values >= 2000.
47064         Reported by Eric Blake.
47065
47066 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47067
47068         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47069         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47070         limit.
47071         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47072         compareseq was aborted.
47073
47074 2008-09-14  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47077         yvec_edit_count.
47078         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47079         (fstrcmp_bounded): Simplify result computation accordingly.
47080
47081 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47082
47083         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47084         (fstrcmp): Define in terms of fstrcmp_bounded.
47085         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47086         lower_bound argument.
47087         Return quickly if the result is certainly < lower_bound.
47088         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47089
47090 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47091
47092         * lib/diffseq.h (EARLY_ABORT): New macro.
47093         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47094         evaluates to true.
47095
47096 2008-09-14  Bruno Haible  <bruno@clisp.org>
47097
47098         * modules/perror-tests: New file.
47099         * tests/test-perror.sh: New file.
47100         * tests/test-perror.c: New file.
47101
47102         New module 'perror'.
47103         * lib/stdio.in.h (perror): New declaration.
47104         * lib/perror.c: New file.
47105         * m4/perror.m4: New file.
47106         * modules/perror: New file.
47107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47108         * doc/posix-functions/perror.texi: Mention the perror module.
47109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47110         REPLACE_PERROR.
47111         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47112         REPLACE_PERROR.
47113
47114 2008-09-14  Bruno Haible  <bruno@clisp.org>
47115
47116         * modules/stdio (Makefile.am): Reorder to match the order in
47117         lib/stdio.in.h.
47118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47119
47120 2008-09-13  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47123
47124 2008-09-13  Bruno Haible  <bruno@clisp.org>
47125
47126         Extend strerror to cover the added errno values.
47127         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47128         (rpl_strerror): Provide error messages for the added errno values and
47129         for the WSA* values.
47130         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47131         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47132         strerror.
47133         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47134         * modules/strerror (Depends-on): Add errno.
47135         * doc/posix-functions/strerror.texi: Document the change.
47136         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47137         and EOVERFLOW.
47138
47139 2008-09-13  Bruno Haible  <bruno@clisp.org>
47140
47141         * modules/EOVERFLOW: Remove file.
47142         * m4/eoverflow.m4: Remove file.
47143         * modules/EOVERFLOW-tests: Remove file.
47144         * tests/test-EOVERFLOW.c: Remove file.
47145         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47146         * modules/ftell (Depends-on): Likewise.
47147         * modules/getdelim (Depends-on): Likewise.
47148         * modules/getugroups (Depends-on): Likewise.
47149         * modules/poll (Depends-on): Likewise.
47150         * modules/snprintf (Depends-on): Likewise.
47151         * modules/sprintf-posix (Depends-on): Likewise.
47152         * modules/vasnprintf (Depends-on): Likewise.
47153         * modules/vasprintf (Depends-on): Likewise.
47154         * modules/vfprintf-posix (Depends-on): Likewise.
47155         * modules/vsnprintf (Depends-on): Likewise.
47156         * modules/vsprintf-posix (Depends-on): Likewise.
47157         * modules/xvasprintf (Depends-on): Likewise.
47158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47159         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47160         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47161         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47162         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47163         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47164         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47165         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47166         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47167         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47168         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47169         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47170         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47171         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47172         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47173         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47175         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47176         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47177         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47178         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47179         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47180         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47181         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47182         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47183         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47184         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47185         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47186         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47187         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47188         * MODULES.html.sh: Remove EOVERFLOW.
47189         * NEWS: Mention the change.
47190
47191 2008-09-13  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/errno-tests: New file.
47194         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47195
47196         * lib/errno.in.h: New file.
47197         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47198         * modules/errno: New file.
47199         * doc/posix-headers/errno.texi: Update documentation.
47200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47201
47202 2008-09-13  Bruno Haible  <bruno@clisp.org>
47203
47204         * tests/test-poll.c: Use #if for native Windows, rather than testing
47205         __MSVCRT__.
47206
47207 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47208             Bruno Haible  <bruno@clisp.org>
47209
47210         * lib/glob.c: Don't include <pwd.h> on native Windows.
47211         (WINDOWS32): New macro.
47212         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47213
47214 2008-09-13  Bruno Haible  <bruno@clisp.org>
47215
47216         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47217         (ETIMEDOUT): Remove macro.
47218         (glthread_cond_timedwait_multithreaded): New declaration.
47219         (glthread_cond_timedwait): Use it.
47220         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47221         (glthread_cond_timedwait_multithreaded): New function.
47222
47223 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47224
47225         * modules/poll-tests: Do not check for io.h.
47226         * tests/test-poll.c: Check for __MSVCRT__ instead.
47227
47228 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47229
47230         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47231         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47232         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47233
47234 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47235
47236         * modules/poll-tests: New.
47237         * tests/test-poll.c: New.
47238
47239 2008-09-12  Eric Blake  <ebb9@byu.net>
47240
47241         frexp: test for NetBSD failure on -0.0
47242         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47243         not all, bugs from NetBSD 3.0 have been fixed.
47244         * doc/posix-functions/frexp.texi (frexp): Document bug.
47245         Reported by Thomas Klausner.
47246
47247         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47248         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47249         literal -0.0.
47250         Reported by Jonathan C. Patschke <jp@centtech.com>.
47251
47252 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47253
47254         * lib/glthread/cond.h: Use dummy implementation also if
47255         USE_WIN32_THREADS.
47256
47257 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47258
47259         * modules/fnmatch-posix (License): Change to LGPLv2+.
47260         * modules/fnmatch-gnu (License): Likewise.
47261
47262 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47263
47264         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47265
47266 2008-09-11  Jim Meyering  <meyering@redhat.com>
47267
47268         * users.txt: Add gtk-vnc.
47269
47270 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47271
47272         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47273         rotate amounts.
47274
47275         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47276         required for 16-bit and 8-bit rotates.
47277         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47278         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47279         UINT8_MAX instead of hard-coded constants.
47280         Suggested by Paul Eggert.
47281
47282 2008-09-07  Bruno Haible  <bruno@clisp.org>
47283
47284         * tests/test-striconveh.c (main): Check behaviour when converting from
47285         UTF-7.
47286
47287         Make striconveh work better with stateful encodings.
47288         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47289         that iconv does not increment the inptr when returning -1/EINVAL.
47290
47291 2008-09-07  Bruno Haible  <bruno@clisp.org>
47292
47293         * build-aux/config.rpath: Update according to libtool-2.2.6.
47294         * build-aux/config.libpath: Likewise.
47295
47296 2008-09-06  Bruno Haible  <bruno@clisp.org>
47297
47298         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47299         * lib/freadptr.c (freadptr): Likewise.
47300         * lib/freadseek.c (freadptrinc): Likewise.
47301         Reported by Simon Josefsson.
47302
47303 2008-09-06  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/freadptr (License): Change to LGPLv2+.
47306         * modules/freadseek (License): Likewise.
47307         Suggested by Eric Blake.
47308
47309         * modules/memchr2 (License): Change to LGPLv2+.
47310         Approved by Eric Blake.
47311
47312 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47313             Bruno Haible  <bruno@clisp.org>
47314
47315         Make gnulib-tool work with native 'sed' on AIX.
47316         * gnulib-tool (sed_noop): New variable.
47317         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47318         func_add_or_update, func_create_testdir): Use it to initialize sed
47319         script variables.
47320         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47321
47322 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47323             Bruno Haible  <bruno@clisp.org>
47324
47325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47326         also works after #include directives.
47327
47328 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47329
47330         getdate.y: reject an out-of-range timezone value
47331         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47332         the range [-24...+24].  When specified with only one or two digits,
47333         * tests/test-getdate.c: Tests for the fix.
47334         * doc/getdate.texi: Document this change.
47335
47336 2008-09-03  Bruno Haible  <bruno@clisp.org>
47337
47338         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47339
47340 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47341
47342         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47343         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47344         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47345         Blake <ebb9@byu.net>.
47346
47347         * tests/test-bitrotate.c: Add more test vectors.
47348
47349 2008-09-02  Eric Blake  <ebb9@byu.net>
47350
47351         vasnprintf-posix: handle large precision via %.*d
47352         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47353         when handling it ourselves.
47354         * tests/test-vasnprintf-posix.c (test_function): Add test.
47355         * tests/test-snprintf-posix.h (test_function): Likewise.
47356         * tests/test-sprintf-posix.h (test_function): Likewise.
47357         * tests/test-vasprintf-posix.c (test_function): Likewise.
47358         Reported by Alain Guibert.
47359
47360 2008-09-01  Eric Blake  <ebb9@byu.net>
47361
47362         c-stack: make configure-time check more robust
47363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47364         successful sigaction call.
47365         Reported by Tom G. Christensen.
47366
47367 2008-09-01  Bruno Haible  <bruno@clisp.org>
47368
47369         New module 'findprog-lgpl'.
47370         * modules/findprog-lgpl: New file.
47371         * lib/findprog-lgpl.c: New file.
47372         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47373         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47374         to decide whether to use strdup or xstrdup, concatenated_filename or
47375         xconcatenated_filename.
47376
47377 2008-09-01  Bruno Haible  <bruno@clisp.org>
47378
47379         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47380         'xconcat-filename' (GPL).
47381         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47382         (License): Change to LGPLv2+.
47383         * modules/xconcat-filename: New file.
47384         * lib/concat-filename.h (concatenated_filename): Change specification.
47385         (xconcatenated_filename): New declaration.
47386         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47387         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47388         memory situations.
47389         * lib/xconcat-filename.c: New file.
47390         * NEWS: Mention the change.
47391         * lib/findprog.c: Include concat-filename.h, not filename.h.
47392         (find_in_path): Use xconcatenated_filename instead of
47393         concatenated_filename.
47394         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47395         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47396         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47397         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47398         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47399         instead of concatenated_filename.
47400         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47401         (execute_java_class): Use xconcatenated_filename instead of
47402         concatenated_filename.
47403         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47404         * modules/javacomp (Depends-on): Likewise.
47405         * modules/javaexec (Depends-on): Likewise.
47406
47407 2008-09-01  Bruno Haible  <bruno@clisp.org>
47408
47409         Split module 'filename' into 'filename' and 'concat-filename'.
47410         * modules/filename: Keep only lib/filename.h.
47411         (License): Change to LGPLv2+.
47412         * modules/concat-filename: New file, extracted from modules/filename.
47413         * lib/filename.h (concatenated_filename): Remove declaration.
47414         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47415         * lib/concat-filename.c: Include concat-filename.h.
47416         * NEWS: Mention the change.
47417
47418 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47419
47420         * lib/bitrotate.h (rotl8, rotr8): Add.
47421
47422         * modules/bitrotate (configure.ac): Need
47423         AC_REQUIRE([AC_C_INLINE]).
47424         (Description): Mention stdint.h.  Reported by Bruno Haible
47425         <bruno@clisp.org>.
47426
47427         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47428         Paolo Bonzini <bonzini@gnu.org>.
47429
47430 2008-08-31  Bruno Haible  <bruno@clisp.org>
47431
47432         Assume Solaris specific bi-arch conventions on Solaris systems.
47433         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47434         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47436         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47437         like acl_libdirstem.
47438         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47439         acl_libdirstem.
47440         * NEWS: Mention the change.
47441         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47442
47443 2008-08-31  Jim Meyering  <meyering@redhat.com>
47444
47445         * lib/strftime.h: Add comments describing the two added arguments.
47446
47447         remove duplicate #include directives
47448         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47449         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47450
47451 2008-08-31  Bruno Haible  <bruno@clisp.org>
47452
47453         New module 'sigpipe-die'.
47454         * modules/sigpipe-die: New file.
47455         * lib/sigpipe-die.h: New file.
47456         * lib/sigpipe-die.c: New file.
47457         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47458
47459 2008-08-31  Bruno Haible  <bruno@clisp.org>
47460
47461         Don't override previously installed signal handlers.
47462         * lib/fatal-signal.c (saved_sigactions): New variable.
47463         (uninstall_handlers): Reset the signal to the saved handler, not
47464         to SIG_DFL (except when ignored).
47465         (install_handlers): Save the previous handlers.
47466
47467 2008-08-30  Bruno Haible  <bruno@clisp.org>
47468
47469         * gnulib-tool (func_reset_sigpipe): New function.
47470         (func_get_automake_snippet, func_modules_transitive_closure,
47471         func_import): Invoke it before a join command that reads from stdin,
47472         to avoid "echo: write error: Broken pipe" error messages on stderr.
47473         Reported by Sam Steingold <sds@gnu.org>.
47474
47475 2008-08-30  Bruno Haible  <bruno@clisp.org>
47476
47477         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47478         Code copied from m4/open.m4.
47479         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47480         access and the filename ends in a slash. Code copied from lib/open.c.
47481         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47482         * tests/test-fopen.c (main): Check against bug with trailing slash.
47483
47484 2008-08-29  Bruno Haible  <bruno@clisp.org>
47485
47486         Avoid some "gcc -pedantic" warnings.
47487         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47488         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47489         * lib/dirent.in.h: Likewise.
47490         * lib/fcntl.in.h: Likewise.
47491         * lib/float.in.h: Likewise.
47492         * lib/iconv.in.h: Likewise.
47493         * lib/inttypes.in.h: Likewise.
47494         * lib/locale.in.h: Likewise.
47495         * lib/math.in.h: Likewise.
47496         * lib/netinet_in.in.h: Likewise.
47497         * lib/search.in.h: Likewise.
47498         * lib/signal.in.h: Likewise.
47499         * lib/stdarg.in.h: Likewise.
47500         * lib/stdint.in.h: Likewise.
47501         * lib/stdio.in.h: Likewise.
47502         * lib/stdlib.in.h: Likewise.
47503         * lib/string.in.h: Likewise.
47504         * lib/strings.in.h: Likewise.
47505         * lib/sys_select.in.h: Likewise.
47506         * lib/sys_socket.in.h: Likewise.
47507         * lib/sys_stat.in.h: Likewise.
47508         * lib/sys_time.in.h: Likewise.
47509         * lib/sysexits.in.h: Likewise.
47510         * lib/time.in.h: Likewise.
47511         * lib/unistd.in.h: Likewise.
47512         * lib/wchar.in.h: Likewise.
47513         * lib/wctype.in.h: Likewise.
47514         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47515         * modules/fchdir (Makefile.am): Likewise.
47516         * modules/fcntl (Makefile.am): Likewise.
47517         * modules/float (Makefile.am): Likewise.
47518         * modules/iconv_open (Makefile.am): Likewise.
47519         * modules/inttypes (Makefile.am): Likewise.
47520         * modules/locale (Makefile.am): Likewise.
47521         * modules/math (Makefile.am): Likewise.
47522         * modules/netinet_in (Makefile.am): Likewise.
47523         * modules/search (Makefile.am): Likewise.
47524         * modules/signal (Makefile.am): Likewise.
47525         * modules/stdarg (Makefile.am): Likewise.
47526         * modules/stdint (Makefile.am): Likewise.
47527         * modules/stdio (Makefile.am): Likewise.
47528         * modules/stdlib (Makefile.am): Likewise.
47529         * modules/string (Makefile.am): Likewise.
47530         * modules/strings (Makefile.am): Likewise.
47531         * modules/sys_select (Makefile.am): Likewise.
47532         * modules/sys_socket (Makefile.am): Likewise.
47533         * modules/sys_stat (Makefile.am): Likewise.
47534         * modules/sys_time (Makefile.am): Likewise.
47535         * modules/sysexits (Makefile.am): Likewise.
47536         * modules/time (Makefile.am): Likewise.
47537         * modules/unistd (Makefile.am): Likewise.
47538         * modules/wchar (Makefile.am): Likewise.
47539         * modules/wctype (Makefile.am): Likewise.
47540         Reported by Reuben Thomas <rrt@sc3d.org>.
47541
47542 2008-08-29  Bruno Haible  <bruno@clisp.org>
47543
47544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47545         any more.
47546
47547 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47548
47549         * MODULES.html.sh (Misc): Add bitrotate.
47550
47551         * modules/bitrotate: New file.
47552
47553         * lib/bitrotate.h: New file.
47554
47555         * modules/bitrotate-tests: New file.
47556
47557         * tests/test-bitrotate.c: New file.
47558
47559         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47560         on the bitrotate module.
47561
47562         * lib/arctwo.c: Use new bitrotate module.
47563
47564 2008-08-29  Jim Meyering  <meyering@redhat.com>
47565
47566         bootstrap: merge changes from coreutils
47567         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47568         of copied files.  Remove a kludge, now that this is fixed.
47569         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47570         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47571         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47572
47573 2008-08-29  Bruno Haible  <bruno@clisp.org>
47574
47575         * MODULES.html.sh: Remove --cvs-urls option.
47576
47577 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47578
47579         maint.mk: adjust to file name change
47580         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47581
47582 2008-08-28  Jim Meyering  <meyering@redhat.com>
47583
47584         * modules/getndelim2 (License): Relicense to LGPLv2+.
47585         Approved by Richard Stallman for the version of 1995, and by
47586         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47587
47588 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47589
47590         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47591         dummy if one is not available.  Do not touch them if
47592         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47593         (getc_maybe_unlocked): New.
47594         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47595
47596 2008-08-26  Eric Blake  <ebb9@byu.net>
47597
47598         doc/INSTALL: resync from autoconf
47599         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47600         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47601         moving...
47602         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47603         * INSTALL: Regenerate.
47604         * INSTALL.ISO: New file.
47605         * INSTALL.UTF-8: Likewise.
47606
47607 2008-08-26  Jim Meyering  <meyering@redhat.com>
47608
47609         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47610         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47611         these definitions conditional, so that they may be overridden, too.
47612
47613 2008-08-26  Bruno Haible  <bruno@clisp.org>
47614
47615         Generate INSTALL file variants with prettier quotes.
47616         * doc/Makefile (INSTALL_PRELUDE): New macro.
47617         (INSTALL): Use it.
47618         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47619
47620 2008-08-26  Bruno Haible  <bruno@clisp.org>
47621
47622         Run makeinfo in an English locale.
47623         * doc/Makefile (MAKEINFO): New variable.
47624
47625 2008-08-26  Bruno Haible  <bruno@clisp.org>
47626
47627         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47628         Suggested by Eric Blake.
47629
47630 2008-08-25  Bruno Haible  <bruno@clisp.org>
47631
47632         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47633
47634 2008-08-25  Eric Blake  <ebb9@byu.net>
47635
47636         c-stack: test that stack overflow can be caught
47637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47638         that platform allows handling stack overflow; at least OS/2 EMX
47639         has sigaltstack, but crashes before transferring control to
47640         handler on stack overflow.
47641         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47642         check for HAVE_STACK_OVERFLOW_HANDLING.
47643         Reported by Elbert Pol.
47644
47645 2008-08-25  Bruno Haible  <bruno@clisp.org>
47646
47647         * doc/posix-functions/strftime.texi: Fix description of strftime
47648         module.
47649
47650 2008-08-24  Bruno Haible  <bruno@clisp.org>
47651
47652         * tests/uniwidth/test-uc_width2.c: New file.
47653         * tests/uniwidth/test-uc_width2.sh: New file.
47654         * modules/uniwidth/width-tests (Files): Add the new files.
47655         (TESTS): Add uniwidth/test-uc_width2.sh.
47656         (TESTS_ENVIRONMENT): New variable.
47657         (check_PROGRAMS): Add test-uc_width2.
47658         (test_uc_width2_SOURCES): New variable.
47659
47660         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47661         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47662         not 0x00AB.
47663         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47664
47665 2008-08-22  Eric Blake  <ebb9@byu.net>
47666
47667         test-lock, test-tls: mention why a test is skipped
47668         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47669         skipped.
47670         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47671
47672         count-one-bits: relax license
47673         * modules/count-one-bits (License): Relicense to LGPLv2+.
47674         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47675
47676 2008-08-22  Andreas Schwab  <schwab@suse.de>
47677
47678         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47679         Remove spurious space in assignment.
47680
47681 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47682
47683         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47684         Paul Eggert <eggert@CS.UCLA.EDU>.
47685
47686 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47687
47688         * modules/gettext: Add m4/threadlib.m4.
47689
47690 2008-08-19  Eric Blake  <ebb9@byu.net>
47691
47692         test-c-stack: fix compilation failure on FreeBSD 5.0
47693         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47694         headers before <sys/resource.h>.
47695         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47696         the bug.
47697         Reported by Nelson H. F. Beebe.
47698
47699         strverscmp: migrate from "strverscmp.h" to <string.h>
47700         * modules/string (Makefile.am): Add new hooks.
47701         * modules/strverscmp (Files): Remove strverscmp.h.
47702         (Depends-on): Add string.
47703         (configure.ac): Add indicator.
47704         (Include): Mention new header.
47705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47706         defaults.
47707         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47708         results.
47709         * lib/strverscmp.h: Delete.
47710         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47711         * tests/test-strverscmp.c (includes): Adjust client.
47712         * lib/check-version.c (includes): Likewise.
47713         * NEWS: Document the change.
47714
47715         strverscmp: add unit test
47716         * modules/strverscmp-tests: New file.
47717         * tests/test-strverscmp.c: Likewise.
47718
47719 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47720
47721         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47722         regarding Windows crypto stuff, from Mono.
47723
47724 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47725
47726         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47727         if present, for intel RND.  Return error on failures.
47728
47729 2008-08-18  Ben Pfaff  <blp@gnu.org>
47730
47731         gitlog-to-changelog: give better diagnostic for failed pipe-open
47732         * build-aux/gitlog-to-changelog: Improve error message: suggest
47733         that the version of Git may be too old.
47734
47735 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47736
47737         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47738         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47739
47740 2008-08-18  Bruno Haible  <bruno@clisp.org>
47741
47742         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47743         pthread_in_use().
47744
47745 2008-08-18  Bruno Haible  <bruno@clisp.org>
47746
47747         * lib/glthread/threadlib.c: Include <pthread.h>.
47748
47749 2008-08-18  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47752         glthread_recursive_lock_* macros.
47753         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47754         Fix syntax error.
47755
47756 2008-08-18  Bruno Haible  <bruno@clisp.org>
47757
47758         * lib/glthread/thread.c: Avoid forcing a context switch right after
47759         thread creation.
47760
47761 2008-08-17  Bruno Haible  <bruno@clisp.org>
47762
47763         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47764         * lib/glthread/thread.h: Provide Win32 specific implementation.
47765         * modules/thread (Files): Add lib/glthread/thread.c.
47766         (Depends-on): Add lock.
47767         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47768
47769 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47770
47771         New module 'yield'.
47772         * modules/yield: New file.
47773         * lib/glthread/yield.h: New file.
47774         * m4/yield.m4: New file.
47775         * MODULES.html.sh (Multithreading): Add yield.
47776
47777 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47778
47779         New module 'thread'.
47780         * modules/thread: New file.
47781         * lib/glthread/thread.h: New file.
47782         * m4/thread.m4: New file.
47783         * MODULES.html.sh (Multithreading): Add thread.
47784
47785 2008-08-17  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/glthread/lock.h: Include <stdlib.h> always.
47788         * lib/glthread/tls.h: Likewise.
47789         * lib/glthread/cond.h: Likewise.
47790
47791 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47792
47793         New module 'cond'.
47794         * modules/cond: New file.
47795         * lib/glthread/cond.h: New file.
47796         * lib/glthread/cond.c: New file.
47797         * m4/cond.m4: New file.
47798         * MODULES.html.sh (Multithreading): Add cond.
47799
47800 2008-08-16  Eric Blake  <ebb9@byu.net>
47801
47802         c-stack: fix regression on Irix 5.3 from 2008-06-21
47803         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47804         sa_sigaction...
47805         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47806         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47807         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47808         * modules/signal (Makefile.am): Use the value.
47809         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47810         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47811         * doc/posix-headers/signal.texi (signal.h): Document this
47812         portability issue.
47813         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47814         Reported by Tom G. Christensen.
47815
47816 2008-08-17  Bruno Haible  <bruno@clisp.org>
47817
47818         New module 'threadlib'.
47819         * modules/threadlib: New file.
47820         * lib/glthread/threadlib.c: New file, extracted from
47821         lib/glthread/lock.c.
47822         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47823         functions.
47824         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47825         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47826         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47827         macros.
47828         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47829         (gl_DISABLE_THREADS): Remove macro.
47830         * modules/lock (Files): Remove build-aux/config.rpath.
47831         (Depends-on): Remove havelib. Add threadlib.
47832         (configure.ac-early): Remove section.
47833         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47834         * modules/tls (Depends-on): Remove lock. Add threadlib.
47835         (Link): New section, copied from threadlib.
47836         * MODULES.html.sh (Multithreading): Add threadlib.
47837
47838 2008-08-14  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47841         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47842         glthread_rwlock_unlock, glthread_rwlock_destroy,
47843         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47844         glthread_recursive_lock_destroy): Define as macros always.
47845         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47846         glthread_lock_lock.
47847         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47848         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47849         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47850         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47851         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47852         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47853         (glthread_recursive_lock_lock_func): Renamed from
47854         glthread_recursive_lock_lock.
47855         (glthread_recursive_lock_unlock_func): Renamed from
47856         glthread_recursive_lock_unlock.
47857         (glthread_recursive_lock_destroy_func): Renamed from
47858         glthread_recursive_lock_destroy.
47859
47860 2008-08-14  Bruno Haible  <bruno@clisp.org>
47861
47862         * lib/glthread/lock.h: Renamed from lib/lock.h.
47863         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47864         * lib/glthread/tls.h: Renamed from lib/tls.h.
47865         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47866         * lib/fstrcmp.c: Update includes.
47867         * lib/strsignal.c: Update includes.
47868         * modules/lock (Files, Makefile.am): Update.
47869         (Include): Change to "glthread/lock.h".
47870         * modules/tls (Files, Makefile.am): Update.
47871         (Include): Change to "glthread/tls.h".
47872         * tests/test-lock.c: Update includes.
47873         * tests/test-tls.c: Update includes.
47874         * NEWS: Mention the renamed header files.
47875
47876 2008-08-11  Jim Meyering  <meyering@redhat.com>
47877
47878         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47879
47880 2008-08-11  Eric Blake  <ebb9@byu.net>
47881
47882         test-c-stack: avoid C99-ism
47883         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47884         before statement.
47885         Reported by Alain Guibert.
47886
47887 2008-08-10  Jim Meyering  <meyering@redhat.com>
47888
47889         ensure that return value of uinttostr et al are not ignored
47890         * lib/inttostr.h (__GNUC_PREREQ): Define.
47891         (__attribute_warn_unused_result__): Define.
47892         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47893
47894 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47895
47896         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47897         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47898
47899 2008-08-07  Jim Meyering  <meyering@redhat.com>
47900
47901         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47902
47903         * modules/mkstemp (License): Relicense under LGPLv2+.
47904         * modules/tempname (License): Likewise.
47905
47906 2008-08-06  Bruno Haible  <bruno@clisp.org>
47907
47908         * lib/poll.c (poll): Further micro-optimization.
47909
47910 2008-08-06  Jim Meyering  <meyering@redhat.com>
47911
47912         inet_pton.c: use locale-independent tolower
47913         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47914         (inet_pton6): Use c_tolower rather than tolower.
47915         * modules/inet_pton (Depends-on): Add c-ctype.
47916
47917 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47918
47919         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47920         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47921
47922 2008-08-06  Jim Meyering  <meyering@redhat.com>
47923
47924         * modules/inet_pton (License): Relicense under LGPLv2+.
47925
47926 2008-08-03  Bruno Haible  <bruno@clisp.org>
47927
47928         Additional non-aborting API for lock and tls.
47929         * lib/lock.h: Include <errno.h>.
47930         (glthread_lock_init): New macro/function.
47931         (gl_lock_init): Define as wrapper around glthread_lock_init.
47932         (glthread_lock_lock): New macro/function.
47933         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47934         (glthread_lock_unlock): New macro/function.
47935         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47936         (glthread_lock_destroy): New macro/function.
47937         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47938         (glthread_rwlock_init): New macro/function.
47939         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47940         (glthread_rwlock_rdlock): New macro/function.
47941         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47942         (glthread_rwlock_wrlock): New macro/function.
47943         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47944         (glthread_rwlock_unlock): New macro/function.
47945         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47946         (glthread_rwlock_destroy): New macro/function.
47947         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47948         (glthread_recursive_lock_init): New macro/function.
47949         (gl_recursive_lock_init): Define as wrapper around
47950         glthread_recursive_lock_init.
47951         (glthread_recursive_lock_lock): New macro/function.
47952         (gl_recursive_lock_lock): Define as wrapper around
47953         glthread_recursive_lock_lock.
47954         (glthread_recursive_lock_unlock): New macro/function.
47955         (gl_recursive_lock_unlock): Define as wrapper around
47956         glthread_recursive_lock_unlock.
47957         (glthread_recursive_lock_destroy): New macro/function.
47958         (gl_recursive_lock_destroy): Define as wrapper around
47959         glthread_recursive_lock_destroy.
47960         (glthread_once): New macro/function.
47961         (gl_once): Define as wrapper around glthread_once.
47962         Update function declarations.
47963         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47964         glthread_rwlock_init. Return error code.
47965         (glthread_rwlock_rdlock_multithreaded): Renamed from
47966         glthread_rwlock_rdlock. Return error code.
47967         (glthread_rwlock_wrlock_multithreaded): Renamed from
47968         glthread_rwlock_wrlock. Return error code.
47969         (glthread_rwlock_unlock_multithreaded): Renamed from
47970         glthread_rwlock_unlock. Return error code.
47971         (glthread_rwlock_destroy_multithreaded): Renamed from
47972         glthread_rwlock_destroy. Return error code.
47973         (glthread_recursive_lock_init_multithreaded): Renamed from
47974         glthread_recursive_lock_init. Return error code.
47975         (glthread_recursive_lock_lock_multithreaded): Renamed from
47976         glthread_recursive_lock_lock. Return error code.
47977         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47978         glthread_recursive_lock_unlock. Return error code.
47979         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47980         glthread_recursive_lock_destroy. Return error code.
47981         (glthread_once_call): Make static.
47982         (glthread_once_multithreaded): Renamed from glthread_once.
47983         * lib/tls.h: Include <errno.h>.
47984         (glthread_tls_key_init): New macro/function.
47985         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47986         (glthread_tls_set): New macro/function.
47987         (gl_tls_set): Define as wrapper around glthread_tls_set.
47988         (glthread_tls_key_destroy): New macro/function.
47989         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47990         Update function declarations.
47991         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47992         glthread_tls_get.
47993         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47994
47995 2008-08-04  Eric Blake  <ebb9@byu.net>
47996
47997         gnumakefile: use space, not TAB, outside of targets
47998         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47999
48000 2008-08-02  Jim Meyering  <meyering@redhat.com>
48001
48002         getdate.y: avoid locale-dependent date parsing failure
48003         In Turkish locales, getdate would fail to recognize keywords
48004         containing a lowercase "i".  The solution is not to rely on
48005         locale-sensitive case-conversion.
48006         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48007         (lookup_word): Use c_toupper in place of toupper.
48008         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48009         Reported by Vefa Bicakci <bicave@superonline.com> in
48010         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48011         * modules/getdate (Depends-on): Add c-ctype.
48012
48013 2008-08-02  Bruno Haible  <bruno@clisp.org>
48014
48015         * gnulib-tool (func_import): When updating or creating a .gitignore
48016         file, prepend each added line with a slash, and ignore leading slashes
48017         from the existing lines.
48018         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48019
48020 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48021
48022         Portability fix for GNU make 3.79.1.
48023         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48024         versions do not understand.
48025
48026 2008-08-01  Bruno Haible  <bruno@clisp.org>
48027
48028         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48029         * tests/test-isnanf.h (zero): New variable.
48030         (main): Avoid literal -0.0f.
48031         * tests/test-isnand.h (zero): New variable.
48032         (main): Avoid literal -0.0.
48033         * tests/test-isnanl.h (zero): New variable.
48034         (main): Avoid literal -0.0L.
48035         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48036         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48037         -0.0, -0.0L.
48038         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48039         (test_signbitd): Avoid literal -0.0.
48040         (test_signbitl): Avoid literal -0.0L.
48041         * tests/test-ceilf1.c (zero): New variable.
48042         (main): Avoid literal -0.0f.
48043         * tests/test-ceill.c (zero): New variable.
48044         (main): Avoid literal -0.0L.
48045         * tests/test-floorf1.c (zero): New variable.
48046         (main): Avoid literal -0.0f.
48047         * tests/test-floorl.c (zero): New variable.
48048         (main): Avoid literal -0.0L.
48049         * tests/test-roundf1.c (zero): New variable.
48050         (main): Avoid literal -0.0f.
48051         * tests/test-round1.c (zero): New variable.
48052         (main): Avoid literal -0.0.
48053         * tests/test-roundl.c (zero): New variable.
48054         (main): Avoid literal -0.0L.
48055         * tests/test-truncf1.c (zero): New variable.
48056         (main): Avoid literal -0.0f.
48057         * tests/test-trunc1.c (zero): New variable.
48058         (main): Avoid literal -0.0.
48059         * tests/test-truncl.c (zero): New variable.
48060         (main): Avoid literal -0.0L.
48061         * tests/test-frexp.c (zero): New variable.
48062         (main): Avoid literal -0.0.
48063         * tests/test-frexpl.c (zero): New variable.
48064         (main): Avoid literal -0.0L.
48065         * tests/test-ldexpl.c (zero): New variable.
48066         (main): Avoid literal -0.0L.
48067         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48068         (zerod, zerol): New variables.
48069         (test_function): Avoid literals -0.0, -0.0L.
48070         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48071         (zerod, zerol): New variables.
48072         (test_function): Avoid literals -0.0, -0.0L.
48073         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48074         (zerod, zerol): New variables.
48075         (test_function): Avoid literals -0.0, -0.0L.
48076         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48077         (zerod, zerol): New variables.
48078         (test_function): Avoid literals -0.0, -0.0L.
48079         * tests/test-strtod.c (zero): New variable.
48080         (main): Avoid literal -0.0.
48081         Reported by Jonathan C. Patschke <jp@centtech.com>.
48082
48083 2008-07-31  Jim Meyering  <meyering@redhat.com>
48084
48085         sha256.h: correct definition of SHA224_DIGEST_SIZE
48086         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48087         Reported by Paulie Pena IV <paulie4@gmail.com>.
48088         Define as 224 / 8, rather than as a literal.
48089         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48090         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48091         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48092
48093 2008-07-31  Bruno Haible  <bruno@clisp.org>
48094
48095         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48096         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48097         Reported by Jonathan Patschke <jp@centtech.com>.
48098
48099 2008-07-31  Bruno Haible  <bruno@clisp.org>
48100
48101         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48102         Reported by Paolo Bonzini <bonzini@gnu.org>.
48103
48104 2008-07-30  Eric Blake  <ebb9@byu.net>
48105
48106         test-strtod: allow compilation without -lm
48107         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48108         Reported by Dennis Clarke <blastwave@gmail.com>.
48109
48110 2008-07-28  Jim Meyering  <meyering@redhat.com>
48111
48112         bootstrap: work also when there are no .po files in po/
48113         * build-aux/bootstrap (update_po_files): Complete the change
48114         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48115
48116 2008-07-27  Jim Meyering  <meyering@redhat.com>
48117
48118         * users.txt: Add zile.
48119
48120 2008-07-26  Ben Pfaff  <blp@gnu.org>
48121
48122         Add missing dependencies on new m4/exponent[fdl].m4 files.
48123         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48124         * modules/isnand-nolibm: Add m4/exponentd.m4.
48125         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48126         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48127         m4/isnan[fdl].m4, because the macros actually used moved.
48128         Reported by Jim Meyering.
48129
48130 2008-07-14  Ben Pfaff  <blp@gnu.org>
48131
48132         Add isinf module.
48133         * lib/isinf.c: New file.
48134         * lib/math.in.h: Define isinf macro if we have decided to replace
48135         it.
48136         * m4/isinf.m4: New file.
48137         * m4/math_h.m4: Initialize and substitute variables for isinf
48138         module.
48139         * modules/isinf: New file.
48140         * modules/isinf-tests: New file.
48141         * modules/math: Add substitutions for new module.
48142         * tests/test-isinf.c: New file.
48143         * doc/posix-functions/isinf.texi: Mention new module.
48144         * MODULES.html.sh: Mention new module.
48145
48146 2008-07-14  Ben Pfaff  <blp@gnu.org>
48147
48148         Factor out some macros for use by additional modules.
48149         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48150         exponentf.m4.
48151         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48152         exponentd.m4.
48153         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48154         file exponentl.m4.
48155         * m4/exponentf.m4: New file.
48156         * m4/exponentd.m4: New file.
48157         * m4/exponentl.m4: New file.
48158         * modules/isnanf: Use new file m4/exponentf.m4.
48159         * modules/isnand: Use new file m4/exponentd.m4.
48160         * modules/isnanl: Use new file m4/exponentl.m4.
48161
48162 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48163
48164         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48165         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48166         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48167         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48168
48169         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48170         readlink on platforms without PATH_MAX.
48171
48172 2008-07-21  Eric Blake  <ebb9@byu.net>
48173
48174         Warn, not fail, on stale version.
48175         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48176
48177         Don't allow installation with stale devel version number.
48178         * top/GNUmakefile (_is-install-target): New macro.
48179         (_curr-ver): Forbid installation with stale version number.
48180
48181 2008-07-20  Bruno Haible  <bruno@clisp.org>
48182
48183         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48184         TESTS_ENVIRONMENT.
48185         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48186
48187 2008-07-20  Bruno Haible  <bruno@clisp.org>
48188
48189         * lib/c-stack.h (c_stack_action): Add documentation.
48190         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48191
48192 2008-07-20  Bruno Haible  <bruno@clisp.org>
48193
48194         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48195         * modules/readlink (License): Likewise.
48196
48197 2008-07-17  Eric Blake  <ebb9@byu.net>
48198
48199         * modules/c-stack (Link): Fix typo.
48200
48201         Make c-stack use libsigsegv, when available.
48202         * modules/c-stack (Depends-on): Add libsigsegv.
48203         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48204         needed.
48205         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48206         (segv_handler, overflow_handler, c_stack_action)
48207         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48208         implementation when libsigsegv is available, but only when using
48209         the library is necessary.
48210         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48211         comment, explaining why XSI check fails on Linux.
48212         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48213         * tests/test-c-stack2.sh: Tweak skip message.
48214         * NEWS: Document new link-time requirements.
48215
48216 2008-07-16  Eric Blake  <ebb9@byu.net>
48217
48218         c-stack: Expose false positives when not using libsigsegv.
48219         * modules/c-stack-tests (Files): Expand test.
48220         * tests/test-c-stack.c (main): Add means to conditionally trigger
48221         non-overflow SIGSEGV.
48222         * tests/test-c-stack2.sh: New file.
48223
48224 2008-07-14  Bruno Haible  <bruno@clisp.org>
48225
48226         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48227         Reported by Eric Blake.
48228
48229 2008-07-14  Sam Steingold  <sds@gnu.org>
48230             Bruno Haible  <bruno@clisp.org>
48231
48232         New module libsigsegv.
48233         * modules/libsigsegv: New file.
48234         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48235         modifications.
48236         * MODULES.html.sh (Signal handling): New section.
48237
48238 2008-07-14  Bruno Haible  <bruno@clisp.org>
48239
48240         * modules/unictype/ctype-* (Description): Add the word "function".
48241         Improves the resulting doc in MODULES.html.
48242
48243 2008-07-12  Ben Pfaff  <blp@gnu.org>
48244
48245         Add longlong module.
48246         * modules/longlong: New file.
48247
48248 2008-07-12  Bruno Haible  <bruno@clisp.org>
48249
48250         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48251         to empty.
48252
48253 2008-07-10  Ben Pfaff  <blp@gnu.org>
48254
48255         Add isnan module.
48256         * doc/posix-functions/isnan.texi: Mention new module.
48257         * lib/math.in.h: Define isnan macro if we have decided to replace
48258         it.
48259         * m4/isnan.m4: New file.
48260         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48261         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48262         also.
48263         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48264         redundancy.
48265         * m4/math_h.m4: Initialize and substitute variables for isnan
48266         module.
48267         * modules/isnan: New file.
48268         * modules/isnan-tests: New file.
48269         * modules/math: Add substitutions for new module.
48270         * tests/test-isnan.c: New file.
48271         * MODULES.html.sh: Mention new module.
48272
48273 2008-07-10  Ben Pfaff  <blp@gnu.org>
48274
48275         Add isnanf module.
48276         * lib/isnanf.m4: New file.
48277         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48278         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48279         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48280         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48281         * modules/isnanf: New file.
48282         * modules/isnanf-tests: New file.
48283         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48284         files.
48285         * tests/test-isnanf-nolibm.c: factored most of its contents into
48286         new file tests/test-isnanf.h.
48287         * tests/test-isnanf.h: New file.
48288         * tests/test-isnanf.c: New file.
48289         * MODULES.html.sh: Mention new module.
48290         * doc/glibc-functions/isnanf.texi: Mention new module.
48291
48292 2008-07-10  Ben Pfaff  <blp@gnu.org>
48293
48294         Add isnand module.
48295         * lib/isnand.h: New file.
48296         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48297         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48298         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48299         functionality also.
48300         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48301         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48302         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48303         * modules/isnand: New file.
48304         * modules/isnand-tests: New file.
48305         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48306         files.
48307         * tests/test-isnand-nolibm.c: factored most of its contents into
48308         new file tests/test-isnand.h.
48309         * tests/test-isnand.h: New file.
48310         * tests/test-isnand.c: New file.
48311         * MODULES.html.sh: Mention new module.
48312
48313 2008-07-10  Ben Pfaff  <blp@gnu.org>
48314
48315         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48316         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48317         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48318         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48319         * modules/isnanf-nolibm: Update references to renamed files.
48320         * modules/isnand-nolibm: Likewise.
48321         * modules/isnanf-nolibm-tests: Likewise.
48322         * modules/isnand-nolibm-tests: Likewise.
48323         * lib/frexp.c: Likewise.
48324         * lib/isfinite.c: Likewise.
48325         * lib/signbitd.c: Likewise.
48326         * lib/signbitf.c: Likewise.
48327         * lib/vasnprintf.c: Likewise.
48328         * tests/test-ceilf1.c: Likewise.
48329         * tests/test-ceilf2.c: Likewise.
48330         * tests/test-floorf1.c: Likewise.
48331         * tests/test-floorf2.c: Likewise.
48332         * tests/test-frexp.c: Likewise.
48333         * tests/test-round1.c: Likewise.
48334         * tests/test-round2.c: Likewise.
48335         * tests/test-roundf1.c: Likewise.
48336         * tests/test-strtod.c: Likewise.
48337         * tests/test-trunc1.c: Likewise.
48338         * tests/test-trunc2.c: Likewise.
48339         * tests/test-truncf1.c: Likewise.
48340         * tests/test-truncf2.c: Likewise.
48341         * NEWS: Mention the renamed header files.
48342
48343 2008-07-11  Jim Meyering  <meyering@redhat.com>
48344
48345         vc-list-files: make the last-resort awk code more portable
48346         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48347         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48348         does not support it.
48349
48350 2008-07-10  Eric Blake  <ebb9@byu.net>
48351
48352         Work with tar's bootstrap.
48353         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48354         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48355         an m4 comment.
48356
48357 2008-07-09  Jim Meyering  <meyering@redhat.com>
48358
48359         posix-shell.m4: fix typo that made this test malfunction
48360         * m4/posix-shell.m4: Remove capitalization in variable name.
48361
48362 2008-07-08  Bruno Haible  <bruno@clisp.org>
48363
48364         * m4/onceonly.m4: Update comments.
48365         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48366
48367 2008-07-04  Jim Meyering  <meyering@redhat.com>
48368
48369         * users.txt: Add vc-dwim.
48370         (bison, coreutils): Use the gitweb URL.
48371
48372 2008-07-03  Jim Meyering  <meyering@redhat.com>
48373
48374         * users.txt: Add libffcall.  From Sam Steingold.
48375
48376 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48377
48378         getdate.y: do not ignore TZ with relative day, month or year offset
48379         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48380         relative-date-handling, since otherwise, the latter would clobber the
48381         sole output (an updated Start value) of the tz-handling block.
48382         * tests/test-getdate.c: Tests for the fix
48383
48384 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48385
48386         Recognize 'foo_LIBRARIES += libgnu.a'.
48387         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48388         makefile snippet has already specified an installation location,
48389         also using '+='.
48390
48391 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48392
48393         getdate.y: factor out common actions
48394         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48395         Use them in place of open-coded actions.
48396
48397 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48398
48399         Add self-test for getdate module.
48400         * modules/getdate-tests: New file.
48401         * tests/test-getdate.c: New file.
48402
48403 2008-06-29  Bruno Haible  <bruno@clisp.org>
48404
48405         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48406         .gitignore.
48407         Reported by Sylvain Beucler <beuc@beuc.net>.
48408
48409 2008-06-29  Bruno Haible  <bruno@clisp.org>
48410
48411         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48412         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48413
48414 2008-06-29  Bruno Haible  <bruno@clisp.org>
48415
48416         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48417         EXTRA_DIST.
48418         Reported by Sylvain Beucler <beuc@beuc.net>.
48419
48420 2008-06-26  Jim Meyering  <meyering@redhat.com>
48421
48422         make several modules depend on the "open" module
48423         This provides slightly increased consistency when opening-for-write
48424         the name of a non-directory spelled with a trailing slash.
48425         * modules/chdir-safer: Likewise.
48426         * modules/chown: Likewise.
48427         * modules/clean-temp: Likewise.
48428         * modules/copy-file: Likewise.
48429         * modules/fchdir: Likewise.
48430         * modules/fcntl-safer: Likewise.
48431         * modules/pipe: Likewise.
48432         * modules/utime: Likewise.
48433         Prompted by Eric Blake and Bruno Haible.
48434
48435 2008-06-24  Andreas Schwab  <schwab@suse.de>
48436
48437         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48438         literals can be used as initializers for global variables.
48439
48440 2008-06-23  Eric Blake  <ebb9@byu.net>
48441
48442         Make gnulib-cache.m4 easier to diff.
48443         * gnulib-tool (func_import): Allow newlines when reading cached
48444         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48445
48446 2008-06-23  Bruno Haible  <bruno@clisp.org>
48447
48448         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48449         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48450         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48451         m4/signalblocking.m4.
48452         (gl_PREREQ_SIGACTION): Don't invoke it.
48453         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48454         gl_PREREQ_SIG_HANDLER_H.
48455         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48456         Don't check for sigaction here.
48457
48458 2008-06-23  Bruno Haible  <bruno@clisp.org>
48459
48460         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48461         (install_handlers): Don't set the SA_RESETHAND flag.
48462
48463 2008-06-23  Bruno Haible  <bruno@clisp.org>
48464
48465         * m4/sigaction.m4: Comment fixes.
48466         * lib/signal.in.h: Likewise.
48467
48468 2008-06-23  Eric Blake  <ebb9@byu.net>
48469
48470         Fix typo.
48471         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48472
48473         Avoid SA_ namespace.
48474         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48475         Reported by Ralf Wildenhues.
48476
48477         Avoid test failure due to SA_RESTORER.
48478         * tests/test-sigaction.c (SA_MASK): New macro.
48479         (main): Avoid failing due to extension flags being set.
48480         Reported by Jim Meyering.
48481
48482         Revert use of sig-handler.h in sigprocmask.c.
48483         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48484         it requires the existence of struct sigaction.
48485         * lib/sigprocmask.c (handler_t): Restore typedef.
48486         (rpl_signal, old_handlers): Use local type.
48487
48488 2008-06-22  Bruno Haible  <bruno@clisp.org>
48489
48490         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48491         conditionally.
48492         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48493
48494 2008-06-22  Bruno Haible  <bruno@clisp.org>
48495
48496         * doc/posix-functions/siginterrupt.texi: Move note.
48497
48498         * lib/signal.in.h (SA_RESTART): New macro.
48499         * lib/sigaction.c: Update comment.
48500
48501         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48502
48503         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48504         (gl_PREREQ_SIGPROCMASK): Invoke it.
48505         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48506
48507         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48508
48509         * lib/sigprocmask.c: Update a comment.
48510
48511 2008-06-21  Eric Blake  <ebb9@byu.net>
48512
48513         Use sigaction module rather than signal().
48514         * modules/c-stack (Depends-on): Add sigaction.
48515         * modules/fatal-signal (Depends-on): Likewise.
48516         * modules/nanosleep (Depends-on): Likewise.
48517         * modules/sigprocmask (Files): Add sig-handler.h.
48518         * modules/sigaction (Files): Likewise.
48519         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48520         Eggert.
48521         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48522         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48523         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48524         (init_fatal_signals): Likewise.
48525         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48526         (siginterrupt): Delete fallback.
48527         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48528         instead.
48529         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48530         siginterrupt.
48531
48532         New module sigaction, for mingw.
48533         * modules/sigaction: New module...
48534         * modules/sigaction-tests: ...and its test.
48535         * m4/sigaction.m4: New file.
48536         * lib/sigaction.c: Likewise.
48537         * tests/test-sigaction.c: Likewise.
48538         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48539         * modules/signal (Makefile.am): Likewise.
48540         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48541         needed.
48542         * doc/posix-headers/signal.texi (signal.h): Mention provided
48543         types.
48544         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48545         that sigaction is preferable.
48546         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48547         module.
48548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48549         sigaction.
48550
48551         Improve robustness of sigprocmask by overriding signal.
48552         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48553         is in use.
48554         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48555         (SIGKILL, SIGSTOP): Provide fallbacks.
48556         (rpl_signal): Implement.
48557         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48558         signal can be called inside handlers.
48559
48560         Fix nanosleep module on mingw.
48561         * modules/nanosleep (Depends-on): Add sys_select.
48562         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48563
48564         Fix licensing of sigprocmask.
48565         * modules/raise (License): Relicense as LGPL.
48566
48567 2008-06-21  Bruno Haible  <bruno@clisp.org>
48568
48569         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48570         result if it contains question marks.
48571         Reported by Michael Geng <linux@michaelgeng.de>.
48572
48573 2008-06-19  Bruno Haible  <bruno@clisp.org>
48574
48575         Fix CVS-ism.
48576         * doc/gnulib.texi: Include updated-stamp.texi.
48577         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48578         (updated-stamp.texi): New rule.
48579         (gnulib.info): Depend on it.
48580         * doc/.gitignore: Add updated-stamp.texi.
48581         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48582
48583 2008-06-19  Bruno Haible  <bruno@clisp.org>
48584
48585         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48586         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48587
48588 2008-06-19  Eric Blake  <ebb9@byu.net>
48589
48590         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48591         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48592         Reported by Stepan Kasal.
48593
48594 2008-06-18  Bruno Haible  <bruno@clisp.org>
48595
48596         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48597         Reported by Eric Blake.
48598
48599 2008-06-18  Eric Blake  <ebb9@byu.net>
48600
48601         Work around cygwin 1.5.25 strsignal bug.
48602         * tests/test-strsignal.c: Allow for const char *.
48603         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48604
48605 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48606
48607         * users.txt: Update URL to article and add author/date
48608         information.
48609
48610 2008-06-17  Bruno Haible  <bruno@clisp.org>
48611
48612         New macro gl_DISABLE_THREADS.
48613         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48614         if the user did not pass --enable-threads or --disable-threads option.
48615         (gl_DISABLE_THREADS): New macro.
48616         Reported by Eric Blake <ebb9@byu.net>.
48617
48618 2008-06-17  Bruno Haible  <bruno@clisp.org>
48619
48620         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48621         when the macro ignores it.
48622         Based on a patch by Eric Blake <ebb9@byu.net>.
48623
48624 2008-06-17  Bruno Haible  <bruno@clisp.org>
48625
48626         * modules/tls (License): Change to LGPLv2+.
48627         Reported by Eric Blake.
48628
48629 2008-06-17  Eric Blake  <ebb9@byu.net>
48630
48631         Simplify c-stack prerequisites.
48632         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48634         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48635         check.
48636         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48637         <sys/resource.h>.
48638
48639         Move c-stack test into testsuite.
48640         * modules/c-stack-tests: New file.
48641         * lib/c-stack.c [DEBUG]: Move test program...
48642         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48643         fail test if sigaltstack is lacking.
48644         * tests/test-c-stack.sh: New driver file.
48645
48646 2008-06-16  Eric Blake  <ebb9@byu.net>
48647
48648         Use raise module consistently.
48649         * modules/fatal-signal (Depends-on): Add raise.
48650         * modules/sigprocmask (Depends-on): Likewise.
48651         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48652         * lib/sigprocmask.c (sigprocmask): Likewise.
48653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48654         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48655
48656         Fix compliance bug in sigpending.
48657         * lib/sigprocmask.c (sigpending): Return pending array via
48658         parameter, not return value.
48659
48660 2008-06-14  Eric Blake  <ebb9@byu.net>
48661
48662         Improve obstack-printf test code.
48663         * tests/test-obstack-printf.c (test_function): Fix comment, and
48664         simplify usage of obstack_* in macros.  Add a test for coverage.
48665         Reported by Bruno Haible.
48666
48667 2008-06-14  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48670         array size as a constant, not as a const variable.
48671         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48672         AC_USE_SYSTEM_EXTENSIONS.
48673         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48674         Test whether the obstack_printf function actually exists.
48675         * modules/obstack-printf (Depends-on): Add extensions.
48676         (Include): Remove obstack.h.
48677         * modules/obstack-printf-posix (Depends-on): Add extensions.
48678         (Include): Remove obstack.h.
48679
48680 2008-06-13  Eric Blake  <ebb9@byu.net>
48681
48682         Add obstack-printf and obstack-printf-posix modules.
48683         * modules/obstack-printf: New file.
48684         * modules/obstack-printf-posix: Likewise.
48685         * MODULES.html.sh (Misc): Mention them.
48686         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48687         Likewise.
48688         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48689         Likewise.
48690         * modules/stdio (Makefile.am): Accomodate new modules.
48691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48692         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48693         Declare.
48694         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48695         functions.
48696         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48697         (gl_REPLACE_OBSTACK_PRINTF): New macros
48698         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48699         * tests/test-obstack-printf.c: New file.
48700         * modules/obstack-printf-tests: Likewise.
48701         * modules/obstack-printf-posix-tests: Likewise.
48702
48703 2008-06-11  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48706         * lib/open.c: Include errno.h.
48707         (open): Fail when attempting to write to a file that has a trailing
48708         slash.
48709         * tests/test-open.c (main): Test against trailing slash bug.
48710         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48711
48712 2008-06-10  Bruno Haible  <bruno@clisp.org>
48713
48714         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48715         for $? to work inside the trap command, with various /bin/sh-s.
48716         * tests/test-vc-list-files-cvs.sh: Likewise.
48717
48718 2008-06-10  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/acl-internal.h: Don't include gettext.h here.
48721         * lib/set-mode-acl.c: Include gettext.h here.
48722         * lib/copy-acl.c: Likewise.
48723
48724 2008-06-10  Bruno Haible  <bruno@clisp.org>
48725
48726         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48727         * lib/wait-process.c (wait_subprocess): Likewise.
48728         * lib/execute.h (execute): Add termsigp argument.
48729         * lib/execute.c (execute): Likewise.
48730         * lib/csharpcomp.c (compile_csharp_using_pnet,
48731         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48732         * lib/csharpexec.c (execute_csharp_using_pnet,
48733         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48734         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48735         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48736         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48737         is_jikes_present): Update.
48738         * lib/javaexec.c (execute_java_class): Update.
48739         * lib/javaversion.c (execute_and_read_line): Update.
48740         * NEWS: Document the changes.
48741         Reported by Eric Blake.
48742
48743 2008-06-10  Eric Blake  <ebb9@byu.net>
48744
48745         Add missing include.
48746         * tests/test-strstr.c (includes): Add <signal.h>.
48747         * tests/test-strcasestr.c (includes): Likewise.
48748         * tests/test-memmem.c (includes): Likewise.
48749
48750 2008-06-10  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/wait-process.c (wait_subprocess): Add an assertion.
48753
48754 2008-06-10  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48757
48758 2008-06-10  Bruno Haible  <bruno@clisp.org>
48759
48760         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48761         using alarm().
48762         * tests/test-strcasestr.c (main): Likewise.
48763         * tests/test-strstr.c (main): Likewise.
48764
48765 2008-06-09  Bruno Haible  <bruno@clisp.org>
48766
48767         Work around the Solaris 10 ACE ACLs ABI change.
48768         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48769         declare if ACL_NO_TRIVIAL is present.
48770         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48771         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48772         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48773         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48774         define if ACL_NO_TRIVIAL is present.
48775         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48776         and use the current ABI.
48777         (file_has_acl): Use same #if condition as elsewhere.
48778         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48779         in use, and use the current ABI.
48780         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48781         Reported by Jim Meyering.
48782
48783 2008-06-09  Eric Blake  <ebb9@byu.net>
48784
48785         Work around environments that (stupidly) ignore SIGALRM.
48786         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48787         before using alarm().
48788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48790         Reported by Ian Beckwith <ianb@erislabs.net>.
48791
48792         Produce autobuild blurb earlier in log.
48793         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48794
48795 2008-06-09  Jim Meyering  <meyering@redhat.com>
48796         and OndÅ™ej Vašík  <ovasik@redhat.com>
48797
48798         utimens.c: correct kernel bug work-around
48799         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48800         failure, not success, and the kernel bug we're trying to work
48801         around affects not just the utimensat call, but also the fallback
48802         futimens call.
48803         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48804         not success.
48805         [HAVE_FUTIMENS]: Use the same work-around, here.
48806
48807 2008-06-09  Jim Meyering  <meyering@redhat.com>
48808
48809         add more guards around definition of ACE_-related code
48810         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48811         ALLOW and ACE_OWNER are also defined.
48812
48813 2008-06-08  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/acl-internal.h: Add me as co-author.
48816         * lib/file-has-acl.c: Likewise.
48817         * lib/set-mode-acl.c: Likewise.
48818         * lib/copy-acl.c: Likewise.
48819
48820 2008-06-08  Bruno Haible  <bruno@clisp.org>
48821
48822         Add support for AIX ACLs.
48823         * lib/acl-internal.h (acl_nontrivial): New declaration.
48824         * lib/file-has-acl.c (acl_nontrivial): New function.
48825         (file_has_acl): Add implementation using AIX 4 ACL API.
48826         * lib/set-mode-acl.c (qset_acl): Likewise.
48827         * lib/copy-acl.c (qcopy_acl): Likewise.
48828
48829 2008-06-08  Bruno Haible  <bruno@clisp.org>
48830
48831         Add support for HP-UX ACLs.
48832         * lib/acl-internal.h (acl_nontrivial): New declaration.
48833         * lib/file-has-acl.c (acl_nontrivial): New function.
48834         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48835         * lib/set-mode-acl.c (qset_acl): Likewise.
48836         * lib/copy-acl.c (qcopy_acl): Likewise.
48837
48838 2008-06-08  Bruno Haible  <bruno@clisp.org>
48839
48840         Add support for Cygwin ACLs.
48841         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48842         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48843         the chmod_or_fchmod call.
48844         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48845
48846 2008-06-08  Bruno Haible  <bruno@clisp.org>
48847
48848         Fix bug with setuid modes in Solaris 10+ code.
48849         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48850         succeeded, when the mode contains some special bits.
48851
48852 2008-06-08  Bruno Haible  <bruno@clisp.org>
48853
48854         Add support for Solaris 7..10 ACLs.
48855         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48856         declarations.
48857         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48858         functions.
48859         (file_has_acl): Add implementation using Solaris 7..10 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         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48866         declaration.
48867         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48868         (acl_access_nontrivial): Remove MacOS X case.
48869         (file_has_acl): Use acl_extended_nontrivial.
48870         * lib/copy-acl.c (qcopy_acl): Likewise.
48871
48872 2008-06-08  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48875
48876 2008-06-08  Jim Meyering  <meyering@redhat.com>
48877
48878         * modules/acl (Maintainer): Add Bruno Haible.
48879
48880 2008-06-07  Bruno Haible  <bruno@clisp.org>
48881
48882         Improve support for Tru64 ACLs.
48883         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48884         ACL on OSF/1.
48885
48886 2008-06-07  Bruno Haible  <bruno@clisp.org>
48887
48888         Add support for MacOS X ACLs.
48889         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48890         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48891         * lib/set-mode-acl.c (qset_acl): Likewise.
48892         * lib/copy-acl.c (qcopy_acl): Likewise.
48893
48894 2008-06-07  Bruno Haible  <bruno@clisp.org>
48895
48896         Fix memory leak introduced on 2008-05-22.
48897         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48898         use.
48899
48900 2008-06-07  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48903         to construct an empty ACL.
48904
48905 2008-06-07  Bruno Haible  <bruno@clisp.org>
48906
48907         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48908         precisely.
48909         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48910
48911 2008-06-07  Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48914         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48915
48916 2008-06-07  Bruno Haible  <bruno@clisp.org>
48917
48918         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48919         regardless of POSIX.
48920         * doc/posix-functions/_longjmp.texi: Likewise.
48921         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48922         SystemV platform in this case.
48923
48924 2008-06-06  Eric Blake  <ebb9@byu.net>
48925
48926         Document abort() bugs.
48927         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48928
48929         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48930         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48931         sigsetjmp.
48932         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48933         siglongjmp, but only as a macro.
48934         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48935         is obsolete.
48936         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48937
48938         Tweak documentation to cover cygwin argz bugs.
48939         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48940         argz bug fix; no code change needed since no cygwin releases
48941         occurred between the last fix and the bug being tested.
48942         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48943         module and recently fixed cygwin bugs.
48944         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48945         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48946         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48947         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48948         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48949         Likewise.
48950         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48951         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48952         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48953         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48954         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48955         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48956         Likewise.
48957
48958         Avoid gcc warning on cygwin.
48959         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48960         !ACL_NO_TRIVIAL]: Avoid unused variable.
48961
48962 2008-06-05  Eric Blake  <ebb9@byu.net>
48963
48964         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48965         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48966         git-version-gen fails to come up with a version.
48967         Reported by Simon Josefsson.
48968
48969 2008-06-05  Jim Meyering  <meyering@redhat.com>
48970             Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         utimens.c: work around a probable Linux kernel bug
48973         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48974         appears to be a kernel bug that causes utimensat to return 280
48975         instead of 0, indicating success.
48976
48977 2008-06-04  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48980         2008-06-01 commit.
48981
48982 2008-06-04  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48985         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48986         (file_has_acl): Use it. Save errno afterwards.
48987         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48988
48989 2008-06-03  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48992         draft code. Simplify #ifs.
48993         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48994         Put Solaris code after POSIX-draft code. Fix comments regarding
48995         Solaris 10, HP-UX. Mention Cygwin.
48996         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48997
48998 2008-06-03  Eric Blake  <ebb9@byu.net>
48999
49000         Provide fallback for older kernels.
49001         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49002         Provide runtime fallback if kernel lacks support.
49003         Reported by Mike Frysinger.
49004
49005 2008-06-02  Bruno Haible  <bruno@clisp.org>
49006
49007         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49008         it exists.
49009
49010 2008-06-02  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49013         * lib/copy-acl.c (qcopy_acl): Update comment.
49014
49015 2008-06-02  Bruno Haible  <bruno@clisp.org>
49016
49017         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49018         like ACL APIs.
49019
49020 2008-06-02  Bruno Haible  <bruno@clisp.org>
49021
49022         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49023         * tests/test-set-mode-acl.sh: Likewise.
49024         * tests/test-copy-acl.sh: Likewise.
49025         * tests/test-copy-file.sh: Likewise.
49026
49027 2008-06-02  Bruno Haible  <bruno@clisp.org>
49028
49029         * tests/test-file-has-acl.sh: Remove unused code.
49030
49031 2008-06-01  Bruno Haible  <bruno@clisp.org>
49032
49033         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49034         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49035         messages.
49036         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49037
49038 2008-06-01  Bruno Haible  <bruno@clisp.org>
49039
49040         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49041         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49042         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49043         APIs.
49044         * modules/acl-tests (configure.ac): Remove tests now contained in
49045         m4/acl.m4.
49046
49047 2008-06-02  Jim Meyering  <meyering@redhat.com>
49048
49049         announce-gen: use a better key-server host name
49050         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49051         it may be more consistently reliable.  Suggested by Werner Koch
49052         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49053
49054 2008-06-01  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49057         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49058
49059 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49060
49061         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49062
49063 2008-06-01  Bruno Haible  <bruno@clisp.org>
49064
49065         New ACL tests.
49066         * tests/test-file-has-acl.sh: New file.
49067         * tests/test-file-has-acl.c: New file.
49068         * tests/test-set-mode-acl.sh: New file.
49069         * tests/test-set-mode-acl.c: New file.
49070         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49071         * tests/test-copy-acl.c: New file.
49072         * modules/acl-tests: New file, based on modules/copy-file-tests.
49073         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49074         (Depends-on): Add acl-tests.
49075         (configure.ac): Remove checks.
49076         (Makefile.am): Don't create test-sameacls program here any more.
49077
49078 2008-06-01  Bruno Haible  <bruno@clisp.org>
49079
49080         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49081         * tests/test-sameacls.c: Include progname.h.
49082         (main): Invoke set_program_name. Portability fixes for MacOS X,
49083         Solaris, HP-UX.
49084
49085 2008-06-01  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49088         function.
49089         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49090
49091 2008-06-01  Bruno Haible  <bruno@clisp.org>
49092
49093         * modules/rpmatch (Depends-on): Add strdup.
49094
49095 2008-06-01  Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/pipe.c: Include unistd-safer.h.
49098         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49099         * modules/pipe (Depends-on): Add unistd-safer.
49100
49101 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49102
49103         * modules/autobuild (configure.ac): Call AB_INIT.
49104
49105 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49106
49107         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49108         Suggested by Bruno Haible <bruno@clisp.org>.
49109
49110 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49111
49112         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49113         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49114         <bruno@clisp.org>.
49115
49116 2008-05-29  Eric Blake  <ebb9@byu.net>
49117
49118         Prefer new POSIX 200x interfaces over futimesat.
49119         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49120         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49121         when available.
49122         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49123
49124 2008-05-28  Bruno Haible  <bruno@clisp.org>
49125
49126         * modules/stpcpy (License): Change to LGPLv2+.
49127         Requested by David Lutterkort <dlutter@redhat.com>.
49128
49129 2008-05-27  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49132         current mingw.
49133         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49134
49135 2008-05-27  Bruno Haible  <bruno@clisp.org>
49136
49137         * modules/iconv_open (Link): New section, from module 'iconv'.
49138         * modules/striconv (Link): Likewise.
49139         * modules/striconveh (Link): Likewise.
49140         * modules/xstriconv (Link): Likewise.
49141         * modules/unicodeio (Link): Likewise.
49142         * modules/propername (Link): Likewise.
49143         Reported by Jim Meyering.
49144
49145 2008-05-26  Jim Meyering  <meyering@redhat.com>
49146
49147         sha256: do not artificially restrict buffer length to be < 2^32
49148         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49149         uint32_t to size_t.
49150         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49151         to match.
49152
49153         avoid unaligned access errors, e.g., on sparc
49154         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49155         direct access through a possibly-unaligned uint64* pointer.
49156         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49157         direct access through a possibly-unaligned uint32* pointer.
49158         Prompted by this patch from Tom "spot" Callaway:
49159         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49160
49161         sha512.c: fix typo in comment
49162         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49163
49164 2008-05-25  Bruno Haible  <bruno@clisp.org>
49165
49166         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49167         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49168         (Makefile.am): Update lib_SOURCES.
49169
49170 2008-05-25  Bruno Haible  <bruno@clisp.org>
49171
49172         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49173
49174 2008-05-25  Jim Meyering  <meyering@redhat.com>
49175
49176         useless-if-before-free: freed expr may have white-space differences
49177         * build-aux/useless-if-before-free: Recognize cases in which the
49178         freed expression differs from the tested one in embedded white
49179         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49180         $1 was used, so we can't make any regexp shy.  Improved tests now
49181         detect this.
49182
49183         useless-if-before-free: accept white space in the expression.
49184         * build-aux/useless-if-before-free: For now, any white space
49185         in the expression must be identical in the free argument.
49186
49187         useless-if-before-free: efficiency tweak
49188         * build-aux/useless-if-before-free: Make the expression-matching
49189         regexp "shy".
49190         Make the *outer* regexp shy, not the expr-matching one.
49191
49192         update code-in-comment to accept cast of free arg
49193         * build-aux/useless-if-before-free: Update regexp.
49194
49195 2008-05-25  Bruno Haible  <bruno@clisp.org>
49196
49197         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49198         * modules/copy-file-tests (Files, Makefile.am): Update.
49199         * tests/test-copy-file.c (func_test_copy): Update.
49200
49201 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49202
49203         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49204
49205 2008-05-23  Bruno Haible  <bruno@clisp.org>
49206
49207         Improve support for ACLs on OSF/1.
49208         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49209         Remove fallback for unknown flavors of ACLs.
49210
49211 2008-05-22  Bruno Haible  <bruno@clisp.org>
49212
49213         Add support for ACLs on OSF/1.
49214         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49215         replacements.
49216         (acl_free_text): New macro fallback.
49217         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49218         acl_free.
49219         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49220         acl_free_text function. Require AC_C_INLINE.
49221
49222 2008-05-22  Bruno Haible  <bruno@clisp.org>
49223
49224         Make copy_acl work on MacOS X 10.5.
49225         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49226         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49227         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49228         If MODE_INSIDE_ACL, don't assume that every system has the same text
49229         representation for ACLs as FreeBSD.
49230         * lib/copy-acl.c (copy_acl): Add support for platforms with
49231         !MODE_INSIDE_ACL.
49232         * lib/file-has-acl.c (file_has_acl): Likewise.
49233         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49234         FreeBSD, MacOS X, or IRIX, respectively.
49235
49236 2008-05-22  Bruno Haible  <bruno@clisp.org>
49237
49238         * lib/acl.h: Don't include <sys/acl.h>.
49239         (GETACLCNT): Move fallback to lib/acl-internal.h.
49240         * lib/acl-internal.h: Include <sys/acl.h> here.
49241         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49242
49243 2008-05-22  Bruno Haible  <bruno@clisp.org>
49244
49245         Split off copy_acl function to separate file.
49246         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49247         * lib/acl.c (copy_acl): Moved function to separate file.
49248         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49249         * modules/acl (Files): Add lib/copy-acl.c.
49250         (Makefiles.am): Augment lib_SOURCES.
49251
49252 2008-05-22  Bruno Haible  <bruno@clisp.org>
49253
49254         * modules/copy-file-tests: New file.
49255         * tests/test-copy-file.sh: New file.
49256         * tests/test-copy-file.c: New file.
49257         * tests/test-copy-file-sameacls.c: New file.
49258
49259 2008-05-22  Eric Blake  <ebb9@byu.net>
49260
49261         Avoid gcc warning.
49262         * tests/test-memcmp.c (main): Pass NULL indirectly.
49263
49264 2008-05-21  Bruno Haible  <bruno@clisp.org>
49265
49266         Add reference doc about ACLs.
49267         * doc/acl-resources.txt: New file.
49268         * doc/acl-cygwin.txt: New file.
49269
49270 2008-05-21  Bruno Haible  <bruno@clisp.org>
49271
49272         Avoid one more warning from gcc.
49273         * lib/vasnprintf.c (IF_LINT): Update comments.
49274         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49275
49276 2008-05-21  Jim Meyering  <meyering@redhat.com>
49277
49278         avoid a warning from gcc
49279         * lib/vasnprintf.c (IF_LINT): Define.
49280         (scale10_round_decimal_long_double):
49281         Use it to avoid a "may be used uninitialized" warning.
49282         (scale10_round_decimal_double): Likewise.
49283
49284 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49285
49286         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49287         declared.
49288
49289 2008-05-20  Bruno Haible  <bruno@clisp.org>
49290
49291         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49292         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49293
49294 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49295
49296         * modules/memcmp-tests: New file.
49297         * tests/test-memcmp.c: New file.
49298
49299 2008-05-19  Bruno Haible  <bruno@clisp.org>
49300
49301         * modules/propername (Notice, configure.ac): Put quoted "..." into
49302         --keyword option.
49303         * lib/propername.h: Update comments accordingly.
49304         Reported by Eric Blake.
49305
49306 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49307
49308         * modules/getpass-gnu (Depends-on): Add fseeko.
49309
49310 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49311
49312         * modules/base64-tests: New file.
49313
49314 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49315
49316         * lib/base64.c (base64_decode_ctx): If a decode context structure
49317         was passed in use it to ignore newlines.  If a context structure
49318         was _not_ passed in, continue to treat newlines as garbage (this
49319         is the historical behavior).  Formerly base64_decode.
49320         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49321         takes a decode context structure.
49322         * lib/base64.h (base64_decode): Macro for four-argument calls.
49323         (base64_decode_alloc): Likewise.
49324         * lib/base64.c (base64_decode_ctx): If a decode context structure
49325         was passed in use it to ignore newlines.  If a context structure
49326         was _not_ passed in, continue to treat newlines as garbage (this
49327         is the historical behavior).  Formerly base64_decode.
49328         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49329         takes a decode context structure.
49330         * lib/base64.h (base64_decode): Macro for four-argument calls.
49331         (base64_decode_alloc): Likewise.
49332
49333 2008-05-19  Jim Meyering  <meyering@redhat.com>
49334
49335         avoid a warning from gcc
49336         * lib/trim.c (IF_LINT): Define.
49337         (trim2): Use it to avoid a "may be used uninitialized" warning.
49338
49339         Fix doc typo.
49340         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49341
49342 2008-05-19  Bruno Haible  <bruno@clisp.org>
49343
49344         * doc/glibc-functions/getpass.texi: Document limits of other
49345         implementations.
49346
49347 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49348             Bruno Haible <bruno@clisp.org>
49349
49350         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49351
49352 2008-05-18  Bruno Haible  <bruno@clisp.org>
49353
49354         * modules/propername: New file, from GNU gettext.
49355         * lib/propername.h: New file, from GNU gettext.
49356         * lib/propername.c: New file, from GNU gettext.
49357         * MODULES.html.sh (Internationalization functions): Add propername.
49358
49359 2008-05-16  Jim Meyering  <meyering@redhat.com>
49360             Bruno Haible  <bruno@clisp.org>
49361
49362         Avoid some warnings from "gcc -Wshadow".
49363         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49364
49365 2008-05-15  Eric Blake  <ebb9@byu.net>
49366
49367         Extend previous patch to cygwin 1.7.0.
49368         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49369         fast implementation in cygwin >= 1.7.0.
49370         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49372
49373 2008-05-15  Bruno Haible  <bruno@clisp.org>
49374
49375         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49376         implementation in glibc >= 2.9.
49377         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49379
49380 2008-05-15  Bruno Haible  <bruno@clisp.org>
49381
49382         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49383         (Unicode string functions): Add unilbrk/*.
49384         Reported by Karl Berry.
49385
49386 2008-05-15  Eric Blake  <ebb9@byu.net>
49387
49388         Fix violation of <stdbool.h> replacement in regex.
49389         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49390         * lib/regexec.c (re_search_internal): Likewise.
49391         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49392
49393 2008-05-15  Jim Meyering  <meyering@redhat.com>
49394
49395         avoid distracting test output when git or cvs is not found
49396         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49397         * tests/test-vc-list-files-git.sh: Likewise.
49398
49399 2008-05-15  Eric Blake  <ebb9@byu.net>
49400
49401         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49402         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49403         glibc version.
49404         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49405         * doc/posix-functions/strstr.texi (strstr): Likewise.
49406         * lib/str-two-way.h (MAX): Sychronize with glibc.
49407
49408 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49409
49410         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49411         opr.ctx_type.
49412         (calc_first): Initialize constraint field.
49413         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49414         Fix grammar.
49415         (duplicate_node): Merge constraint field for all node types.
49416         (calc_eclosure_iter): Look at constraint field for all node types.
49417         * lib/regex_internal.c (create_cd_newstate): Don't look at
49418         opr.ctx_type.
49419
49420 2008-05-14  Bruno Haible  <bruno@clisp.org>
49421
49422         Help GCC to do better code generation.
49423         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49424         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49425         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49426         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49427         Declare with attribute 'malloc' if supported.
49428
49429 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49430
49431         use "echo STR|wc -c" rather than unportable "expr length STR"
49432         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49433         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49434
49435 2008-05-14  Jim Meyering  <meyering@redhat.com>
49436
49437         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49438         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49439         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49440         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49441         via Collin Lasse.
49442
49443 2008-05-14  Eric Blake  <ebb9@byu.net>
49444
49445         Avoid quadratic growth in gl_LIBSOURCES.
49446         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49447         Suggested by Bruno Haible.
49448
49449         Test xmemdup0.
49450         * modules/xmemdup0-tests: New file.
49451         * tests/test-xmemdup0.c: Likewise.
49452
49453 2008-05-13  Eric Blake  <ebb9@byu.net>
49454
49455         Split xmemdup0 into its own module.
49456         * modules/xmemdup0: New file.
49457         * lib/xmemdup0.h: Likewise.
49458         * lib/xmemdup0.c: Likewise.
49459         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49460         * lib/xalloc.h (xmemdup0): Remove.
49461         * lib/xmalloc.c (xmemdup0): Likewise.
49462
49463 2008-05-13  Eric Blake  <ebb9@byu.net>
49464             Bruno Haible  <bruno@clisp.org>
49465
49466         Reduce number of forks required during autoconf.
49467         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49468         and gl_LIBSOURCES_DIR.
49469         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49470         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49471         m4_syscmd per file.
49472         <m4_foreach_w>: Move...
49473         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49474
49475 2008-05-13  Eric Blake  <ebb9@byu.net>
49476
49477         * gnulib-tool: Fix various comment typos.
49478
49479 2008-05-12  Bruno Haible  <bruno@clisp.org>
49480
49481         Tailor the linebreaking algorithm.
49482         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49483
49484 2008-05-12  Bruno Haible  <bruno@clisp.org>
49485
49486         Update to Unicode 5.0.0.
49487         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49488         LBP_JV, LBP_JT. Redistribute values.
49489         (unilbrk_table): Change size.
49490         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49491         Unicode TR#14 rev. 22.
49492         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49493         LBP_JV, LBP_JT. Redistribute values.
49494         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49495         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49496         Update.
49497         * lib/unilbrk/lbrkprop1.h: Regenerated.
49498         * lib/unilbrk/lbrkprop2.h: Regenerated.
49499         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49500         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49501         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49502         Likewise.
49503         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49504         Likewise.
49505         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49506         result.
49507         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49508         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49509         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49510         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49511         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49512         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49513
49514 2008-05-11  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49517
49518 2008-05-11  Bruno Haible  <bruno@clisp.org>
49519
49520         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49521         * modules/unilbrk/gen-lbrk: New file.
49522
49523 2008-05-11  Bruno Haible  <bruno@clisp.org>
49524
49525         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49526         * m4/sha512.m4 (gl_SHA512): Likewise.
49527
49528 2008-05-11  Jim Meyering  <meyering@redhat.com>
49529
49530         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49531         * modules/crypto/sha256: New file.
49532         * modules/crypto/sha512: Likewise.
49533         * lib/sha256.c: Likewise.
49534         * lib/sha256.h: Likewise.
49535         * lib/sha512.c: Likewise.
49536         * lib/sha512.h: Likewise.
49537         * lib/u64.h: Likewise.
49538         * m4/sha256.m4: Likewise.
49539         * m4/sha512.m4: Likewise.
49540         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49541
49542 2008-05-10  Bruno Haible  <bruno@clisp.org>
49543
49544         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49545         (Input/Output <stdio.h>): Add xprintf.
49546         (Signal handling <signal.h>): Add strsignal.
49547         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49548         (Core language properties): Add func.
49549         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49550         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49551         strings.
49552         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49553         (Input/output): New section.
49554         (File system functions): Add openat-die, stat-macros.
49555         (Networking functions): Add sockets.
49556         (Unicode string functions): Add unictype/*.
49557         (Support for building libraries and executables): Add gperf.
49558         (Support for building documentation): Add agpl-3.0.
49559         (Misc): Add nocrash.
49560
49561 2008-05-10  Bruno Haible  <bruno@clisp.org>
49562
49563         * modules/unictype/gen-ctype: New file.
49564
49565 2008-05-10  Jim Meyering  <meyering@redhat.com>
49566
49567         Make chdir-safer.c more efficient on a system with no symlinks.
49568         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49569         also if ELOOP is zero.  Suggested by Bruno Haible.
49570
49571         Make chdir-safer.c slightly safer.
49572         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49573         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49574
49575         Avoid compile failure on systems without ELOOP (like mingw).
49576         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49577         Reported by Bruno Haible.
49578
49579 2008-05-10  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49582         (is_utf8_encoding): Use a case-insensitive comparison.
49583         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49584         streq.
49585
49586 2008-05-10  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49589         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49590         * lib/unilbrk/ulc-common.h (iconv_string_length,
49591         iconv_string_keeping_offsets): Remove declarations.
49592         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49593         Don't include <iconv.h>, streq.h, xsize.h.
49594         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49595         conversion.
49596         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49597         <iconv.h>, streq.h, xsize.h.
49598         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49599         conversion.
49600         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49601         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49602         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49603         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49604
49605 2008-05-10  Bruno Haible  <bruno@clisp.org>
49606
49607         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49608         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49609
49610         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49611         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49612
49613         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49614         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49615
49616         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49617         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49618
49619         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49620         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49621
49622         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49623         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49624
49625         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49626         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49627
49628         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49629         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49630
49631 2008-05-10  Bruno Haible  <bruno@clisp.org>
49632
49633         Split up 'linebreak' module.
49634         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49635         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49636         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49637         modifications.
49638         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49639         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49640         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49641         lib/linebreak.c.
49642         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49643         lib/linebreak.c.
49644         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49645         lib/linebreak.c.
49646         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49647         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49648         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49649         lib/linebreak.c.
49650         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49651         lib/linebreak.c.
49652         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49653         lib/linebreak.c.
49654         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49655         lib/linebreak.c.
49656         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49657         lib/linebreak.c.
49658         * modules/unilbrk/base: New file.
49659         * modules/unilbrk/tables: New file.
49660         * modules/unilbrk/u8-possible-linebreaks: New file.
49661         * modules/unilbrk/u16-possible-linebreaks: New file.
49662         * modules/unilbrk/u32-possible-linebreaks: New file.
49663         * modules/unilbrk/ulc-common: New file.
49664         * modules/unilbrk/ulc-possible-linebreaks: New file.
49665         * modules/unilbrk/u8-width-linebreaks: New file.
49666         * modules/unilbrk/u16-width-linebreaks: New file.
49667         * modules/unilbrk/u32-width-linebreaks: New file.
49668         * modules/unilbrk/ulc-width-linebreaks: New file.
49669         * lib/linebreak.h: Remove file.
49670         * lib/linebreak.c: Remove file.
49671         * m4/linebreak.m4: Remove file.
49672         * modules/linebreak: Remove file.
49673         * NEWS: Mention the changes.
49674
49675 2008-05-09  Eric Blake  <ebb9@byu.net>
49676
49677         Add xmemdup0.
49678         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49679         implementation.
49680         * lib/xmalloc.c (xmemdup0): New C implementation.
49681
49682 2008-05-08  Bruno Haible  <bruno@clisp.org>
49683
49684         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49685
49686 2008-05-07  Eric Blake  <ebb9@byu.net>
49687
49688         Support cross-compilation of <wctype.h>.
49689         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49690         AC_CACHE_CHECK.
49691
49692 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49693
49694         * build-aux/vc-list-files: Add support for bzr.
49695
49696 2008-05-03  Jim Meyering  <meyering@redhat.com>
49697
49698         avoid failed assertion with tight malloc
49699         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49700
49701 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49702
49703         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49704         are needed from arpa/inet.h.
49705         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49706         Reported by Bruno Haible.
49707
49708 2008-05-02  Jim Meyering  <meyering@redhat.com>
49709
49710         avoid compilation error on FreeBSD 6
49711         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49712
49713 2008-05-01  Jim Meyering  <meyering@redhat.com>
49714
49715         useless-if-before-free: correct --help's exit status description
49716         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49717         for one or more matches, etc.  Reported by Bruno Haible.
49718
49719         vc-list-files: make the stand-alone gnulib test work
49720         * modules/vc-list-files-tests (configure.ac):
49721         Define and AC_SUBST abs_aux_dir.
49722         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49723         $(abs_top_srcdir) to each script and having each of them
49724         duplicate the work of setting PATH, set PATH here, using
49725         the new variable, abs_aux_dir instead.
49726         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49727         * tests/test-vc-list-files-git.sh: Likewise.
49728         Reported by Bruno Haible.
49729
49730 2008-05-01  Bruno Haible  <bruno@clisp.org>
49731
49732         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49733         reallocation. Rename 'done' to 'found_delimiter'.
49734
49735 2008-05-01  Jim Meyering  <meyering@redhat.com>
49736
49737         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49738         * build-aux/vc-list-files: Use `...`, not $(...).
49739
49740 2008-04-30  Jim Meyering  <meyering@redhat.com>
49741
49742         add tests for vc-list-files
49743         * modules/vc-list-files-tests: New module.
49744         * tests/test-vc-list-files-cvs.sh: New file.
49745         * tests/test-vc-list-files-git.sh: New file.
49746
49747         avoid a warning from gcc
49748         * lib/getndelim2.c (IF_LINT): Define.
49749         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49750
49751         vc-list-files: work properly with build-aux/cvsu, too
49752         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49753         to all cvs-based clauses.
49754
49755         vc-list-files: work properly in the CVS+awk case, too
49756         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49757
49758         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49759         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49760         take more than one file argument, so .  Add quotes, just in case $dir
49761         ever contains a shell meta-character.  Prompted by Soren Hansen in
49762         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49763
49764 2008-04-29  Eric Blake  <ebb9@byu.net>
49765
49766         Optimize getndelim2 to use block operations when possible.
49767         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49768         freadseek, and memchr2.
49769         * lib/getndelim2.c (getndelim2): Use them for block reads.
49770
49771 2008-04-29  Bruno Haible  <bruno@clisp.org>
49772
49773         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49774         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49775         * modules/inet_ntop (Depends-on): Add extensions.
49776         * modules/inet_pton (Depends-on): Likewise.
49777         Reported by Simon Josefsson.
49778
49779 2008-04-29  Jim Meyering  <meyering@redhat.com>
49780
49781         When the is more than one match in a block, match all of them.
49782         * build-aux/useless-if-before-free: Iterate through each block
49783         until there are no more matches.
49784
49785         Fix broken useless-if-before-free script.
49786         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49787         the expression to match cast of argument to free-like function.
49788
49789 2008-04-29  Eric Blake  <ebb9@byu.net>
49790
49791         Use new header.
49792         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49793
49794 2008-04-29  Jim Meyering  <meyering@redhat.com>
49795
49796         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49797         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49798         by gnulib to exist and to declare e.g., inet_ntop.
49799         Don't include "inet_ntop.h", now removed.
49800
49801         * m4/arpa_inet_h.m4: Remove trailing blanks.
49802
49803 2008-04-29  Eric Blake  <ebb9@byu.net>
49804
49805         Silence valgrind on safe reads beyond potential array bounds.
49806         * lib/rawmemchr.valgrind: New file.
49807         * lib/strchrnul.valgrind: Likewise.
49808         * modules/rawmemchr (Files): Distribute new file.
49809         * modules/strchrnul (Files): Likewise.
49810         Suggested by Bruno Haible.
49811
49812 2008-04-29  Bruno Haible  <bruno@clisp.org>
49813
49814         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49815         (inet_ntop, inet_pton): Change portability warning's wording.
49816         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49817         Invoke gl_CHECK_NEXT_HEADERS.
49818         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49819         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49820         set ARPA_INET_H.
49821         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49822         * modules/arpa_inet (Description): No longer only for systems that
49823         lack it.
49824         (Depends-on): Add include_next.
49825         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49826         HAVE_ARPA_INET_H.
49827
49828 2008-04-29  Jim Meyering  <meyering@redhat.com>
49829
49830         * modules/mkdir (License): Re-license as LGPLv2+.
49831
49832 2008-04-29  Bruno Haible  <bruno@clisp.org>
49833
49834         * modules/rawmemchr (Maintainer): Set to Eric.
49835         * modules/strchrnul (Maintainer): Likewise.
49836
49837 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49838
49839         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49840         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49841
49842         * modules/arpa_inet (arpa/inet.h): Use them.
49843
49844 2008-04-28  Eric Blake  <ebb9@byu.net>
49845
49846         Test getndelim2.
49847         * modules/getndelim2-tests: New file.
49848         * tests/test-getndelim2.c: Likewise.
49849         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49850         stream.
49851         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49852
49853         * MODULES.html.sh: Document new module.
49854
49855 2008-04-20  Bruno Haible  <bruno@clisp.org>
49856
49857         * lib/c-stack.c (die): Use raise.
49858         * modules/c-stack (Depends-on): Add raise.
49859
49860 2008-04-28  Bruno Haible  <bruno@clisp.org>
49861
49862         Expect rpmatch to be declared.
49863         * lib/yesno.c (rpmatch): Remove declaration.
49864
49865         Declare rpmatch.
49866         * lib/stdlib.in.h (rpmatch): New declaration.
49867         * lib/rpmatch.c: Include <stdlib.h> first.
49868         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49869         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49871         HAVE_RPMATCH.
49872         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49873         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49874         (Include): Set to <stdlib.h>.
49875         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49876         HAVE_RPMATCH.
49877         * NEWS: Document the change.
49878
49879 2008-04-28  Bruno Haible  <bruno@clisp.org>
49880
49881         Change rpmatch to use nl_langinfo when appropriate.
49882         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49883         (N_): New macro.
49884         (localized_pattern): New function/macro.
49885         (try): Remove match, nomatch arguments. Copy the pattern into safe
49886         memory before caching it.
49887         (rpmatch): Use localized_pattern. Add translator comments.
49888         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49889         Suggested by Eric Blake.
49890         * modules/rpmatch (Depends-on): Add stdbool.
49891
49892 2008-04-28  Eric Blake  <ebb9@byu.net>
49893
49894         Add rawmemchr module, matching glibc.
49895         * modules/string (Makefile.am): New indicator.
49896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49897         * lib/string.in.h (rawmemchr): Declare when appropriate.
49898         * modules/rawmemchr: New file.
49899         * m4/rawmemchr.m4: Likewise.
49900         * lib/rawmemchr.c: Likewise.
49901         * modules/rawmemchr-tests: Likewise.
49902         * tests/test-rawmemchr.c: Likewise.
49903         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49904         module.
49905         * modules/strchrnul (Depends-on): Add rawmemchr.
49906         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49907
49908         Whitespace cleanup.
49909         * tests/test-strchrnul.c: Reindent.
49910         * lib/strchrnul.c: Likewise.
49911
49912         Optimize and test strchrnul.
49913         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49914         * modules/strchrnul-tests: New file.
49915         * tests/test-strchrnul.c: Likewise.
49916
49917         Remove intprops dependency.
49918         * modules/memchr (Depends-on): Remove intprops.
49919         * modules/memrchr (Depends-on): Likewise.
49920         * modules/memchr2 (Depends-on): Likewise.
49921         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49922         * lib/memrchr.c (__memrchr): Likewise.
49923         * lib/memrchr2.c (memchr2): Likewise.
49924         Reported by Simon Josefsson.
49925
49926 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49927
49928         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49929         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49930
49931 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49932
49933         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49934
49935         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49936
49937         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49938
49939         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49940         declarations.
49941         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49942
49943         * m4/inet_pton.m4: Don't check for header files.
49944
49945         * m4/inet_ntop.m4: Don't check for header files.
49946
49947 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49948
49949         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49950         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49951         trigger for cygwin).
49952         Reported by Bruno Haible  <bruno@clisp.org>.
49953
49954 2008-04-28  Bruno Haible  <bruno@clisp.org>
49955
49956         * doc/posix-functions/strdup.texi: Mention mingw problem.
49957
49958 2008-04-27  Bruno Haible  <bruno@clisp.org>
49959
49960         * modules/stat-time-tests (Depends-on): Add sleep.
49961         * tests/test-stat-time.c (force_unlink): New function.
49962         (cleanup): Use it.
49963         (test_mtime): Remove the ctime related tests.
49964         (test_ctime): New function, containing the ctime related tests.
49965         (main): Call test_ctime, except on native Windows platforms.
49966
49967 2008-04-27  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/rpmatch.c (rpmatch): Add some comments.
49970         Reported by James Youngman <jay@gnu.org>.
49971
49972 2008-04-27  Bruno Haible  <bruno@clisp.org>
49973
49974         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49975         quiet NaNs.
49976
49977 2008-04-27  Bruno Haible  <bruno@clisp.org>
49978
49979         Make test-yesno.sh work on mingw.
49980         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49981         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49982         (main): Set stdin to binary mode.
49983         * modules/yesno-tests (Depends-on): Add binary-io.
49984
49985 2008-04-27  Bruno Haible  <bruno@clisp.org>
49986
49987         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49988         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49989         argument that lie outside the IEEE 854 domain.
49990         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49991         (gl_ISFINITE): Use it.
49992         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49993
49994 2008-04-27  Bruno Haible  <bruno@clisp.org>
49995
49996         Allow local renaming in config.h.
49997         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49998
49999 2008-04-27  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/memchr.c (__memchr): Change type of 'i'.
50002         * lib/memchr2.c (memchr2): Likewise.
50003
50004 2008-04-26  Eric Blake  <ebb9@byu.net>
50005         and Bruno Haible  <bruno@clisp.org>
50006
50007         Optimize and test memrchr.
50008         * modules/memrchr (Depends-on): Add intprops.
50009         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50010         * modules/memrchr-tests: New file.
50011         * tests/test-memrchr.c: New file.
50012
50013 2008-04-26  Bruno Haible  <bruno@clisp.org>
50014
50015         Add tentative support for DragonFly BSD.
50016         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50017         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50018         fp.
50019         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50020         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50021         * lib/fpurge.c (fpurge): Likewise.
50022         * lib/freadable.c (freaadable): Likewise.
50023         * lib/freadahead.c (freadahead): Likewise.
50024         * lib/freading.c (freading): Likewise.
50025         * lib/freadptr.c (freadptr): Likewise.
50026         * lib/freadseek.c (freadptrinc): Likewise.
50027         * lib/fseeko.c (fseeko): Likewise.
50028         * lib/fseterr.c (fseterr): Likewise.
50029         * lib/fwritable.c (fwritable): Likewise.
50030         * lib/fwriting.c (fwriting): Likewise.
50031
50032 2008-04-26  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/stdio-impl.h: New file.
50035         * lib/fbufmode.c: Include stdio-impl.h.
50036         (fbufmode): Use fp_, remove redundant #defines.
50037         * lib/fflush.c: Include stdio-impl.h.
50038         (clear_ungetc_buffer): Remove redundant #defines.
50039         * lib/fpurge.c: Include stdio-impl.h.
50040         (fpurge): Remove redundant #defines.
50041         * lib/freadable.c: Include stdio-impl.h.
50042         (freadable): Remove redundant #defines.
50043         * lib/freadahead.c: Include stdio-impl.h.
50044         (freadahead): Remove redundant #defines.
50045         * lib/freading.c: Include stdio-impl.h.
50046         (freading): Remove redundant #defines.
50047         * lib/freadptr.c: Include stdio-impl.h.
50048         (freadptr): Remove redundant #defines.
50049         * lib/freadseek.c: Include stdio-impl.h.
50050         (freadptrinc): Remove redundant #defines.
50051         * lib/fseeko.c: Include stdio-impl.h.
50052         (rpl_fseeko): Remove redundant #defines.
50053         * lib/fseterr.c: Include stdio-impl.h.
50054         (fseterr): Remove redundant #defines.
50055         * lib/fwritable.c: Include stdio-impl.h.
50056         (fwritable: Remove redundant #defines.
50057         * lib/fwriting.c: Include stdio-impl.h.
50058         (fwriting): Remove redundant #defines.
50059         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50060         * modules/fflush (Files): Likewise.
50061         * modules/fpurge (Files): Likewise.
50062         * modules/freadable (Files): Likewise.
50063         * modules/freadahead (Files): Likewise.
50064         * modules/freading (Files): Likewise.
50065         * modules/freadptr (Files): Likewise.
50066         * modules/freadseek (Files): Likewise.
50067         * modules/fseeko (Files): Likewise.
50068         * modules/fseterr (Files): Likewise.
50069         * modules/fwritable (Files): Likewise.
50070         * modules/fwriting (Files): Likewise.
50071
50072 2008-04-26  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50075         restore_seek_optimization, update_fpos_cache): New functions, extracted
50076         from rpl_fflush.
50077         (rpl_fflush): Use them.
50078         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50079         (gl_REPLACE_FFLUSH): Use it.
50080
50081 2008-04-26  Bruno Haible  <bruno@clisp.org>
50082
50083         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50084         on Solaris.
50085         * tests/test-xstrtoimax.sh: Likewise.
50086         * tests/test-xstrtoumax.sh: Likewise.
50087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50088
50089 2008-04-26  Bruno Haible  <bruno@clisp.org>
50090
50091         * modules/memchr-tests: New file.
50092         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50093
50094 2008-04-26  Eric Blake  <ebb9@byu.net>
50095             Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/memchr.c: Include intprops.h.
50098         (__memchr): Optimize parallel detection of matching bytes. Rename local
50099         variables. Add explanatory comments.
50100
50101 2008-04-26  Bruno Haible  <bruno@clisp.org>
50102
50103         Fix module 'memchr', broken since 2000-10-28.
50104         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50105
50106 2008-04-26  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50109         comments.
50110
50111 2008-04-25  Eric Blake  <ebb9@byu.net>
50112
50113         Use native fstatat on cygwin 1.7.0.
50114         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50115         first.
50116
50117 2008-04-23  Eric Blake  <ebb9@byu.net>
50118
50119         Improve memchr2 performance.
50120         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50121         NUL bytes.
50122         * modules/memchr2 (Depends-on): Use intprops.h.
50123
50124 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50125
50126         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50127         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50128         <blp@cs.stanford.edu>.
50129
50130 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50131
50132         * lib/arpa_inet.in.h: New file.
50133
50134         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50135         (Makefile.am): Sed in substitute header file.
50136
50137         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50138         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50139
50140         * modules/inet_ntop (configure.ac): Use
50141         gl_ARPA_INET_MODULE_INDICATOR.
50142
50143         * modules/inet_pton (configure.ac): Use
50144         gl_ARPA_INET_MODULE_INDICATOR.
50145
50146 2008-04-22  Jim Meyering  <meyering@redhat.com>
50147
50148         * modules/verify (License): Re-license as LGPLv2+.
50149
50150 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50151
50152         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50153         parameter to void* as per POSIX standard (MinGW uses char*).
50154
50155 2008-04-21  Bruno Haible  <bruno@clisp.org>
50156
50157         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50158         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50159         Define to replacements if REPLACE_ISWCNTRL is 1.
50160         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50161         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50162         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50163         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50164         what it fixes.
50165         * doc/posix-functions/iswalpha.texi: Likewise.
50166         * doc/posix-functions/iswblank.texi: Likewise.
50167         * doc/posix-functions/iswcntrl.texi: Likewise.
50168         * doc/posix-functions/iswdigit.texi: Likewise.
50169         * doc/posix-functions/iswgraph.texi: Likewise.
50170         * doc/posix-functions/iswlower.texi: Likewise.
50171         * doc/posix-functions/iswprint.texi: Likewise.
50172         * doc/posix-functions/iswpunct.texi: Likewise.
50173         * doc/posix-functions/iswspace.texi: Likewise.
50174         * doc/posix-functions/iswupper.texi: Likewise.
50175         * doc/posix-functions/iswxdigit.texi: Likewise.
50176         Reported by Alain Guibert.
50177
50178 2008-04-21  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50181         Patch by Alain Guibert.
50182
50183 2008-04-21  Bruno Haible  <bruno@clisp.org>
50184
50185         Fix test failures on mingw.
50186         * tests/test-xstrtol.c (print_no_progname): New function.
50187         (main): Install it in error_print_progname hook.
50188         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50189         * tests/test-xstrtoimax.sh: Likewise.
50190         * tests/test-xstrtoumax.sh: Likewise.
50191
50192 2008-04-21  Bruno Haible  <bruno@clisp.org>
50193
50194         Fix test failure on mingw.
50195         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50196
50197 2008-04-21  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50200         Actually assign a value.
50201
50202 2008-04-20  Bruno Haible  <bruno@clisp.org>
50203
50204         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50205         take 2.
50206         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50207         'canonicalize-lgpl' module is also used.
50208         * lib/canonicalize-lgpl.c: Undo last change.
50209         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50210
50211 2008-04-20  Bruno Haible  <bruno@clisp.org>
50212
50213         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50214         config.h. Provide _mkdir based fallback for mingw.
50215         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50216         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50217         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50218         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50219         rather than defining mkdir in config.h.
50220         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50221         (gl_SYS_STAT_H_DEFAULTS): New macro.
50222         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50223         HAVE_IO_H any more.
50224         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50225         HAVE_DECL_MKDIR and HAVE_IO_H.
50226
50227 2008-04-20  Bruno Haible  <bruno@clisp.org>
50228
50229         * lib/isapipe.c: Port to native Windows platforms.
50230
50231 2008-04-20  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50234
50235 2008-04-21  Eric Blake  <ebb9@byu.net>
50236
50237         Work around preprocessors that don't handle UINTMAX_MAX.
50238         * lib/memchr2.c (memchr2): Avoid embedded #if.
50239         Reported by Alain Guibert, fix suggested by Bruno Haible.
50240
50241 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50242
50243         * doc/posix-functions/strftime.texi (strftime): Explain better
50244         Windows incompatibility.  Suggested by Micah Cowan
50245         <micah@cowan.name>.
50246
50247 2008-04-20  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50250         unistr/u8-mblen.
50251
50252 2008-04-20  Bruno Haible  <bruno@clisp.org>
50253
50254         Fix test failure on platforms with non-GNU iconv.
50255         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50256         (U_TO_U8): Use it, rather than u16_to_u8.
50257         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50258         units at the end of the input string.
50259         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50260
50261 2008-04-20  Bruno Haible  <bruno@clisp.org>
50262
50263         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50264         when the resulting length is 0.
50265         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50266
50267 2008-04-20  Bruno Haible  <bruno@clisp.org>
50268
50269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50270         works.
50271         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50272
50273 2008-04-20  Bruno Haible  <bruno@clisp.org>
50274
50275         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50276         * modules/tsearch-tests (configure.ac): Test for initstate function.
50277
50278 2008-04-20  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50281         for nlink_t if missing.
50282         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50283
50284 2008-04-19  Bruno Haible  <bruno@clisp.org>
50285
50286         Work around snprintf bug on Linux libc5.
50287         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50288         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50289         gl_SNPRINTF_SIZE1.
50290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50291         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50292         that test failed.
50293         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50294         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50295         * modules/snprintf (Files): Add m4/printf.m4.
50296         * modules/vsnprintf (Files): Likewise.
50297         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50298         * doc/posix-functions/vsnprintf.texi: Likewise.
50299
50300 2008-04-19  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50303         from 0.0058 to less than 10^-7.
50304
50305 2008-04-19  Bruno Haible  <bruno@clisp.org>
50306
50307         Fix rounding when a precision is given.
50308         * lib/vasnprintf.c (is_borderline): New function.
50309         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50310         9...9x.
50311         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50312         %e, %g.
50313         * tests/test-vasprintf-posix.c (test_function): Likewise.
50314         * tests/test-snprintf-posix.h (test_function): Likewise.
50315         * tests/test-sprintf-posix.h (test_function): Likewise.
50316         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50317         * tests/test-printf-posix.h (test_function): Likewise.
50318         * tests/test-printf-posix.output: Update.
50319         Reported by John Darrington <john@darrington.wattle.id.au> via
50320         Ben Pfaff <blp@cs.stanford.edu>.
50321
50322 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50323
50324         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50325         Suggested by Bruno Haible <bruno@clisp.org>.
50326
50327 2008-04-17  Bruno Haible  <bruno@clisp.org>
50328
50329         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50330         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50331         implementation.
50332         Patch by Bruce Merry <bmerry@gmail.com>.
50333
50334 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50335
50336         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50337         doesn't work under Windows.
50338
50339 2008-04-16  Bruno Haible  <bruno@clisp.org>
50340
50341         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50342         New macros.
50343         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50344         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50345         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50346         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50347         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50348         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50349         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50350         macros.
50351         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50352         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50353         Northern Sotho, Uighur.
50354
50355 2008-04-16  Bruno Haible  <bruno@clisp.org>
50356
50357         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50358         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50359         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50360         Reported by Daniel Bergström <daniel@octocode.com>.
50361
50362 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50363             Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50366         function.
50367         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50368         New functions, mostly extracted from gl_locale_name_default.
50369         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50370
50371 2008-04-16  Eric Blake  <ebb9@byu.net>
50372
50373         Adjust strtod detection to catch glibc 2.7 bug.
50374         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50375         Reported by John Gatewood Ham.
50376
50377 2008-04-16  Bruno Haible  <bruno@clisp.org>
50378
50379         Add tentative support for Linux libc5.
50380         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50381         * lib/fpurge.c (fpurge): Likewise.
50382         * lib/freadable.c (freadable): Likewise.
50383         * lib/freadahead.c (freadahead): Likewise.
50384         * lib/freading.c (freading): Likewise.
50385         * lib/freadptr.c (freadptr): Likewise.
50386         * lib/freadseek.c (freadptrinc): Likewise.
50387         * lib/fseeko.c (rpl_fseeko): Likewise.
50388         * lib/fseterr.c (fseterr): Likewise.
50389         * lib/fwritable.c (fwritable): Likewise.
50390         * lib/fwriting.c (fwriting): Likewise.
50391         Reported by Alain Guibert <alguibert+bts@free.fr>.
50392
50393 2008-04-15  Bruno Haible  <bruno@clisp.org>
50394
50395         * modules/mathl (configure.ac): Define module indicator.
50396
50397 2008-04-15  Bruno Haible  <bruno@clisp.org>
50398
50399         * lib/logl.c (logl): Remove unused variables.
50400
50401 2008-04-15  Bruno Haible  <bruno@clisp.org>
50402
50403         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50404         fails.
50405
50406 2008-04-15  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/trim.c (trim2): Fix argument of isspace() macro.
50409
50410 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50411
50412         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50413         to 0.
50414         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50415
50416 2008-04-14  Bruno Haible  <bruno@clisp.org>
50417
50418         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50419         AC_LANG_PROGRAM argument.
50420         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50421         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50423         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50424         * m4/math_h.m4 (gl_MATH_H): Likewise.
50425         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50427         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50428         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50429         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50430         * m4/regex.m4 (gl_REGEX): Likewise.
50431         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50435         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50436         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50439
50440 2008-04-14  Jim Meyering  <meyering@redhat.com>
50441
50442         test-strtod: fix typos: s/abs/fabs/
50443         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50444
50445 2008-04-13  Bruno Haible  <bruno@clisp.org>
50446
50447         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50448         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50449         module is also used and while not building the reloc-wrapper.
50450
50451 2008-04-13  Bruno Haible  <bruno@clisp.org>
50452
50453         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50454
50455 2008-04-13  Bruno Haible  <bruno@clisp.org>
50456
50457         Fix AIX compilation failure introduced on 2008-04-02.
50458         * tests/test-frexp.c (exp): Undefine before redefining.
50459         * tests/test-frexpl.c (exp): Likewise.
50460
50461 2008-04-13  Bruno Haible  <bruno@clisp.org>
50462
50463         Work around a HP-UX stdio bug.
50464         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50465         * tests/test-ftello.c (main): Likewise.
50466         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50467         * doc/posix-functions/ftello.texi: Likewise.
50468
50469 2008-04-13  Bruno Haible  <bruno@clisp.org>
50470
50471         Make test-signbit pass on HP-UX/hppa.
50472         * tests/test-signbit.c (minus_zerol): New variable.
50473         (test_signbitl): Use it.
50474
50475 2008-04-13  Bruno Haible  <bruno@clisp.org>
50476
50477         Make truncl work on OSF/1 4.0.
50478         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50479         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50480         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50482         HAVE_DECL_TRUNCL.
50483         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50484         HAVE_DECL_TRUNCL.
50485         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50486
50487 2008-04-13  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50490
50491 2008-04-13  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50494         expression, so as to avoid HP-UX 11 cc compiler bug.
50495
50496 2008-04-13  Bruno Haible  <bruno@clisp.org>
50497
50498         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50499
50500 2008-04-13  Bruno Haible  <bruno@clisp.org>
50501
50502         * lib/git-merge-changelog.c: Remove empty declaration outside of
50503         functions.
50504
50505 2008-04-13  Bruno Haible  <bruno@clisp.org>
50506
50507         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50508
50509 2008-04-13  Bruno Haible  <bruno@clisp.org>
50510
50511         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50512         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50514         also if it exists but lacks definitions of the SHUT_* macros.
50515         * modules/sys_socket (Description): Update.
50516         Reported by Elbert Pol <e.pol@chello.nl>.
50517
50518 2008-04-13  Bruno Haible  <bruno@clisp.org>
50519
50520         * lib/localcharset.c (OS2): Don't redefine if already defined.
50521         Reported by Elbert Pol <e.pol@chello.nl>.
50522
50523 2008-04-13  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/binary-io.h [__EMX__]: Include <io.h>.
50526         Reported by Elbert Pol <e.pol@chello.nl>.
50527
50528 2008-04-12  Bruno Haible  <bruno@clisp.org>
50529
50530         * lib/fpucw.h: Enable the definitions also for x86_64.
50531         Needed for NetBSD/x86_64.
50532         Reported by Thomas Klausner <tk@giga.or.at>.
50533
50534 2008-04-12  Bruno Haible  <bruno@clisp.org>
50535
50536         * tests/test-strtod.c: Include isnand.h.
50537         (main): Use isnand instead of isnan.
50538         Reported by Jim Meyering.
50539
50540 2008-04-12  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50544
50545 2008-04-12  Jim Meyering  <meyering@redhat.com>
50546
50547         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50548
50549 2008-04-12  Bruno Haible  <bruno@clisp.org>
50550
50551         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50552         Reported by Elbert Pol <e.pol@chello.nl>.
50553
50554 2008-04-12  Eric Blake  <ebb9@byu.net>
50555
50556         Work around Solaris 10 math.h bug.
50557         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50558         (gl_MATH_H_DEFAULTS): Set up default.
50559         * modules/math (Makefile.am): Replace new indicators.
50560         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50561         * tests/test-math.c (main): Test this.
50562         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50563         * doc/posix-headers/math.texi (math.h): Mention bug.
50564         Reported by Nelson H. F. Beebe and Jim Meyering.
50565
50566 2008-04-11  Bruno Haible  <bruno@clisp.org>
50567
50568         Adapt to future versions of Apple GCC.
50569         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50570         Reported by Peter O'Gorman <peter@pogma.com>.
50571
50572 2008-04-11  Bruno Haible  <bruno@clisp.org>
50573
50574         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50575
50576 2008-04-11  Bruno Haible  <bruno@clisp.org>
50577
50578         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50579
50580         * modules/getaddrinfo-tests (Makefile.am): Define
50581         test_getaddrinfo_LDADD.
50582
50583 2008-04-11  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50586         (init): Fix syntax error.
50587         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50588         is declared.
50589
50590 2008-04-11  Bruno Haible  <bruno@clisp.org>
50591
50592         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50593         * modules/glob (Depends-on): Add stdbool.
50594
50595 2008-04-11  Bruno Haible  <bruno@clisp.org>
50596
50597         * lib/trim.c: Include <string.h>.
50598
50599 2008-04-11  Eric Blake  <ebb9@byu.net>
50600
50601         Avoid compile failure on OS/2.
50602         * lib/regex_internal.h (internal_function): Disable optimization
50603         on OS/2 (__EMX__), where it caused compiler error.
50604         Reported by Elbert Pol.
50605
50606 2008-04-11  Bruno Haible  <bruno@clisp.org>
50607
50608         Flush the standard error stream before aborting. Needed on mingw.
50609         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50610         * tests/test-array_list.c (ASSERT): Likewise.
50611         * tests/test-array_oset.c (ASSERT): Likewise.
50612         * tests/test-avltree_list.c (ASSERT): Likewise.
50613         * tests/test-avltree_oset.c (ASSERT): Likewise.
50614         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50615         * tests/test-binary-io.c (ASSERT): Likewise.
50616         * tests/test-byteswap.c (ASSERT): Likewise.
50617         * tests/test-c-ctype.c (ASSERT): Likewise.
50618         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50619         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50620         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50621         * tests/test-c-strstr.c (ASSERT): Likewise.
50622         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50623         * tests/test-canonicalize.c (ASSERT): Likewise.
50624         * tests/test-carray_list.c (ASSERT): Likewise.
50625         * tests/test-ceilf1.c (ASSERT): Likewise.
50626         * tests/test-ceilf2.c (ASSERT): Likewise.
50627         * tests/test-ceill.c (ASSERT): Likewise.
50628         * tests/test-count-one-bits.c (ASSERT): Likewise.
50629         * tests/test-fbufmode.c (ASSERT): Likewise.
50630         * tests/test-fflush2.c (ASSERT): Likewise.
50631         * tests/test-floorf1.c (ASSERT): Likewise.
50632         * tests/test-floorf2.c (ASSERT): Likewise.
50633         * tests/test-floorl.c (ASSERT): Likewise.
50634         * tests/test-fopen.c (ASSERT): Likewise.
50635         * tests/test-fpending.c (ASSERT): Likewise.
50636         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50637         * tests/test-fpurge.c (ASSERT): Likewise.
50638         * tests/test-freadable.c (ASSERT): Likewise.
50639         * tests/test-freadahead.c (ASSERT): Likewise.
50640         * tests/test-freading.c (ASSERT): Likewise.
50641         * tests/test-freadptr.c (ASSERT): Likewise.
50642         * tests/test-freadptr2.c (ASSERT): Likewise.
50643         * tests/test-freadseek.c (ASSERT): Likewise.
50644         * tests/test-freopen.c (ASSERT): Likewise.
50645         * tests/test-frexp.c (ASSERT): Likewise.
50646         * tests/test-frexpl.c (ASSERT): Likewise.
50647         * tests/test-fseek.c (ASSERT): Likewise.
50648         * tests/test-fseeko.c (ASSERT): Likewise.
50649         * tests/test-fstrcmp.c (ASSERT): Likewise.
50650         * tests/test-ftell.c (ASSERT): Likewise.
50651         * tests/test-ftello.c (ASSERT): Likewise.
50652         * tests/test-func.c (ASSERT): Likewise.
50653         * tests/test-fwritable.c (ASSERT): Likewise.
50654         * tests/test-fwriting.c (ASSERT): Likewise.
50655         * tests/test-getdelim.c (ASSERT): Likewise.
50656         * tests/test-getline.c (ASSERT): Likewise.
50657         * tests/test-i-ring.c (ASSERT): Likewise.
50658         * tests/test-iconv-utf.c (ASSERT): Likewise.
50659         * tests/test-iconv.c (ASSERT): Likewise.
50660         * tests/test-isfinite.c (ASSERT): Likewise.
50661         * tests/test-isnand.c (ASSERT): Likewise.
50662         * tests/test-isnanf.c (ASSERT): Likewise.
50663         * tests/test-isnanl.h (ASSERT): Likewise.
50664         * tests/test-ldexpl.c (ASSERT): Likewise.
50665         * tests/test-linked_list.c (ASSERT): Likewise.
50666         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50667         * tests/test-localename.c (ASSERT): Likewise.
50668         * tests/test-lseek.c (ASSERT): Likewise.
50669         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50670         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50671         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50672         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50673         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50674         * tests/test-mbschr.c (ASSERT): Likewise.
50675         * tests/test-mbscspn.c (ASSERT): Likewise.
50676         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50677         * tests/test-mbspbrk.c (ASSERT): Likewise.
50678         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50679         * tests/test-mbsrchr.c (ASSERT): Likewise.
50680         * tests/test-mbsspn.c (ASSERT): Likewise.
50681         * tests/test-mbsstr1.c (ASSERT): Likewise.
50682         * tests/test-mbsstr2.c (ASSERT): Likewise.
50683         * tests/test-mbsstr3.c (ASSERT): Likewise.
50684         * tests/test-memchr2.c (ASSERT): Likewise.
50685         * tests/test-memmem.c (ASSERT): Likewise.
50686         * tests/test-open.c (ASSERT): Likewise.
50687         * tests/test-printf-frexp.c (ASSERT): Likewise.
50688         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50689         * tests/test-printf-posix.c (ASSERT): Likewise.
50690         * tests/test-quotearg.c (ASSERT): Likewise.
50691         * tests/test-rbtree_list.c (ASSERT): Likewise.
50692         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50693         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50694         * tests/test-round1.c (ASSERT): Likewise.
50695         * tests/test-roundf1.c (ASSERT): Likewise.
50696         * tests/test-roundl.c (ASSERT): Likewise.
50697         * tests/test-signbit.c (ASSERT): Likewise.
50698         * tests/test-sleep.c (ASSERT): Likewise.
50699         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50700         * tests/test-snprintf.c (ASSERT): Likewise.
50701         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50702         * tests/test-stat-time.c (ASSERT): Likewise.
50703         * tests/test-strcasestr.c (ASSERT): Likewise.
50704         * tests/test-strerror.c (ASSERT): Likewise.
50705         * tests/test-striconv.c (ASSERT): Likewise.
50706         * tests/test-striconveh.c (ASSERT): Likewise.
50707         * tests/test-striconveha.c (ASSERT): Likewise.
50708         * tests/test-strsignal.c (ASSERT): Likewise.
50709         * tests/test-strstr.c (ASSERT): Likewise.
50710         * tests/test-strtod.c (ASSERT): Likewise.
50711         * tests/test-trunc1.c (ASSERT): Likewise.
50712         * tests/test-trunc2.c (ASSERT): Likewise.
50713         * tests/test-truncf1.c (ASSERT): Likewise.
50714         * tests/test-truncf2.c (ASSERT): Likewise.
50715         * tests/test-truncl.c (ASSERT): Likewise.
50716         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50717         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50718         * tests/test-vasnprintf.c (ASSERT): Likewise.
50719         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50720         * tests/test-vasprintf.c (ASSERT): Likewise.
50721         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50722         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50723         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50724         * tests/test-vsnprintf.c (ASSERT): Likewise.
50725         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50726         * tests/test-wcwidth.c (ASSERT): Likewise.
50727         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50728         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50729         * tests/test-xvasprintf.c (ASSERT): Likewise.
50730         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50731         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50732         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50733         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50734         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50735         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50736         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50737         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50738         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50739         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50740         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50741         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50742         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50743         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50744         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50745         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50746         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50747         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50748         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50749         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50750         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50751         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50752         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50753         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50754         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50755         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50756         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50757         * tests/unictype/test-combining.c (ASSERT): Likewise.
50758         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50759         * tests/unictype/test-digit.c (ASSERT): Likewise.
50760         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50761         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50762         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50763         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50764         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50765         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50766         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50767         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50768         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50769         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50770         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50771         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50772         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50773         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50774         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50775         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50776         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50777         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50778         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50779         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50780         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50781         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50782         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50783         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50784         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50785         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50786         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50787         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50788         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50789         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50790         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50791         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50792         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50793         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50794         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50795         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50796         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50797         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50798         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50799         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50800         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50801         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50802         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50803         Reported by Eric Blake.
50804
50805 2008-04-11  Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/wchar.in.h: Tweak comment.
50808
50809 2008-04-11  Bruno Haible  <bruno@clisp.org>
50810
50811         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50812         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50813         gl_COMMON.
50814         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50815
50816 2008-04-11  Bruno Haible  <bruno@clisp.org>
50817
50818         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50819
50820 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50821
50822         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50823         of attempting to use non-existing /dev/*random.  Based on patch
50824         from Adam Strzelecki <ono@java.pl> in
50825         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50826
50827 2008-04-08  Bruno Haible  <bruno@clisp.org>
50828
50829         Add tentative support for emx+gcc.
50830         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50831         * lib/fpurge.c (fpurge): Likewise.
50832         * lib/freadable.c (freadable): Likewise.
50833         * lib/freadahead.c (freadahead): Likewise.
50834         * lib/freading.c (freading): Likewise.
50835         * lib/freadptr.c (freadptr): Likewise.
50836         * lib/freadseek.c (freadptrinc): Likewise.
50837         * lib/fseeko.c (rpl_fseeko): Likewise.
50838         * lib/fseterr.c (fseterr): Likewise.
50839         * lib/fwritable.c (fwritable): Likewise.
50840         * lib/fwriting.c (fwriting): Likewise.
50841         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50842
50843 2008-04-09  Eric Blake  <ebb9@byu.net>
50844
50845         Avoid some autoconf warnings.
50846         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50847         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50848         * m4/afs.m4 (gl_AFS): Likewise.
50849         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50850         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50852         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50853         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50854         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50855         (AC_CHECK_DECLS_ONCE): Likewise.
50856         Rename file...
50857         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50858         gnulib-tool requires autoconf 2.59 or better.
50859         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50860
50861 2008-04-08  Eric Blake  <ebb9@byu.net>
50862
50863         Use 'git describe --match' if present (added in git 1.5.5).
50864         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50865         if possible.
50866
50867 2008-04-08  Bruno Haible  <bruno@clisp.org>
50868
50869         Add tentative support for OpenServer.
50870         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50871         _ptr, _cnt.
50872         * lib/fpurge.c (fpurge): Likewise.
50873         * lib/freadable.c (freadable): Likewise.
50874         * lib/freadahead.c (freadahead): Likewise.
50875         * lib/freading.c (freading): Likewise.
50876         * lib/freadptr.c (freadptr): Likewise.
50877         * lib/freadseek.c (freadptrinc): Likewise.
50878         * lib/fseeko.c (rpl_fseeko): Likewise.
50879         * lib/fseterr.c (fseterr): Likewise.
50880         * lib/fwritable.c (fwritable): Likewise.
50881         * lib/fwriting.c (fwriting): Likewise.
50882         Reported by Roger Cornelius <rac@tenzing.org> and
50883         Brian K. White <brian@aljex.com>.
50884
50885 2008-04-06  Jim Meyering  <meyering@redhat.com>
50886
50887         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50888
50889 2008-04-06  Bruno Haible  <bruno@clisp.org>
50890
50891         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50892         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50893         * tests/test-printf-posix.sh: Likewise.
50894         * tests/test-vfprintf-posix.sh: Likewise.
50895         * tests/test-vprintf-posix.sh: Likewise.
50896         * tests/test-xprintf-posix.sh: Likewise.
50897
50898 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50899
50900         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50901         hide error from 'ls', needed on OS/2.
50902         Report by Elbert Pol <elbert.pol@gmail.com>.
50903
50904 2008-04-04  Eric Blake  <ebb9@byu.net>
50905
50906         Make test-fseeko.c failures meaningful.
50907         * tests/test-fseeko.c: Print line number on failure.
50908         * tests/test-fseek.c: Likewise.
50909         Reported by Nelson H. F. Beebe.
50910
50911         Improve strtod bug detection check.
50912         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50913         required for Solaris 10.
50914         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50915
50916 2008-04-04  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50919         by m4/setenv.m4.
50920
50921 2008-04-03  Eric Blake  <ebb9@byu.net>
50922
50923         Ensure sane .version contents.
50924         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50925         version string.
50926         * build-aux/git-version-gen: Improve documentation.
50927
50928         Make GNU make output nicer.
50929         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50930         MAKECMDGOALS to enforce message for all command line targets.  Set
50931         srcdir for use in maint.mk.
50932
50933         Another maintainer tweak.
50934         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50935         a target that regenerates version.
50936
50937 2008-04-03  Jim Meyering  <meyering@redhat.com>
50938
50939         vc-list-files: don't cause coreutils "make po-check" failure
50940         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50941
50942 2008-04-03  Eric Blake  <ebb9@byu.net>
50943
50944         Allow VPATH usage of vc-list-files.
50945         * build-aux/vc-list-files (scriptversion): Add timestamp.
50946         (options): Add --help, --version, -C.
50947         (CVS): Support installed cvsu.
50948
50949 2008-04-02  Bruno Haible  <bruno@clisp.org>
50950
50951         Avoid some "statement with no effect" warnings from gcc.
50952         * tests/test-wctype.c (main): Explicitly ignore unused values.
50953         Reported by Jim Meyering.
50954
50955 2008-04-02  Jim Meyering  <meyering@redhat.com>
50956
50957         Avoid some warnings from "gcc -Wshadow".
50958         * tests/test-frexp.c (exp): Define to a different identifier.
50959         * tests/test-frexpl.c (exp): Likewise.
50960
50961 2008-04-03  Jim Meyering  <meyering@redhat.com>
50962
50963         bootstrap: remove dangling *.[ch] symlinks from lib
50964         * build-aux/bootstrap [dangling symlink removal]: Move find's
50965         -depth option to precede all others, to avoid a warning.
50966         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50967
50968 2008-04-02  Bruno Haible  <bruno@clisp.org>
50969
50970         Avoid some warnings from "gcc -Wshadow".
50971         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50972         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50973         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50974         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50975         Reported by Jim Meyering.
50976
50977 2008-04-01  Bruno Haible  <bruno@clisp.org>
50978
50979         Fix test to work on IRIX 6.5 with cc.
50980         * tests/test-math.c (numeric_equal): New function.
50981         (main): Use it.
50982
50983 2008-04-01  Bruno Haible  <bruno@clisp.org>
50984
50985         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50986
50987 2008-04-01  Bruno Haible  <bruno@clisp.org>
50988
50989         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50990         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50991         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50992         (Depends-on): Remove math.
50993
50994         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50995         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50996         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50997         (Depends-on): Remove math.
50998
50999         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51000         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51001         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51002         (Depends-on): Remove math.
51003         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51004         (Depends-on): Remove math.
51005
51006         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51007         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51008         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51009         (Depends-on): Remove math.
51010         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51011         (Depends-on): Remove math.
51012
51013         * tests/test-round1.c: Include nan.h.
51014         (main): Use NaNd instead of NAN.
51015         * modules/round-tests (Files): Add tests/nan.h.
51016
51017         * tests/test-trunc1.c: Include nan.h.
51018         (main): Use NaNd instead of NAN.
51019         * modules/trunc-tests (Files): Add tests/nan.h.
51020
51021         * tests/test-roundf1.c: Include nan.h.
51022         (main): Use NaNf instead of NAN.
51023         * modules/roundf-tests (Files): Add tests/nan.h.
51024
51025         * tests/test-truncf1.c: Include nan.h.
51026         (main): Use NaNf instead of NAN.
51027         * modules/truncf-tests (Files): Add tests/nan.h.
51028
51029         * tests/test-ceilf1.c: Include nan.h.
51030         (main): Use NaNf instead of NAN.
51031         * modules/ceilf-tests (Files): Add tests/nan.h.
51032
51033         * tests/test-floorf1.c: Include nan.h.
51034         (main): Use NaNf instead of NAN.
51035         * modules/floorf-tests (Files): Add tests/nan.h.
51036
51037         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51038         (main): Use NaNf instead of NAN.
51039         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51040
51041         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51042         (main): Use NaNd instead of NAN.
51043         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51044
51045         * tests/test-frexp.c: Include nan.h.
51046         (main): Use NaNd instead of NAN.
51047         * modules/frexp-tests (Files): Add tests/nan.h.
51048
51049         * lib/isnan.c: Don't include <math.h>.
51050         (FUNC): Don't use NAN macro.
51051         * modules/isnand-nolibm (Depends-on): Remove math.
51052         * modules/isnanf-nolibm (Depends-on): Remove math.
51053         * modules/isnanl (Depends-on): Remove math.
51054         * modules/isnanl-nolibm (Depends-on): Remove math.
51055
51056         * tests/nan.h: New file.
51057
51058 2008-04-01  Eric Blake  <ebb9@byu.net>
51059
51060         Fix typos.
51061         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51062         values to be the right type.
51063
51064         For now, cater to gnulib strtod inaccuracies.
51065         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51066         fractional results.  While not as nice from a QoI perspective, it
51067         is a quicker patch than correctly implementing decimal to binary
51068         rounding.
51069
51070 2008-03-31  Eric Blake  <ebb9@byu.net>
51071
51072         Guarantee a definition of NAN.
51073         * lib/math.in.h (NAN): Define if missing.
51074         * tests/test-math.c (main): Test it.
51075         * doc/posix-headers/math.texi (math.h): Document this.
51076         * lib/isnan.c (rpl_isnand): Use it.
51077         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51078         * tests/test-floorf1.c (NaN): Likewise.
51079         * tests/test-frexp.c (NaN): Likewise.
51080         * tests/test-isnand.c (NaN): Likewise.
51081         * tests/test-isnanf.c (NaN): Likewise.
51082         * tests/test-round1.c (NaN): Likewise.
51083         * tests/test-roundf1.c (NaN): Likewise.
51084         * tests/test-snprintf-posix.h (NaN): Likewise.
51085         * tests/test-sprintf-posix.h (NaN): Likewise.
51086         * tests/test-trunc1.c (NaN): Likewise.
51087         * tests/test-truncf1.c (NaN): Likewise.
51088         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51089         * tests/test-vasprintf-posix.c (NaN): Likewise.
51090         * modules/isnand-nolibm (Depends-on): Add math.
51091         * modules/isnanf-nolibm (Depends-on): Likewise.
51092         * modules/isnanl (Depends-on): Likewise.
51093         * modules/isnanl-nolibm (Depends-on): Likewise.
51094         * modules/snprintf-posix-tests (Depends-on): Likewise.
51095         * modules/sprintf-posix-tests (Depends-on): Likewise.
51096         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51097         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51098         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51099         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51100
51101 2008-03-31  Bruno Haible  <bruno@clisp.org>
51102
51103         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51104         * doc/posix-functions/strtod.texi: Likewise.
51105
51106 2008-03-31  Bruno Haible  <bruno@clisp.org>
51107
51108         * tests/test-strtod.c (main): Don't use C99 syntax.
51109
51110 2008-03-31  Bruno Haible  <bruno@clisp.org>
51111
51112         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51113         Reported by Eric Blake.
51114
51115 2008-03-31  Jim Meyering  <meyering@redhat.com>
51116
51117         Don't compare actual signbit return values.
51118         * tests/test-strtod.c (main): Rather, compare only their
51119         zero/non-zero nature.
51120
51121 2008-03-31  Eric Blake  <ebb9@byu.net>
51122
51123         More strtod documentation.
51124         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51125         failures as distinct bugs.
51126
51127 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51130         Problem reported by Erik Benada in
51131         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51132
51133 2008-03-30  Bruno Haible  <bruno@clisp.org>
51134
51135         * tests/test-strtod.c: Add comments about which assertion fails on which
51136         platform.
51137         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51138
51139 2008-03-30  Eric Blake  <ebb9@byu.net>
51140
51141         Test signbit behavior on zeros.
51142         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51143         (test_signbitd, test_signbitl): Likewise.
51144
51145         More strtod touchups.
51146         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51147         sign of negative underflow, for now.  Use .5, not .1.
51148         * doc/posix-functions/strtod.texi (strtod): Mention these
51149         limitations.
51150         Reported by Jim Meyering.
51151
51152 2008-03-30  Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51155         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51156
51157 2008-03-30  Bruno Haible  <bruno@clisp.org>
51158
51159         Avoid failure when attempting to return empty iconv results on some
51160         platforms.
51161         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51162         allocation, don't report ENOMEM when the resulting string is empty.
51163
51164 2008-03-30  Bruno Haible  <bruno@clisp.org>
51165
51166         Fix buffer overrun.
51167         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51168         Don't consider the width for tmp_length. Check count against tmp_length
51169         before doing the padding. Ensure enough allocation during padding.
51170
51171 2008-03-30  Eric Blake  <ebb9@byu.net>
51172
51173         strtod touchups.
51174         * lib/strtod.c (strtod): Avoid compiler warnings.
51175         Reported by Jim Meyering.
51176
51177 2008-03-30  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51180         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51181         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51182         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51183         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51184         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51185         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51186         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51187
51188         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51189         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51190         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51191         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51192         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51193         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51194         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51195         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51196
51197         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51198         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51199         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51200         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51201         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51202         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51203         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51204         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51205
51206         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51207         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51208
51209         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51210         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51211
51212         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51213         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51214
51215         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51217         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51218
51219         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51221         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51222
51223         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51225         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51226
51227         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51228         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51229         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51230
51231         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51232         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51234         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51235         (Depends-on): Add EOVERFLOW.
51236         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51237         (Depends-on): Add EOVERFLOW.
51238         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51239         (Depends-on): Add EOVERFLOW.
51240         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51241         (Depends-on): Add EOVERFLOW.
51242         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51243         (Depends-on): Add EOVERFLOW.
51244         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51245         (Depends-on): Add EOVERFLOW.
51246         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51247         (Depends-on): Add EOVERFLOW.
51248         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51249         (Depends-on): Add EOVERFLOW.
51250
51251         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51253         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51254
51255         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51257         * modules/snprintf (Depends-on): Add EOVERFLOW.
51258
51259         * lib/poll.c (EOVERFLOW): Remove fallback.
51260         * modules/poll (Depends-on): Add EOVERFLOW.
51261
51262         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51263         * modules/getugroups (Depends-on): Add EOVERFLOW.
51264
51265         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51266         * modules/getdelim (Depends-on): Add EOVERFLOW.
51267
51268         * lib/ftell.c (EOVERFLOW): Remove fallback.
51269         * modules/ftell (Depends-on): Add EOVERFLOW.
51270
51271         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51273         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51274
51275         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51276
51277         * modules/EOVERFLOW-tests: New file.
51278         * tests/test-EOVERFLOW.c: New file.
51279
51280         * modules/EOVERFLOW: New file.
51281         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51282
51283 2008-03-30  Bruno Haible  <bruno@clisp.org>
51284
51285         Fix bug introduced on 2007-06-10.
51286         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51287         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51288
51289 2008-03-30  Bruno Haible  <bruno@clisp.org>
51290
51291         Improve freadseek's efficiency after ungetc.
51292         * lib/freadseek.c: Include freadahead.h.
51293         (freadptrinc): New function, extracted from freadseek.
51294         (freadseek): Use it in a loop. Use freadahead to determine the number
51295         of loop iterations.
51296         * modules/freadseek (Depends-on): Add freadahead.
51297         (configure.ac): Require AC_C_INLINE.
51298
51299 2008-03-30  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/freadseek.c (freadseek): Don't ignore the return value of
51302         freadptr.
51303
51304 2008-03-29  Eric Blake  <ebb9@byu.net>
51305
51306         Add hex float support.
51307         * modules/strtod (Depends-on): Add c-ctype.
51308         (Link): Mention POW_LIB.
51309         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51310         whitespace between 'e' and exponent.
51311         * tests/test-strtod.c (main): Enable hex float tests.
51312         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51313         now provides.
51314
51315         Document various strtod bugs, with some fixes.
51316         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51317         "-0x", "inf", "nan", and hex constants.
51318         * doc/posix-functions/atof.texi (atof): Likewise.
51319         * modules/stdlib (Makefile.am): Support strtod.
51320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51321         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51322         detect additional strtod bugs.
51323         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51324         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51325         bool where appropriate.  Parse 'inf' and 'nan'.
51326         * tests/test-strtod.c: New file.
51327         * modules/strtod (Depends-on): Add stdbool, stdlib.
51328         (configure.ac): Turn on module indicator.
51329         * modules/strtod-tests: New module.
51330
51331 2008-03-29  Eric Blake  <ebb9@byu.net>
51332
51333         Fix ftell on mingw.
51334         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51335         * modules/ftell-tests (Depends-on): Add binary-io.
51336         * modules/ftello-tests (Depends-on): Likewise.
51337         * tests/test-ftell.c (main): Enhance test to cover behavior after
51338         ungetc.  Enforce binary mode.
51339         * tests/test-ftello.c (main): Likewise.
51340
51341         Pass test-freadseek on cygwin.
51342         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51343         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51344         ungetc buffer.
51345
51346         * tests/test-fflush2.c (main): Fix typo.
51347
51348 2008-03-29  Bruno Haible  <bruno@clisp.org>
51349
51350         * tests/test-fflush2.c (main): Temporarily disable the contents of
51351         this test.
51352         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51353         Reported by Eric Blake.
51354
51355 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51356
51357         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51358         (GC_SHA224_DIGEST_SIZE): Add.
51359
51360         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51361         (gc_hash_digest_length): Likewise.
51362         (gc_hash_buffer): Likewise.
51363
51364 2008-03-25  Bruno Haible  <bruno@clisp.org>
51365
51366         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51367         detail which gettext release to use.
51368         Reported by Simon Josefsson.
51369
51370 2008-03-26  Jim Meyering  <meyering@redhat.com>
51371
51372         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51373         * modules/gnumakefile (clean-GNUmakefile): Also, use
51374         test ... && ... || : syntax rather than if-then ... fi.
51375
51376         gnumakefile: Don't double-quote-expand $(VPATH) value.
51377         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51378
51379 2008-03-24  Eric Blake  <ebb9@byu.net>
51380
51381         Alter GNUmakefile to install into top directory.
51382         * modules/maintainer-makefile: Split, and add dependency...
51383         * modules/gnumakefile: to this new module.
51384         * build-aux/GNUmakefile: Move...
51385         * top/GNUmakefile: ...here.
51386         * build-aux/maint.mk: Move...
51387         * top/maint.mk: ...here.
51388         * MODULES.html.sh (Support for maintaining...): Document new
51389         module.
51390
51391 2008-03-23  Bruno Haible  <bruno@clisp.org>
51392
51393         * gnulib-tool: New options --vc-files, --no-vc-files.
51394         (func_usage): Document them.
51395         (vc_files): New variable.
51396         (func_import): Consider vc_files.
51397         (func_create_testdir): Set vc_files to empty.
51398         Suggested by Jim Meyering and Karl Berry.
51399
51400 2008-03-23  Bruno Haible  <bruno@clisp.org>
51401
51402         Fix regex compilation error on HP-UX 11.
51403         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51404         * modules/regex (Files): Add m4/mbstate_t.m4.
51405         Reported by Ton Voon <ton.voon@altinity.com>.
51406
51407 2008-03-23  Bruno Haible  <bruno@clisp.org>
51408
51409         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51410
51411 2008-03-23  Eric Blake  <ebb9@byu.net>
51412             Bruno Haible  <bruno@clisp.org>
51413
51414         Install files from top/ in the destination directory.
51415         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51416         augmentation also for the files from top/.
51417         (func_import, func_create_testdir): Rewrite file names:
51418         top/filename -> filename.
51419
51420 2008-03-23  Bruno Haible  <bruno@clisp.org>
51421
51422         Tweak "gnulib --version" output.
51423         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51424
51425 2008-03-23  Bruno Haible  <bruno@clisp.org>
51426
51427         Tweak "gnulib --version" output.
51428         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51429         rather than contents of ChangeLog, when possible.
51430
51431 2008-03-21  Eric Blake  <ebb9@byu.net>
51432
51433         More --version tweaks.
51434         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51435         date of last ChangeLog entry.
51436
51437 2008-03-21  Jim Meyering  <meyering@redhat.com>
51438
51439         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51440
51441 2008-03-20  Eric Blake  <ebb9@byu.net>
51442
51443         VPATH fix.
51444         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51445
51446 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51447
51448         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51449         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51450
51451 2008-03-20  Eric Blake  <ebb9@byu.net>
51452
51453         Sync GNUmakefile with coreutils.
51454         * build-aux/GNUmakefile (have-Makefile): Rename...
51455         (_have-Makefile): ...to this, for namespace consideration.
51456         (GNUmakefile.cfg): Include, if present.
51457         (_autoreconf): Define a default.
51458         (_is-dist-target): New rule for rebuilds to pick up intra-release
51459         version.
51460         (maint-cfg.mk): Rename...
51461         (cfg.mk): ...to this.
51462
51463 2008-03-18  Jim Meyering  <meyering@redhat.com>
51464
51465         New script and module: mktempd
51466         * MODULES.html.sh (maint+release support): Add mktempd.
51467         * build-aux/mktempd: New file.
51468         * modules/mktempd: New file.
51469
51470 2008-03-15  Jim Meyering  <meyering@redhat.com>
51471
51472         Undo last change.
51473         * lib/sha1.c, lib/md5.c: 63 != ~63.
51474         Reported by Andreas Schwab.
51475
51476         sha1.c, md5.c: Hoist a redundant expression.
51477         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51478         "ctx->buflen" only once, before calling *_process_block.
51479         * lib/md5.c (md5_process_bytes): Likewise.
51480
51481 2008-03-14  Eric Blake  <ebb9@byu.net>
51482
51483         Bump copyright year in files generated by gnulib-tool.
51484         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51485         gnulib-tool, rather than hard-coding it.
51486
51487         Fix 'gnulib-tool --version' output to work with git.
51488         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51489         (startup): ...here.
51490         (func_version): Use it to invoke git-version-gen, rather than
51491         relying on CVS keyword expansion.  Modernize wording.
51492         (cvsdatestamp, last_checkin_date, version): Kill unused
51493         variables.
51494
51495 2008-03-12  Jim Meyering  <meyering@redhat.com>
51496
51497         Recognize optional cast of the argument to free.
51498         * build-aux/useless-if-before-free: Update regexps.
51499
51500         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51501
51502 2008-03-11  Bruno Haible  <bruno@clisp.org>
51503
51504         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51505         by a single package.
51506         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51507         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51508         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51509         Reported by Sam Steingold <sds@gnu.org>.
51510
51511 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51512
51513         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51514         repositories.
51515
51516 2008-03-11  Bruno Haible  <bruno@clisp.org>
51517
51518         Avoid conflicts between local macro definitions.
51519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51520         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51521
51522 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51523             Bruno Haible  <bruno@clisp.org>
51524
51525         Make va_copy work with some version of xlc on AIX 5.1.
51526         * lib/stdarg.in.h: New file.
51527         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51528         On AIX, use a <stdarg.h> file substitute.
51529         * modules/stdarg (Files): Add lib/stdarg.in.h.
51530         (Depends-on): Add include_next.
51531         (Makefile.am): Build a stdarg.h substitute if requested.
51532         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51533
51534 2008-03-10  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51537         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51538         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51539
51540 2008-03-10  Bruno Haible  <bruno@clisp.org>
51541
51542         * modules/stdlib (Depends-on): Add include_next, remove
51543         absolute-header.
51544
51545 2008-03-09  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/freadahead.h (freadahead): Document more precisely.
51548         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51549         the sum of both buffer sizes.
51550         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51551         * NEWS: Document the change.
51552
51553 2008-03-09  Bruno Haible  <bruno@clisp.org>
51554
51555         Extend freadptr to return also the buffer size.
51556         * lib/freadptr.h (freadptr): Add sizep argument.
51557         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51558         (freadptr): Add sizep argument. Determine buffer size like freadahead
51559         does.
51560         * tests/test-freadptr.c: Don't include freadahead.h.
51561         (main): Adapt for new calling convention of freadptr.
51562         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51563         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51564         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51565         tests/test-freadptr2.sh.
51566         (Depends): Remove freadahead.
51567         (TESTS): Add test-freadptr2.sh.
51568         (check_PROGRAMS): Add test-freadptr2.
51569
51570 2008-03-09  Bruno Haible  <bruno@clisp.org>
51571
51572         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51573         Report and solution by Simon Josefsson.
51574
51575 2008-03-06  Bruno Haible  <bruno@clisp.org>
51576
51577         Make fflush after ungetc work on BSD platforms.
51578         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51579         * tests/test-fflush2.c: New file.
51580         * tests/test-fflush2.sh: New file.
51581         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51582         tests/test-fflush2.c.
51583         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51584         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51585
51586 2008-03-06  Eric Blake  <ebb9@byu.net>
51587
51588         Likewise for ftello.
51589         * modules/ftello (Dependencies): Add extensions.
51590         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51591
51592 2008-03-06  Bruno Haible  <bruno@clisp.org>
51593
51594         * modules/fseeko (Dependencies): Add extensions.
51595         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51596         Needed on glibc systems.
51597
51598 2008-03-06  Bruno Haible  <bruno@clisp.org>
51599
51600         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51601         email address.
51602         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51603
51604 2008-03-06  Bruno Haible  <bruno@clisp.org>
51605
51606         * users.txt: Add libgnupdf.
51607
51608 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51609
51610         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51611         (Header File Substitutes, Function Substitutes,
51612         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51613         (Build robot for gnulib): Fix typo.
51614
51615 2008-03-06  Bruno Haible  <bruno@clisp.org>
51616
51617         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51618         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51619
51620 2008-03-06  Bruno Haible  <bruno@clisp.org>
51621
51622         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51623         * doc/gnulib.texi: Include it.
51624
51625 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51626
51627         * modules/func (License): Change license to unlimited; there was
51628         no LGPL parts in the module anyway.
51629
51630 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51631
51632         * modules/__func__: Renamed to modules/func.
51633         * modules/__func__-tests: Renamed to modules/func-tests.
51634         * tests/test-__func__.c: Renamed to tests/test-func.c.
51635         * m4/__func__.m4: Renamed to m4/func.m4.
51636         * doc/gnulib.texi (__func__): Section renamed to func.
51637         Suggested by Eric Blake <ebb9@byu.net>.
51638
51639 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51640
51641         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51642         about __func__.  Make example self-contained.  Suggested by Eric
51643         Blake <ebb9@byu.net>.
51644
51645         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51646         Suggested by Eric Blake <ebb9@byu.net>.
51647
51648 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51649
51650         * modules/__func__: New file.
51651         * modules/__func__-tests: New file.
51652         * tests/test-__func__.c: New file.
51653         * m4/__func__.m4: New file.
51654         * doc/gnulib.texi (__func__): Document __func__ module.
51655
51656 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51657
51658         * modules/byteswap (License): Re-license as LGPLv2+.
51659
51660 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51661
51662         * doc/Makefile: Add pdf target.
51663
51664 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51665
51666         * modules/inline (License): Use 'unlimited', since there are only
51667         *.m4 files in this module.
51668
51669 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51670             Bruno Haible  <bruno@clisp.org>
51671
51672         Add support for HP C 7.1 on OpenVMS 8.3.
51673         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51674
51675 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51676
51677         Update VMS specifics.
51678         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51679
51680 2008-03-02  Jim Meyering  <meyering@redhat.com>
51681
51682         Remove the last dependency on the "free" module.
51683         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51684         Reported by Bob Proulx.
51685
51686         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51687
51688         Remove useless "if" tests before free.  Deprecate "free" module.
51689         * doc/posix-functions/free.texi: Mention that this
51690         module is no longer useful.
51691         * modules/free (Notice): Say this module is obsolete.
51692         * modules/readutmp (Depends-on): Remove free.
51693         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51694         * lib/putenv.c (putenv): Likewise.
51695         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51696         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51697         * tests/test-c-strcasestr.c (main): Likewise.
51698         * tests/test-c-strstr.c (main): Likewise.
51699         * tests/test-mbscasestr1.c (main): Likewise.
51700         * tests/test-mbscasestr2.c (main): Likewise.
51701         * tests/test-mbsstr1.c (main): Likewise.
51702         * tests/test-mbsstr2.c (main): Likewise.
51703         * tests/test-memmem.c (main): Likewise.
51704         * tests/test-strcasestr.c (main): Likewise.
51705         * tests/test-striconv.c (main): Likewise.
51706         * tests/test-striconveh.c (main): Likewise.
51707         * tests/test-striconveha.c (main): Likewise.
51708         * tests/test-strstr.c (main): Likewise.
51709
51710         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51711
51712         bootstrap: sync from coreutils again
51713         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51714
51715 2008-03-01  Jim Meyering  <meyering@redhat.com>
51716
51717         bootstrap: sync from coreutils
51718         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51719         also when the target doesn't exist.
51720
51721 2008-03-01  Eric Blake  <ebb9@byu.net>
51722
51723         Fix bugs in last patch.
51724         * lib/memchr2.c (memchr2): Fix typo.
51725         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51726         extension.
51727         Reported by Bruce Korb.
51728
51729         New module 'memchr2'.
51730         * modules/memchr2: New file.
51731         * modules/memchr2-tests: Likewise.
51732         * lib/memchr2.h: Likewise.
51733         * lib/memchr2.c: Likewise, based on memchr.c.
51734         * tests/test-memchr2.c: New test.
51735         * MODULES.html.sh (String handling): Add memchr2.
51736
51737 2008-02-29  Bruno Haible  <bruno@clisp.org>
51738
51739         * modules/freadseek-tests: New file.
51740         * tests/test-freadseek.sh: New file.
51741         * tests/test-freadseek.c: New file.
51742
51743         New module 'freadseek'.
51744         * modules/freadseek: New file.
51745         * lib/freadseek.h: New file.
51746         * lib/freadseek.c: New file.
51747         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51748
51749 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51750
51751         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51752         wydawca.
51753
51754         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51755         program_invocation_name and program_invocation_short_name are
51756         present.
51757
51758 2008-02-28  Bruno Haible  <bruno@clisp.org>
51759
51760         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51761         * tests/test-freadptr.sh: Also test non-seekable stdin.
51762
51763 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51764
51765         * build-aux/bootstrap (source_base, m4_base)
51766         (doc_base, tests_base): New variables.
51767         (gnulib_tool_options): Do not hardcode base directories, use
51768         the above variables instead.
51769
51770 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51771
51772         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51773
51774 2008-02-28  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/freadptr-tests: New file.
51777         * tests/test-freadptr.sh: New file.
51778         * tests/test-freadptr.c: New file.
51779
51780         New module 'freadptr'.
51781         * modules/freadptr: New file.
51782         * lib/freadptr.h: New file.
51783         * lib/freadptr.c: New file.
51784         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51785
51786 2008-02-26  Karl Berry  <karl@freefriends.org>
51787
51788         Sync from Libtool:
51789         * libltdl/argz.c (argz_add, argz_count): New functions.
51790         * libltdl/argz.in.h: Declare them.
51791         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51792
51793 2008-02-22  Bruno Haible  <bruno@clisp.org>
51794
51795         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51796         is a pointer type.  Needed for HP-UX 10.
51797         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51798         * doc/posix-functions/gmtime_r.texi: Likewise.
51799         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51800
51801 2008-02-24  Bruno Haible  <bruno@clisp.org>
51802
51803         * modules/environ-tests: New file.
51804         * tests/test-environ.c: New file.
51805
51806         New module 'environ'.
51807         * modules/environ: New file.
51808         * lib/unistd.in.h (environ): New declaration.
51809         * m4/environ.m4: New file.
51810         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51811         after use.
51812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51813         HAVE_DECL_ENVIRON.
51814         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51815         HAVE_DECL_ENVIRON.
51816         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51817         wrong claim that 'environ' is missing on some systems.
51818         * modules/execute (Depends-on): Add environ.
51819         * lib/execute.c (environ): Remove fallback declaration.
51820         * modules/pipe (Depends-on): Add environ.
51821         * lib/pipe.c (environ): Remove fallback declaration.
51822         * modules/setenv (Depends-on): Add environ.
51823         * lib/setenv.c (environ): Remove fallback declaration.
51824         * modules/unsetenv (Depends-on): Add environ.
51825         * lib/unsetenv.c (environ): Remove fallback declaration.
51826         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51827         m4/environ.m4.
51828         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51829         (gl_PREREQ_UNSETENV): Likewise.
51830
51831 2008-02-24  Bruno Haible  <bruno@clisp.org>
51832
51833         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51834
51835 2008-02-20  Bob Proulx  <bob@proulx.com>
51836
51837         Enable use of older two part flavor 'git describe'.
51838         * build-aux/git-version-gen: If using the older two part flavor of
51839         git version then recreate the third part now present in the
51840         newer three part flavor of git describe.
51841
51842 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51843
51844         * lib/fts.c (fts_build): Typo correction to comment.
51845
51846 2008-02-17  Bruno Haible  <bruno@clisp.org>
51847
51848         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51849         generating no-op conflicts.
51850
51851 2008-02-17  Bruno Haible  <bruno@clisp.org>
51852
51853         Speed up by 10%.
51854         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51855         result_entries, rather than an index-based loop.
51856
51857 2008-02-17  Bruno Haible  <bruno@clisp.org>
51858
51859         Speed up by 25%.
51860         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51861         'hashcode_cached'.
51862         (entry_create): New function.
51863         (entry_hashcode): Use the cached hashcode if possible.
51864         (read_changelog_file, try_split_merged_entry): Use entry_create.
51865
51866 2008-02-17  Bruno Haible  <bruno@clisp.org>
51867
51868         Speed up from O(n^2) to O(n) for long ChangeLog files.
51869         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51870         (read_changelog_file): Change implementation of entries_reversed list
51871         to rbtreehash.
51872         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51873
51874 2008-02-17  Bruno Haible  <bruno@clisp.org>
51875
51876         New option --split-merged-entry.
51877         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51878         (find_paragraph_end, try_split_merged_entry): New functions.
51879         (long_options): Add option --split-merged-entry.
51880         (usage): Document option --split-merged-entry.
51881         (main): Implement option --split-merged-entry.
51882         Reported by Eric Blake.
51883
51884 2008-02-17  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/git-merge-changelog.c: Include c-strstr.h.
51887         (main): Support the "git pull --rebase" situation.
51888         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51889         Reported by Eric Blake.
51890
51891 2008-02-16  Eric Blake  <ebb9@byu.net>
51892
51893         Avoid doubling \ in common case of "c-maybe" quoting style.
51894         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51895         eliding outer quotes.
51896         * lib/quotearg.h: Document this.
51897         * tests/test-quotearg.c (result_strings, inputs, results_g)
51898         (flag_results, locale_results): Test it by adding a new string to
51899         each test group.
51900         (compare_strings): Test new string.
51901
51902 2008-02-13  Eric Blake  <ebb9@byu.net>
51903
51904         Avoid trigraph quoting in default output.
51905         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51906         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51907         unless explicitly requested.
51908         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51909
51910 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51911
51912         Don't rely on signed integer overflowing to negative value.
51913         * lib/getugroups.c (getugroups): Include <limits.h>.
51914         Instead, compare against INT_MAX, and increment only if the test passes.
51915
51916 2008-02-13  Jim Meyering  <meyering@redhat.com>
51917         and Eric Blake  <ebb9@byu.net>
51918
51919         Avoid shadowing warning and compile errors on Linux.
51920         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51921         forwarding macros on Linux.
51922         (dcgettext): Define a stub, for Linux.
51923         (results_g, main): Avoid warnings.
51924
51925 2008-02-12  Eric Blake  <ebb9@byu.net>
51926
51927         Silence warning in last patch.
51928         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51929
51930         Quotearg part 4: add tests, fix c-maybe colon quoting.
51931         * lib/quotearg.h: Improve documentation.
51932         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51933         escapes when adding outer quotes.  When quoting trigraphs, use
51934         valid C notation.  When quoting NUL, omit extra characters if next
51935         character is not digit.  Alter prototype.
51936         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51937         callers.
51938         * modules/quotearg-tests: New module.
51939         * tests/test-quotearg.c: New test.
51940
51941 2008-02-07  Eric Blake  <ebb9@byu.net>
51942
51943         Quotearg part 3: add flag to control outer quote elision.
51944         * lib/quotearg.h (c_maybe_quoting_style): New style.
51945         (enum quoting_flags): Better documentation of flags.
51946         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51947         c-maybe style.
51948         (quotearg_buffer_restyled): Handle new flag to elide outer
51949         quotes.
51950
51951         Quotearg part 2: add flag that can control NUL elision.
51952         * lib/quotearg.h (set_quoting_flags): New prototype.
51953         * lib/quotearg.c (struct quoting_options): Add flag field.
51954         (set_quoting_flags): New function.
51955         (quotearg_buffer_restyled): Add flags parameter.
51956         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51957         (quotearg_n_options): Set the flag, since length cannot be
51958         returned.
51959         (quoting_options_from_style): Default flags correctly.
51960
51961         Quotearg part 1: more wrappers, restore quotearg_char state.
51962         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51963         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51964         (quotearg_colon_mem): New wrappers.
51965         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51966         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51967         functions.
51968         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51969         (quotearg_colon_mem): New functions.
51970
51971 2008-02-11  Bruno Haible  <bruno@clisp.org>
51972
51973         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51974         library in the current directory: it does not work with parallel make.
51975         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51976
51977 2008-02-11  Bruno Haible  <bruno@clisp.org>
51978
51979         * .gitattributes: New file.
51980
51981 2008-02-11  Jim Meyering  <meyering@redhat.com>
51982
51983         useless-if-before-free: Fix reversed exit values.
51984         * build-aux/useless-if-before-free: Use correct values
51985         for EXIT_MATCH and EXIT_NO_MATCH.
51986
51987         * build-aux/useless-if-before-free: Close stdout carefully.
51988
51989 2008-02-10  Bruno Haible  <bruno@clisp.org>
51990
51991         New module 'git-merge-changelog'.
51992         * modules/git-merge-changelog: New file.
51993         * lib/git-merge-changelog.c: New file.
51994
51995 2008-02-10  Jim Meyering  <meyering@redhat.com>
51996
51997         useless-if-before-free: New option: --list (-l).
51998
51999         useless-if-before-free: Don't exit immediately upon open failure.
52000         * build-aux/useless-if-before-free: Exit 2 for errors.
52001         Upon failure to open a file, don't exit immediately.
52002         Rather, just warn and continue with any remaining files.
52003
52004 2008-02-10  Bruno Haible  <bruno@clisp.org>
52005
52006         New abstract list operation 'node_set_value'.
52007         * lib/gl_list.h (gl_list_node_set_value): New function.
52008         (struct gl_list_implementation): New field node_set_value.
52009         * lib/gl_list.c (gl_list_node_set_value): New function.
52010         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52011         (gl_array_list_implementation): Update.
52012         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52013         (gl_carray_list_implementation): Update.
52014         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52015         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52016         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52017         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52018         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52019         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52020         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52021         Update.
52022         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52023         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52024         (gl_sublist_list_implementation): Update.
52025
52026 2008-02-10  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52029         Needed when ELEMENT is #defined to 'some_type *'.
52030
52031 2008-02-10  Jim Meyering  <meyering@redhat.com>
52032
52033         New script and module: useless-if-before-free
52034         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52035         * build-aux/useless-if-before-free: New file.
52036         * modules/useless-if-before-free: New file.
52037
52038         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52039
52040         xstrtol_error: Fix typo.
52041         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52042         s/exit_failure/exit_status/.
52043
52044 2008-02-09  Jim Meyering  <meyering@redhat.com>
52045
52046         New script and module: gitlog-to-changelog
52047         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52048         * modules/gitlog-to-changelog: New file.
52049         * build-aux/gitlog-to-changelog: New file.
52050
52051 2008-02-08  Jim Meyering  <meyering@redhat.com>
52052
52053         Avoid two "parameter unused" warnings.
52054         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52055         Mark "st" as used.
52056
52057         Use "git COMMAND", not "git-COMMAND".
52058         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52059         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52060         * build-aux/git-version-gen: Use "git status", not "git-status".
52061
52062 2008-02-07  Bruno Haible  <bruno@clisp.org>
52063
52064         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52065         Avoids a crash on Windows Vista.
52066         Reported by Adam Strzelecki <ono@java.pl> via
52067         Simon Josefsson <simon@josefsson.org>.
52068
52069 2008-02-06  Bruno Haible  <bruno@clisp.org>
52070
52071         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52072         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52073         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52075         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52077         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52078         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52079         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52085         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52086         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52087         left-adjust flag.
52088         * tests/test-snprintf-posix.h (test_function): Likewise.
52089         * tests/test-sprintf-posix.h (test_function): Likewise.
52090         * tests/test-vasprintf-posix.c (test_function): Likewise.
52091         * doc/posix-functions/fprintf.texi: Update.
52092         * doc/posix-functions/printf.texi: Update.
52093         * doc/posix-functions/snprintf.texi: Update.
52094         * doc/posix-functions/sprintf.texi: Update.
52095         * doc/posix-functions/vfprintf.texi: Update.
52096         * doc/posix-functions/vprintf.texi: Update.
52097         * doc/posix-functions/vsnprintf.texi: Update.
52098         * doc/posix-functions/vsprintf.texi: Update.
52099         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52100
52101 2008-02-06  Bruno Haible  <bruno@clisp.org>
52102
52103         Fix bug introduced on 2008-01-26.
52104         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52105
52106 2008-02-06  Bruno Haible  <bruno@clisp.org>
52107
52108         Fix bug introduced on 2007-06-10.
52109         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52110         !NEED_PRINTF_FLAG_ZERO.
52111
52112 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52113
52114         getloadavg: use libperfstat on AIX5
52115         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52116
52117 2008-02-03  Bruno Haible  <bruno@clisp.org>
52118
52119         * lib/diffseq.h: Add comments about required #includes.
52120         Reported by Michael Biggs <gnulib@doubleplum.net>.
52121
52122 2008-02-01  Bruno Haible  <bruno@clisp.org>
52123
52124         * users.txt: Add gnuit.
52125
52126 2008-01-31  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/md4.c (set_uint32): Mark as inline.
52129         * lib/md5.c (set_uint32): Likewise.
52130         * lib/sha1.c (set_uint32): Likewise.
52131         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52132         * m4/md5.m4 (gl_MD5): Likewise.
52133         * m4/sha1.m4 (gl_SHA1): Likewise.
52134
52135 2008-01-31  Jim Meyering  <meyering@redhat.com>
52136
52137         Use "sizeof VAR", rather than a literal "4".
52138         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52139         * lib/md4.c (md4_read_ctx): Likewise.
52140         * lib/sha1.c (sha1_read_ctx): Likewise.
52141
52142 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52143
52144         * tests/test-sha1.c: New file, based on test-md5.c.
52145
52146         * modules/crypto/sha1-tests: New file.
52147
52148 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52149
52150         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52151
52152 2008-01-31  Jim Meyering  <meyering@redhat.com>
52153
52154         Prefer "sizeof v" over the equivalent "4".
52155         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52156         * lib/md5.c (set_uint32): Likewise.
52157         * lib/sha1.c (set_uint32): Likewise.
52158
52159 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52160
52161         * lib/sha1.c (set_uint32): Mark function as static.
52162
52163 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52164
52165         md2: clarify comments to say that alignment is not required.
52166         * lib/md2.h: Remove warning about alignment in comment.
52167         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52168         never been required.
52169
52170 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52171
52172         md4: adapt alignment constraint fix from sha1.
52173         * lib/md4.c (set_uint32): New function, from sha1.c
52174         (md4_read_ctx): Use it.
52175         (md4_finish_ctx): Doc fix.
52176         * lib/md4.h: Doc fix.
52177
52178 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52179
52180         md5: adapt alignment constraint fix from sha1.
52181         * lib/md5.c (set_uint32): New function, from sha1.c
52182         (md5_read_ctx): Use it.
52183         (md5_finish_ctx): Doc fix.
52184         * lib/md5.h: Doc fix.
52185
52186 2008-01-30  Peter Palfrader  <weasel@debian.org>
52187
52188         sha1: remove the result buffer alignment constraint
52189         * lib/sha1.c (set_uint32): New function.
52190         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52191         constraint.
52192         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52193         * lib/sha1.h: Likewise.
52194
52195 2008-01-30  Andreas Schwab  <schwab@suse.de>
52196             Bruno Haible  <bruno@clisp.org>
52197
52198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52199         correct definition of LDBL_MIN_EXP.
52200
52201 2008-01-30  Karl Berry  <karl@gnu.org>
52202
52203         * config/srclist-update: try to preserve x bit on updates.
52204         * config/srclistvars.sh: update for karl.
52205
52206 2008-01-29  Jim Meyering  <meyering@redhat.com>
52207
52208         vasnprintf.c: Avoid warning about unused label
52209         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52210         "overflow" label definition and associated code with the
52211         same cpp condition that guards the sole use of that label.
52212
52213 2008-01-26  Bruno Haible  <bruno@clisp.org>
52214
52215         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52216         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52217         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52218         * lib/isnanl-nolibm.h (isnanl): Likewise.
52219         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52220
52221 2008-01-26  Bruno Haible  <bruno@clisp.org>
52222
52223         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52224         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52225
52226 2008-01-26  Bruno Haible  <bruno@clisp.org>
52227
52228         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52229         GCC >= 4.0 built-in.
52230         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52231
52232 2008-01-26  Bruno Haible  <bruno@clisp.org>
52233
52234         Rename isnan, applicable to 'double' only, to isnand.
52235         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52236         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52237         (configure.ac): Update.
52238         (Include): Replace "isnan.h" with "isnand.h".
52239         * m4/isnand.m4: Renamed from m4/isnan.m4.
52240         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52241         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52242         instead of isnan.c.
52243         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52244         instead of HAVE_ISNAN_IN_LIBC.
52245         (isnand): Renamed from isnan.
52246         * lib/isnand.c: New file.
52247         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52248         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52249         (Makefile.am): Update.
52250         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52251         Include isnand.h instead of isnan.h.
52252         (main): Test isnand instead of isnan.
52253         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52254         isnan-nolibm.
52255         * modules/frexp (Depends-on): Likewise.
52256         * modules/frexp-tests (Depends-on): Likewise.
52257         * modules/frexp-nolibm (Depends-on): Likewise.
52258         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52259         * modules/isfinite (Depends-on): Likewise.
52260         * modules/round-tests (Depends-on): Likewise.
52261         * modules/signbit (Depends-on): Likewise.
52262         * modules/signbit-tests (Depends-on): Likewise.
52263         * modules/snprintf-posix (Depends-on): Likewise.
52264         * modules/sprintf-posix (Depends-on): Likewise.
52265         * modules/trunc-tests (Depends-on): Likewise.
52266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52267         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52268         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52269         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52270         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52271         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52272         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52273         * modules/vasnprintf-posix (Depends-on): Likewise.
52274         * modules/vasprintf-posix (Depends-on): Likewise.
52275         * modules/vfprintf-posix (Depends-on): Likewise.
52276         * modules/vsnprintf-posix (Depends-on): Likewise.
52277         * modules/vsprintf-posix (Depends-on): Likewise.
52278         * lib/frexp.c: Include isnand.h instead of isnan.h.
52279         (ISNAN): Set to isnand instead of isnan.
52280         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52281         (gl_isfinited): Use isnand instead of isnan.
52282         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52283         (gl_signbitd): Use isnand instead of isnan.
52284         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52285         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52286         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52287         (main): Use isnand instead of isnan.
52288         * tests/test-round1.c: Include isnand.h.
52289         (main): Use isnand instead of isnan.
52290         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52291         (ISNAN): Set to isnand instead of isnan.
52292         * tests/test-trunc1.c: Include isnand.h.
52293         (main): Use isnand instead of isnan.
52294         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52295         (equal): Use isnand instead of isnan.
52296         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52297         isnand-nolibm.
52298         * NEWS: Mention the change.
52299
52300 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52301             Bruno Haible  <bruno@clisp.org>
52302
52303         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52304         the GCC builtins for signbits are present and set
52305         REPLACE_SIGNBIT_USING_GCC if so.
52306         * lib/math.in.h (signbit): Define using GCC builtins if
52307         REPLACE_SIGNBIT_USING_GCC is set.
52308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52309         REPLACE_SIGNBIT_USING_GCC.
52310         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52311
52312 2008-01-25  Jim Meyering  <meyering@redhat.com>
52313
52314         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52315         * lib/poll.c: Include <config.h>, not "config.h".
52316         * tests/test-getaddrinfo.c: Likewise.
52317
52318 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52319
52320         * modules/sockets-tests: New file.
52321
52322 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52323
52324         * modules/sockets: New module, can be used to call WSA_Startup and
52325         WSA_Cleanup when needed.
52326
52327         * lib/sockets.h, lib/sockets.c: New files.
52328
52329         * m4/sockets.m4: New file.
52330
52331         * tests/test-sockets.c: New file.
52332
52333 2008-01-19  Bruno Haible  <bruno@clisp.org>
52334
52335         * doc/posix-headers: Renamed from doc/headers.
52336         * doc/posix-functions: Renamed from doc/functions.
52337         * doc/gnulib.texi: Update.
52338
52339 2008-01-19  Bruno Haible  <bruno@clisp.org>
52340
52341         * doc/glibc-functions/strcasestr.texi: Include contents of
52342         doc/functions/strcasestr.texi, fixing the list of platforms.
52343         * doc/functions/strcasestr.texi: Remove file.
52344
52345 2008-01-19  Bruno Haible  <bruno@clisp.org>
52346
52347         * doc/glibc-functions/memmem.texi: Include contents of
52348         doc/functions/memmem.texi.
52349         * doc/functions/memmem.texi: Remove file.
52350
52351 2008-01-18  Bruno Haible  <bruno@clisp.org>
52352
52353         * doc/glibc-functions/*.texi: New files.
52354         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52355         to use the new files.
52356
52357 2008-01-17  Bruno Haible  <bruno@clisp.org>
52358
52359         * tests/test-gethostname.c (main): Fix printf statement.
52360
52361 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52362
52363         * modules/gethostname-tests: New file.
52364
52365         * tests/test-gethostname.c: New file.
52366
52367 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52368
52369         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52370         used by the UNAME case.  Reported by Bruno Haible
52371         <bruno@clisp.org>.
52372
52373 2008-01-17  Eric Blake  <ebb9@byu.net>
52374
52375         Convert c-strcasestr to be more efficient.
52376         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52377         (Depends-on): Add c-strcase, remove malloca, strnlen.
52378         * tests/test-c-strcasestr.c (main): Enhance test.
52379         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52380
52381 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52382
52383         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52384         Use it in creating po/Makevars.
52385
52386 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52387
52388         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52389         Applications that requires it should initialize libgcrypt
52390         manually.
52391
52392 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52393
52394         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52395
52396 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52397
52398         Fix problem with getdate on mingw32 reported by Simon Josefsson
52399         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52400         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52401         tzname", when deciding whether to declare tzname.
52402         * lib/strftime.c (tzname): Likewise.
52403
52404 2008-01-15  Bruno Haible  <bruno@clisp.org>
52405
52406         Work around a MacOS X 10.5 bug in frexpl().
52407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52408         * doc/functions/frexpl.texi: Document the bug.
52409         Reported by Elias Pipping <pipping@gentoo.org>.
52410
52411 2008-01-14  Eric Blake  <ebb9@byu.net>
52412
52413         Touch up previous patch.
52414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52415         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52416
52417         Convert strcasestr module to use Two-Way algorithm.
52418         * modules/strcasestr-simple: New module, based on the old
52419         strcasestr, but with Two-Way rather than KMP.
52420         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52421         * lib/string.in.h (rpl_strcasestr): Declare.
52422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52423         performance.
52424         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52425         * modules/string (Makefile.am): Support strcasestr.
52426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52427         * modules/strcasestr-tests (Depends-on): Check for alarm.
52428         * tests/test-strcasestr.c: Augment test.
52429         * lib/str-two-way.h: Clean up stray macro.
52430         * NEWS: Document new module.
52431         * MODULES.html.sh (string handling): Likewise.
52432         * doc/functions/strcasestr.texi: New file.
52433         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52434         here, since it is not a POSIX function.
52435
52436 2008-01-14  Colin Watson  <cjwatson@debian.org>
52437             Bruno Haible  <bruno@clisp.org>
52438
52439         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52440         works fine; if not, set REPLACE_STRSIGNAL.
52441         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52443         REPLACE_STRSIGNAL.
52444         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52445         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52446         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52447
52448 2008-01-14  Bruno Haible  <bruno@clisp.org>
52449
52450         * modules/strsignal (Include): Change to <string.h>.
52451
52452 2008-01-14  Colin Watson  <cjwatson@debian.org>
52453
52454         * modules/argp (Notice): Add a notice recommending to change
52455         XGETTEXT_OPTIONS.
52456         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52457
52458 2008-01-13  Colin Watson  <cjwatson@debian.org>
52459
52460         * modules/strsignal-tests: New file.
52461         * tests/test-strsignal.c: New file.
52462
52463         * lib/strsignal.c: New file, from glibc with modifications.
52464         * lib/siglist.h: New file, from glibc with modifications.
52465         * lib/string.in.h (strsignal): New declaration.
52466         * m4/strsignal.m4: New file.
52467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52468         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52469         * modules/strsignal: New file.
52470         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52471         HAVE_DECL_STRSIGNAL.
52472
52473 2008-01-13  Bruno Haible  <bruno@clisp.org>
52474
52475         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52476         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52477         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52478         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52479
52480 2008-01-13  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52483         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52484         * lib/argp.h (__attribute__): Likewise.
52485         * lib/c-stack.c (__attribute__): Likewise.
52486         * lib/error.h (__attribute__): Likewise.
52487         * lib/fts.c (__attribute__): Likewise.
52488         * lib/openat.h (__attribute__): Likewise.
52489         * lib/stdio.in.h (__attribute__): Likewise.
52490         * lib/string.in.h (__attribute__): Likewise.
52491         * lib/utimens.c (__attribute__): Likewise.
52492         * lib/vasnprintf.h (__attribute__): Likewise.
52493         * lib/xalloc.h (__attribute__): Likewise.
52494         * lib/xprintf.h (__attribute__): Likewise.
52495         * lib/xstrtol.h (__attribute__): Likewise.
52496         * lib/xvasprintf.h (__attribute__): Likewise.
52497
52498 2008-01-12  Bruno Haible  <bruno@clisp.org>
52499
52500         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52501         * doc/glibc-headers/a.out.texi: New file.
52502         * doc/glibc-headers/aliases.texi: New file.
52503         * doc/glibc-headers/alloca.texi: New file.
52504         * doc/glibc-headers/ar.texi: New file.
52505         * doc/glibc-headers/argp.texi: New file.
52506         * doc/glibc-headers/argz.texi: New file.
52507         * doc/glibc-headers/byteswap.texi: New file.
52508         * doc/glibc-headers/crypt.texi: New file.
52509         * doc/glibc-headers/endian.texi: New file.
52510         * doc/glibc-headers/envz.texi: New file.
52511         * doc/glibc-headers/err.texi: New file.
52512         * doc/glibc-headers/error.texi: New file.
52513         * doc/glibc-headers/execinfo.texi: New file.
52514         * doc/glibc-headers/fpu_control.texi: New file.
52515         * doc/glibc-headers/fstab.texi: New file.
52516         * doc/glibc-headers/fts.texi: New file.
52517         * doc/glibc-headers/getopt.texi: New file.
52518         * doc/glibc-headers/ieee754.texi: New file.
52519         * doc/glibc-headers/ifaddrs.texi: New file.
52520         * doc/glibc-headers/libintl.texi: New file.
52521         * doc/glibc-headers/mcheck.texi: New file.
52522         * doc/glibc-headers/mntent.texi: New file.
52523         * doc/glibc-headers/obstack.texi: New file.
52524         * doc/glibc-headers/paths.texi: New file.
52525         * doc/glibc-headers/printf.texi: New file.
52526         * doc/glibc-headers/pty.texi: New file.
52527         * doc/glibc-headers/resolv.texi: New file.
52528         * doc/glibc-headers/shadow.texi: New file.
52529         * doc/glibc-headers/sysexits.texi: New file.
52530         * doc/glibc-headers/ttyent.texi: New file.
52531
52532 2008-01-12  Jim Meyering  <meyering@redhat.com>
52533
52534         announce-gen: emit Gnulib's git-based version string.
52535         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52536         New option --gnulib-version=V, where V is expected to be
52537         the output of running git describe in the gnulib directory.
52538         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52539         not useful, and plan to stop publishing an xdelta file with each
52540         coreutils release.
52541
52542         * build-aux/announce-gen: Also check for lzma-compressed files.
52543
52544 2008-01-11  Bruno Haible  <bruno@clisp.org>
52545
52546         * tests/test-memmem.c (main): Increase maximum allowed time.
52547         * tests/test-strstr.c (main): Likewise.
52548
52549 2008-01-11  Bruno Haible  <bruno@clisp.org>
52550
52551         * doc/functions/memmem.texi: Add more precisions about platforms.
52552         * doc/functions/strstr.texi: Likewise.
52553
52554 2008-01-10  Eric Blake  <ebb9@byu.net>
52555
52556         * m4/strstr.m4: Delete cruft from copy-n-paste.
52557         Reported by Bruno Haible.
52558
52559 2008-01-10  Bruno Haible  <bruno@clisp.org>
52560
52561         Make c-strstr rely on strstr.
52562         * lib/c-strstr.c: Don't include str-kmp.h.
52563         (c_strstr): Define in terms of strstr.
52564         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52565         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52566
52567 2008-01-10  Bruno Haible  <bruno@clisp.org>
52568
52569         * doc/gnulib.texi (String Functions in C Locale): New section.
52570         * doc/c-ctype.texi: New file.
52571         * doc/c-strcase.texi: New file.
52572         * doc/c-strcaseeq.texi: New file.
52573         * doc/c-strcasestr.texi: New file.
52574         * doc/c-strstr.texi: New file.
52575         * doc/c-strtod.texi: New file.
52576         * doc/c-strtold.texi: New file.
52577
52578 2008-01-10  Eric Blake  <ebb9@byu.net>
52579
52580         * lib/relocatable.h: Fix a comment.
52581
52582 2008-01-10  Eric Blake  <ebb9@byu.net>
52583
52584         Share two-way algorithm.
52585         * lib/str-two-way.h: New file, merged from...
52586         * lib/memmem.c: ...here...
52587         * lib/strstr.c: ...and here.
52588         * modules/memmem (Files): Use it.
52589         * modules/strstr (Files): Likewise.
52590
52591         Avoid quadratic strstr implementations.
52592         * lib/strstr.c: New file.
52593         * m4/strstr.m4: Likewise.
52594         * modules/strstr: Likewise.
52595         * modules/strstr-tests: Likewise.
52596         * tests/test-strstr.c: Likewise.
52597         * lib/string.in.h (rpl_strstr): Declare.
52598         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52600         * modules/string (Makefile.am): Likewise.
52601         * MODULES.html.sh (string handling): Mention new module.
52602         * doc/functions/strstr.texi (strstr): Document the bug.
52603
52604 2008-01-10  Bruno Haible  <bruno@clisp.org>
52605
52606         * lib/relocatable.h (relocate): State whether result is freshly
52607         allocated or not.
52608         * lib/relocatable.c (relocate): Return a freshly allocated string
52609         instead of a pointer to a privately held string.
52610         Reported by Sylvain Beucler <beuc@gnu.org>.
52611
52612 2008-01-10  Colin Watson  <cjwatson@debian.org>
52613
52614         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52615         s/S_ISNLK/S_ISLNK/.
52616
52617 2008-01-09  Bruno Haible  <bruno@clisp.org>
52618
52619         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52620         and other files.
52621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52622         if it's only a guess.
52623         * modules/memmem: Simplify by depending on memmem-simple.
52624
52625 2008-01-09  Bruno Haible  <bruno@clisp.org>
52626
52627         Work around OpenBSD 4.0 tdelete() bug.
52628         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52629         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52630         macros and don't redefine the enum values.
52631         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52632         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52633         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52634
52635 2008-01-09  Bruno Haible  <bruno@clisp.org>
52636
52637         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52638         (main): Don't perform the tests if setlocale did not install a UTF-8
52639         locale. Needed on OpenBSD 4.0.
52640         * modules/wcwidth-tests (Depends-on): Add localcharset.
52641
52642 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52645         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52646         * NEWS: announce this.
52647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52648
52649 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52650         and Eric Blake  <ebb9@byu.net>
52651
52652         Add memmem-simple module.
52653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52654         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52655         * modules/memmem-simple: New file.
52656         * modules/memmem (Description): Tweak.
52657         * MODULES.html.sh (string handling): Mention new module.
52658         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52659         addressed by memmem-simple.
52660         * NEWS: Document the difference.
52661
52662 2008-01-09  Eric Blake  <ebb9@byu.net>
52663
52664         Give gcc some memmem optimization hints.
52665         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52666         (strcasestr): Declare as pure.
52667         * modules/memmem (Maintainer): Claim my implementation.
52668
52669 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52670
52671         Support AIX 6.1 and higher.
52672         * build-aux/config.libpath: Likewise.
52673         * build-aux/config.rpath: Likewise.
52674
52675 2008-01-08  Jim Meyering  <meyering@redhat.com>
52676             Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52679         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52680         Reported by Peter Fales in
52681         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52682
52683 2008-01-08  Bruno Haible  <bruno@clisp.org>
52684
52685         * modules/unictype/category-of (Depends-on): Add
52686         unictype/category-none.
52687         * modules/unictype/category-and-tests (Depends-on): Add
52688         unictype/category-{L,N,Lu,Nd}.
52689         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52690         * modules/unictype/category-or-tests (Depends-on): Add
52691         unictype/category-{L,N}.
52692         * modules/unictype/category-name-tests (Depends-on): Add
52693         unictype/category-{Z,Nl}.
52694         Reported by Simon Josefsson.
52695
52696 2008-01-08  Bruno Haible  <bruno@clisp.org>
52697
52698         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52699         convention better.
52700         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52701         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52702         Reported by Peter Miller <millerp@canb.auug.org.au>.
52703
52704 2008-01-08  Eric Blake  <ebb9@byu.net>
52705
52706         Rewrite memmem to guarantee linear complexity without malloc.
52707         * lib/memmem.c (memmem): Use Two-Way rather than
52708         Knuth-Morris-Pratt, to allow O(1) space usage.
52709         (critical_factorization, two_way_short_needle)
52710         (two_way_long_needle): New functions.
52711         (knuth_morris_pratt): Delete.
52712         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52713         Add stdint.
52714         * tests/test-memmem.c (main): Add tests for periodic needle and
52715         sublinear performance.
52716         * doc/functions/memmem.texi (memmem): Document other deficiencies
52717         in cygwin and older glibc.
52718
52719 2008-01-08  Bruno Haible  <bruno@clisp.org>
52720
52721         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52722         augmentation.
52723
52724 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52725
52726         Add a configure time option: --disable-acl.
52727         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52728         AC_ARG_ENABLE(acl).
52729
52730 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52731
52732         * tests/test-localename.c: Don't include obsolete "setenv.h".
52733
52734         * modules/localename-tests (Depends-on): Need unsetenv.
52735
52736 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52737
52738         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52739
52740 2008-01-06  Colin Watson  <cjwatson@debian.org>
52741
52742         * users.txt: Add man-db.
52743
52744 2008-01-07  Bruno Haible  <bruno@clisp.org>
52745
52746         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52747         previous section name.
52748
52749 2008-01-07  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/progname.c (set_program_name): Don't strip off a leading
52752         "lt-" prefix outside a .libs directory.
52753         Suggested by Paul Eggert.
52754
52755 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52756             Bruno Haible  <bruno@clisp.org>
52757
52758         Improve memory cleanup in 'relocatable' module.
52759         * lib/relocatable.h (compute_curr_prefix): Change return type to
52760         'char *'.
52761         * lib/relocatable.c (compute_curr_prefix): Change return type to
52762         'char *'. Free curr_installdir after use.
52763         (relocate): Free curr_prefix_better after use.
52764         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52765
52766 2008-01-01  Bruno Haible  <bruno@clisp.org>
52767
52768         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52769         failure on older glibc systems.
52770         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52771
52772 2008-01-05  Eric Blake  <ebb9@byu.net>
52773
52774         Avoid quadratic system memmem.
52775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52776         Reported by Ralf Wildenhues.
52777
52778         Fix memmem test for mingw.
52779         * modules/memmem-tests (configure.ac): Check for alarm.
52780         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52781         it.
52782         * doc/functions/memmem.texi: New file.
52783         * doc/gnulib.texi (Function Substitutes): Add memmem.
52784         Reported by Bruno Haible.
52785
52786 2008-01-04  Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52789         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52790         gl_HEADER_STRING_H_DEFAULTS.
52791
52792 2008-01-04  Eric Blake  <ebb9@byu.net>
52793
52794         Shorten duration of memmem test.
52795         * tests/test-memmem.c (main): Use alarm to declare failure if test
52796         is taking too long.
52797         Reported by Ralf Wildenhues.
52798
52799 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52800
52801         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52802         string, needed by strerror.
52803
52804 2008-01-03  Colin Watson  <cjwatson@debian.org>
52805             Bruno Haible  <bruno@clisp.org>
52806
52807         * doc/gnulib-tool.texi (Localization): New section.
52808
52809 2008-01-02  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52812         variables to 'unsigned char *' type.
52813         Reported by Paul Eggert.
52814
52815 2008-01-02  Jim Meyering  <jim@meyering.net>
52816
52817         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52818
52819 2007-12-31  Jim Meyering  <jim@meyering.net>
52820
52821         Avoid use of private FTS type name.
52822         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52823
52824 2007-12-30  Karl Berry  <karl@gnu.org>
52825
52826         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52827         work around defect in Texinfo and/or the standalone Info browser.
52828
52829 2007-12-30  Bruno Haible  <bruno@clisp.org>
52830
52831         Unify 5 copies of the KMP code.
52832         * lib/str-kmp.h: New file.
52833         * lib/c-strcasestr.c: Include str-kmp.h.
52834         (knuth_morris_pratt): Remove function.
52835         (c_strcasestr): Update.
52836         * lib/c-strstr.c: Include str-kmp.h.
52837         (knuth_morris_pratt): Remove function.
52838         (c_strcasestr): Update.
52839         * lib/mbscasestr.c: Include str-kmp.h.
52840         (knuth_morris_pratt_unibyte): Remove function.
52841         * lib/mbsstr.c: Include str-kmp.h.
52842         (knuth_morris_pratt_unibyte): Remove function.
52843         * lib/strcasestr.c: Include str-kmp.h.
52844         (knuth_morris_pratt): Remove function.
52845         (strcasestr): Update.
52846         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52847         * modules/c-strstr (Files): Likewise.
52848         * modules/mbscasestr (Files): Likewise.
52849         * modules/mbsstr (Files): Likewise.
52850         * modules/strcasestr (Files): Likewise.
52851         Suggested by Paul Eggert.
52852
52853 2007-12-30  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52856         defined.
52857
52858 2007-12-30  Bruno Haible  <bruno@clisp.org>
52859
52860         * lib/xmalloca.h: Include xalloc.h.
52861         (xnmalloca): New macro.
52862
52863 2007-12-30  Bruno Haible  <bruno@clisp.org>
52864
52865         * lib/malloca.h (nmalloca): New macro.
52866         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52867         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52868         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52869         knuth_morris_pratt_multibyte): Likewise.
52870         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52871         knuth_morris_pratt_multibyte): Likewise.
52872         * lib/memmem.c (knuth_morris_pratt): Likewise.
52873         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52874
52875 2007-12-25  Bruno Haible  <bruno@clisp.org>
52876
52877         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52878         * lib/glob.c: Don't include openat.h.
52879         (link_exists2_p): Add back the code that deals with the
52880         !GLOB_ALTDIRFUNC case.
52881         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52882         let it do the filename concatenation.
52883         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52884         * modules/glob (Depends-on): Remove openat.
52885
52886 2007-12-31  Bruno Haible  <bruno@clisp.org>
52887
52888         * modules/dirfd (License): Change to LGPLv2+.
52889         Approved by Jim Meyering.
52890
52891 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52892
52893         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52894         when multiplying M by sizeof (size_t).
52895
52896 2007-12-10  Martin Lambers  <marlam@marlam.de>
52897
52898         Override getpagesize on mingw.
52899         * lib/getpagesize.c: New file.
52900         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52901         * modules/getpagesize (Files): Add lib/getpagesize.c.
52902         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52904         REPLACE_GETPAGESIZE.
52905         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52906
52907 2007-12-25  Bruno Haible  <bruno@clisp.org>
52908
52909         * modules/localcharset (Notice): New field.
52910         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52911         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52912
52913 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52914             Bruno Haible  <bruno@clisp.org>
52915
52916         Avoid using the syntax symbol() in formatted documentation.
52917         * MODULES.html.sh (func_module): When replacing symbol() with a
52918         hyperlink, remove the parentheses. Show an error if some remain.
52919         Recognize and render the '...' syntax.
52920         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52921         Rework. Add paragraph about GCC's inlining.
52922         * doc/alloca.texi: Likewise.
52923         * doc/error.texi: Remove parentheses from symbol reference.
52924         * doc/gnulib-intro.texi: Likewise.
52925         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52926         * modules/fnmatch (Description): Reword to say "the ... function".
52927         * modules/full-read (Description): Likewise.
52928         * modules/full-write (Description): Likewise.
52929         * modules/safe-read (Description): Likewise.
52930         * modules/safe-write (Description): Likewise.
52931         * modules/strchrnul (Description): Likewise.
52932         * modules/trim (Description): Likewise.
52933         * modules/error (Description): Remove parentheses from symbol
52934         references.
52935         * modules/verror (Description): Likewise.
52936         Reported by Karl Berry.
52937
52938 2007-12-25  Bruno Haible  <bruno@clisp.org>
52939
52940         Fixup after 2007-10-16 commit.
52941         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52942
52943 2007-12-24  Bruno Haible  <bruno@clisp.org>
52944
52945         Make --enable-relocatable work with DESTDIR.
52946         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52947         to compute installdir from destprog.
52948         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52949         also set the RELOC_DESTDIR variable.
52950         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52951
52952 2007-12-24  Bruno Haible  <bruno@clisp.org>
52953
52954         Fix link error due to xalloc_die().
52955         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52956         of xreadlink.
52957         * lib/relocwrapper.c: Update comments.
52958         * build-aux/install-reloc: Remove xreadlink.c from file list.
52959         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52960         xreadlink.c.
52961         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52962
52963 2007-12-24  Bruno Haible  <bruno@clisp.org>
52964
52965         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52966         * lib/setenv.h: Remove file.
52967         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52968         lib/setenv.h.
52969         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52970         (Depends-on): Add stdlib.
52971         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52972         gl_FUNC_UNSETENV.
52973         (Include): Replace setenv.h with <stdlib.h>.
52974         * modules/unsetenv: New file.
52975         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52976         * lib/unsetenv.c: Include <stdlib.h> first.
52977         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52978         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52979         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52980         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52981         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52982         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52984         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52985         * doc/functions/unsetenv.texi: Update.
52986         * modules/xsetenv (Depends-on): Add unsetenv.
52987         * modules/getdate (Depends-on): Likewise.
52988         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52989         * lib/xsetenv.c: Don't include setenv.h.
52990         * lib/getdate.y: Likewise.
52991         * lib/relocwrapper.c: Likewise.
52992         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52993         (Depends-on): Add stdlib.
52994         * NEWS: Mention the changes.
52995         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52996
52997 2007-12-23  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53000         indentation.
53001
53002 2007-12-23  Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/c-strcasestr.c: Add more comments.
53005         * lib/c-strstr.c: Likewise.
53006         * lib/mbscasestr.c: Likewise.
53007         * lib/mbsstr.c: Likewise.
53008         * lib/strcasestr.c: Likewise.
53009         * lib/memmem.c: Likewise.
53010
53011 2007-12-23  Bruno Haible  <bruno@clisp.org>
53012
53013         * tests/test-memmem.c: Include <string.h> first.
53014
53015 2007-12-22  Bruno Haible  <bruno@clisp.org>
53016
53017         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53018         the contents of $testsbase.
53019         Reported by Ralf Wildenhues.
53020
53021 2007-12-22  Bruno Haible  <bruno@clisp.org>
53022
53023         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53024         two variables local_ldadd_before, local_ldadd_last.
53025
53026 2007-12-20  Eric Blake  <ebb9@byu.net>
53027
53028         Work around circular library issue when cross-compiling.
53029         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53030         that progname.o does not need to pull in rpl_memcmp.
53031
53032 2007-12-19  Eric Blake  <ebb9@byu.net>
53033
53034         Fix memmem to avoid O(n^2) worst-case complexity.
53035         * lib/memmem.c (knuth_morris_pratt): New function.
53036         (memmem): Use it if first few naive iterations fail.
53037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53038         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53039         * modules/memchr (License): Likewise.
53040         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53041         malloca.
53042         * tests/test-memmem.c: Rewrite, borrowing ideas from
53043         test-mbsstr1.c; the old version wouldn't even compile!
53044         * modules/memmem-tests: New file.
53045         * lib/string.in.h (rpl_memmem): Add declaration.
53046         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53048         REPLACE_MEMMEM.
53049
53050 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53053         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53054         before any system include files, and undef after them all.  This
53055         should fix a problem on VMS reported by John E. Malmberg in
53056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53057
53058 2007-12-17  Eric Blake  <ebb9@byu.net>
53059
53060         Revert addition of verify, for BSD/OS.
53061         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53062         can't handle large files, for the sake of obsolete platforms.
53063         * modules/fseeko (Depends-on): Remove verify.
53064         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53065         * doc/functions/ftello.texi (ftello): Likewise.
53066         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53067         Reported by Larry Jones.
53068
53069 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53070
53071         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53072         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53073
53074 2007-12-17  Jim Meyering  <meyering@redhat.com>
53075
53076         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53077         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53078         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53079         * modules/getcwd (Depends-on): Add openat.
53080         Reported by Petr Salinger.
53081
53082 2007-12-17  Bruno Haible  <bruno@clisp.org>
53083
53084         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53085         avoid a segmentation fault of the configure test on x86_64 systems.
53086
53087 2007-12-15  Jim Meyering  <meyering@redhat.com>
53088
53089         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53090
53091 2007-12-13  Eric Blake  <ebb9@byu.net>
53092
53093         Another fseek test.
53094         * tests/test-fseek.c (main): Also test ungetc handling.
53095         * tests/test-fseeko.c (main): Likewise.
53096         * modules/fseeko (Depends-on): Add verify.
53097         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53098         large.
53099         Reported by Larry Jones.
53100
53101         Fix fseeko on mingw.
53102         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53103         seek.
53104
53105         Beef up fseek tests.
53106         * tests/test-fseek.c (main): Also test eof handling.
53107         * tests/test-fseeko.c (main): Likewise.
53108         Reported by Larry Jones.
53109
53110 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53111
53112         Fix fseeko on BSD-based platforms.
53113         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53114         successful seek.
53115
53116 2007-12-12  Eric Blake  <ebb9@byu.net>
53117
53118         Allow circular dependency of separate libtests.a
53119         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53120         when use_libtests.
53121
53122 2007-12-11  Eric Blake  <ebb9@byu.net>
53123
53124         Fix bug with -0.0L in previous patch.
53125         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53126         * tests/test-isnan.c (main): Also test on zeroes.
53127         * tests/test-isnanf.c (main): Likewise.
53128         * tests/test-isnanl.h (main): Likewise.
53129
53130         Detect pseudo-denormals on x86 even when cross-compiling.
53131         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53132         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53133         invalid bit patterns that happen to satisfy ==.
53134
53135         Avoid link failures with separate libtests.a.
53136         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53137         last, to satisfy circular dependencies.
53138
53139 2007-12-11  Eric Blake  <ebb9@byu.net>
53140         and Bruno Haible  <bruno@clisp.org>
53141
53142         Fix OpenBSD 4.0 <float.h> handling of long double.
53143         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53144         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53145         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53146
53147 2007-12-11  Jim Meyering  <meyering@redhat.com>
53148
53149         * users.txt: Add libvirt.
53150
53151         Support versions of autoconf prior to 2.59c.
53152         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53153         if it is not already defined.
53154
53155 2007-12-09  Bruno Haible  <bruno@clisp.org>
53156
53157         Let 'gnulib-tool --import' collect sources needed for the tests in
53158         tests/ rather than in lib/.
53159         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53160         argument. If true, add rules to generate libtests.a, and put libtests.a
53161         into $(LDADD). Consider source files in subdirectories and set
53162         uses_subdirs.
53163         (func_emit_initmacro_start, func_emit_initmacro_end,
53164         func_emit_initmacro_done): Pass all arguments explicitly.
53165         (func_import): Determine two module lists main_modules,
53166         testsrelated_modules. Determine use_libtests. Determine two variables
53167         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53168         instead of just sed_transform_lib_file. Determine two variables
53169         main_files and testsrelated_files. Compute 'files' as the union of
53170         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53171         func_add_or_update. In the generated gnulib-comp.m4, collect the
53172         object files for tests/ in different variables than those for lib/.
53173         Substitute LIBTESTS_LIBDEPS.
53174         (func_create_testdir): Combine the uses_subdirs results from
53175         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53176
53177 2007-12-09  Bruno Haible  <bruno@clisp.org>
53178
53179         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53180         the build-aux directory.
53181
53182 2007-12-09  Bruno Haible  <bruno@clisp.org>
53183
53184         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53185         introduced on 2006-09-09.
53186
53187 2007-12-07  Jim Meyering  <meyering@redhat.com>
53188
53189         Let these macros work also with autoconf-2.59.
53190         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53191         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53192         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53193
53194 2007-12-06  Jim Meyering  <meyering@redhat.com>
53195
53196         Avoid a configure-time syntax error in gl_FUNC_ACL.
53197         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53198         function in each branch, before testing the cache variable.
53199
53200 2007-12-04  Eric Blake  <ebb9@byu.net>
53201
53202         Make scripts executable.
53203         * build-aux/config.guess: Add execute permissions.
53204         * build-aux/config.sub: Likewise.
53205         * build-aux/gendocs.sh: Likewise.
53206
53207         Fix frexp on mingw.
53208         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53209         cross-compiling.
53210         * doc/functions/frexp.texi (frexp): Document the bug.
53211
53212         Make cygwin fseeko check more reliable.
53213         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53214         version numbers, rather than unrelated feature check.
53215         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53216         * doc/functions/ftello.texi (ftello): Likewise.
53217         Reported by Bruno Haible.
53218
53219         * m4/strerror.m4: Bump version number.
53220
53221 2007-12-03  Bruno Haible  <bruno@clisp.org>
53222
53223         * doc/functions/mprotect.texi: Mention the mingw problem.
53224
53225 2007-12-03  Eric Blake  <ebb9@byu.net>
53226
53227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53228         REPLACE_STRERROR is initialized before this macro.
53229
53230 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53233         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53234         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53235         put -lsec in even for programs other than 'ls'.  This fixes a problem
53236         for gettext reported by Bruno Haible in
53237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53238         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53239         Add support for Solaris 10.  This isn't efficient, but should get the
53240         job done for now.
53241
53242 2007-12-03  James Youngman  <jay@gnu.org>
53243
53244         * doc/regexprops-generic.texi: change "an close-group" to "a
53245         close-group" and "illegal" to "not allowed".
53246
53247 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53248
53249         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53250         pr_byname.h. Needed for the rare case when the maintainer has done
53251         "make maintainer-clean" in the source directory and then attempts a
53252         build outside the source directory.
53253         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53254         scripts_byname.h.
53255
53256 2007-12-02  Martin Lambers <marlam@marlam.de>
53257             Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/getpagesize.h: Remove file.
53260         * lib/unistd.in.h: Include declaration of getpagesize here.
53261         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53262         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53263         HAVE_SYS_PARAM_H.
53264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53265         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53266         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53267         (Depends-on): Add unistd.
53268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53269         (Include): Use <unistd.h> instead of getpagesize.h.
53270         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53271         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53272         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53273         gl_GETPAGESIZE invocation, already handled by module dependency.
53274         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53275
53276 2007-12-02  Bruno Haible  <bruno@clisp.org>
53277
53278         * modules/strings-tests: New file.
53279         * tests/test-strings.c: New file.
53280
53281         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53282         * lib/strings.in.h: New file.
53283         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53284         * m4/strings_h.m4: New file.
53285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53286         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53287         * modules/strings: New file.
53288         * modules/string (Makefile.am): Update.
53289         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53290         Reported by Karl Berry.
53291
53292 2007-12-01  Eric Blake  <ebb9@byu.net>
53293
53294         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53295         accomodate fix in cygwin 1.5.25.
53296
53297 2007-12-01  Jim Meyering  <meyering@redhat.com>
53298
53299         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53300         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53301         that would inhibit utf8-optimization of a regexp containing line-
53302         or buffer-anchors, e.g., `^', `$'.
53303
53304 2007-11-30  Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53307         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53308         glthread_recursive_lock_init.
53309         * lib/lock.c (glthread_recursive_lock_init)
53310         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53311         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53312
53313 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53314
53315         New function qset_acl, like set_acl but with syscall semantics.
53316         * lib/acl.h (qset_acl): New decl.
53317         * lib/acl.c (qset_acl): New function.
53318         (set_acl): Use new function.  Use more-consistent diagnostics.
53319
53320 2007-11-28  Jim Meyering  <meyering@redhat.com>
53321
53322         * modules/physmem (License): Change from GPL to LGPLv2+.
53323
53324 2007-11-26  Bruno Haible  <bruno@clisp.org>
53325
53326         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53327         'long double' type has excess precision.
53328         Reported by Jim Meyering in
53329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53330
53331 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53332
53333         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53334         Sync from <http://gnu.org/licenses>.
53335         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53336         with license text from same location.
53337         * doc/maintain.texi, doc/standards.texi:  Sync from
53338         <http://savannah.gnu.org/projects/gnustandards>.
53339
53340 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53341         and Jim Meyering  <meyering@redhat.com>
53342
53343         Adjust getdate' grammar to accept a slightly more regular language.
53344         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53345         Before, the former was rejected.
53346         * lib/getdate.y (digits_to_date_time): New function, factored
53347         out of ...
53348         (number): ...here.  Just call digits_to_date_time.
53349         (hybrid): New non-terminal to handle an <unsigned number,
53350         signed relative offset> sequence consistently.
53351
53352 2007-11-18  Jim Meyering  <meyering@redhat.com>
53353
53354         Pull my changes from coreutils:
53355         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53356         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53357         use of $gnulib_tool_option_extras, so that it's separated from the
53358         preceding argument.
53359
53360         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53361         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53362         parent destination directories before copying a file into place.
53363
53364 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53365
53366         bootstrap: work also with 4-argument variant of AC_INIT
53367         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53368
53369 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53370
53371         Port test-getaddrinfo to Solaris.
53372         Problem reported by Bruno Haible in
53373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53374         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53375         explanation of setting 'hints'.
53376         Don't reject an implementation merely because it returns EAI_SERVICE.
53377         (EAI_SERVICE): Define to 0 if not defined.
53378
53379 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53380
53381         The license of gnu-make and posix-shell is now "GPLed build tool".
53382         * modules/gnu-make (License): Likewise.
53383         * modules/posix-shell (License): Likewise.
53384
53385         New module posix-shell, for determining a POSIX shell
53386         or perhaps something that is close enough to a POSIX shell.
53387         * m4/posix-shell.m4: New file.
53388         * modules/posix-shell: New file.
53389
53390         * MODULES.html.sh: Mention new module.
53391
53392         New module gnu-make, for determining whether we're using GNU Make.
53393         * m4/gnu-make.m4: New file.
53394         * modules/gnu-make: New file.
53395         * MODULES.html.sh: Mention new module.
53396
53397 2007-11-14  Jim Meyering  <meyering@redhat.com>
53398
53399         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53400         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53401         use this macro to create a function _definition_.
53402         Remove useless "#undef ARGMATCH_DIE".
53403
53404 2007-11-14  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/config.charset: Update for OpenBSD 4.1.
53407         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53408
53409 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53410
53411         Document 64-bit #if problems in stdint.texi.
53412         * doc/headers/stdint.texi (stdint.h): Mention problems with
53413         64-bit-#if, and how to work around them.
53414
53415         Don't insist on 'long long int' support in the preprocessor.  It
53416         breaks too many things.  For example, PRIdMAX still uses a 'long
53417         long int' format with the latest Sun compiler, even though
53418         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53419         preprocessor problem.  This causes the latest coreutils to dump
53420         core on Solaris 10 sparc with the Sun C compiler.
53421         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53422         the troublesome expressions at configure-time, not at #if-time.
53423         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53424         preprocessor.
53425         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53426         compile-time C checks, done at 'configure'-time.
53427         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53428         * modules/inttypes (Makefile): Substitute the new symbols that
53429         gl_INTTYPES_H now generates.
53430         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53431
53432 2007-11-12  Bruno Haible  <bruno@clisp.org>
53433
53434         Tests for Unicode character classification functions.
53435
53436         * modules/unictype/bidicategory-byname-tests: New file.
53437         * modules/unictype/bidicategory-name-tests: New file.
53438         * modules/unictype/bidicategory-of-tests: New file.
53439         * modules/unictype/bidicategory-test-tests: New file.
53440         * modules/unictype/block-list-tests: New file.
53441         * modules/unictype/block-of-tests: New file.
53442         * modules/unictype/block-test-tests: New file.
53443         * modules/unictype/category-C-tests: New file.
53444         * modules/unictype/category-Cc-tests: New file.
53445         * modules/unictype/category-Cf-tests: New file.
53446         * modules/unictype/category-Cn-tests: New file.
53447         * modules/unictype/category-Co-tests: New file.
53448         * modules/unictype/category-Cs-tests: New file.
53449         * modules/unictype/category-L-tests: New file.
53450         * modules/unictype/category-Ll-tests: New file.
53451         * modules/unictype/category-Lm-tests: New file.
53452         * modules/unictype/category-Lo-tests: New file.
53453         * modules/unictype/category-Lt-tests: New file.
53454         * modules/unictype/category-Lu-tests: New file.
53455         * modules/unictype/category-M-tests: New file.
53456         * modules/unictype/category-Mc-tests: New file.
53457         * modules/unictype/category-Me-tests: New file.
53458         * modules/unictype/category-Mn-tests: New file.
53459         * modules/unictype/category-N-tests: New file.
53460         * modules/unictype/category-Nd-tests: New file.
53461         * modules/unictype/category-Nl-tests: New file.
53462         * modules/unictype/category-No-tests: New file.
53463         * modules/unictype/category-P-tests: New file.
53464         * modules/unictype/category-Pc-tests: New file.
53465         * modules/unictype/category-Pd-tests: New file.
53466         * modules/unictype/category-Pe-tests: New file.
53467         * modules/unictype/category-Pf-tests: New file.
53468         * modules/unictype/category-Pi-tests: New file.
53469         * modules/unictype/category-Po-tests: New file.
53470         * modules/unictype/category-Ps-tests: New file.
53471         * modules/unictype/category-S-tests: New file.
53472         * modules/unictype/category-Sc-tests: New file.
53473         * modules/unictype/category-Sk-tests: New file.
53474         * modules/unictype/category-Sm-tests: New file.
53475         * modules/unictype/category-So-tests: New file.
53476         * modules/unictype/category-Z-tests: New file.
53477         * modules/unictype/category-Zl-tests: New file.
53478         * modules/unictype/category-Zp-tests: New file.
53479         * modules/unictype/category-Zs-tests: New file.
53480         * modules/unictype/category-and-not-tests: New file.
53481         * modules/unictype/category-and-tests: New file.
53482         * modules/unictype/category-byname-tests: New file.
53483         * modules/unictype/category-name-tests: New file.
53484         * modules/unictype/category-none-tests: New file.
53485         * modules/unictype/category-of-tests: New file.
53486         * modules/unictype/category-or-tests: New file.
53487         * modules/unictype/category-test-withtable-tests: New file.
53488         * modules/unictype/combining-class-tests: New file.
53489         * modules/unictype/ctype-alnum-tests: New file.
53490         * modules/unictype/ctype-alpha-tests: New file.
53491         * modules/unictype/ctype-blank-tests: New file.
53492         * modules/unictype/ctype-cntrl-tests: New file.
53493         * modules/unictype/ctype-digit-tests: New file.
53494         * modules/unictype/ctype-graph-tests: New file.
53495         * modules/unictype/ctype-lower-tests: New file.
53496         * modules/unictype/ctype-print-tests: New file.
53497         * modules/unictype/ctype-punct-tests: New file.
53498         * modules/unictype/ctype-space-tests: New file.
53499         * modules/unictype/ctype-upper-tests: New file.
53500         * modules/unictype/ctype-xdigit-tests: New file.
53501         * modules/unictype/decimal-digit-tests: New file.
53502         * modules/unictype/digit-tests: New file.
53503         * modules/unictype/mirror-tests: New file.
53504         * modules/unictype/numeric-tests: New file.
53505         * modules/unictype/property-alphabetic-tests: New file.
53506         * modules/unictype/property-ascii-hex-digit-tests: New file.
53507         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53508         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53509         * modules/unictype/property-bidi-block-separator-tests: New file.
53510         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53511         * modules/unictype/property-bidi-common-separator-tests: New file.
53512         * modules/unictype/property-bidi-control-tests: New file.
53513         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53514         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53515         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53516         * modules/unictype/property-bidi-european-digit-tests: New file.
53517         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53518         * modules/unictype/property-bidi-left-to-right-tests: New file.
53519         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53520         * modules/unictype/property-bidi-other-neutral-tests: New file.
53521         * modules/unictype/property-bidi-pdf-tests: New file.
53522         * modules/unictype/property-bidi-segment-separator-tests: New file.
53523         * modules/unictype/property-bidi-whitespace-tests: New file.
53524         * modules/unictype/property-byname-tests: New file.
53525         * modules/unictype/property-combining-tests: New file.
53526         * modules/unictype/property-composite-tests: New file.
53527         * modules/unictype/property-currency-symbol-tests: New file.
53528         * modules/unictype/property-dash-tests: New file.
53529         * modules/unictype/property-decimal-digit-tests: New file.
53530         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53531         * modules/unictype/property-deprecated-tests: New file.
53532         * modules/unictype/property-diacritic-tests: New file.
53533         * modules/unictype/property-extender-tests: New file.
53534         * modules/unictype/property-format-control-tests: New file.
53535         * modules/unictype/property-grapheme-base-tests: New file.
53536         * modules/unictype/property-grapheme-extend-tests: New file.
53537         * modules/unictype/property-grapheme-link-tests: New file.
53538         * modules/unictype/property-hex-digit-tests: New file.
53539         * modules/unictype/property-hyphen-tests: New file.
53540         * modules/unictype/property-id-continue-tests: New file.
53541         * modules/unictype/property-id-start-tests: New file.
53542         * modules/unictype/property-ideographic-tests: New file.
53543         * modules/unictype/property-ids-binary-operator-tests: New file.
53544         * modules/unictype/property-ids-trinary-operator-tests: New file.
53545         * modules/unictype/property-ignorable-control-tests: New file.
53546         * modules/unictype/property-iso-control-tests: New file.
53547         * modules/unictype/property-join-control-tests: New file.
53548         * modules/unictype/property-left-of-pair-tests: New file.
53549         * modules/unictype/property-line-separator-tests: New file.
53550         * modules/unictype/property-logical-order-exception-tests: New file.
53551         * modules/unictype/property-lowercase-tests: New file.
53552         * modules/unictype/property-math-tests: New file.
53553         * modules/unictype/property-non-break-tests: New file.
53554         * modules/unictype/property-not-a-character-tests: New file.
53555         * modules/unictype/property-numeric-tests: New file.
53556         * modules/unictype/property-other-alphabetic-tests: New file.
53557         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53558         * modules/unictype/property-other-grapheme-extend-tests: New file.
53559         * modules/unictype/property-other-id-continue-tests: New file.
53560         * modules/unictype/property-other-id-start-tests: New file.
53561         * modules/unictype/property-other-lowercase-tests: New file.
53562         * modules/unictype/property-other-math-tests: New file.
53563         * modules/unictype/property-other-uppercase-tests: New file.
53564         * modules/unictype/property-paired-punctuation-tests: New file.
53565         * modules/unictype/property-paragraph-separator-tests: New file.
53566         * modules/unictype/property-pattern-syntax-tests: New file.
53567         * modules/unictype/property-pattern-white-space-tests: New file.
53568         * modules/unictype/property-private-use-tests: New file.
53569         * modules/unictype/property-punctuation-tests: New file.
53570         * modules/unictype/property-quotation-mark-tests: New file.
53571         * modules/unictype/property-radical-tests: New file.
53572         * modules/unictype/property-sentence-terminal-tests: New file.
53573         * modules/unictype/property-soft-dotted-tests: New file.
53574         * modules/unictype/property-space-tests: New file.
53575         * modules/unictype/property-terminal-punctuation-tests: New file.
53576         * modules/unictype/property-test-tests: New file.
53577         * modules/unictype/property-titlecase-tests: New file.
53578         * modules/unictype/property-unassigned-code-value-tests: New file.
53579         * modules/unictype/property-unified-ideograph-tests: New file.
53580         * modules/unictype/property-uppercase-tests: New file.
53581         * modules/unictype/property-variation-selector-tests: New file.
53582         * modules/unictype/property-white-space-tests: New file.
53583         * modules/unictype/property-xid-continue-tests: New file.
53584         * modules/unictype/property-xid-start-tests: New file.
53585         * modules/unictype/property-zero-width-tests: New file.
53586         * modules/unictype/scripts-tests: New file.
53587         * modules/unictype/syntax-c-ident-tests: New file.
53588         * modules/unictype/syntax-c-whitespace-tests: New file.
53589         * modules/unictype/syntax-java-ident-tests: New file.
53590         * modules/unictype/syntax-java-whitespace-tests: New file.
53591         * tests/unictype/test-bidi_byname.c: New file.
53592         * tests/unictype/test-bidi_name.c: New file.
53593         * tests/unictype/test-bidi_of.c: New file.
53594         * tests/unictype/test-bidi_test.c: New file.
53595         * tests/unictype/test-block_list.c: New file.
53596         * tests/unictype/test-block_of.c: New file.
53597         * tests/unictype/test-block_test.c: New file.
53598         * tests/unictype/test-categ_and.c: New file.
53599         * tests/unictype/test-categ_and_not.c: New file.
53600         * tests/unictype/test-categ_byname.c: New file.
53601         * tests/unictype/test-categ_name.c: New file.
53602         * tests/unictype/test-categ_none.c: New file.
53603         * tests/unictype/test-categ_of.c: New file.
53604         * tests/unictype/test-categ_or.c: New file.
53605         * tests/unictype/test-categ_test_withtable.c: New file.
53606         * tests/unictype/test-combining.c: New file.
53607         * tests/unictype/test-decdigit.c: New file.
53608         * tests/unictype/test-digit.c: New file.
53609         * tests/unictype/test-mirror.c: New file.
53610         * tests/unictype/test-numeric.c: New file.
53611         * tests/unictype/test-pr_byname.c: New file.
53612         * tests/unictype/test-pr_test.c: New file.
53613         * tests/unictype/test-predicate-part1.h: New file.
53614         * tests/unictype/test-predicate-part2.h: New file.
53615         * tests/unictype/test-scripts.c: New file.
53616         * tests/unictype/test-sy_c_ident.c: New file.
53617         * tests/unictype/test-sy_java_ident.c: New file.
53618
53619         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53620         for Unicode 5.0.0.
53621         * tests/unictype/test-categ_Cc.c: Likewise.
53622         * tests/unictype/test-categ_Cf.c: Likewise.
53623         * tests/unictype/test-categ_Cn.c: Likewise.
53624         * tests/unictype/test-categ_Co.c: Likewise.
53625         * tests/unictype/test-categ_Cs.c: Likewise.
53626         * tests/unictype/test-categ_L.c: Likewise.
53627         * tests/unictype/test-categ_Ll.c: Likewise.
53628         * tests/unictype/test-categ_Lm.c: Likewise.
53629         * tests/unictype/test-categ_Lo.c: Likewise.
53630         * tests/unictype/test-categ_Lt.c: Likewise.
53631         * tests/unictype/test-categ_Lu.c: Likewise.
53632         * tests/unictype/test-categ_M.c: Likewise.
53633         * tests/unictype/test-categ_Mc.c: Likewise.
53634         * tests/unictype/test-categ_Me.c: Likewise.
53635         * tests/unictype/test-categ_Mn.c: Likewise.
53636         * tests/unictype/test-categ_N.c: Likewise.
53637         * tests/unictype/test-categ_Nd.c: Likewise.
53638         * tests/unictype/test-categ_Nl.c: Likewise.
53639         * tests/unictype/test-categ_No.c: Likewise.
53640         * tests/unictype/test-categ_P.c: Likewise.
53641         * tests/unictype/test-categ_Pc.c: Likewise.
53642         * tests/unictype/test-categ_Pd.c: Likewise.
53643         * tests/unictype/test-categ_Pe.c: Likewise.
53644         * tests/unictype/test-categ_Pf.c: Likewise.
53645         * tests/unictype/test-categ_Pi.c: Likewise.
53646         * tests/unictype/test-categ_Po.c: Likewise.
53647         * tests/unictype/test-categ_Ps.c: Likewise.
53648         * tests/unictype/test-categ_S.c: Likewise.
53649         * tests/unictype/test-categ_Sc.c: Likewise.
53650         * tests/unictype/test-categ_Sk.c: Likewise.
53651         * tests/unictype/test-categ_Sm.c: Likewise.
53652         * tests/unictype/test-categ_So.c: Likewise.
53653         * tests/unictype/test-categ_Z.c: Likewise.
53654         * tests/unictype/test-categ_Zl.c: Likewise.
53655         * tests/unictype/test-categ_Zp.c: Likewise.
53656         * tests/unictype/test-categ_Zs.c: Likewise.
53657         * tests/unictype/test-ctype_alnum.c: Likewise.
53658         * tests/unictype/test-ctype_alpha.c: Likewise.
53659         * tests/unictype/test-ctype_blank.c: Likewise.
53660         * tests/unictype/test-ctype_cntrl.c: Likewise.
53661         * tests/unictype/test-ctype_digit.c: Likewise.
53662         * tests/unictype/test-ctype_graph.c: Likewise.
53663         * tests/unictype/test-ctype_lower.c: Likewise.
53664         * tests/unictype/test-ctype_print.c: Likewise.
53665         * tests/unictype/test-ctype_punct.c: Likewise.
53666         * tests/unictype/test-ctype_space.c: Likewise.
53667         * tests/unictype/test-ctype_upper.c: Likewise.
53668         * tests/unictype/test-ctype_xdigit.c: Likewise.
53669         * tests/unictype/test-decdigit.h: Likewise.
53670         * tests/unictype/test-digit.h: Likewise.
53671         * tests/unictype/test-numeric.h: Likewise.
53672         * tests/unictype/test-pr_alphabetic.c: Likewise.
53673         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53674         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53675         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53676         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53677         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53678         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53679         * tests/unictype/test-pr_bidi_control.c: Likewise.
53680         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53681         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53682         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53683         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53684         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53685         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53686         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53687         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53688         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53689         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53690         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53691         * tests/unictype/test-pr_combining.c: Likewise.
53692         * tests/unictype/test-pr_composite.c: Likewise.
53693         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53694         * tests/unictype/test-pr_dash.c: Likewise.
53695         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53696         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53697         * tests/unictype/test-pr_deprecated.c: Likewise.
53698         * tests/unictype/test-pr_diacritic.c: Likewise.
53699         * tests/unictype/test-pr_extender.c: Likewise.
53700         * tests/unictype/test-pr_format_control.c: Likewise.
53701         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53702         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53703         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53704         * tests/unictype/test-pr_hex_digit.c: Likewise.
53705         * tests/unictype/test-pr_hyphen.c: Likewise.
53706         * tests/unictype/test-pr_id_continue.c: Likewise.
53707         * tests/unictype/test-pr_id_start.c: Likewise.
53708         * tests/unictype/test-pr_ideographic.c: Likewise.
53709         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53710         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53711         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53712         * tests/unictype/test-pr_iso_control.c: Likewise.
53713         * tests/unictype/test-pr_join_control.c: Likewise.
53714         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53715         * tests/unictype/test-pr_line_separator.c: Likewise.
53716         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53717         * tests/unictype/test-pr_lowercase.c: Likewise.
53718         * tests/unictype/test-pr_math.c: Likewise.
53719         * tests/unictype/test-pr_non_break.c: Likewise.
53720         * tests/unictype/test-pr_not_a_character.c: Likewise.
53721         * tests/unictype/test-pr_numeric.c: Likewise.
53722         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53723         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53724         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53725         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53726         * tests/unictype/test-pr_other_id_start.c: Likewise.
53727         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53728         * tests/unictype/test-pr_other_math.c: Likewise.
53729         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53730         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53731         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53732         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53733         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53734         * tests/unictype/test-pr_private_use.c: Likewise.
53735         * tests/unictype/test-pr_punctuation.c: Likewise.
53736         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53737         * tests/unictype/test-pr_radical.c: Likewise.
53738         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53739         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53740         * tests/unictype/test-pr_space.c: Likewise.
53741         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53742         * tests/unictype/test-pr_titlecase.c: Likewise.
53743         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53744         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53745         * tests/unictype/test-pr_uppercase.c: Likewise.
53746         * tests/unictype/test-pr_variation_selector.c: Likewise.
53747         * tests/unictype/test-pr_white_space.c: Likewise.
53748         * tests/unictype/test-pr_xid_continue.c: Likewise.
53749         * tests/unictype/test-pr_xid_start.c: Likewise.
53750         * tests/unictype/test-pr_zero_width.c: Likewise.
53751         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53752         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53753
53754 2007-11-12  Bruno Haible  <bruno@clisp.org>
53755
53756         Unicode character classification functions.
53757         * lib/unictype.h: New file.
53758         * modules/unictype/base: New file.
53759         * modules/unictype/category-L: New file.
53760         * modules/unictype/category-Lu: New file.
53761         * modules/unictype/category-Ll: New file.
53762         * modules/unictype/category-Lt: New file.
53763         * modules/unictype/category-Lm: New file.
53764         * modules/unictype/category-Lo: New file.
53765         * modules/unictype/category-M: New file.
53766         * modules/unictype/category-Mn: New file.
53767         * modules/unictype/category-Mc: New file.
53768         * modules/unictype/category-Me: New file.
53769         * modules/unictype/category-N: New file.
53770         * modules/unictype/category-Nd: New file.
53771         * modules/unictype/category-Nl: New file.
53772         * modules/unictype/category-No: New file.
53773         * modules/unictype/category-P: New file.
53774         * modules/unictype/category-Pc: New file.
53775         * modules/unictype/category-Pd: New file.
53776         * modules/unictype/category-Ps: New file.
53777         * modules/unictype/category-Pe: New file.
53778         * modules/unictype/category-Pi: New file.
53779         * modules/unictype/category-Pf: New file.
53780         * modules/unictype/category-Po: New file.
53781         * modules/unictype/category-S: New file.
53782         * modules/unictype/category-Sm: New file.
53783         * modules/unictype/category-Sc: New file.
53784         * modules/unictype/category-Sk: New file.
53785         * modules/unictype/category-So: New file.
53786         * modules/unictype/category-Z: New file.
53787         * modules/unictype/category-Zs: New file.
53788         * modules/unictype/category-Zl: New file.
53789         * modules/unictype/category-Zp: New file.
53790         * modules/unictype/category-C: New file.
53791         * modules/unictype/category-Cc: New file.
53792         * modules/unictype/category-Cf: New file.
53793         * modules/unictype/category-Cs: New file.
53794         * modules/unictype/category-Co: New file.
53795         * modules/unictype/category-Cn: New file.
53796         * modules/unictype/category-or: New file.
53797         * modules/unictype/category-of: New file.
53798         * modules/unictype/category-test: New file.
53799         * modules/unictype/category-test-withtable: New file.
53800         * modules/unictype/category-byname: New file.
53801         * modules/unictype/category-none: New file.
53802         * modules/unictype/category-and: New file.
53803         * modules/unictype/category-and-not: New file.
53804         * modules/unictype/category-name: New file.
53805         * modules/unictype/combining-class: New file.
53806         * modules/unictype/category-all: New file.
53807         * modules/unictype/bidicategory-all: New file.
53808         * modules/unictype/bidicategory-byname: New file.
53809         * modules/unictype/bidicategory-name: New file.
53810         * modules/unictype/bidicategory-of: New file.
53811         * modules/unictype/bidicategory-test: New file.
53812         * modules/unictype/decimal-digit: New file.
53813         * modules/unictype/digit: New file.
53814         * modules/unictype/numeric: New file.
53815         * modules/unictype/mirror: New file.
53816         * modules/unictype/property-white-space: New file.
53817         * modules/unictype/property-alphabetic: New file.
53818         * modules/unictype/property-other-alphabetic: New file.
53819         * modules/unictype/property-not-a-character: New file.
53820         * modules/unictype/property-default-ignorable-code-point: New file.
53821         * modules/unictype/property-other-default-ignorable-code-point: New
53822         file.
53823         * modules/unictype/property-deprecated: New file.
53824         * modules/unictype/property-logical-order-exception: New file.
53825         * modules/unictype/property-variation-selector: New file.
53826         * modules/unictype/property-private-use: New file.
53827         * modules/unictype/property-unassigned-code-value: New file.
53828         * modules/unictype/property-uppercase: New file.
53829         * modules/unictype/property-other-uppercase: New file.
53830         * modules/unictype/property-lowercase: New file.
53831         * modules/unictype/property-other-lowercase: New file.
53832         * modules/unictype/property-titlecase: New file.
53833         * modules/unictype/property-soft-dotted: New file.
53834         * modules/unictype/property-id-start: New file.
53835         * modules/unictype/property-other-id-start: New file.
53836         * modules/unictype/property-id-continue: New file.
53837         * modules/unictype/property-other-id-continue: New file.
53838         * modules/unictype/property-xid-start: New file.
53839         * modules/unictype/property-xid-continue: New file.
53840         * modules/unictype/property-pattern-white-space: New file.
53841         * modules/unictype/property-pattern-syntax: New file.
53842         * modules/unictype/property-join-control: New file.
53843         * modules/unictype/property-grapheme-base: New file.
53844         * modules/unictype/property-grapheme-extend: New file.
53845         * modules/unictype/property-other-grapheme-extend: New file.
53846         * modules/unictype/property-grapheme-link: New file.
53847         * modules/unictype/property-bidi-control: New file.
53848         * modules/unictype/property-bidi-left-to-right: New file.
53849         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53850         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53851         * modules/unictype/property-bidi-european-digit: New file.
53852         * modules/unictype/property-bidi-eur-num-separator: New file.
53853         * modules/unictype/property-bidi-eur-num-terminator: New file.
53854         * modules/unictype/property-bidi-arabic-digit: New file.
53855         * modules/unictype/property-bidi-common-separator: New file.
53856         * modules/unictype/property-bidi-block-separator: New file.
53857         * modules/unictype/property-bidi-segment-separator: New file.
53858         * modules/unictype/property-bidi-whitespace: New file.
53859         * modules/unictype/property-bidi-non-spacing-mark: New file.
53860         * modules/unictype/property-bidi-boundary-neutral: New file.
53861         * modules/unictype/property-bidi-pdf: New file.
53862         * modules/unictype/property-bidi-embedding-or-override: New file.
53863         * modules/unictype/property-bidi-other-neutral: New file.
53864         * modules/unictype/property-hex-digit: New file.
53865         * modules/unictype/property-ascii-hex-digit: New file.
53866         * modules/unictype/property-ideographic: New file.
53867         * modules/unictype/property-unified-ideograph: New file.
53868         * modules/unictype/property-radical: New file.
53869         * modules/unictype/property-ids-binary-operator: New file.
53870         * modules/unictype/property-ids-trinary-operator: New file.
53871         * modules/unictype/property-zero-width: New file.
53872         * modules/unictype/property-space: New file.
53873         * modules/unictype/property-non-break: New file.
53874         * modules/unictype/property-iso-control: New file.
53875         * modules/unictype/property-format-control: New file.
53876         * modules/unictype/property-dash: New file.
53877         * modules/unictype/property-hyphen: New file.
53878         * modules/unictype/property-punctuation: New file.
53879         * modules/unictype/property-line-separator: New file.
53880         * modules/unictype/property-paragraph-separator: New file.
53881         * modules/unictype/property-quotation-mark: New file.
53882         * modules/unictype/property-sentence-terminal: New file.
53883         * modules/unictype/property-terminal-punctuation: New file.
53884         * modules/unictype/property-currency-symbol: New file.
53885         * modules/unictype/property-math: New file.
53886         * modules/unictype/property-other-math: New file.
53887         * modules/unictype/property-paired-punctuation: New file.
53888         * modules/unictype/property-left-of-pair: New file.
53889         * modules/unictype/property-combining: New file.
53890         * modules/unictype/property-composite: New file.
53891         * modules/unictype/property-decimal-digit: New file.
53892         * modules/unictype/property-numeric: New file.
53893         * modules/unictype/property-diacritic: New file.
53894         * modules/unictype/property-extender: New file.
53895         * modules/unictype/property-ignorable-control: New file.
53896         * modules/unictype/property-test: New file.
53897         * modules/unictype/property-byname: New file.
53898         * modules/unictype/property-all: New file.
53899         * modules/unictype/scripts: New file.
53900         * modules/unictype/scripts-all: New file.
53901         * modules/unictype/block-of: New file.
53902         * modules/unictype/block-test: New file.
53903         * modules/unictype/block-list: New file.
53904         * modules/unictype/block-all: New file.
53905         * modules/unictype/syntax-c-whitespace: New file.
53906         * modules/unictype/syntax-java-whitespace: New file.
53907         * modules/unictype/syntax-c-ident: New file.
53908         * modules/unictype/syntax-java-ident: New file.
53909         * modules/unictype/ctype-alnum: New file.
53910         * modules/unictype/ctype-alpha: New file.
53911         * modules/unictype/ctype-cntrl: New file.
53912         * modules/unictype/ctype-digit: New file.
53913         * modules/unictype/ctype-graph: New file.
53914         * modules/unictype/ctype-lower: New file.
53915         * modules/unictype/ctype-print: New file.
53916         * modules/unictype/ctype-punct: New file.
53917         * modules/unictype/ctype-space: New file.
53918         * modules/unictype/ctype-upper: New file.
53919         * modules/unictype/ctype-xdigit: New file.
53920         * modules/unictype/ctype-blank: New file.
53921         * lib/unictype/bidi_byname.c: New file.
53922         * lib/unictype/bidi_name.c: New file.
53923         * lib/unictype/bidi_of.c: New file.
53924         * lib/unictype/bidi_test.c: New file.
53925         * lib/unictype/bitmap.h: New file.
53926         * lib/unictype/block_test.c: New file.
53927         * lib/unictype/blocks.c: New file.
53928         * lib/unictype/categ_C.c: New file.
53929         * lib/unictype/categ_Cc.c: New file.
53930         * lib/unictype/categ_Cf.c: New file.
53931         * lib/unictype/categ_Cn.c: New file.
53932         * lib/unictype/categ_Co.c: New file.
53933         * lib/unictype/categ_Cs.c: New file.
53934         * lib/unictype/categ_L.c: New file.
53935         * lib/unictype/categ_Ll.c: New file.
53936         * lib/unictype/categ_Lm.c: New file.
53937         * lib/unictype/categ_Lo.c: New file.
53938         * lib/unictype/categ_Lt.c: New file.
53939         * lib/unictype/categ_Lu.c: New file.
53940         * lib/unictype/categ_M.c: New file.
53941         * lib/unictype/categ_Mc.c: New file.
53942         * lib/unictype/categ_Me.c: New file.
53943         * lib/unictype/categ_Mn.c: New file.
53944         * lib/unictype/categ_N.c: New file.
53945         * lib/unictype/categ_Nd.c: New file.
53946         * lib/unictype/categ_Nl.c: New file.
53947         * lib/unictype/categ_No.c: New file.
53948         * lib/unictype/categ_P.c: New file.
53949         * lib/unictype/categ_Pc.c: New file.
53950         * lib/unictype/categ_Pd.c: New file.
53951         * lib/unictype/categ_Pe.c: New file.
53952         * lib/unictype/categ_Pf.c: New file.
53953         * lib/unictype/categ_Pi.c: New file.
53954         * lib/unictype/categ_Po.c: New file.
53955         * lib/unictype/categ_Ps.c: New file.
53956         * lib/unictype/categ_S.c: New file.
53957         * lib/unictype/categ_Sc.c: New file.
53958         * lib/unictype/categ_Sk.c: New file.
53959         * lib/unictype/categ_Sm.c: New file.
53960         * lib/unictype/categ_So.c: New file.
53961         * lib/unictype/categ_Z.c: New file.
53962         * lib/unictype/categ_Zl.c: New file.
53963         * lib/unictype/categ_Zp.c: New file.
53964         * lib/unictype/categ_Zs.c: New file.
53965         * lib/unictype/categ_and.c: New file.
53966         * lib/unictype/categ_and_not.c: New file.
53967         * lib/unictype/categ_byname.c: New file.
53968         * lib/unictype/categ_name.c: New file.
53969         * lib/unictype/categ_none.c: New file.
53970         * lib/unictype/categ_of.c: New file.
53971         * lib/unictype/categ_or.c: New file.
53972         * lib/unictype/categ_test.c: New file.
53973         * lib/unictype/combining.c: New file.
53974         * lib/unictype/ctype_alnum.c: New file.
53975         * lib/unictype/ctype_alpha.c: New file.
53976         * lib/unictype/ctype_blank.c: New file.
53977         * lib/unictype/ctype_cntrl.c: New file.
53978         * lib/unictype/ctype_digit.c: New file.
53979         * lib/unictype/ctype_graph.c: New file.
53980         * lib/unictype/ctype_lower.c: New file.
53981         * lib/unictype/ctype_print.c: New file.
53982         * lib/unictype/ctype_punct.c: New file.
53983         * lib/unictype/ctype_space.c: New file.
53984         * lib/unictype/ctype_upper.c: New file.
53985         * lib/unictype/ctype_xdigit.c: New file.
53986         * lib/unictype/decdigit.c: New file.
53987         * lib/unictype/digit.c: New file.
53988         * lib/unictype/identsyntaxmap.h: New file.
53989         * lib/unictype/mirror.c: New file.
53990         * lib/unictype/numeric.c: New file.
53991         * lib/unictype/pr_alphabetic.c: New file.
53992         * lib/unictype/pr_ascii_hex_digit.c: New file.
53993         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53994         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53995         * lib/unictype/pr_bidi_block_separator.c: New file.
53996         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53997         * lib/unictype/pr_bidi_common_separator.c: New file.
53998         * lib/unictype/pr_bidi_control.c: New file.
53999         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54000         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54001         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54002         * lib/unictype/pr_bidi_european_digit.c: New file.
54003         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54004         * lib/unictype/pr_bidi_left_to_right.c: New file.
54005         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54006         * lib/unictype/pr_bidi_other_neutral.c: New file.
54007         * lib/unictype/pr_bidi_pdf.c: New file.
54008         * lib/unictype/pr_bidi_segment_separator.c: New file.
54009         * lib/unictype/pr_bidi_whitespace.c: New file.
54010         * lib/unictype/pr_byname.c: New file.
54011         * lib/unictype/pr_byname.gperf: New file.
54012         * lib/unictype/pr_combining.c: New file.
54013         * lib/unictype/pr_composite.c: New file.
54014         * lib/unictype/pr_currency_symbol.c: New file.
54015         * lib/unictype/pr_dash.c: New file.
54016         * lib/unictype/pr_decimal_digit.c: New file.
54017         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54018         * lib/unictype/pr_deprecated.c: New file.
54019         * lib/unictype/pr_diacritic.c: New file.
54020         * lib/unictype/pr_extender.c: New file.
54021         * lib/unictype/pr_format_control.c: New file.
54022         * lib/unictype/pr_grapheme_base.c: New file.
54023         * lib/unictype/pr_grapheme_extend.c: New file.
54024         * lib/unictype/pr_grapheme_link.c: New file.
54025         * lib/unictype/pr_hex_digit.c: New file.
54026         * lib/unictype/pr_hyphen.c: New file.
54027         * lib/unictype/pr_id_continue.c: New file.
54028         * lib/unictype/pr_id_start.c: New file.
54029         * lib/unictype/pr_ideographic.c: New file.
54030         * lib/unictype/pr_ids_binary_operator.c: New file.
54031         * lib/unictype/pr_ids_trinary_operator.c: New file.
54032         * lib/unictype/pr_ignorable_control.c: New file.
54033         * lib/unictype/pr_iso_control.c: New file.
54034         * lib/unictype/pr_join_control.c: New file.
54035         * lib/unictype/pr_left_of_pair.c: New file.
54036         * lib/unictype/pr_line_separator.c: New file.
54037         * lib/unictype/pr_logical_order_exception.c: New file.
54038         * lib/unictype/pr_lowercase.c: New file.
54039         * lib/unictype/pr_math.c: New file.
54040         * lib/unictype/pr_non_break.c: New file.
54041         * lib/unictype/pr_not_a_character.c: New file.
54042         * lib/unictype/pr_numeric.c: New file.
54043         * lib/unictype/pr_other_alphabetic.c: New file.
54044         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54045         * lib/unictype/pr_other_grapheme_extend.c: New file.
54046         * lib/unictype/pr_other_id_continue.c: New file.
54047         * lib/unictype/pr_other_id_start.c: New file.
54048         * lib/unictype/pr_other_lowercase.c: New file.
54049         * lib/unictype/pr_other_math.c: New file.
54050         * lib/unictype/pr_other_uppercase.c: New file.
54051         * lib/unictype/pr_paired_punctuation.c: New file.
54052         * lib/unictype/pr_paragraph_separator.c: New file.
54053         * lib/unictype/pr_pattern_syntax.c: New file.
54054         * lib/unictype/pr_pattern_white_space.c: New file.
54055         * lib/unictype/pr_private_use.c: New file.
54056         * lib/unictype/pr_punctuation.c: New file.
54057         * lib/unictype/pr_quotation_mark.c: New file.
54058         * lib/unictype/pr_radical.c: New file.
54059         * lib/unictype/pr_sentence_terminal.c: New file.
54060         * lib/unictype/pr_soft_dotted.c: New file.
54061         * lib/unictype/pr_space.c: New file.
54062         * lib/unictype/pr_terminal_punctuation.c: New file.
54063         * lib/unictype/pr_test.c: New file.
54064         * lib/unictype/pr_titlecase.c: New file.
54065         * lib/unictype/pr_unassigned_code_value.c: New file.
54066         * lib/unictype/pr_unified_ideograph.c: New file.
54067         * lib/unictype/pr_uppercase.c: New file.
54068         * lib/unictype/pr_variation_selector.c: New file.
54069         * lib/unictype/pr_white_space.c: New file.
54070         * lib/unictype/pr_xid_continue.c: New file.
54071         * lib/unictype/pr_xid_start.c: New file.
54072         * lib/unictype/pr_zero_width.c: New file.
54073         * lib/unictype/scripts.c: New file.
54074         * lib/unictype/sy_c_ident.c: New file.
54075         * lib/unictype/sy_c_whitespace.c: New file.
54076         * lib/unictype/sy_java_ident.c: New file.
54077         * lib/unictype/sy_java_whitespace.c: New file.
54078
54079         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54080         Unicode 5.0.0.
54081         * lib/unictype/blocks.h: Likewise.
54082         * lib/unictype/categ_C.h: Likewise.
54083         * lib/unictype/categ_Cc.h: Likewise.
54084         * lib/unictype/categ_Cf.h: Likewise.
54085         * lib/unictype/categ_Cn.h: Likewise.
54086         * lib/unictype/categ_Co.h: Likewise.
54087         * lib/unictype/categ_Cs.h: Likewise.
54088         * lib/unictype/categ_L.h: Likewise.
54089         * lib/unictype/categ_Ll.h: Likewise.
54090         * lib/unictype/categ_Lm.h: Likewise.
54091         * lib/unictype/categ_Lo.h: Likewise.
54092         * lib/unictype/categ_Lt.h: Likewise.
54093         * lib/unictype/categ_Lu.h: Likewise.
54094         * lib/unictype/categ_M.h: Likewise.
54095         * lib/unictype/categ_Mc.h: Likewise.
54096         * lib/unictype/categ_Me.h: Likewise.
54097         * lib/unictype/categ_Mn.h: Likewise.
54098         * lib/unictype/categ_N.h: Likewise.
54099         * lib/unictype/categ_Nd.h: Likewise.
54100         * lib/unictype/categ_Nl.h: Likewise.
54101         * lib/unictype/categ_No.h: Likewise.
54102         * lib/unictype/categ_P.h: Likewise.
54103         * lib/unictype/categ_Pc.h: Likewise.
54104         * lib/unictype/categ_Pd.h: Likewise.
54105         * lib/unictype/categ_Pe.h: Likewise.
54106         * lib/unictype/categ_Pf.h: Likewise.
54107         * lib/unictype/categ_Pi.h: Likewise.
54108         * lib/unictype/categ_Po.h: Likewise.
54109         * lib/unictype/categ_Ps.h: Likewise.
54110         * lib/unictype/categ_S.h: Likewise.
54111         * lib/unictype/categ_Sc.h: Likewise.
54112         * lib/unictype/categ_Sk.h: Likewise.
54113         * lib/unictype/categ_Sm.h: Likewise.
54114         * lib/unictype/categ_So.h: Likewise.
54115         * lib/unictype/categ_Z.h: Likewise.
54116         * lib/unictype/categ_Zl.h: Likewise.
54117         * lib/unictype/categ_Zp.h: Likewise.
54118         * lib/unictype/categ_Zs.h: Likewise.
54119         * lib/unictype/categ_of.h: Likewise.
54120         * lib/unictype/combining.h: Likewise.
54121         * lib/unictype/ctype_alnum.h: Likewise.
54122         * lib/unictype/ctype_alpha.h: Likewise.
54123         * lib/unictype/ctype_blank.h: Likewise.
54124         * lib/unictype/ctype_cntrl.h: Likewise.
54125         * lib/unictype/ctype_digit.h: Likewise.
54126         * lib/unictype/ctype_graph.h: Likewise.
54127         * lib/unictype/ctype_lower.h: Likewise.
54128         * lib/unictype/ctype_print.h: Likewise.
54129         * lib/unictype/ctype_punct.h: Likewise.
54130         * lib/unictype/ctype_space.h: Likewise.
54131         * lib/unictype/ctype_upper.h: Likewise.
54132         * lib/unictype/ctype_xdigit.h: Likewise.
54133         * lib/unictype/decdigit.h: Likewise.
54134         * lib/unictype/digit.h: Likewise.
54135         * lib/unictype/mirror.h: Likewise.
54136         * lib/unictype/numeric.h: Likewise.
54137         * lib/unictype/pr_alphabetic.h: Likewise.
54138         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54139         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54140         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54141         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54142         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54143         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54144         * lib/unictype/pr_bidi_control.h: Likewise.
54145         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54146         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54147         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54148         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54149         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54150         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54151         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54152         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54153         * lib/unictype/pr_bidi_pdf.h: Likewise.
54154         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54155         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54156         * lib/unictype/pr_combining.h: Likewise.
54157         * lib/unictype/pr_composite.h: Likewise.
54158         * lib/unictype/pr_currency_symbol.h: Likewise.
54159         * lib/unictype/pr_dash.h: Likewise.
54160         * lib/unictype/pr_decimal_digit.h: Likewise.
54161         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54162         * lib/unictype/pr_deprecated.h: Likewise.
54163         * lib/unictype/pr_diacritic.h: Likewise.
54164         * lib/unictype/pr_extender.h: Likewise.
54165         * lib/unictype/pr_format_control.h: Likewise.
54166         * lib/unictype/pr_grapheme_base.h: Likewise.
54167         * lib/unictype/pr_grapheme_extend.h: Likewise.
54168         * lib/unictype/pr_grapheme_link.h: Likewise.
54169         * lib/unictype/pr_hex_digit.h: Likewise.
54170         * lib/unictype/pr_hyphen.h: Likewise.
54171         * lib/unictype/pr_id_continue.h: Likewise.
54172         * lib/unictype/pr_id_start.h: Likewise.
54173         * lib/unictype/pr_ideographic.h: Likewise.
54174         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54175         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54176         * lib/unictype/pr_ignorable_control.h: Likewise.
54177         * lib/unictype/pr_iso_control.h: Likewise.
54178         * lib/unictype/pr_join_control.h: Likewise.
54179         * lib/unictype/pr_left_of_pair.h: Likewise.
54180         * lib/unictype/pr_line_separator.h: Likewise.
54181         * lib/unictype/pr_logical_order_exception.h: Likewise.
54182         * lib/unictype/pr_lowercase.h: Likewise.
54183         * lib/unictype/pr_math.h: Likewise.
54184         * lib/unictype/pr_non_break.h: Likewise.
54185         * lib/unictype/pr_not_a_character.h: Likewise.
54186         * lib/unictype/pr_numeric.h: Likewise.
54187         * lib/unictype/pr_other_alphabetic.h: Likewise.
54188         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54189         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54190         * lib/unictype/pr_other_id_continue.h: Likewise.
54191         * lib/unictype/pr_other_id_start.h: Likewise.
54192         * lib/unictype/pr_other_lowercase.h: Likewise.
54193         * lib/unictype/pr_other_math.h: Likewise.
54194         * lib/unictype/pr_other_uppercase.h: Likewise.
54195         * lib/unictype/pr_paired_punctuation.h: Likewise.
54196         * lib/unictype/pr_paragraph_separator.h: Likewise.
54197         * lib/unictype/pr_pattern_syntax.h: Likewise.
54198         * lib/unictype/pr_pattern_white_space.h: Likewise.
54199         * lib/unictype/pr_private_use.h: Likewise.
54200         * lib/unictype/pr_punctuation.h: Likewise.
54201         * lib/unictype/pr_quotation_mark.h: Likewise.
54202         * lib/unictype/pr_radical.h: Likewise.
54203         * lib/unictype/pr_sentence_terminal.h: Likewise.
54204         * lib/unictype/pr_soft_dotted.h: Likewise.
54205         * lib/unictype/pr_space.h: Likewise.
54206         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54207         * lib/unictype/pr_titlecase.h: Likewise.
54208         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54209         * lib/unictype/pr_unified_ideograph.h: Likewise.
54210         * lib/unictype/pr_uppercase.h: Likewise.
54211         * lib/unictype/pr_variation_selector.h: Likewise.
54212         * lib/unictype/pr_white_space.h: Likewise.
54213         * lib/unictype/pr_xid_continue.h: Likewise.
54214         * lib/unictype/pr_xid_start.h: Likewise.
54215         * lib/unictype/pr_zero_width.h: Likewise.
54216         * lib/unictype/scripts.h: Likewise.
54217         * lib/unictype/scripts_byname.gperf: Likewise.
54218         * lib/unictype/sy_c_ident.h: Likewise.
54219         * lib/unictype/sy_c_whitespace.h: Likewise.
54220         * lib/unictype/sy_java_ident.h: Likewise.
54221         * lib/unictype/sy_java_whitespace.h: Likewise.
54222
54223         * lib/unictype/Makefile: New file.
54224         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54225         glibc.
54226         * lib/unictype/3level.h: New file, copied from glibc.
54227         * lib/unictype/3levelbit.h: New file.
54228
54229 2007-11-11  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/gperf: New file.
54232         * modules/iconv_open (Depends-on): Add it.
54233         (Makefile.am): Remove the GPERF definition.
54234
54235 2007-11-11  Bruno Haible  <bruno@clisp.org>
54236
54237         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54238         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54239
54240 2007-11-11  Bruno Haible  <bruno@clisp.org>
54241
54242         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54243         (usage): Remove function.
54244
54245 2007-11-11  Bruno Haible  <bruno@clisp.org>
54246
54247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54248         gl_FUNC_CEILF_LIBS.
54249         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54250         gl_FUNC_CEIL_LIBS.
54251         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54252         gl_FUNC_CEILL_LIBS.
54253         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54254         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54255         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54256
54257 2007-11-11  Bruno Haible  <bruno@clisp.org>
54258
54259         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54260         roundf were declared but do not exist on functions.
54261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54262         roundl were declared but do not exist on functions.
54263         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54264         HAVE_FLOORL_AND_CEILL, respectively.
54265         Needed for Sun C on Solaris 10.
54266
54267 2007-11-11  Bruno Haible  <bruno@clisp.org>
54268
54269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54270         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54271         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54272         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54273         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54274         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54275         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54276         HAVE_DECL_ROUNDF.
54277         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54278         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54280         of HAVE_DECL_ROUND*.
54281         * modules/math (Makefile.am): Update.
54282
54283 2007-11-10  Bruno Haible  <bruno@clisp.org>
54284
54285         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54286         ptrdiff_t as m4/intl.m4.
54287
54288 2007-11-10  Jim Meyering  <meyering@redhat.com>
54289
54290         Avoid link failure for the argmatch test.
54291         * tests/test-argmatch.c (usage): Define function to avoid a link
54292         failure: argmatch_die requires a usage function.
54293
54294 2007-11-09  Bruno Haible  <bruno@clisp.org>
54295
54296         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54297         * doc/functions/vsnprintf.texi: Likewise.
54298         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54299         with a size argument < 2.
54300
54301 2007-11-09  Bruno Haible  <bruno@clisp.org>
54302
54303         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54304         buffer. Fixes an inefficiency introduced on 2007-11-03.
54305
54306 2007-11-09  Bruno Haible  <bruno@clisp.org>
54307
54308         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54309         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54310
54311 2007-11-08  Jim Meyering  <meyering@redhat.com>
54312
54313         Change cache variable name prefix "jm_" to "gl_" everywhere.
54314         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54315         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54316         * m4/uptime.m4: s/gl_/jm_/
54317
54318 2007-11-07  Bruno Haible  <bruno@clisp.org>
54319
54320         Update to GNU gettext 0.17.
54321         * m4/intl.m4: Update to GNU gettext 0.17.
54322         * m4/po.m4: Likewise.
54323         * modules/gettext (Files): Remove m4/ulonglong.m4.
54324         (configure.ac): Require gettext infrastructure from version 0.17.
54325
54326 2007-11-06  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54329         symbolic values are not defined in a public header.
54330         * lib/freadable.c (freadable) [QNX]: Likewise.
54331         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54332         * lib/freading.c (freading) [QNX]: Likewise.
54333         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54334         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54335         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54336         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54337         Reported by Alain Magloire.
54338
54339         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54340
54341 2007-11-05  Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54344         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54345         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54346         Reported by Eric Blake.
54347
54348 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54349             Bruno Haible  <bruno@clisp.org>
54350
54351         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54352         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54353         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54354         (malloc): Undefine also before including <stdlib.h>.
54355         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54356         Needed on OSF/1 4.0.
54357
54358 2007-11-05  Jim Meyering  <meyering@redhat.com>
54359
54360         git-version-gen: sync from coreutils.
54361         * build-aux/git-version-gen: Add comments.
54362         Change the first '-' to '.' in the snapshot version string,
54363         e.g., 6.9-377-08144 -> 6.9.377-08144
54364         Remove first parameter.
54365         Don't declare a version "-dirty" merely because a time
54366         stamp has changed.
54367
54368 2007-11-04  Bruno Haible  <bruno@clisp.org>
54369
54370         * lib/lock.h: Protect all macro definitions containing an 'if'
54371         statement through a "do { ... } while (0)".
54372         * lib/tls.h: Likewise.
54373
54374 2007-11-04  Bruno Haible  <bruno@clisp.org>
54375
54376         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54377
54378 2007-11-04  Bruno Haible  <bruno@clisp.org>
54379
54380         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54381         * modules/fprintf-posix (Depends-on): Add nocrash.
54382         * modules/snprintf-posix (Depends-on): Likewise.
54383         * modules/sprintf-posix (Depends-on): Likewise.
54384         * modules/vasnprintf-posix (Depends-on): Likewise.
54385         * modules/vasprintf-posix (Depends-on): Likewise.
54386         * modules/vfprintf-posix (Depends-on): Likewise.
54387         * modules/vsnprintf-posix (Depends-on): Likewise.
54388         * modules/vsprintf-posix (Depends-on): Likewise.
54389         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54390         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54391         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54392         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54393         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54394         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54395         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54396
54397 2007-11-04  Bruno Haible  <bruno@clisp.org>
54398
54399         * modules/nocrash: New file.
54400         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54401         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54402
54403 2007-11-04  Bruno Haible  <bruno@clisp.org>
54404
54405         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54406         precision handling.
54407         * tests/test-vasprintf-posix.c (test_function): Likewise.
54408         * tests/test-snprintf-posix.h (test_function): Likewise.
54409         * tests/test-sprintf-posix.h (test_function): Likewise.
54410
54411         Fix *printf behaviour for large precisions on mingw and BeOS.
54412         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54413         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54415         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54417         gl_PRINTF_PRECISION and test its result. Invoke
54418         gl_PREREQ_VASNPRINTF_PRECISION.
54419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54426         * doc/functions/fprintf.texi: Update.
54427         * doc/functions/printf.texi: Update.
54428         * doc/functions/snprintf.texi: Update.
54429         * doc/functions/sprintf.texi: Update.
54430         * doc/functions/vfprintf.texi: Update.
54431         * doc/functions/vprintf.texi: Update.
54432         * doc/functions/vsnprintf.texi: Update.
54433         * doc/functions/vsprintf.texi: Update.
54434
54435 2007-11-04  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54438
54439 2007-11-04  Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54442         Reported by Sylvain Beucler <beuc@gnu.org>.
54443
54444 2007-11-03  Bruno Haible  <bruno@clisp.org>
54445
54446         * tests/test-fprintf-posix2.sh: New file.
54447         * tests/test-fprintf-posix2.c: New file.
54448         * modules/fprintf-posix-tests (Files): Add them.
54449         (TESTS): Add test-fprintf-posix2.sh.
54450         (configure.ac): Check for getrlimit and setrlimit.
54451         (check_PROGRAMS): Add test-fprintf-posix2.
54452
54453         * tests/test-printf-posix2.sh: New file.
54454         * tests/test-printf-posix2.c: New file.
54455         * modules/printf-posix-tests (Files): Add them.
54456         (TESTS): Add test-printf-posix2.sh.
54457         (configure.ac): Check for getrlimit and setrlimit.
54458         (check_PROGRAMS): Add test-printf-posix2.
54459
54460         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54461         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54462         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54463         (decode_double): New function, copied from decode_long_double.
54464         (scale10_round_decimal_decoded): New function, extracted from
54465         scale10_round_decimal_long_double.
54466         (scale10_round_decimal_long_double): Use it.
54467         (scale10_round_decimal_double): New function.
54468         (floorlog10): New function.
54469         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54471         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54472         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54473         gl_PRINTF_ENOMEM and test its result. Invoke
54474         gl_PREREQ_VASNPRINTF_ENOMEM.
54475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54482         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54483         * modules/snprintf-posix (Depends-on): Likewise.
54484         * modules/sprintf-posix (Depends-on): Likewise.
54485         * modules/vasnprintf-posix (Depends-on): Likewise.
54486         * modules/vasprintf-posix (Depends-on): Likewise.
54487         * modules/vfprintf-posix (Depends-on): Likewise.
54488         * modules/vsnprintf-posix (Depends-on): Likewise.
54489         * modules/vsprintf-posix (Depends-on): Likewise.
54490         * doc/functions/fprintf.texi: Update.
54491         * doc/functions/printf.texi: Update.
54492         * doc/functions/snprintf.texi: Update.
54493         * doc/functions/sprintf.texi: Update.
54494         * doc/functions/vfprintf.texi: Update.
54495         * doc/functions/vprintf.texi: Update.
54496         * doc/functions/vsnprintf.texi: Update.
54497         * doc/functions/vsprintf.texi: Update.
54498
54499 2007-11-03  Bruno Haible  <bruno@clisp.org>
54500
54501         * modules/frexp-nolibm-tests: New file.
54502
54503         * modules/frexp-nolibm: New file.
54504         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54505
54506 2007-11-03  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54509         value is C99 compliant.
54510         Needed for OSF/1 5.1.
54511
54512 2007-11-03  Bruno Haible  <bruno@clisp.org>
54513
54514         Fix out-of-memory handling of vasnprintf.
54515         * lib/printf-parse.c: Include <errno.h>.
54516         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54517         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54518         is already set.
54519
54520 2007-11-02  Eric Blake  <ebb9@byu.net>
54521
54522         Fix tests on cygwin.
54523         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54524
54525 2007-11-01  Bruno Haible  <bruno@clisp.org>
54526
54527         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54528         warning.
54529         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54530         needed for POSIX compatibility.
54531
54532 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54535         for compatibility with GNU.
54536
54537 2007-11-01  Bruno Haible  <bruno@clisp.org>
54538
54539         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54540         (putenv): Renamed from rpl_putenv. Change argument type from
54541         'const char *' to 'char *'.
54542         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54543         of defining putenv in config.h, just set REPLACE_PUTENV.
54544         * modules/putenv (Depends-on): Add stdlib.
54545         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54546         (Include): Use <stdlib.h>.
54547         * lib/stdlib.in.h (putenv): New declaration.
54548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54549         REPLACE_PUTENV.
54550         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54551         REPLACE_PUTENV.
54552         Needed for MacOS X 10.5.0.
54553         Reported by Peter O'Gorman <peter@pogma.com>.
54554
54555 2007-11-01  Jim Meyering  <meyering@redhat.com>
54556
54557         Treat an empty date string exactly like "0".
54558         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54559         if the remaining date string (to be parsed) is empty, use "0".
54560         Reported by Mischa Molhoek and discussed in this thread:
54561         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54562
54563 2007-10-31  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54566         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54567         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54568         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54569         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54570         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54571
54572 2007-10-31  Bruno Haible  <bruno@clisp.org>
54573
54574         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54575         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54576         (AC_TYPE_LONG_LONG_INT): Use it.
54577         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54578         it as well.
54579         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54580         to m4/longlong.m4.
54581         * modules/stdint (Files): Remove m4/ulonglong.m4.
54582         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54583         m4/ulonglong.m4.
54584         * modules/strtoumax (Files): Likewise.
54585
54586 2007-10-30  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/xvasprintf-posix: New file.
54589         Suggested by Eric Blake.
54590
54591 2007-10-30  Bruno Haible  <bruno@clisp.org>
54592
54593         * modules/xprintf-posix-tests: New file.
54594         * tests/test-xprintf-posix.sh: New file.
54595         * tests/test-xprintf-posix.c: New file.
54596         * tests/test-xfprintf-posix.c: New file.
54597
54598         * modules/xprintf-posix: New file.
54599
54600 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54601
54602         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54603         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54604         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54605
54606 2007-10-29  Bruno Haible  <bruno@clisp.org>
54607
54608         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54609         contain the special marker '_cv_'.
54610         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54611         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54612         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54613         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54614         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54615         Reported by Ralf Wildenhues.
54616
54617 2007-10-29  Bruno Haible  <bruno@clisp.org>
54618
54619         * gnulib-tool (func_import): When --lgpl is not specified, set
54620         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54621         GPLv3.
54622         Reported by Simon Josefsson.
54623
54624 2007-10-28  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54627         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54628         HAVE_DECL_ISFINITE.
54629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54630         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54631         HAVE_DECL_ISFINITE.
54632
54633 2007-10-28  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54636         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54637
54638 2007-10-28  Bruno Haible  <bruno@clisp.org>
54639
54640         Fix link errors with Sun C 5.0 on Solaris 10.
54641         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54642         function is declared but not present in the compiler's libm.
54643         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54644         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54645         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54646         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54647         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54648         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54649         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54651         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54652         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54653         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54654         HAVE_DECL_FLOORL.
54655
54656 2007-10-28  Bruno Haible  <bruno@clisp.org>
54657
54658         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54659         gl_FUNC_FLOORL. Cache the result.
54660         (gl_FUNC_FLOORL): Use it.
54661         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54662         gl_FUNC_CEILL. Cache the result.
54663         (gl_FUNC_CEILL): Use it.
54664
54665         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54666         gl_FUNC_FLOOR. Cache the result.
54667         (gl_FUNC_FLOOR): Use it.
54668         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54669         gl_FUNC_CEIL. Cache the result.
54670         (gl_FUNC_CEIL): Use it.
54671
54672         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54673         gl_FUNC_FLOORF. Cache the result.
54674         (gl_FUNC_FLOORF): Use it.
54675         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54676         gl_FUNC_CEILF. Cache the result.
54677         (gl_FUNC_CEILF): Use it.
54678
54679 2007-10-28  Bruno Haible  <bruno@clisp.org>
54680
54681         * gnulib-tool: Allow specifying the LGPL version number through
54682         --lgpl=2 or --lgpl=3.
54683         (func_usage): Document --lgpl with argument.
54684         Handle --lgpl=... arguments.
54685         (func_import): Recognize also gl_LGPL calls with an argument. When
54686         --lgpl=2 is used and the module's license is just LGPL, report an
54687         error. Set sed_transform_lib_file according to the lgpl variable. In
54688         the generated files, use --lgpl or gl_LGPL invocations with argument,
54689         if necessary.
54690         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54691         an LGPv2+ license.
54692         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54693         gl_LGPL macro.
54694
54695 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54696             Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54699         (u16_uctomb_aux): Likewise.
54700         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54701         !HAVE_INLINE.
54702         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54703
54704 2007-10-28  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54707         Invoke AM_GETTEXT_OPTION if it exists.
54708         * modules/vasprintf: Likewise.
54709         * modules/verror: Likewise.
54710         * modules/xprintf: Likewise.
54711         * modules/xvasprintf: Likewise.
54712
54713 2007-10-27  Ben Pfaff  <blp@gnu.org>
54714
54715         * lib/math.in.h: Define isfinite macro and prototypes for
54716         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54717         implementations.
54718         * m4/math_h.m4: New substitutions for isfinite module.
54719         * lib/isfinite.c: New file.
54720         * m4/isfinite.m4: New file.
54721         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54722         * modules/isfinite: New file.
54723         * modules/isfinite-tests: New file.
54724         * tests/tests-isfinite.c: New file.
54725         * doc/functions/isfinite.texi: Mention isfinite module.
54726         * MODULES.html.sh: Mention new module.
54727
54728 2007-10-27  Ben Pfaff  <blp@gnu.org>
54729
54730         Ralf Wildenhues reported that Tru64 4.0D declares the round
54731         functions but does not have definitions.
54732         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54733         cannot be found in any library, set the output variable to
54734         "missing" instead of "".
54735         * m4/round.m4: Also use our substitute if we cannot find round in
54736         any library, even if it is declared.
54737         * m4/roundf.m4: Likewise for roundf.
54738         * m4/roundl.m4: Likewise for roundl.
54739         * lib/math.in.h: Undefine roundf, round, roundl before defining
54740         their replacements, to allow for hypothetical systems where these
54741         may be defined as macros but not available in libraries.
54742
54743 2007-10-27  Bruno Haible  <bruno@clisp.org>
54744
54745         * doc/gnulib.texi: Invoke @firstparagraphindent.
54746         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54747         changes in gnulib.
54748         (Source changes): New section.
54749
54750 2007-10-26  Bruno Haible  <bruno@clisp.org>
54751
54752         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54753         borrowed from autoconf.
54754
54755 2007-10-26  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54758         strerror returned the empty string. Needed on HP-UX 11.00.
54759
54760 2007-10-24  Micah Cowan  <micah@cowan.name>
54761
54762         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54763         * build-aux/bootstrap: Remove support for now-unnecessary option,
54764         --cvs-user, and envvars CVS_USER, CVS_RSH.
54765
54766 2007-10-24  Jim Meyering  <meyering@redhat.com>
54767
54768         Avoid diagnostics from sha1sum when there is no cached checksum.
54769         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54770         if the po.s1 file hasn't been created yet.
54771
54772         * build-aux/bootstrap: Sync from coreutils:
54773         2007-10-24  Jim Meyering  <meyering@redhat.com>
54774         Get gnulib from the git repository, not from an obsolete cvs one.
54775         * build-aux/bootstrap: Suggestion from Micah Cowan.
54776         2007-10-04  Jim Meyering  <jim@meyering.net>
54777         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54778         (update_po_files): Work also when there are no .po files in po/.
54779
54780 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54781
54782         * README: Append ".git" to git and cg examples.
54783         Problem reported by Benoit Sigoure.
54784
54785 2007-10-23  Micah Cowan  <micah@cowan.name>
54786
54787         * users.txt: Add wget.
54788
54789 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54790
54791         Fix linking of some unistdio tests on FreeBSD.
54792         * modules/unistdio/u16-vsnprintf-tests
54793         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54794         * modules/unistdio/u16-vsprintf-tests
54795         (test_u16_vsnprintf1_LDADD): Likewise.
54796         * modules/unistdio/u32-vsnprintf-tests
54797         (test_u32_vsnprintf1_LDADD): Likewise.
54798         * modules/unistdio/u32-vsprintf-tests
54799         (test_u32_vsprintf1_LDADD): Likewise.
54800         * modules/unistdio/u8-vsnprintf-tests
54801         (test_u8_vsnprintf1_LDADD): Likewise.
54802         * modules/unistdio/u8-vsprintf-tests
54803         (test_u8_vsprintf1_LDADD): Likewise.
54804         * modules/unistdio/ulc-vsnprintf-tests
54805         (test_ulc_vsnprintf1_LDADD): Likewise.
54806         * modules/unistdio/ulc-vsprintf-tests
54807         (test_ulc_vsprintf1_LDADD): Likewise.
54808
54809         Fix linking of some uniconv tests on FreeBSD.
54810         * modules/uniconv/u16-conv-from-enc-tests
54811         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54812         * modules/uniconv/u16-conv-to-enc-tests
54813         (test_u16_conv_to_enc_LDADD): Likewise.
54814         * modules/uniconv/u16-strconv-from-enc-tests
54815         (test_u16_strconv_from_enc_LDADD): Likewise.
54816         * modules/uniconv/u16-strconv-to-enc-tests
54817         (test_u16_strconv_to_enc_LDADD): Likewise.
54818         * modules/uniconv/u32-conv-from-enc-tests
54819         (test_u32_conv_from_enc_LDADD): Likewise.
54820         * modules/uniconv/u32-conv-to-enc-tests
54821         (test_u32_conv_to_enc_LDADD): Likewise.
54822         * modules/uniconv/u32-strconv-from-enc-tests
54823         (test_u32_strconv_from_enc_LDADD): Likewise.
54824         * modules/uniconv/u32-strconv-to-enc-tests
54825         (test_u32_strconv_to_enc_LDADD): Likewise.
54826         * modules/uniconv/u8-conv-from-enc-tests
54827         (test_u8_conv_from_enc_LDADD): Likewise.
54828         * modules/uniconv/u8-conv-to-enc-tests
54829         (test_u8_conv_to_enc_LDADD): Likewise.
54830         * modules/uniconv/u8-strconv-from-enc-tests
54831         (test_u8_strconv_from_enc_LDADD): Likewise.
54832         * modules/uniconv/u8-strconv-to-enc-tests
54833         (test_u8_strconv_to_enc_LDADD): Likewise.
54834
54835 2007-10-22  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54838         size.
54839
54840 2007-10-22  Eric Blake  <ebb9@byu.net>
54841
54842         Tweak x*printf documentation.
54843         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54844         variable name and comments.
54845         Suggested by Bruno Haible.
54846
54847 2007-10-22  Bruno Haible  <bruno@clisp.org>
54848
54849         * lib/acl.c (copy_acl): Fix file name in comment.
54850
54851 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         Fix Tru64 problem with stdbool.h.
54854         * lib/stdbool.in.h (false, true):
54855         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54856         Don't declare as an enum in this situation; it runs afoul of Tru64.
54857         Problem reported by Steven M. Schweda in
54858         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54859
54860 2007-10-22  Eric Blake  <ebb9@byu.net>
54861
54862         Also wrap vf?printf.
54863         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54864         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54865         (xvprintf, xvfprintf): New functions.
54866
54867 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54868
54869         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54870         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54871
54872         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54873         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54874
54875 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54876
54877         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54878         by Bruno Haible.
54879
54880 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54881
54882         * lib/getloadavg.c
54883         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54884         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54885
54886         * tests/test-i-ring.c: Work for C89.
54887
54888 2007-10-22  Bruno Haible  <bruno@clisp.org>
54889
54890         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54891         -1u, in preprocessor expression, so that we don't test for the bug
54892         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54893         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54894
54895 2007-10-22  Eric Blake  <ebb9@byu.net>
54896
54897         * tests/test-yesno.sh: Silence stderr during test.
54898
54899 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54900
54901         * modules/crypto/gc-camellia: New file.
54902
54903         * m4/gc-camellia.m4: New file.
54904
54905         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54906
54907         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54908
54909 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54910
54911         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54912         --help to stdout.  Reported by sms@antinode.org (Steven
54913         M. Schweda).
54914
54915 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54916
54917         * users.txt: Fix link to libksba.
54918
54919 2007-10-21  Ben Pfaff  <blp@gnu.org>
54920
54921         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54922         round.c roundf implementation that depends on floorf and ceilf to
54923         be tested unconditionally.
54924
54925 2007-10-21  Ben Pfaff  <blp@gnu.org>
54926
54927         * m4/check-libm-func.m4: Removed.
54928         * m4/check-math-lib.m4: New file.
54929         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54930         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54931         definition and lack of AC_LIBOBJ([roundf]).
54932         * m4/roundl.m4: Ditto, and similarly for roundl.
54933         * modules/round: Reference new m4 file.
54934         * modules/roundf: Ditto.
54935         * modules/roundl: Ditto.
54936         * tests/test-round2.c (main): Use ROUND instead of round.
54937         Bug report from Bruno Haible.
54938
54939 2007-10-21  Bruno Haible  <bruno@clisp.org>
54940
54941         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54942         context.
54943
54944 2007-10-21  Bruno Haible  <bruno@clisp.org>
54945
54946         * tests/test-wcwidth.c (main): Allow negative result for some control
54947         characters.
54948
54949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54950         Needed on OSF/1 5.1.
54951
54952 2007-10-21  Bruno Haible  <bruno@clisp.org>
54953
54954         * tests/test-floorf1.c: Include isnanf.h.
54955         (main): Use isnanf() instead of isnan().
54956         * tests/test-ceilf1.c: Include isnanf.h.
54957         (main): Use isnanf() instead of isnan().
54958         * tests/test-truncf1.c: Include isnanf.h.
54959         (main): Use isnanf() instead of isnan().
54960         * tests/test-roundf1.c: Include isnanf.h.
54961         (main): Use isnanf() instead of isnan().
54962
54963 2007-10-21  Eric Blake  <ebb9@byu.net>
54964
54965         * users.txt: Update URL for m4.
54966
54967 2007-10-21  Bruno Haible  <bruno@clisp.org>
54968
54969         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54970
54971 2007-10-21  Bruno Haible  <bruno@clisp.org>
54972
54973         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54974         Git's management files if the CVS files are not present.
54975
54976 2007-10-20  Bruno Haible  <bruno@clisp.org>
54977
54978         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54979         gcc-3.4.x.
54980
54981 2007-10-20  Ben Pfaff  <blp@gnu.org>
54982
54983         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54984         implementations.
54985         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54986         * lib/round.c: New file.
54987         * lib/roundf.c: New file.
54988         * lib/roundl.c: New file.
54989         * m4/round.m4: New file.
54990         * m4/roundf.m4: New file.
54991         * m4/roundl.m4: New file.
54992         * m4/check-libm-func-m4: New file.
54993         * modules/math: Replace round, roundf, roundl related @VARS@ in
54994         math.in.h.
54995         * modules/round: New file.
54996         * modules/round-tests: New file.
54997         * modules/roundf: New file.
54998         * modules/roundf-tests: New file.
54999         * modules/roundl: New file.
55000         * modules/roundl-tests: New file.
55001         * tests/test-round1.c: New file.
55002         * tests/test-round2.c: New file.
55003         * tests/test-roundf1.c: New file.
55004         * tests/test-roundf2.c: New file.
55005         * tests/test-roundl.c: New file.
55006         * doc/functions/round.texi: Mention round module.
55007         * doc/functions/roundf.texi: Mention roundf module.
55008         * doc/functions/roundl.texi: Mention roundl module.
55009         * MODULES.html.sh: Mention new modules.
55010         Thanks to Bruno Haible for suggestions.
55011
55012 2007-10-20  Jim Meyering  <meyering@redhat.com>
55013
55014         * lib/xprintf.c: Include <config.h> unconditionally.
55015
55016         Change xprintf's license to GPL.
55017         * modules/xprintf (License): s/LGPL/GPL/, since this module
55018         depends on modules (exit and exitfail) which are GPL.
55019         Suggestion from Bruno Haible.
55020
55021         xprintf fixes.
55022         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55023         Use a clearer diagnostic.
55024         Patch from Bruno Haible.
55025
55026 2007-10-20  Bruno Haible  <bruno@clisp.org>
55027
55028         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55029         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55031
55032 2007-10-20  Bruno Haible  <bruno@clisp.org>
55033
55034         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55035         precision in the comparison result > x - 1 or similar.
55036         * tests/test-ceilf2.c (correct_result_p): Likewise.
55037         * tests/test-truncf2.c (correct_result_p): Likewise.
55038         * tests/test-trunc2.c (correct_result_p): Likewise.
55039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55040
55041 2007-10-20  Bruno Haible  <bruno@clisp.org>
55042
55043         * modules/ceil: New file.
55044         * m4/ceil.m4: New file.
55045         * doc/functions/ceil.texi: Mention the 'ceil' module.
55046
55047 2007-10-20  Bruno Haible  <bruno@clisp.org>
55048
55049         * modules/floor: New file.
55050         * m4/floor.m4: New file.
55051         * doc/functions/floor.texi: Mention the 'floor' module.
55052
55053 2007-10-20  Bruno Haible  <bruno@clisp.org>
55054
55055         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55056         of %a.
55057         * modules/floorf-tests (Depends-on): Likewise.
55058         * modules/truncf-tests (Depends-on): Likewise.
55059         * modules/trunc-tests (Depends-on): Likewise.
55060         Reported by Ben Pfaff.
55061
55062 2007-10-19  Jim Meyering  <meyering@redhat.com>
55063
55064         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55065         Don't bother testing specific errno values.  Just test ferror.
55066
55067         New module: xprintf
55068         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55069
55070 2007-10-19  Bruno Haible  <bruno@clisp.org>
55071
55072         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55073         syntax.
55074         * modules/javaexec (Makefile.am): Likewise.
55075         * modules/relocatable-prog (Makefile.am): Likewise.
55076         Suggested by Jim Meyering.
55077
55078 2007-10-18  Bruno Haible  <bruno@clisp.org>
55079
55080         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55081         Reported by Jim Meyering.
55082
55083 2007-10-18  Eric Blake  <ebb9@byu.net>
55084
55085         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55086
55087 2007-10-18  Bruno Haible  <bruno@clisp.org>
55088
55089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55090         the format string into writable memory. Needed in Fortify conditions.
55091
55092 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55093             Bruno Haible  <bruno@clisp.org>
55094
55095         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55096         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55097         * modules/trim (Depends-on): Add mbchar.
55098         (configure.ac): Add gl_FUNC_MBRTOWC.
55099         (Makefile.am): Augment lib_SOURCES.
55100
55101 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55102
55103         Modify glob.c to use fstatat and dirfd, to simplify it.
55104         Suggested by Eric Blake.
55105         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55106         Don't include <stdbool.h>; not used.
55107         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55108         (link_exists_p): Simplify implementation, since we can now assume
55109         dirfd and fstatat.
55110         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55111
55112 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55113
55114         * gnulib-tool (func_get_dependencies): Fix sed script to
55115         match only tests.
55116
55117 2007-10-17  Bruno Haible  <bruno@clisp.org>
55118
55119         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55120         allow locale names without encoding suffix.
55121         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55123
55124 2007-10-16  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55127         * lib/getgroups.c (getgroups): Likewise.
55128         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55129
55130 2007-10-16  Bruno Haible  <bruno@clisp.org>
55131
55132         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55133         * modules/malloc-posix (License): Likewise.
55134         * modules/realloc-posix (License): Likewise.
55135         * modules/calloc-posix (License): Likewise.
55136         * modules/intprops (License): Change from GPL to LGPL, with
55137         Paul Eggert's approval.
55138
55139 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         Merge glibc changes into lib/glob.c.
55142
55143         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55144         2007-10-15 04:59:03 UTC.  Here are the changes:
55145
55146         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55147
55148         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55149
55150         * lib/glob.c: Add some branch prediction throughout.
55151
55152         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55153
55154         [BZ #5103]
55155         * lib/glob.c (glob): Recognize patterns starting \/.
55156
55157         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55158
55159         [BZ #3996]
55160         * lib/glob.c (attribute_hidden): Define if not defined.
55161         (glob): Unescape dirname, filename or username when needed and not
55162         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55163         is NULL.  Handle unescaped [ in pattern without closing ].
55164         Don't pass GLOB_CHECK down to recursive glob for directories.
55165         (__glob_pattern_type): New function.
55166         (__glob_pattern_p): Implement using __glob_pattern_type.
55167         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55168         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55169         Remove unreachable code.
55170
55171         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55172
55173         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55174         explain why there are no leaks.
55175
55176         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55177
55178         [BZ #3253]
55179         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55180         time, rather allocate increasingly bigger arrays of pointers, if
55181         possible with alloca, if too large with malloc.
55182
55183 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55184
55185         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55186         Problem reported by H.Merijn Brand in
55187         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55188         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55189         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55190
55191 2007-10-15  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55194         with explicit rpl_ prefix.
55195         * lib/fopen.c (fopen): Likewise.
55196         * lib/freopen.c (freopen): Likewise.
55197         * lib/iconv.c (iconv): Likewise.
55198         * lib/iconv_close.c (iconv_close): Likewise.
55199
55200 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55201
55202         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55203
55204 2007-10-15  Bruno Haible  <bruno@clisp.org>
55205
55206         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55207         <stddef.h> instead of <stdlib.h> since we only need NULL.
55208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55209
55210 2007-10-15  Bruno Haible  <bruno@clisp.org>
55211
55212         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55213         Replace paragraph talking about LIBOBJS.
55214         Reported by Colin Watson <cjwatson@debian.org>.
55215
55216 2007-10-15  Bruno Haible  <bruno@clisp.org>
55217
55218         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55219         <stdlib.h> before using NULL.
55220
55221 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55222
55223         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55224         Reported by Albert Chin <china@thewrittenword.com>.
55225
55226 2007-10-14  Bruno Haible  <bruno@clisp.org>
55227
55228         * modules/iconv_open-utf-tests: New file.
55229         * tests/test-iconv-utf.c: New file.
55230
55231         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55232         * modules/iconv_open-utf: New file.
55233         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55234         (iconv, iconv_close): New declarations.
55235         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55236         be defined.
55237         (iconv_open): Add special handling of conversion between UTF-8 and
55238         UTF-{16,32}{BE,LE}.
55239         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55240         * lib/iconv_close.c: New file.
55241         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55242         gl_FUNC_ICONV_OPEN.
55243         (gl_FUNC_ICONV_OPEN): Use it.
55244         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55245         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55246         and REPLACE_ICONV_UTF.
55247         * modules/iconv_open (Depends-on): Add c-strcase.
55248         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55249         ICONV_CONST.
55250         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55251
55252 2007-10-13  Albert Chin  <china@thewrittenword.com>
55253             Bruno Haible  <bruno@clisp.org>
55254
55255         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55256         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55257
55258 2007-10-13  Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55261         defined, use the ISO C99 inline semantics.
55262         * lib/argp.h (ARGP_EI): Likewise.
55263
55264 2007-10-13  Bruno Haible  <bruno@clisp.org>
55265
55266         Handle 'inline' change in gcc 4.3.0.
55267         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55268         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55269         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55270         argp_fmtstream_point): Disable 'extern' declaration if the function
55271         definition is going to be provided inline.
55272         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55273         semantics, not the ISO C99 inline semantics.
55274         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55275         'extern' declaration if the function definition is going to be provided
55276         inline.
55277         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55278         the GNU C inline semantics, not the ISO C99 inline semantics. With
55279         GCC 4.2, avoid a warning.
55280
55281 2007-10-13  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/freading.h (freading): Enable the use of __freading for
55284         glibc >= 2.7.
55285         * lib/freading.c (freading): Likewise.
55286
55287 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55290         "warning: C99 inline functions are not supported; using GNU89".
55291
55292 2007-10-12  Bruno Haible  <bruno@clisp.org>
55293
55294         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55295         of 2.
55296         * tests/test-ceilf2.c: New file.
55297         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55298
55299         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55300         * modules/ceilf-tests: Update.
55301
55302 2007-10-12  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55305         of 2.
55306         * tests/test-floorf2.c: New file.
55307         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55308
55309         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55310         * modules/floorf-tests: Update.
55311
55312 2007-10-12  Bruno Haible  <bruno@clisp.org>
55313
55314         * tests/test-trunc2.c: New file.
55315         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55316
55317         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55318         * modules/trunc-tests: Update.
55319
55320 2007-10-12  Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55323         of 2.
55324         * tests/test-truncf2.c: New file.
55325         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55326
55327         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55328         * modules/truncf-tests: Update.
55329
55330 2007-10-11  Eric Blake  <ebb9@byu.net>
55331
55332         Don't claim strerror is broken on Interix.
55333         * doc/functions/strerror.texi (strerror): Known broken systems are
55334         now Solaris 8, and not Interix.
55335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55336         Interix on cross-compile.
55337         Reported by Martin Koeppe in
55338         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55339
55340 2007-10-11  Bruno Haible  <bruno@clisp.org>
55341
55342         * modules/i-ring-tests: New file.
55343         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55344         instead of assert.
55345
55346 2007-10-11  Bruno Haible  <bruno@clisp.org>
55347
55348         * modules/filenamecat-tests: New file.
55349         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55350         * lib/filenamecat.c: Remove test code.
55351
55352 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55353
55354         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55355
55356         * lib/strerror.c: Include <string.h> always, to test interface,
55357         and to remove the need for the dummy.
55358         Include intprops.h to compute width instead of doing it ourselves
55359         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55360         (strerror): Define it to return NULL if there's no system strerror.
55361         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55362         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55363         ancient pre-strerror Unix systems well any more.  Saying "unknown
55364         system error" is enough.
55365         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55366         simpler strerror.c implementation.
55367         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55368         Simplify the tests to reflect the simpler strerror implementation.
55369         * modules/strerror (Depends-on): Add intprops.
55370
55371 2007-10-09  Eric Blake  <ebb9@byu.net>
55372
55373         Silence test-fpending.
55374         * modules/fpending-tests (Files): Add wrapper script.
55375         * tests/test-fpending.sh: New file.
55376
55377 2007-10-09  Bruno Haible  <bruno@clisp.org>
55378
55379         * MODULES.html.sh (func_module): Don't create a hyperlink for
55380         function names like 'printf_frexp'.
55381         (Misc): Add crc, memxor.
55382         (Characteristics of floating types): New section.
55383         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55384         isnanf-nolibm, signbit, trunc, truncf, truncl.
55385         (Enhancements for ISO C 99 functions): New subsection Input/output.
55386         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55387         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55388         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55389         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55390         (Enhancements for POSIX:2001 functions): Add chdir-long.
55391         (File system functions): Add areadlink, chdir-safer, read-file.
55392         Remove cycle-check.
55393         (File system as inode set): New section.
55394         (Date and time): Add gethrxtime.
55395         (Multithreading): Add openmp.
55396         (Internationalization functions): Add localename.
55397         (Unicode string functions): Add unistr/u*-mbsnlen.
55398         (Support for maintaining and releasing projects): Add git-version-gen.
55399         (Lone files): Remove directories.
55400
55401 2007-10-08  Ben Pfaff  <blp@gnu.org>
55402
55403         * lib/xmalloca.h: Fix typo in comment.
55404
55405 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55408         when avoiding problems with integer overflow.  Use a portable test
55409         instead.
55410
55411 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55412
55413         * modules/dummy (License): Change to LGPLv2+.
55414         * modules/float (License): Likewise
55415         * modules/realloc (License): Likewise
55416         * modules/stdlib (License): Likewise
55417
55418 2007-10-07  Bruno Haible  <bruno@clisp.org>
55419
55420         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55421         * floor.c (TWO_MANT_DIG): Likewise.
55422         * ceil.c (TWO_MANT_DIG): Likewise.
55423         Reported by Ben Pfaff.
55424
55425 2007-10-07  Bruno Haible  <bruno@clisp.org>
55426
55427         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55428         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55429         * lib/frexp.c (FUNC): Likewise.
55430         * lib/printf-frexp.h (printf_frexp): Likewise.
55431         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55432         * lib/printf-frexp.c (FUNC): Likewise.
55433         Suggested by Jim Meyering.
55434
55435 2007-10-07  Jim Meyering  <meyering@redhat.com>
55436
55437         Make xnanosleep's integer overflow test more robust.
55438         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55439         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55440
55441 2007-10-07  Bruno Haible  <bruno@clisp.org>
55442
55443         * NEWS: Mention the license change.
55444
55445         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55446         abbreviations in the modules files.
55447
55448         Change copyright notice from GPLv2+ to GPLv3+.
55449         * README: Change copyright notice.
55450         * MODULES.html.sh: Likewise.
55451         * build-aux/bootstrap.conf: Likewise.
55452         * build-aux/config.libpath: Likewise.
55453         * build-aux/csharpcomp.sh.in: Likewise.
55454         * build-aux/csharpexec.sh.in: Likewise.
55455         * build-aux/install-reloc: Likewise.
55456         * build-aux/javacomp.sh.in: Likewise.
55457         * build-aux/javaexec.sh.in: Likewise.
55458         * build-aux/ldd.sh.in: Likewise.
55459         * build-aux/reloc-ldflags: Likewise.
55460         * build-aux/relocatable.sh.in: Likewise.
55461         * build-aux/x-to-1.in: Likewise.
55462         * check-module: Likewise.
55463         * config/srclistvars.sh: Likewise.
55464         * gnulib-tool: Likewise.
55465         * lib/acl-internal.h: Likewise.
55466         * lib/acl.c: Likewise.
55467         * lib/acl.h: Likewise.
55468         * lib/acl_entries.c: Likewise.
55469         * lib/areadlink-with-size.c: Likewise.
55470         * lib/areadlink.c: Likewise.
55471         * lib/areadlink.h: Likewise.
55472         * lib/argmatch.c: Likewise.
55473         * lib/argmatch.h: Likewise.
55474         * lib/argp-ba.c: Likewise.
55475         * lib/argp-eexst.c: Likewise.
55476         * lib/argp-fmtstream.c: Likewise.
55477         * lib/argp-fmtstream.h: Likewise.
55478         * lib/argp-fs-xinl.c: Likewise.
55479         * lib/argp-help.c: Likewise.
55480         * lib/argp-namefrob.h: Likewise.
55481         * lib/argp-parse.c: Likewise.
55482         * lib/argp-pin.c: Likewise.
55483         * lib/argp-pv.c: Likewise.
55484         * lib/argp-pvh.c: Likewise.
55485         * lib/argp-xinl.c: Likewise.
55486         * lib/argp.h: Likewise.
55487         * lib/at-func.c: Likewise.
55488         * lib/atanl.c: Likewise.
55489         * lib/backupfile.c: Likewise.
55490         * lib/backupfile.h: Likewise.
55491         * lib/basename.c: Likewise.
55492         * lib/binary-io.h: Likewise.
55493         * lib/byteswap.in.h: Likewise.
55494         * lib/c-stack.c: Likewise.
55495         * lib/c-stack.h: Likewise.
55496         * lib/c-strcasestr.c: Likewise.
55497         * lib/c-strcasestr.h: Likewise.
55498         * lib/c-strstr.c: Likewise.
55499         * lib/c-strstr.h: Likewise.
55500         * lib/c-strtod.c: Likewise.
55501         * lib/calloc.c: Likewise.
55502         * lib/canon-host.c: Likewise.
55503         * lib/canon-host.h: Likewise.
55504         * lib/canonicalize-lgpl.c: Likewise.
55505         * lib/canonicalize.c: Likewise.
55506         * lib/canonicalize.h: Likewise.
55507         * lib/ceil.c: Likewise.
55508         * lib/ceilf.c: Likewise.
55509         * lib/ceill.c: Likewise.
55510         * lib/chdir-long.c: Likewise.
55511         * lib/chdir-long.h: Likewise.
55512         * lib/chdir-safer.c: Likewise.
55513         * lib/chdir-safer.h: Likewise.
55514         * lib/chown.c: Likewise.
55515         * lib/classpath.c: Likewise.
55516         * lib/classpath.h: Likewise.
55517         * lib/clean-temp.c: Likewise.
55518         * lib/clean-temp.h: Likewise.
55519         * lib/cloexec.c: Likewise.
55520         * lib/close-stream.c: Likewise.
55521         * lib/closein.c: Likewise.
55522         * lib/closein.h: Likewise.
55523         * lib/closeout.c: Likewise.
55524         * lib/closeout.h: Likewise.
55525         * lib/concat-filename.c: Likewise.
55526         * lib/copy-file.c: Likewise.
55527         * lib/copy-file.h: Likewise.
55528         * lib/count-one-bits.h: Likewise.
55529         * lib/crc.c: Likewise.
55530         * lib/crc.h: Likewise.
55531         * lib/creat-safer.c: Likewise.
55532         * lib/csharpcomp.c: Likewise.
55533         * lib/csharpcomp.h: Likewise.
55534         * lib/csharpexec.c: Likewise.
55535         * lib/csharpexec.h: Likewise.
55536         * lib/cycle-check.c: Likewise.
55537         * lib/cycle-check.h: Likewise.
55538         * lib/diacrit.c: Likewise.
55539         * lib/diacrit.h: Likewise.
55540         * lib/diffseq.h: Likewise.
55541         * lib/dirchownmod.c: Likewise.
55542         * lib/dirent.in.h: Likewise.
55543         * lib/dirfd.c: Likewise.
55544         * lib/dirfd.h: Likewise.
55545         * lib/dirname.c: Likewise.
55546         * lib/dirname.h: Likewise.
55547         * lib/dummy.c: Likewise.
55548         * lib/dup-safer.c: Likewise.
55549         * lib/dup2.c: Likewise.
55550         * lib/eealloc.h: Likewise.
55551         * lib/error.c: Likewise.
55552         * lib/error.h: Likewise.
55553         * lib/euidaccess.c: Likewise.
55554         * lib/exclude.c: Likewise.
55555         * lib/exclude.h: Likewise.
55556         * lib/execute.c: Likewise.
55557         * lib/execute.h: Likewise.
55558         * lib/exitfail.c: Likewise.
55559         * lib/exitfail.h: Likewise.
55560         * lib/expl.c: Likewise.
55561         * lib/fatal-signal.c: Likewise.
55562         * lib/fatal-signal.h: Likewise.
55563         * lib/fbufmode.c: Likewise.
55564         * lib/fbufmode.h: Likewise.
55565         * lib/fchdir.c: Likewise.
55566         * lib/fchmodat.c: Likewise.
55567         * lib/fchownat.c: Likewise.
55568         * lib/fcntl--.h: Likewise.
55569         * lib/fcntl-safer.h: Likewise.
55570         * lib/fcntl.in.h: Likewise.
55571         * lib/fd-safer.c: Likewise.
55572         * lib/fflush.c: Likewise.
55573         * lib/file-has-acl.c: Likewise.
55574         * lib/file-set.c: Likewise.
55575         * lib/file-type.c: Likewise.
55576         * lib/file-type.h: Likewise.
55577         * lib/fileblocks.c: Likewise.
55578         * lib/filemode.c: Likewise.
55579         * lib/filemode.h: Likewise.
55580         * lib/filename.h: Likewise.
55581         * lib/filenamecat.c: Likewise.
55582         * lib/filenamecat.h: Likewise.
55583         * lib/findprog.c: Likewise.
55584         * lib/findprog.h: Likewise.
55585         * lib/float.in.h: Likewise.
55586         * lib/floor.c: Likewise.
55587         * lib/floorf.c: Likewise.
55588         * lib/floorl.c: Likewise.
55589         * lib/fopen-safer.c: Likewise.
55590         * lib/fopen.c: Likewise.
55591         * lib/fpending.c: Likewise.
55592         * lib/fpending.h: Likewise.
55593         * lib/fprintf.c: Likewise.
55594         * lib/fprintftime.h: Likewise.
55595         * lib/fpucw.h: Likewise.
55596         * lib/fpurge.c: Likewise.
55597         * lib/fpurge.h: Likewise.
55598         * lib/freadable.c: Likewise.
55599         * lib/freadable.h: Likewise.
55600         * lib/freadahead.c: Likewise.
55601         * lib/freadahead.h: Likewise.
55602         * lib/freading.c: Likewise.
55603         * lib/freading.h: Likewise.
55604         * lib/free.c: Likewise.
55605         * lib/freopen.c: Likewise.
55606         * lib/frexp.c: Likewise.
55607         * lib/frexpl.c: Likewise.
55608         * lib/fseek.c: Likewise.
55609         * lib/fseterr.c: Likewise.
55610         * lib/fseterr.h: Likewise.
55611         * lib/fstatat.c: Likewise.
55612         * lib/fstrcmp.c: Likewise.
55613         * lib/fstrcmp.h: Likewise.
55614         * lib/fsusage.c: Likewise.
55615         * lib/fsusage.h: Likewise.
55616         * lib/ftell.c: Likewise.
55617         * lib/ftello.c: Likewise.
55618         * lib/fts-cycle.c: Likewise.
55619         * lib/fts.c: Likewise.
55620         * lib/fts_.h: Likewise.
55621         * lib/full-read.c: Likewise.
55622         * lib/full-read.h: Likewise.
55623         * lib/full-write.c: Likewise.
55624         * lib/full-write.h: Likewise.
55625         * lib/fwritable.c: Likewise.
55626         * lib/fwritable.h: Likewise.
55627         * lib/fwriteerror.c: Likewise.
55628         * lib/fwriteerror.h: Likewise.
55629         * lib/fwriting.c: Likewise.
55630         * lib/fwriting.h: Likewise.
55631         * lib/gcd.c: Likewise.
55632         * lib/gcd.h: Likewise.
55633         * lib/getcwd.c: Likewise.
55634         * lib/getdate.h: Likewise.
55635         * lib/getdate.y: Likewise.
55636         * lib/getdomainname.c: Likewise.
55637         * lib/getdomainname.h: Likewise.
55638         * lib/getgroups.c: Likewise.
55639         * lib/gethostname.c: Likewise.
55640         * lib/gethrxtime.c: Likewise.
55641         * lib/gethrxtime.h: Likewise.
55642         * lib/getloadavg.c: Likewise.
55643         * lib/getndelim2.c: Likewise.
55644         * lib/getndelim2.h: Likewise.
55645         * lib/getnline.c: Likewise.
55646         * lib/getnline.h: Likewise.
55647         * lib/getopt.c: Likewise.
55648         * lib/getopt.in.h: Likewise.
55649         * lib/getopt1.c: Likewise.
55650         * lib/getopt_int.h: Likewise.
55651         * lib/getpagesize.h: Likewise.
55652         * lib/getsubopt.c: Likewise.
55653         * lib/gettime.c: Likewise.
55654         * lib/getugroups.c: Likewise.
55655         * lib/getugroups.h: Likewise.
55656         * lib/getusershell.c: Likewise.
55657         * lib/gl_anyavltree_list1.h: Likewise.
55658         * lib/gl_anyavltree_list2.h: Likewise.
55659         * lib/gl_anyhash_list1.h: Likewise.
55660         * lib/gl_anyhash_list2.h: Likewise.
55661         * lib/gl_anylinked_list1.h: Likewise.
55662         * lib/gl_anylinked_list2.h: Likewise.
55663         * lib/gl_anyrbtree_list1.h: Likewise.
55664         * lib/gl_anyrbtree_list2.h: Likewise.
55665         * lib/gl_anytree_list1.h: Likewise.
55666         * lib/gl_anytree_list2.h: Likewise.
55667         * lib/gl_anytree_oset.h: Likewise.
55668         * lib/gl_anytreehash_list1.h: Likewise.
55669         * lib/gl_anytreehash_list2.h: Likewise.
55670         * lib/gl_array_list.c: Likewise.
55671         * lib/gl_array_list.h: Likewise.
55672         * lib/gl_array_oset.c: Likewise.
55673         * lib/gl_array_oset.h: Likewise.
55674         * lib/gl_avltree_list.c: Likewise.
55675         * lib/gl_avltree_list.h: Likewise.
55676         * lib/gl_avltree_oset.c: Likewise.
55677         * lib/gl_avltree_oset.h: Likewise.
55678         * lib/gl_avltreehash_list.c: Likewise.
55679         * lib/gl_avltreehash_list.h: Likewise.
55680         * lib/gl_carray_list.c: Likewise.
55681         * lib/gl_carray_list.h: Likewise.
55682         * lib/gl_linked_list.c: Likewise.
55683         * lib/gl_linked_list.h: Likewise.
55684         * lib/gl_linkedhash_list.c: Likewise.
55685         * lib/gl_linkedhash_list.h: Likewise.
55686         * lib/gl_list.c: Likewise.
55687         * lib/gl_list.h: Likewise.
55688         * lib/gl_oset.c: Likewise.
55689         * lib/gl_oset.h: Likewise.
55690         * lib/gl_rbtree_list.c: Likewise.
55691         * lib/gl_rbtree_list.h: Likewise.
55692         * lib/gl_rbtree_oset.c: Likewise.
55693         * lib/gl_rbtree_oset.h: Likewise.
55694         * lib/gl_rbtreehash_list.c: Likewise.
55695         * lib/gl_rbtreehash_list.h: Likewise.
55696         * lib/gl_sublist.c: Likewise.
55697         * lib/gl_sublist.h: Likewise.
55698         * lib/group-member.c: Likewise.
55699         * lib/group-member.h: Likewise.
55700         * lib/hard-locale.c: Likewise.
55701         * lib/hard-locale.h: Likewise.
55702         * lib/hash-pjw.c: Likewise.
55703         * lib/hash-pjw.h: Likewise.
55704         * lib/hash-triple.c: Likewise.
55705         * lib/hash.c: Likewise.
55706         * lib/hash.h: Likewise.
55707         * lib/human.c: Likewise.
55708         * lib/human.h: Likewise.
55709         * lib/i-ring.c: Likewise.
55710         * lib/i-ring.h: Likewise.
55711         * lib/idcache.c: Likewise.
55712         * lib/imaxabs.c: Likewise.
55713         * lib/imaxdiv.c: Likewise.
55714         * lib/inet_pton.c: Likewise.
55715         * lib/inet_pton.h: Likewise.
55716         * lib/intprops.h: Likewise.
55717         * lib/inttostr.c: Likewise.
55718         * lib/inttostr.h: Likewise.
55719         * lib/inttypes.in.h: Likewise.
55720         * lib/isapipe.c: Likewise.
55721         * lib/isdir.c: Likewise.
55722         * lib/isnan.c: Likewise.
55723         * lib/isnan.h: Likewise.
55724         * lib/isnanf.c: Likewise.
55725         * lib/isnanf.h: Likewise.
55726         * lib/isnanl-nolibm.h: Likewise.
55727         * lib/isnanl.c: Likewise.
55728         * lib/isnanl.h: Likewise.
55729         * lib/javacomp.c: Likewise.
55730         * lib/javacomp.h: Likewise.
55731         * lib/javaexec.c: Likewise.
55732         * lib/javaexec.h: Likewise.
55733         * lib/javaversion.c: Likewise.
55734         * lib/javaversion.h: Likewise.
55735         * lib/javaversion.java: Likewise.
55736         * lib/lbrkprop.h: Likewise.
55737         * lib/lchmod.h: Likewise.
55738         * lib/lchown.c: Likewise.
55739         * lib/ldexpl.c: Likewise.
55740         * lib/linebreak.c: Likewise.
55741         * lib/linebreak.h: Likewise.
55742         * lib/linebuffer.c: Likewise.
55743         * lib/linebuffer.h: Likewise.
55744         * lib/locale.in.h: Likewise.
55745         * lib/logl.c: Likewise.
55746         * lib/long-options.c: Likewise.
55747         * lib/long-options.h: Likewise.
55748         * lib/lstat.c: Likewise.
55749         * lib/lstat.h: Likewise.
55750         * lib/math.in.h: Likewise.
55751         * lib/mbchar.c: Likewise.
55752         * lib/mbchar.h: Likewise.
55753         * lib/mbfile.h: Likewise.
55754         * lib/mbiter.h: Likewise.
55755         * lib/mbscasecmp.c: Likewise.
55756         * lib/mbscasestr.c: Likewise.
55757         * lib/mbschr.c: Likewise.
55758         * lib/mbscspn.c: Likewise.
55759         * lib/mbslen.c: Likewise.
55760         * lib/mbsncasecmp.c: Likewise.
55761         * lib/mbsnlen.c: Likewise.
55762         * lib/mbspbrk.c: Likewise.
55763         * lib/mbspcasecmp.c: Likewise.
55764         * lib/mbsrchr.c: Likewise.
55765         * lib/mbssep.c: Likewise.
55766         * lib/mbsspn.c: Likewise.
55767         * lib/mbsstr.c: Likewise.
55768         * lib/mbstok_r.c: Likewise.
55769         * lib/mbswidth.c: Likewise.
55770         * lib/mbswidth.h: Likewise.
55771         * lib/mbuiter.h: Likewise.
55772         * lib/memcasecmp.c: Likewise.
55773         * lib/memcasecmp.h: Likewise.
55774         * lib/memchr.c: Likewise.
55775         * lib/memcmp.c: Likewise.
55776         * lib/memcoll.c: Likewise.
55777         * lib/memcoll.h: Likewise.
55778         * lib/memcpy.c: Likewise.
55779         * lib/memrchr.c: Likewise.
55780         * lib/mkancesdirs.c: Likewise.
55781         * lib/mkdir-p.c: Likewise.
55782         * lib/mkdir-p.h: Likewise.
55783         * lib/mkdir.c: Likewise.
55784         * lib/mkdirat.c: Likewise.
55785         * lib/mkdtemp.c: Likewise.
55786         * lib/mkstemp-safer.c: Likewise.
55787         * lib/mkstemp.c: Likewise.
55788         * lib/modechange.c: Likewise.
55789         * lib/modechange.h: Likewise.
55790         * lib/mountlist.c: Likewise.
55791         * lib/mountlist.h: Likewise.
55792         * lib/mpsort.c: Likewise.
55793         * lib/nanosleep.c: Likewise.
55794         * lib/obstack.c: Likewise.
55795         * lib/obstack.h: Likewise.
55796         * lib/open-safer.c: Likewise.
55797         * lib/open.c: Likewise.
55798         * lib/openat-die.c: Likewise.
55799         * lib/openat-priv.h: Likewise.
55800         * lib/openat-proc.c: Likewise.
55801         * lib/openat.c: Likewise.
55802         * lib/openat.h: Likewise.
55803         * lib/pagealign_alloc.c: Likewise.
55804         * lib/pagealign_alloc.h: Likewise.
55805         * lib/physmem.c: Likewise.
55806         * lib/physmem.h: Likewise.
55807         * lib/pipe-safer.c: Likewise.
55808         * lib/pipe.c: Likewise.
55809         * lib/pipe.h: Likewise.
55810         * lib/posixtm.c: Likewise.
55811         * lib/posixtm.h: Likewise.
55812         * lib/posixver.c: Likewise.
55813         * lib/printf-frexp.c: Likewise.
55814         * lib/printf-frexp.h: Likewise.
55815         * lib/printf-frexpl.c: Likewise.
55816         * lib/printf-frexpl.h: Likewise.
55817         * lib/printf.c: Likewise.
55818         * lib/progname.c: Likewise.
55819         * lib/progname.h: Likewise.
55820         * lib/progreloc.c: Likewise.
55821         * lib/putenv.c: Likewise.
55822         * lib/quote.c: Likewise.
55823         * lib/quote.h: Likewise.
55824         * lib/quotearg.c: Likewise.
55825         * lib/quotearg.h: Likewise.
55826         * lib/raise.c: Likewise.
55827         * lib/readline.c: Likewise.
55828         * lib/readline.h: Likewise.
55829         * lib/readlink.c: Likewise.
55830         * lib/readtokens.c: Likewise.
55831         * lib/readtokens.h: Likewise.
55832         * lib/readtokens0.c: Likewise.
55833         * lib/readtokens0.h: Likewise.
55834         * lib/readutmp.c: Likewise.
55835         * lib/readutmp.h: Likewise.
55836         * lib/realloc.c: Likewise.
55837         * lib/relocwrapper.c: Likewise.
55838         * lib/rename-dest-slash.c: Likewise.
55839         * lib/rename.c: Likewise.
55840         * lib/rmdir.c: Likewise.
55841         * lib/rpmatch.c: Likewise.
55842         * lib/safe-read.c: Likewise.
55843         * lib/safe-read.h: Likewise.
55844         * lib/safe-write.c: Likewise.
55845         * lib/safe-write.h: Likewise.
55846         * lib/same-inode.h: Likewise.
55847         * lib/same.c: Likewise.
55848         * lib/same.h: Likewise.
55849         * lib/save-cwd.c: Likewise.
55850         * lib/save-cwd.h: Likewise.
55851         * lib/savedir.c: Likewise.
55852         * lib/savedir.h: Likewise.
55853         * lib/savewd.c: Likewise.
55854         * lib/savewd.h: Likewise.
55855         * lib/search.in.h: Likewise.
55856         * lib/setenv.c: Likewise.
55857         * lib/setenv.h: Likewise.
55858         * lib/settime.c: Likewise.
55859         * lib/sh-quote.c: Likewise.
55860         * lib/sh-quote.h: Likewise.
55861         * lib/sig2str.c: Likewise.
55862         * lib/sig2str.h: Likewise.
55863         * lib/signal.in.h: Likewise.
55864         * lib/signbitd.c: Likewise.
55865         * lib/signbitf.c: Likewise.
55866         * lib/signbitl.c: Likewise.
55867         * lib/sigprocmask.c: Likewise.
55868         * lib/sincosl.c: Likewise.
55869         * lib/sleep.c: Likewise.
55870         * lib/sprintf.c: Likewise.
55871         * lib/sqrtl.c: Likewise.
55872         * lib/stat-time.h: Likewise.
55873         * lib/stdio--.h: Likewise.
55874         * lib/stdio-safer.h: Likewise.
55875         * lib/stdlib--.h: Likewise.
55876         * lib/stdlib-safer.h: Likewise.
55877         * lib/stdlib.in.h: Likewise.
55878         * lib/stpcpy.c: Likewise.
55879         * lib/stpncpy.c: Likewise.
55880         * lib/strchrnul.c: Likewise.
55881         * lib/strcspn.c: Likewise.
55882         * lib/strerror.c: Likewise.
55883         * lib/strftime.c: Likewise.
55884         * lib/strftime.h: Likewise.
55885         * lib/striconveh.c: Likewise.
55886         * lib/striconveh.h: Likewise.
55887         * lib/striconveha.c: Likewise.
55888         * lib/striconveha.h: Likewise.
55889         * lib/stripslash.c: Likewise.
55890         * lib/strnlen1.c: Likewise.
55891         * lib/strnlen1.h: Likewise.
55892         * lib/strtod.c: Likewise.
55893         * lib/strtoimax.c: Likewise.
55894         * lib/strtok_r.c: Likewise.
55895         * lib/strtol.c: Likewise.
55896         * lib/strtoll.c: Likewise.
55897         * lib/strtoul.c: Likewise.
55898         * lib/strtoull.c: Likewise.
55899         * lib/sysexits.in.h: Likewise.
55900         * lib/tempname.c: Likewise.
55901         * lib/tempname.h: Likewise.
55902         * lib/timespec.h: Likewise.
55903         * lib/tls.c: Likewise.
55904         * lib/tls.h: Likewise.
55905         * lib/tmpdir.c: Likewise.
55906         * lib/tmpdir.h: Likewise.
55907         * lib/tmpfile-safer.c: Likewise.
55908         * lib/tmpfile.c: Likewise.
55909         * lib/trigl.c: Likewise.
55910         * lib/trigl.h: Likewise.
55911         * lib/trim.c: Likewise.
55912         * lib/trim.h: Likewise.
55913         * lib/trunc.c: Likewise.
55914         * lib/truncf.c: Likewise.
55915         * lib/truncl.c: Likewise.
55916         * lib/tsearch.c: Likewise.
55917         * lib/unicodeio.c: Likewise.
55918         * lib/unicodeio.h: Likewise.
55919         * lib/unistd--.h: Likewise.
55920         * lib/unistd-safer.h: Likewise.
55921         * lib/unistdio/ulc-fprintf.c: Likewise.
55922         * lib/unistdio/ulc-vfprintf.c: Likewise.
55923         * lib/unlinkdir.c: Likewise.
55924         * lib/unlinkdir.h: Likewise.
55925         * lib/unlocked-io.h: Likewise.
55926         * lib/unsetenv.c: Likewise.
55927         * lib/userspec.c: Likewise.
55928         * lib/utime.c: Likewise.
55929         * lib/utimecmp.c: Likewise.
55930         * lib/utimecmp.h: Likewise.
55931         * lib/utimens.c: Likewise.
55932         * lib/verify.h: Likewise.
55933         * lib/verror.c: Likewise.
55934         * lib/verror.h: Likewise.
55935         * lib/version-etc-fsf.c: Likewise.
55936         * lib/version-etc.c: Likewise.
55937         * lib/version-etc.h: Likewise.
55938         * lib/vfprintf.c: Likewise.
55939         * lib/vprintf.c: Likewise.
55940         * lib/vsprintf.c: Likewise.
55941         * lib/w32spawn.h: Likewise.
55942         * lib/wait-process.c: Likewise.
55943         * lib/wait-process.h: Likewise.
55944         * lib/wcwidth.c: Likewise.
55945         * lib/write-any-file.c: Likewise.
55946         * lib/xalloc-die.c: Likewise.
55947         * lib/xalloc.h: Likewise.
55948         * lib/xasprintf.c: Likewise.
55949         * lib/xgetcwd.c: Likewise.
55950         * lib/xgetcwd.h: Likewise.
55951         * lib/xgetdomainname.c: Likewise.
55952         * lib/xgetdomainname.h: Likewise.
55953         * lib/xgethostname.c: Likewise.
55954         * lib/xmalloc.c: Likewise.
55955         * lib/xmalloca.c: Likewise.
55956         * lib/xmalloca.h: Likewise.
55957         * lib/xmemcoll.c: Likewise.
55958         * lib/xnanosleep.c: Likewise.
55959         * lib/xreadlink.c: Likewise.
55960         * lib/xreadlink.h: Likewise.
55961         * lib/xsetenv.c: Likewise.
55962         * lib/xsetenv.h: Likewise.
55963         * lib/xstriconv.c: Likewise.
55964         * lib/xstriconv.h: Likewise.
55965         * lib/xstrndup.c: Likewise.
55966         * lib/xstrndup.h: Likewise.
55967         * lib/xstrtod.c: Likewise.
55968         * lib/xstrtod.h: Likewise.
55969         * lib/xstrtol-error.c: Likewise.
55970         * lib/xstrtol.c: Likewise.
55971         * lib/xstrtol.h: Likewise.
55972         * lib/xtime.h: Likewise.
55973         * lib/xvasprintf.c: Likewise.
55974         * lib/xvasprintf.h: Likewise.
55975         * lib/yesno.c: Likewise.
55976         * lib/yesno.h: Likewise.
55977         * posix-modules: Likewise.
55978         * tests/test-alloca-opt.c: Likewise.
55979         * tests/test-arcfour.c: Likewise.
55980         * tests/test-arctwo.c: Likewise.
55981         * tests/test-argmatch.c: Likewise.
55982         * tests/test-argp-2.sh: Likewise.
55983         * tests/test-argp.c: Likewise.
55984         * tests/test-arpa_inet.c: Likewise.
55985         * tests/test-array_list.c: Likewise.
55986         * tests/test-array_oset.c: Likewise.
55987         * tests/test-atexit.c: Likewise.
55988         * tests/test-avltree_list.c: Likewise.
55989         * tests/test-avltree_oset.c: Likewise.
55990         * tests/test-avltreehash_list.c: Likewise.
55991         * tests/test-base64.c: Likewise.
55992         * tests/test-binary-io.c: Likewise.
55993         * tests/test-byteswap.c: Likewise.
55994         * tests/test-c-ctype.c: Likewise.
55995         * tests/test-c-strcasecmp.c: Likewise.
55996         * tests/test-c-strcasestr.c: Likewise.
55997         * tests/test-c-strncasecmp.c: Likewise.
55998         * tests/test-c-strstr.c: Likewise.
55999         * tests/test-canonicalize-lgpl.c: Likewise.
56000         * tests/test-canonicalize.c: Likewise.
56001         * tests/test-carray_list.c: Likewise.
56002         * tests/test-ceilf.c: Likewise.
56003         * tests/test-ceill.c: Likewise.
56004         * tests/test-count-one-bits.c: Likewise.
56005         * tests/test-crc.c: Likewise.
56006         * tests/test-dirname.c: Likewise.
56007         * tests/test-fbufmode.c: Likewise.
56008         * tests/test-fcntl.c: Likewise.
56009         * tests/test-fflush.c: Likewise.
56010         * tests/test-floorf.c: Likewise.
56011         * tests/test-floorl.c: Likewise.
56012         * tests/test-fopen.c: Likewise.
56013         * tests/test-fprintf-posix.c: Likewise.
56014         * tests/test-fprintf-posix.h: Likewise.
56015         * tests/test-fpurge.c: Likewise.
56016         * tests/test-freadable.c: Likewise.
56017         * tests/test-freadahead.c: Likewise.
56018         * tests/test-freading.c: Likewise.
56019         * tests/test-freopen.c: Likewise.
56020         * tests/test-frexp.c: Likewise.
56021         * tests/test-frexpl.c: Likewise.
56022         * tests/test-fseek.c: Likewise.
56023         * tests/test-fseeko.c: Likewise.
56024         * tests/test-fseterr.c: Likewise.
56025         * tests/test-fstrcmp.c: Likewise.
56026         * tests/test-ftell.c: Likewise.
56027         * tests/test-ftello.c: Likewise.
56028         * tests/test-fwritable.c: Likewise.
56029         * tests/test-fwriting.c: Likewise.
56030         * tests/test-getaddrinfo.c: Likewise.
56031         * tests/test-getpass.c: Likewise.
56032         * tests/test-gettimeofday.c: Likewise.
56033         * tests/test-hmac-md5.c: Likewise.
56034         * tests/test-hmac-sha1.c: Likewise.
56035         * tests/test-iconv.c: Likewise.
56036         * tests/test-iconvme.c: Likewise.
56037         * tests/test-inttypes.c: Likewise.
56038         * tests/test-isnan.c: Likewise.
56039         * tests/test-isnanf.c: Likewise.
56040         * tests/test-isnanl-nolibm.c: Likewise.
56041         * tests/test-isnanl.c: Likewise.
56042         * tests/test-isnanl.h: Likewise.
56043         * tests/test-ldexpl.c: Likewise.
56044         * tests/test-linked_list.c: Likewise.
56045         * tests/test-linkedhash_list.c: Likewise.
56046         * tests/test-locale.c: Likewise.
56047         * tests/test-localename.c: Likewise.
56048         * tests/test-lock.c: Likewise.
56049         * tests/test-lseek.c: Likewise.
56050         * tests/test-malloca.c: Likewise.
56051         * tests/test-math.c: Likewise.
56052         * tests/test-mbscasecmp.c: Likewise.
56053         * tests/test-mbscasestr1.c: Likewise.
56054         * tests/test-mbscasestr2.c: Likewise.
56055         * tests/test-mbscasestr3.c: Likewise.
56056         * tests/test-mbscasestr4.c: Likewise.
56057         * tests/test-mbschr.c: Likewise.
56058         * tests/test-mbscspn.c: Likewise.
56059         * tests/test-mbsncasecmp.c: Likewise.
56060         * tests/test-mbspbrk.c: Likewise.
56061         * tests/test-mbspcasecmp.c: Likewise.
56062         * tests/test-mbsrchr.c: Likewise.
56063         * tests/test-mbsspn.c: Likewise.
56064         * tests/test-mbsstr1.c: Likewise.
56065         * tests/test-mbsstr2.c: Likewise.
56066         * tests/test-mbsstr3.c: Likewise.
56067         * tests/test-md5.c: Likewise.
56068         * tests/test-memmem.c: Likewise.
56069         * tests/test-netinet_in.c: Likewise.
56070         * tests/test-open.c: Likewise.
56071         * tests/test-printf-frexp.c: Likewise.
56072         * tests/test-printf-frexpl.c: Likewise.
56073         * tests/test-printf-posix.c: Likewise.
56074         * tests/test-printf-posix.h: Likewise.
56075         * tests/test-rbtree_list.c: Likewise.
56076         * tests/test-rbtree_oset.c: Likewise.
56077         * tests/test-rbtreehash_list.c: Likewise.
56078         * tests/test-read-file.c: Likewise.
56079         * tests/test-rijndael.c: Likewise.
56080         * tests/test-search.c: Likewise.
56081         * tests/test-signbit.c: Likewise.
56082         * tests/test-sleep.c: Likewise.
56083         * tests/test-snprintf-posix.c: Likewise.
56084         * tests/test-snprintf-posix.h: Likewise.
56085         * tests/test-snprintf.c: Likewise.
56086         * tests/test-sprintf-posix.c: Likewise.
56087         * tests/test-sprintf-posix.h: Likewise.
56088         * tests/test-stat-time.c: Likewise.
56089         * tests/test-stdbool.c: Likewise.
56090         * tests/test-stdint.c: Likewise.
56091         * tests/test-stdio.c: Likewise.
56092         * tests/test-stdlib.c: Likewise.
56093         * tests/test-stpncpy.c: Likewise.
56094         * tests/test-strcasestr.c: Likewise.
56095         * tests/test-striconv.c: Likewise.
56096         * tests/test-striconveh.c: Likewise.
56097         * tests/test-striconveha.c: Likewise.
56098         * tests/test-string.c: Likewise.
56099         * tests/test-sys_select.c: Likewise.
56100         * tests/test-sys_socket.c: Likewise.
56101         * tests/test-sys_stat.c: Likewise.
56102         * tests/test-sys_time.c: Likewise.
56103         * tests/test-sysexits.c: Likewise.
56104         * tests/test-time.c: Likewise.
56105         * tests/test-tls.c: Likewise.
56106         * tests/test-trunc.c: Likewise.
56107         * tests/test-truncf.c: Likewise.
56108         * tests/test-truncl.c: Likewise.
56109         * tests/test-unistd.c: Likewise.
56110         * tests/test-vasnprintf-posix.c: Likewise.
56111         * tests/test-vasnprintf-posix2.c: Likewise.
56112         * tests/test-vasnprintf.c: Likewise.
56113         * tests/test-vasprintf-posix.c: Likewise.
56114         * tests/test-vasprintf.c: Likewise.
56115         * tests/test-verify.c: Likewise.
56116         * tests/test-vfprintf-posix.c: Likewise.
56117         * tests/test-vprintf-posix.c: Likewise.
56118         * tests/test-vsnprintf-posix.c: Likewise.
56119         * tests/test-vsnprintf.c: Likewise.
56120         * tests/test-vsprintf-posix.c: Likewise.
56121         * tests/test-wchar.c: Likewise.
56122         * tests/test-wctype.c: Likewise.
56123         * tests/test-wcwidth.c: Likewise.
56124         * tests/test-xstrtol.c: Likewise.
56125         * tests/test-xvasprintf.c: Likewise.
56126         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56127         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56128         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56129         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56130         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56131         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56132         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56133         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56134         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56135         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56136         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56137         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56138         * tests/uniname/test-uninames.c: Likewise.
56139         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56140         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56141         * tests/unistdio/test-u16-printf1.h: Likewise.
56142         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56143         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56144         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56145         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56146         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56147         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56148         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56149         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56150         * tests/unistdio/test-u32-printf1.h: Likewise.
56151         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56152         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56153         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56154         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56155         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56156         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56157         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56158         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56159         * tests/unistdio/test-u8-printf1.h: Likewise.
56160         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56161         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56162         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56163         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56164         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56165         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56166         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56167         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56168         * tests/unistdio/test-ulc-printf1.h: Likewise.
56169         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56170         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56171         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56172         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56173         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56174         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56175         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56176         * tests/uniwidth/test-u16-width.c: Likewise.
56177         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56178         * tests/uniwidth/test-u32-width.c: Likewise.
56179         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56180         * tests/uniwidth/test-u8-width.c: Likewise.
56181         * tests/uniwidth/test-uc_width.c: Likewise.
56182         * config/srclist-update: Likewise.
56183         (fixlicense): Update to GPLv3+.
56184
56185         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56186         * tests/test-tsearch.c: Change copyright notice.
56187
56188         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56189         * lib/c-strcaseeq.h: Change copyright notice.
56190         * lib/streq.h: Likewise.
56191         * lib/uniconv.h: Likewise.
56192         * lib/uniconv/u-conv-from-enc.h: Likewise.
56193         * lib/uniconv/u-conv-to-enc.h: Likewise.
56194         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56195         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56196         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56197         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56198         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56199         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56200         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56201         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56202         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56203         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56204         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56205         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56206         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56207         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56208         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56209         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56210         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56211         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56212         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56213         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56214         * lib/uniname.h: Likewise.
56215         * lib/uniname/uniname.c: Likewise.
56216         * lib/unistdio.h: Likewise.
56217         * lib/unistdio/u-asnprintf.h: Likewise.
56218         * lib/unistdio/u-asprintf.h: Likewise.
56219         * lib/unistdio/u-printf-args.c: Likewise.
56220         * lib/unistdio/u-printf-args.h: Likewise.
56221         * lib/unistdio/u-printf-parse.h: Likewise.
56222         * lib/unistdio/u-snprintf.h: Likewise.
56223         * lib/unistdio/u-sprintf.h: Likewise.
56224         * lib/unistdio/u-vasprintf.h: Likewise.
56225         * lib/unistdio/u-vsnprintf.h: Likewise.
56226         * lib/unistdio/u-vsprintf.h: Likewise.
56227         * lib/unistdio/u16-asnprintf.c: Likewise.
56228         * lib/unistdio/u16-asprintf.c: Likewise.
56229         * lib/unistdio/u16-printf-parse.c: Likewise.
56230         * lib/unistdio/u16-snprintf.c: Likewise.
56231         * lib/unistdio/u16-sprintf.c: Likewise.
56232         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56233         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56234         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56235         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56236         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56237         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56238         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56239         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56240         * lib/unistdio/u16-vasnprintf.c: Likewise.
56241         * lib/unistdio/u16-vasprintf.c: Likewise.
56242         * lib/unistdio/u16-vsnprintf.c: Likewise.
56243         * lib/unistdio/u16-vsprintf.c: Likewise.
56244         * lib/unistdio/u32-asnprintf.c: Likewise.
56245         * lib/unistdio/u32-asprintf.c: Likewise.
56246         * lib/unistdio/u32-printf-parse.c: Likewise.
56247         * lib/unistdio/u32-snprintf.c: Likewise.
56248         * lib/unistdio/u32-sprintf.c: Likewise.
56249         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56250         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56251         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56252         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56253         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56254         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56255         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56256         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56257         * lib/unistdio/u32-vasnprintf.c: Likewise.
56258         * lib/unistdio/u32-vasprintf.c: Likewise.
56259         * lib/unistdio/u32-vsnprintf.c: Likewise.
56260         * lib/unistdio/u32-vsprintf.c: Likewise.
56261         * lib/unistdio/u8-asnprintf.c: Likewise.
56262         * lib/unistdio/u8-asprintf.c: Likewise.
56263         * lib/unistdio/u8-printf-parse.c: Likewise.
56264         * lib/unistdio/u8-snprintf.c: Likewise.
56265         * lib/unistdio/u8-sprintf.c: Likewise.
56266         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56267         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56268         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56269         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56270         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56271         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56272         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56273         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56274         * lib/unistdio/u8-vasnprintf.c: Likewise.
56275         * lib/unistdio/u8-vasprintf.c: Likewise.
56276         * lib/unistdio/u8-vsnprintf.c: Likewise.
56277         * lib/unistdio/u8-vsprintf.c: Likewise.
56278         * lib/unistdio/ulc-asnprintf.c: Likewise.
56279         * lib/unistdio/ulc-asprintf.c: Likewise.
56280         * lib/unistdio/ulc-printf-parse.c: Likewise.
56281         * lib/unistdio/ulc-snprintf.c: Likewise.
56282         * lib/unistdio/ulc-sprintf.c: Likewise.
56283         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56284         * lib/unistdio/ulc-vasprintf.c: Likewise.
56285         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56286         * lib/unistdio/ulc-vsprintf.c: Likewise.
56287         * lib/unistr.h: Likewise.
56288         * lib/unistr/u-cpy-alloc.h: Likewise.
56289         * lib/unistr/u-cpy.h: Likewise.
56290         * lib/unistr/u-endswith.h: Likewise.
56291         * lib/unistr/u-move.h: Likewise.
56292         * lib/unistr/u-set.h: Likewise.
56293         * lib/unistr/u-startswith.h: Likewise.
56294         * lib/unistr/u-stpcpy.h: Likewise.
56295         * lib/unistr/u-stpncpy.h: Likewise.
56296         * lib/unistr/u-strcat.h: Likewise.
56297         * lib/unistr/u-strcpy.h: Likewise.
56298         * lib/unistr/u-strcspn.h: Likewise.
56299         * lib/unistr/u-strdup.h: Likewise.
56300         * lib/unistr/u-strlen.h: Likewise.
56301         * lib/unistr/u-strncat.h: Likewise.
56302         * lib/unistr/u-strncpy.h: Likewise.
56303         * lib/unistr/u-strnlen.h: Likewise.
56304         * lib/unistr/u-strpbrk.h: Likewise.
56305         * lib/unistr/u-strspn.h: Likewise.
56306         * lib/unistr/u-strstr.h: Likewise.
56307         * lib/unistr/u-strtok.h: Likewise.
56308         * lib/unistr/u16-check.c: Likewise.
56309         * lib/unistr/u16-chr.c: Likewise.
56310         * lib/unistr/u16-cmp.c: Likewise.
56311         * lib/unistr/u16-cpy-alloc.c: Likewise.
56312         * lib/unistr/u16-cpy.c: Likewise.
56313         * lib/unistr/u16-endswith.c: Likewise.
56314         * lib/unistr/u16-mblen.c: Likewise.
56315         * lib/unistr/u16-mbsnlen.c: Likewise.
56316         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56317         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56318         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56319         * lib/unistr/u16-mbtouc.c: Likewise.
56320         * lib/unistr/u16-mbtoucr.c: Likewise.
56321         * lib/unistr/u16-move.c: Likewise.
56322         * lib/unistr/u16-next.c: Likewise.
56323         * lib/unistr/u16-prev.c: Likewise.
56324         * lib/unistr/u16-set.c: Likewise.
56325         * lib/unistr/u16-startswith.c: Likewise.
56326         * lib/unistr/u16-stpcpy.c: Likewise.
56327         * lib/unistr/u16-stpncpy.c: Likewise.
56328         * lib/unistr/u16-strcat.c: Likewise.
56329         * lib/unistr/u16-strchr.c: Likewise.
56330         * lib/unistr/u16-strcmp.c: Likewise.
56331         * lib/unistr/u16-strcpy.c: Likewise.
56332         * lib/unistr/u16-strcspn.c: Likewise.
56333         * lib/unistr/u16-strdup.c: Likewise.
56334         * lib/unistr/u16-strlen.c: Likewise.
56335         * lib/unistr/u16-strmblen.c: Likewise.
56336         * lib/unistr/u16-strmbtouc.c: Likewise.
56337         * lib/unistr/u16-strncat.c: Likewise.
56338         * lib/unistr/u16-strncmp.c: Likewise.
56339         * lib/unistr/u16-strncpy.c: Likewise.
56340         * lib/unistr/u16-strnlen.c: Likewise.
56341         * lib/unistr/u16-strpbrk.c: Likewise.
56342         * lib/unistr/u16-strrchr.c: Likewise.
56343         * lib/unistr/u16-strspn.c: Likewise.
56344         * lib/unistr/u16-strstr.c: Likewise.
56345         * lib/unistr/u16-strtok.c: Likewise.
56346         * lib/unistr/u16-to-u32.c: Likewise.
56347         * lib/unistr/u16-to-u8.c: Likewise.
56348         * lib/unistr/u16-uctomb-aux.c: Likewise.
56349         * lib/unistr/u16-uctomb.c: Likewise.
56350         * lib/unistr/u32-check.c: Likewise.
56351         * lib/unistr/u32-chr.c: Likewise.
56352         * lib/unistr/u32-cmp.c: Likewise.
56353         * lib/unistr/u32-cpy-alloc.c: Likewise.
56354         * lib/unistr/u32-cpy.c: Likewise.
56355         * lib/unistr/u32-endswith.c: Likewise.
56356         * lib/unistr/u32-mblen.c: Likewise.
56357         * lib/unistr/u32-mbsnlen.c: Likewise.
56358         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56359         * lib/unistr/u32-mbtouc.c: Likewise.
56360         * lib/unistr/u32-mbtoucr.c: Likewise.
56361         * lib/unistr/u32-move.c: Likewise.
56362         * lib/unistr/u32-next.c: Likewise.
56363         * lib/unistr/u32-prev.c: Likewise.
56364         * lib/unistr/u32-set.c: Likewise.
56365         * lib/unistr/u32-startswith.c: Likewise.
56366         * lib/unistr/u32-stpcpy.c: Likewise.
56367         * lib/unistr/u32-stpncpy.c: Likewise.
56368         * lib/unistr/u32-strcat.c: Likewise.
56369         * lib/unistr/u32-strchr.c: Likewise.
56370         * lib/unistr/u32-strcmp.c: Likewise.
56371         * lib/unistr/u32-strcpy.c: Likewise.
56372         * lib/unistr/u32-strcspn.c: Likewise.
56373         * lib/unistr/u32-strdup.c: Likewise.
56374         * lib/unistr/u32-strlen.c: Likewise.
56375         * lib/unistr/u32-strmblen.c: Likewise.
56376         * lib/unistr/u32-strmbtouc.c: Likewise.
56377         * lib/unistr/u32-strncat.c: Likewise.
56378         * lib/unistr/u32-strncmp.c: Likewise.
56379         * lib/unistr/u32-strncpy.c: Likewise.
56380         * lib/unistr/u32-strnlen.c: Likewise.
56381         * lib/unistr/u32-strpbrk.c: Likewise.
56382         * lib/unistr/u32-strrchr.c: Likewise.
56383         * lib/unistr/u32-strspn.c: Likewise.
56384         * lib/unistr/u32-strstr.c: Likewise.
56385         * lib/unistr/u32-strtok.c: Likewise.
56386         * lib/unistr/u32-to-u16.c: Likewise.
56387         * lib/unistr/u32-to-u8.c: Likewise.
56388         * lib/unistr/u32-uctomb.c: Likewise.
56389         * lib/unistr/u8-check.c: Likewise.
56390         * lib/unistr/u8-chr.c: Likewise.
56391         * lib/unistr/u8-cmp.c: Likewise.
56392         * lib/unistr/u8-cpy-alloc.c: Likewise.
56393         * lib/unistr/u8-cpy.c: Likewise.
56394         * lib/unistr/u8-endswith.c: Likewise.
56395         * lib/unistr/u8-mblen.c: Likewise.
56396         * lib/unistr/u8-mbsnlen.c: Likewise.
56397         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56398         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56399         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56400         * lib/unistr/u8-mbtouc.c: Likewise.
56401         * lib/unistr/u8-mbtoucr.c: Likewise.
56402         * lib/unistr/u8-move.c: Likewise.
56403         * lib/unistr/u8-next.c: Likewise.
56404         * lib/unistr/u8-prev.c: Likewise.
56405         * lib/unistr/u8-set.c: Likewise.
56406         * lib/unistr/u8-startswith.c: Likewise.
56407         * lib/unistr/u8-stpcpy.c: Likewise.
56408         * lib/unistr/u8-stpncpy.c: Likewise.
56409         * lib/unistr/u8-strcat.c: Likewise.
56410         * lib/unistr/u8-strchr.c: Likewise.
56411         * lib/unistr/u8-strcmp.c: Likewise.
56412         * lib/unistr/u8-strcpy.c: Likewise.
56413         * lib/unistr/u8-strcspn.c: Likewise.
56414         * lib/unistr/u8-strdup.c: Likewise.
56415         * lib/unistr/u8-strlen.c: Likewise.
56416         * lib/unistr/u8-strmblen.c: Likewise.
56417         * lib/unistr/u8-strmbtouc.c: Likewise.
56418         * lib/unistr/u8-strncat.c: Likewise.
56419         * lib/unistr/u8-strncmp.c: Likewise.
56420         * lib/unistr/u8-strncpy.c: Likewise.
56421         * lib/unistr/u8-strnlen.c: Likewise.
56422         * lib/unistr/u8-strpbrk.c: Likewise.
56423         * lib/unistr/u8-strrchr.c: Likewise.
56424         * lib/unistr/u8-strspn.c: Likewise.
56425         * lib/unistr/u8-strstr.c: Likewise.
56426         * lib/unistr/u8-strtok.c: Likewise.
56427         * lib/unistr/u8-to-u16.c: Likewise.
56428         * lib/unistr/u8-to-u32.c: Likewise.
56429         * lib/unistr/u8-uctomb-aux.c: Likewise.
56430         * lib/unistr/u8-uctomb.c: Likewise.
56431         * lib/unitypes.h: Likewise.
56432         * lib/uniwidth.h: Likewise.
56433         * lib/uniwidth/cjk.h: Likewise.
56434         * lib/uniwidth/u16-strwidth.c: Likewise.
56435         * lib/uniwidth/u16-width.c: Likewise.
56436         * lib/uniwidth/u32-strwidth.c: Likewise.
56437         * lib/uniwidth/u32-width.c: Likewise.
56438         * lib/uniwidth/u8-strwidth.c: Likewise.
56439         * lib/uniwidth/u8-width.c: Likewise.
56440         * lib/uniwidth/width.c: Likewise.
56441
56442 2007-10-07  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56445         The file is still under LGPL (see modules/inttypes).
56446
56447 2007-10-06  Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/trunc (Dependencies): Add 'extensions'.
56450         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56451         Reported by Ben Pfaff <blp@gnu.org>.
56452
56453 2007-10-06  Bruno Haible  <bruno@clisp.org>
56454
56455         * modules/freopen-tests: New file.
56456         * tests/test-freopen.c: New file.
56457
56458         * modules/fopen-tests: New file.
56459         * tests/test-fopen.c: New file.
56460
56461         * modules/fopen: New file.
56462         * lib/fopen.c: New file.
56463         * m4/fopen.m4: New file.
56464         * modules/freopen: New file.
56465         * lib/freopen.c: New file.
56466         * m4/freopen.m4: New file.
56467         * lib/stdio.in.h (fopen, freopen): New declarations.
56468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56469         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56470         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56471         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56472         * doc/functions/fopen.texi: Mention the 'fopen' module.
56473         * doc/functions/freopen.texi: Mention the 'freopen' module.
56474
56475 2007-10-06  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/open-tests: New file.
56478         * tests/test-open.c: New file.
56479
56480         * modules/open: New file.
56481         * lib/open.c: New file.
56482         * m4/open.m4: New file.
56483         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56484         lib/open.c does.
56485         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56486         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56487         macros.
56488         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56489         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56490         REPLACE_OPEN.
56491         * doc/functions/open.texi: Mention the 'open' module.
56492
56493 2007-10-04  Bruno Haible  <bruno@clisp.org>
56494
56495         * modules/ceill-tests: New file.
56496         * tests/test-ceill.c: New file.
56497
56498         * modules/ceill: New file.
56499         * lib/ceill.c: Replace entire file.
56500         * m4/ceill.m4: New file.
56501         * lib/math.in.h (ceill): Replace declaration.
56502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56503         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56504         * doc/functions/ceill.texi: Mention the 'ceill' module.
56505         * modules/mathl (Files): Remove lib/ceill.c.
56506         (Depends-on): Add ceill.
56507
56508 2007-10-04  Bruno Haible  <bruno@clisp.org>
56509
56510         * modules/ceilf-tests: New file.
56511         * tests/test-ceilf.c: New file.
56512
56513         * modules/ceilf: New file.
56514         * lib/ceil.c: New file.
56515         * lib/ceilf.c: New file.
56516         * m4/ceilf.m4: New file.
56517         * lib/math.in.h (ceilf): New declaration.
56518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56519         HAVE_DECL_CEILF.
56520         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56521         HAVE_DECL_CEILF.
56522         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56523
56524 2007-10-04  Bruno Haible  <bruno@clisp.org>
56525
56526         * modules/floorl-tests: New file.
56527         * tests/test-floorl.c: New file.
56528
56529         * modules/floorl: New file.
56530         * lib/floorl.c: Replace entire file.
56531         * m4/floorl.m4: New file.
56532         * lib/math.in.h (floorl): Replace declaration.
56533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56534         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56535         * doc/functions/floorl.texi: Mention the 'floorl' module.
56536         * modules/mathl (Files): Remove lib/floorl.c.
56537         (Depends-on): Add floorl.
56538
56539 2007-10-04  Bruno Haible  <bruno@clisp.org>
56540
56541         * modules/floorf-tests: New file.
56542         * tests/test-floorf.c: New file.
56543
56544         * modules/floorf: New file.
56545         * lib/floor.c: New file.
56546         * lib/floorf.c: New file.
56547         * m4/floorf.m4: New file.
56548         * lib/math.in.h (floorf): New declaration.
56549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56550         HAVE_DECL_FLOORF.
56551         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56552         HAVE_DECL_FLOORF.
56553         * doc/functions/floorf.texi: Mention the 'floorf' module.
56554
56555 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56556             Bruno Haible  <bruno@clisp.org>
56557
56558         Advertise for the Git server instead of the CVS server.
56559         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56560         repository instead of the CVS one.
56561         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56562         about all VCS systems generically.
56563         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56564
56565 2007-10-04  Bruno Haible  <bruno@clisp.org>
56566
56567         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56568         means.
56569         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56570
56571 2007-10-04  Bruno Haible  <bruno@clisp.org>
56572
56573         * modules/truncl-tests: New file.
56574         * tests/test-truncl.c: New file.
56575
56576         * modules/truncl: New file.
56577         * lib/truncl.c: New file.
56578         * m4/truncl.m4: New file.
56579         * lib/math.in.h (truncl): New declaration.
56580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56581         HAVE_DECL_TRUNCL.
56582         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56583         HAVE_DECL_TRUNCL.
56584         * doc/functions/truncl.texi: Mention the 'truncl' module.
56585
56586 2007-10-04  Bruno Haible  <bruno@clisp.org>
56587
56588         * modules/truncf-tests: New file.
56589         * tests/test-truncf.c: New file.
56590
56591         * modules/truncf: New file.
56592         * lib/trunc.c: Make paramerizable through USE_* macros.
56593         * lib/truncf.c: New file.
56594         * m4/truncf.m4: New file.
56595         * lib/math.in.h (truncf): New declaration.
56596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56597         HAVE_DECL_TRUNCF.
56598         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56599         HAVE_DECL_TRUNCF.
56600         * doc/functions/truncf.texi: Mention the 'truncf' module.
56601
56602 2007-10-03  Bruno Haible  <bruno@clisp.org>
56603
56604         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56605         augmentation also for tests modules.
56606         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56607         * modules/atexit-tests (Makefile.am): Likewise.
56608         * modules/binary-io-tests (Makefile.am): Likewise.
56609         * modules/c-strcase-tests (Makefile.am): Likewise.
56610         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56611         * modules/canonicalize-tests (Makefile.am): Likewise.
56612         * modules/closein-tests (Makefile.am): Likewise.
56613         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56614         * modules/freadahead-tests (Makefile.am): Likewise.
56615         * modules/fseek-tests (Makefile.am): Likewise.
56616         * modules/fseeko-tests (Makefile.am): Likewise.
56617         * modules/ftell-tests (Makefile.am): Likewise.
56618         * modules/ftello-tests (Makefile.am): Likewise.
56619         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56620         * modules/isnanl-tests (Makefile.am): Likewise.
56621         * modules/lseek-tests (Makefile.am): Likewise.
56622         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56623         * modules/mbscasestr-tests (Makefile.am): Likewise.
56624         * modules/mbschr-tests (Makefile.am): Likewise.
56625         * modules/mbscspn-tests (Makefile.am): Likewise.
56626         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56627         * modules/mbspbrk-tests (Makefile.am): Likewise.
56628         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56629         * modules/mbsrchr-tests (Makefile.am): Likewise.
56630         * modules/mbsspn-tests (Makefile.am): Likewise.
56631         * modules/mbsstr-tests (Makefile.am): Likewise.
56632         * modules/printf-posix-tests (Makefile.am): Likewise.
56633         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56634         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56635         * modules/tsearch-tests (Makefile.am): Likewise.
56636         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56637         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56638         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56639         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56640         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56641         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56642         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56643         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56644         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56645         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56646         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56647         * modules/xstrtol-tests (Makefile.am): Likewise.
56648         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56649         * modules/yesno-tests (Makefile.am): Likewise.
56650
56651 2007-10-03  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/trunc-tests: New file.
56654         * tests/test-trunc.c: New file.
56655
56656         * modules/trunc: New file.
56657         * lib/trunc.c: New file.
56658         * m4/trunc.m4: New file.
56659         * lib/math.in.h (trunc): New declaration.
56660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56661         HAVE_DECL_TRUNC.
56662         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56663         HAVE_DECL_TRUNC.
56664         * doc/functions/trunc.texi: Mention the 'trunc' module.
56665
56666 2007-10-03  Bruno Haible  <bruno@clisp.org>
56667
56668         * tests/test-fpending.c: New file, mostly copied
56669         from coreutils/lib/t-fpending.c.
56670         * modules/fpending-tests: New file.
56671
56672 2007-10-03  Bruno Haible  <bruno@clisp.org>
56673
56674         Port the stdio extensions to QNX (untested).
56675         * lib/fseterr.c (fseterr): Add support for QNX.
56676         * lib/fbufmode.c (fbufmode): Likewise.
56677         * lib/freadable.c (freadable): Likewise.
56678         * lib/fwritable.c (fwritable): Likewise.
56679         * lib/freading.c (freading): Likewise.
56680         * lib/fwriting.c (fwriting): Likewise.
56681         * lib/freadahead.c (freadahed): Likewise.
56682         * lib/fpurge.c (fpurge): Likewise.
56683         * lib/fseeko.c (rpl_fseeko): Likewise.
56684
56685 2007-10-03  Bruno Haible  <bruno@clisp.org>
56686             Jim Meyering  <jim@meyering.net>
56687             Eric Blake  <ebb9@byu.net>
56688
56689         * doc/relocatable.texi: Use @command instead of @program.
56690
56691 2007-10-02  Jim Meyering  <jim@meyering.net>
56692
56693         Perform one more "_.h" -> ".in.h" substitution.
56694         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56695         instead of unistd_.h here, too.
56696
56697 2007-10-01  Bruno Haible  <bruno@clisp.org>
56698
56699         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56700         Needed for the alloca-opt module.
56701
56702 2007-09-30  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56705         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56706         alloca_.h.
56707         * lib/argz.in.h: Renamed from lib/argz_.h.
56708         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56709         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56710         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56711         byteswap_.h.
56712         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56713         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56714         dirent_.h.
56715         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56716         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56717         fcntl_.h.
56718         * lib/float.in.h: Renamed from lib/float_.h.
56719         * modules/float (Files, Makefile.am): Use float.in.h instead of
56720         float_.h.
56721         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56722         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56723         fnmatch_.h.
56724         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56725         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56726         getopt_.h.
56727         * lib/glob.in.h: Renamed from lib/glob_.h.
56728         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56729         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56730         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56731         iconv_.h.
56732         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56733         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56734         inttypes_.h.
56735         * lib/locale.in.h: Renamed from lib/locale_.h.
56736         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56737         locale_.h.
56738         * lib/math.in.h: Renamed from lib/math_.h.
56739         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56740         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56741         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56742         of netinet_in_.h. Add dependency.
56743         * lib/poll.in.h: Renamed from lib/poll_.h.
56744         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56745         * lib/search.in.h: Renamed from lib/search_.h.
56746         * modules/search (Files, Makefile.am): Use search.in.h instead of
56747         search_.h.
56748         * lib/signal.in.h: Renamed from lib/signal_.h.
56749         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56750         _signal.h.
56751         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56752         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56753         stdbool_.h.
56754         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56755         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56756         stdint_.h.
56757         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56758         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56759         stdio_.h.
56760         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56761         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56762         stdlib_.h.
56763         * lib/string.in.h: Renamed from lib/string_.h.
56764         * modules/string (Files, Makefile.am): Use string.in.h instead of
56765         string_.h.
56766         * doc/gnulib-tool.texi (Initial import): Update.
56767         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56768         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56769         of sys_select_.h. Add dependency.
56770         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56771         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56772         of sys_socket_.h.
56773         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56774         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56775         sys_stat_.h.
56776         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56777         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56778         sys_time_.h.
56779         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56780         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56781         sysexits_.h.
56782         * lib/time.in.h: Renamed from lib/time_.h.
56783         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56784         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56785         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56786         unistd_.h.
56787         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56788         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56789         wchar_.h.
56790         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56791         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56792         wctype_.h.
56793         * build-aux/bootstrap (slurp): Update.
56794         * lib/.cppi-disable: Update.
56795
56796 2007-09-30  Bruno Haible  <bruno@clisp.org>
56797
56798         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56799         Needed on BeOS.
56800
56801 2007-09-30  Bruno Haible  <bruno@clisp.org>
56802
56803         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56804
56805 2007-09-29  Bruno Haible  <bruno@clisp.org>
56806
56807         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56808
56809 2007-09-29  Bruno Haible  <bruno@clisp.org>
56810
56811         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56812         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56813         * build-aux/install-reloc: Compile also areadlink.c.
56814         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56815
56816 2007-09-29  Bruno Haible  <bruno@clisp.org>
56817
56818         * gnulib-tool (func_emit_initmacro_done): Indentation.
56819
56820 2007-09-29  Bruno Haible  <bruno@clisp.org>
56821
56822         * README: Add CVS checkout update instructions.
56823         Info from Bob Proulx <bob@proulx.com>.
56824
56825 2007-09-28  Eric Blake  <ebb9@byu.net>
56826
56827         Provide move-if-change.
56828         * build-aux/move-if-change: New file, based on best practice
56829         rather than any canonical upstream location.
56830
56831 2007-09-28  Jim Meyering  <jim@meyering.net>
56832
56833         Fix canonicalize loop-detection corner case.
56834         Do not attempt to stat the symlink values stored via seen_triple.
56835         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56836         on linux-2.6.18, (but not 2.6.22).
56837         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56838         triple_compare.  The former compares dev,ino,filename, while the latter
56839         would actually stat dirname(filename) when dev and ino were equal.
56840         * lib/hash-triple.c: Install <string.h>.
56841         (STREQ): Define.
56842         (triple_compare_ino_str): New function.
56843         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56844
56845 2007-09-28  Eric Blake  <ebb9@byu.net>
56846
56847         Enforce that AC_REPLACE_FUNCS files exist.
56848         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56849         override check for typos.
56850
56851         Fix test-closein on Solaris 10.
56852         * tests/test-closein.c (main): Don't assume stdin can be inherited
56853         closed on all systems.
56854         * tests/test-closein.sh: Likewise.
56855         Reported by Piotr Tarnowski.
56856
56857 2007-09-28  Jim Meyering  <jim@meyering.net>
56858
56859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56860
56861 2007-09-27  Jim Meyering  <jim@meyering.net>
56862
56863         canonicalize: Avoid a false-positive cycle failure.
56864         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56865         Sort.  Remove cycle-check.
56866         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56867         not cycle-check.h.
56868         (seen_triple): New function.
56869         (canonicalize_filename_mode): Use it instead of cycle-check.
56870         * tests/test-canonicalize.c: Add a test for this bug.
56871         * tests/test-canonicalize.sh: Set up and run the test.
56872
56873         New module, file-set, from coreutils.
56874         * modules/file-set: Define it.
56875         * lib/file-set.c, lib/file-set.h: Implement.
56876
56877         New module, hash-triple, from coreutils.
56878         * modules/hash-triple: Define it.
56879         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56880
56881 2007-09-25  Eric Blake  <ebb9@byu.net>
56882
56883         Fix strerror on Interix.
56884         * lib/string_.h (strerror): Declare replacement.
56885         * doc/functions/strerror.texi (strerror): Document the Interix
56886         shortcoming.
56887         * modules/string (Makefile.am): Support new hooks.
56888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56889         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56890         gl_FUNC_STRERROR_SEPARATE.
56891         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56892         * lib/strerror.c (rpl_strerror): Provide replacement.
56893         * modules/strerror (Depends-on): Add string.
56894         (configure.ac): Detect use of module.
56895         * tests/test-strerror.c: New file.
56896         * modules/strerror-tests: New test module.
56897         * modules/argp (Depends-on): Add strerror.
56898         * modules/error (Depends-on): Likewise.
56899         Reported by Martin Koeppe.
56900
56901 2007-09-24  Bruno Haible  <bruno@clisp.org>
56902
56903         * README: Update git instructions.
56904
56905 2007-09-24  Eric Blake  <ebb9@byu.net>
56906
56907         Revert fpending breakage from 2007-09-08.
56908         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56909         __fpending.c.
56910
56911 2007-09-24  Jim Meyering  <jim@meyering.net>
56912
56913         filenamecat.c: Add a test.
56914         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56915         showing how the function works when DIR is the empty string.
56916
56917 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56918
56919         * tests/test-canonicalize.sh: Turn on executable bit.
56920
56921 2007-09-19  Eric Blake  <ebb9@byu.net>
56922
56923         * README: Update CVS instructions.
56924
56925 2007-09-18  Bruno Haible  <bruno@clisp.org>
56926
56927         * modules/areadlink: New file.
56928         * lib/areadlink.h (areadlink): New declaration.
56929         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56930
56931 2007-09-17  Jim Meyering  <jim@meyering.net>
56932
56933         * lib/savewd.c (ESTALE) [!defined]: Define.
56934         Reported to be required on Interix by Martin Koeppe.
56935
56936 2007-09-17  Bruno Haible  <bruno@clisp.org>
56937
56938         * gnulib-tool (func_version): Use $version.
56939
56940 2007-09-16  Bruno Haible  <bruno@clisp.org>
56941
56942         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56943         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56944         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56945         Reported by Greg Schafer <gschafer@zip.com.au>.
56946
56947 2007-09-15  Bruno Haible  <bruno@clisp.org>
56948
56949         * gnulib-tool (sed): Try a little harder to make bash understand the
56950         alias.
56951         Reported by Bruce Korb <bruce.korb@gmail.com>.
56952
56953 2007-09-13  Eric Blake  <ebb9@byu.net>
56954
56955         * ChangeLog: Remove conflict markers.
56956
56957 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56958
56959         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56960         Reported by Bruno Haible <bruno@clisp.org>.
56961
56962 2007-09-12  Bruno Haible  <bruno@clisp.org>
56963
56964         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56965         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56966         is not defined.
56967
56968 2007-09-12  Eric Blake  <ebb9@byu.net>
56969
56970         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56971         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56972         Autoconf definition.
56973         * modules/euidaccess (Depends-on): Add extensions, for
56974         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56975         * modules/fnmatch (Depends-on): Likewise.
56976         * modules/getaddrinfo (Depends-on): Likewise.
56977         * modules/getdelim (Depends-on): Likewise.
56978         * modules/getline (Depends-on): Likewise.
56979         * modules/getsubopt (Depends-on): Likewise.
56980         * modules/gettext (Depends-on): Likewise.
56981         * modules/group-member (Depends-on): Likewise.
56982         * modules/mbchar (Depends-on): Likewise.
56983         * modules/memmem (Depends-on): Likewise.
56984         * modules/mempcpy (Depends-on): Likewise.
56985         * modules/memrchr (Depends-on): Likewise.
56986         * modules/pagealign_alloc (Depends-on): Likewise.
56987         * modules/readutmp (Depends-on): Likewise.
56988         * modules/stpcpy (Depends-on): Likewise.
56989         * modules/stpncpy (Depends-on): Likewise.
56990         * modules/strchrnul (Depends-on): Likewise.
56991         * modules/strndup (Depends-on): Likewise.
56992         * modules/strsep (Depends-on): Likewise.
56993         * modules/strverscmp (Depends-on): Likewise.
56994         * modules/vasprintf (Depends-on): Likewise.
56995         * modules/wcwidth (Depends-on): Likewise.
56996         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56997         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56998         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56999         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57000         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57001         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57002         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57003         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57004         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57005         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57007         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57008         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57009         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57010         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57011         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57012         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57013         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57015         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57016         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57017         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57018         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57019         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57020         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57022         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57023         so that lock.m4 can be used in gettext without extensions module.
57024
57025 2007-09-11  Bruno Haible  <bruno@clisp.org>
57026
57027         * m4/isc-posix.m4: Remove file.
57028         Suggested by Eric Blake.
57029
57030 2007-09-11  Eric Blake  <ebb9@byu.net>
57031
57032         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57033
57034 2007-09-10  Bruno Haible  <bruno@clisp.org>
57035
57036         * posix-modules: Fix typo in error message.
57037         Reported by Matt <mkraai@beckman.com>.
57038
57039 2007-09-09  Bruno Haible  <bruno@clisp.org>
57040
57041         * doc/functions/getdelim.texi: Update list of platforms lacking the
57042         function.
57043         * doc/functions/getline.texi: Likewise.
57044
57045 2007-09-09  Jim Meyering  <jim@meyering.net>
57046
57047         * lib/hash.c (hash_initialize): Detect calloc failure.
57048         Reported by Bruno Haible.
57049
57050 2007-09-09  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57053         malloc or realloc fails.
57054
57055 2007-09-09  Bruno Haible  <bruno@clisp.org>
57056
57057         * modules/getcwd (Depends-on): Add malloc-posix.
57058         * modules/glob (Depends-on): Likewise.
57059         * modules/putenv (Depends-on): Likewise.
57060         * modules/strdup (Depends-on): Likewise.
57061         * modules/getdelim (Depends-on): Add realloc-posix.
57062         * modules/read-file (Depends-on): Likewise.
57063
57064 2007-09-09  Bruno Haible  <bruno@clisp.org>
57065
57066         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57067         (gl_FUNC_MALLOC_POSIX): Require it.
57068         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57069         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57070         * modules/realloc (Files): Add m4/malloc.m4.
57071         * modules/calloc (Files): Likewise.
57072
57073 2007-09-09  Bruno Haible  <bruno@clisp.org>
57074
57075         * modules/malloc-posix: New file.
57076         * modules/malloc (Depends-on): Add malloc-posix.
57077         * lib/malloc.c: Include errno.h.
57078         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57079         and a POSIX-compatible malloc into a single function. Set ENOMEM
57080         when returning NULL.
57081         * m4/malloc.m4: New file.
57082         * doc/functions/malloc.texi: Mention the malloc-posix module.
57083         * lib/stdlib_.h (malloc): New declaration.
57084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57085         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57086         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57087         and HAVE_MALLOC_POSIX.
57088
57089 2007-09-09  Bruno Haible  <bruno@clisp.org>
57090
57091         * modules/realloc-posix: New file.
57092         * modules/realloc (Depends-on): Add realloc-posix.
57093         * lib/realloc.c: Include errno.h.
57094         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57095         and a POSIX-compatible realloc into a single function. Set ENOMEM
57096         when returning NULL.
57097         * m4/realloc.m4: New file.
57098         * doc/functions/realloc.texi: Mention the realloc-posix module.
57099         * lib/stdlib_.h (realloc): New declaration.
57100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57101         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57102         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57103         and HAVE_REALLOC_POSIX.
57104
57105 2007-09-09  Bruno Haible  <bruno@clisp.org>
57106
57107         * modules/calloc-posix: New file.
57108         * modules/calloc (Depends-on): Add calloc-posix.
57109         * lib/calloc.c: Include errno.h.
57110         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57111         and a POSIX-compatible calloc into a single function. Set ENOMEM
57112         when returning NULL.
57113         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57114         * doc/functions/calloc.texi: Mention the calloc-posix module.
57115         * lib/stdlib_.h (calloc): New declaration.
57116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57117         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57118         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57119         and HAVE_CALLOC_POSIX.
57120
57121 2007-09-09  Bruno Haible  <bruno@clisp.org>
57122
57123         Allow for modules to show an arbitrary notice.
57124         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57125         * gnulib-tool: New option --extract-notice.
57126         (func_usage): Document it.
57127         (sed_extract_prog): Update.
57128         (func_get_notice): New function.
57129         (func_modules_notice): New function.
57130         (func_import, func_create_testdir): Invoke it.
57131         Suggested by Jim Meyering.
57132
57133 2007-09-09  Bruno Haible  <bruno@clisp.org>
57134
57135         * gnulib-tool: New options --verbose, --quiet.
57136         (func_usage): Document them.
57137         (verbose): New variable.
57138         (func_execute_command): New function.
57139         (func_import): Don't show the module list and the file list if
57140         $verbose < 0.
57141         (func_create_testdir): Likewise. Use func_execute_command.
57142         (func_create_megatestdir): Use func_execute_command.
57143
57144 2007-09-08  Bruno Haible  <bruno@clisp.org>
57145
57146         * gnulib-tool (func_import): Prefer rsync over wget when available,
57147         for fetching the PO files.
57148
57149 2007-09-08  Bruno Haible  <bruno@clisp.org>
57150
57151         * posix-modules: New file. Portions copied from gnulib-tool.
57152         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57153
57154 2007-09-08  Jim Meyering  <jim@meyering.net>
57155
57156         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57157         * lib/fpending.h: Rename from __fpending.h.
57158         * lib/fpending.c: Rename from __fpending.c.
57159         Include "fpending.h", not "__fpending.h".
57160         * lib/__fpending.h, lib/__fpending.c: Remove files.
57161         * modules/fpending (Files): Reflect new file names.
57162         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57163
57164 2007-09-08  Bruno Haible  <bruno@clisp.org>
57165
57166         * m4/inttypes-h.m4: Remove stub file.
57167
57168 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57169
57170         * doc/headers/stdint.texi: Discuss #include_next issue.
57171
57172 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57173
57174         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57175
57176 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57177
57178         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57179         in variable name.
57180
57181 2007-09-03  Jim Meyering  <jim@meyering.net>
57182
57183         New module: git-version-gen.
57184         * modules/git-version-gen: New file.
57185
57186         Import changes from coreutils for bootstrap script.
57187
57188         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57189
57190         bootstrap: uses rsync to download the .po files
57191         * build-aux/bootstrap (po_download_command_format): New global.
57192         (download_po_files): Use rsync.
57193         (update_po_files): Don't remove .po files after download,
57194         so future rsync runs can take advantage of the copies.
57195
57196         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57197
57198         Solve the unnecessary-.po-file-regeneration problem once and for all.
57199         * build-aux/bootstrap (download_po_files): New function, renamed from
57200         get_translations.  Now, downloads, but doesn't update LINGUAS.
57201         (update_po_files): New function.
57202
57203         bootstrap: Ignore more.
57204         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57205         uniwidth to e.g., lib/.gitignore.
57206         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57207
57208         * build-aux/bootstrap: New setting: vc_ignore.
57209         (insert_sorted_if_absent): Create $file if absent.
57210         Adapt to new, possibly empty, list: $vc_ignore.
57211
57212         bootstrap: generate more ignorable names
57213         * build-aux/bootstrap (slurp): When generating ignorable names,
57214         also map .sin to .sed, .gperf to .c, and .y to .c.
57215
57216 2007-09-03  Jim Meyering  <jim@meyering.net>
57217
57218         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57219         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57220
57221 2007-09-02  Bruno Haible  <bruno@clisp.org>
57222
57223         Fix mis-recognition of 'mcs' on QNX 6.
57224         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57225         output contains the string "Mono".
57226         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57227         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57228
57229 2007-09-01  Bruno Haible  <bruno@clisp.org>
57230
57231         Fix collision between uniwidth/* and linebreak modules.
57232         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57233         u32_width): Remove declarations.
57234         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57235         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57236         streq3, streq2, streq1, streq0): Remove functions.
57237         (STREQ): Remove macro.
57238         (is_cjk_encoding): Remove function.
57239         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57240         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57241         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57242         * NEWS: Document the change.
57243
57244 2007-09-01  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/streq.h: Add double-inclusion guard.
57247
57248 2007-09-01  Karl Berry  <karl@gnu.org>
57249
57250         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57251
57252 2007-08-28  Jim Meyering  <jim@meyering.net>
57253
57254         Rename mreadlink_with_size to areadlink_with_size.
57255         * NEWS: Document the change.
57256         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57257         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57258         * lib/mreadlink.h: Rename this to...
57259         * lib/areadlink.h: ...this.
57260         * modules/mreadlink-with-size: Rename this to...
57261         * modules/areadlink-with-size: ...this.
57262         * lib/canonicalize.c: Reflect the renaming.
57263         * modules/canonicalize: Likewise.
57264
57265 2007-08-26  Bruno Haible  <bruno@clisp.org>
57266
57267         * gnulib-tool (func_import): When deciding which files to remove,
57268         consider also dangling symbolic links.
57269         Reported by Eric Blake.
57270
57271 2007-08-26  Bruno Haible  <bruno@clisp.org>
57272
57273         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57274
57275 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57276
57277         * lib/readline.c: Don't include getline.h, the prototype is now
57278         found in stdio.h.
57279
57280 2007-08-23  Jim Meyering  <jim@meyering.net>
57281
57282         Getdelim touchup.
57283         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57284         around the funlockfile call, since funlockfile never sets errno.
57285         Don't set errno upon failed realloc.
57286
57287 2007-08-22  Eric Blake  <ebb9@byu.net>
57288
57289         Getline touchups.
57290         * lib/getdelim.c (getdelim): Revert regression that required *n to
57291         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57293         getdelim, rather than whether implementation is missing.
57294         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57295         * lib/stdio_.h (getline): Also declare if replacement is
57296         required.
57297         * doc/functions/getdelim.texi: New file.
57298         * doc/functions/getline.texi: Likewise.
57299         * doc/gnulib.texi (Function Substitutes): Add new files.
57300         Reported by Bruno Haible.
57301
57302 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57303
57304         * users.txt: Add Guile.
57305
57306 2007-08-22  Eric Blake  <ebb9@byu.net>
57307
57308         * tests/test-getdelim.c (main): Use remove, not unlink.
57309         * tests/test-getline.c (main): Likewise.
57310
57311         Move getline and getdelim into stdio.h, per POSIX 200x.
57312         * modules/getline (Files): Remove getline.h.
57313         (Depends-on): Add stdio.
57314         (configure.ac): Add module indicator.
57315         * modules/getdelim (Files): Remove getdelim.h.
57316         (Depends-on): Add stdio.
57317         (configure.ac): Add module indicator.
57318         * modules/stdio (Makefile.am): Work with new indicators.
57319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57321         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57322         * lib/getdelim.h: Delete.
57323         * lib/getline.h: Delete.
57324         * lib/stdio_.h (getdelim, getline): Declare.
57325         * modules/getdelim-tests: New module.
57326         * modules/getline-tests: Likewise.
57327         * tests/test-getdelim.c: New file.
57328         * tests/test-getline.c: Likewise.
57329         * NEWS: Document the change.
57330         * lib/getline.c: Update choice of header.
57331         * lib/csharpcomp.c: Likewise.
57332         * lib/getpass.c: Likewise.
57333         * lib/javacomp.c: Likewise.
57334         * lib/javaversion.c: Likewise.
57335         * lib/yesno.c: Likewise.
57336         * lib/getdelim.c: Likewise.
57337         (getdelim): Set errno on failure, and avoid memory leak.
57338
57339 2007-08-19  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/closein (Depends-on): Add freadahead.
57342         * lib/closein.c: Include freadahead.h.
57343         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57344         is zero.
57345
57346 2007-08-19  Bruno Haible  <bruno@clisp.org>
57347
57348         * modules/freadahead-tests: New file.
57349         * tests/test-freadahead.sh: New file.
57350         * tests/test-freadahead.c: New file.
57351
57352         * modules/freadahead: New file.
57353         * lib/freadahead.h: New file.
57354         * lib/freadahead.c: New file.
57355         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57356         fbufmode, fpurge, freadable, fwritable.
57357
57358 2007-08-19  Eric Blake  <ebb9@byu.net>
57359
57360         Test yesno in combination with closein.
57361         * lib/yesno.c (yesno): Document use of stdin.
57362         * modules/yesno-tests (Files): New module.
57363         * tests/test-yesno.c (main): New file.
57364         * tests/test-yesno.sh: Likewise.
57365
57366 2007-08-19  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57369         * lib/fseeko.c (rpl_fseeko): Likewise.
57370         * lib/fseterr.c (fseterr): Likewise.
57371
57372 2007-08-19  Bruno Haible  <bruno@clisp.org>
57373
57374         * tests/test-lseek.c (main): Disable a test for BeOS.
57375         * doc/functions/lseek.texi: Document the BeOS bug.
57376
57377 2007-08-19  Bruno Haible  <bruno@clisp.org>
57378             Eric Blake  <ebb9@byu.net>
57379
57380         * lib/lseek.c: Include <sys/stat.h>.
57381         (rpl_lseek): Add workaround code also for Unix platforms.
57382         Needed for BeOS.
57383         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57384         * doc/functions/lseek.texi: Document BeOS definiency.
57385
57386 2007-08-18  Bruno Haible  <bruno@clisp.org>
57387
57388         * modules/fstrcmp-tests: New file.
57389         * tests/test-fstrcmp.c: New file.
57390
57391 2007-08-18  Bruno Haible  <bruno@clisp.org>
57392
57393         * modules/fstrcmp: New file, from GNU gettext with modifications.
57394         * lib/fstrcmp.h: New file, from GNU gettext.
57395         * lib/fstrcmp.c: New file, from GNU gettext.
57396         * MODULES.html.sh (String handling): Add fstrcmp.
57397
57398 2007-08-18  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57401         'bool'.
57402         (diag, compareseq): Remove const from the ctxt argument.
57403         (USE_HEURISTIC): Undefine at the end.
57404
57405 2007-08-18  Jim Meyering  <jim@meyering.net>
57406
57407         New file: lib/idcache.h
57408         * NEWS: Mention the addition.
57409         * modules/idcache (Files): Add lib/idcache.h
57410         * lib/idcache.c: Include "idcache.h".
57411         Don't include <sys/types.h>.
57412         Add a FIXME comment.
57413         Move file-scoped "static" declarations to the top.
57414         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57415
57416 2007-08-17  Bruno Haible  <bruno@clisp.org>
57417         and Paul Eggert  <eggert@cs.ucla.edu>
57418
57419         * MODULES.html.sh: Add diffseq.
57420         * modules/diffseq: New file.
57421         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57422         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57423
57424 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57425
57426         Import changes from coreutils for bootstrap script.
57427
57428         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * build-aux/bootstrap (slurp): Work even in environments where
57431         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57432         current code does not slurp files whose names start with ".", and
57433         this looks like it might be a troublesome area.
57434
57435         2007-07-11  Jim Meyering  <jim@meyering.net>
57436
57437         If there's a GPL vN copyright comment, require that N == 3.
57438
57439         2007-07-08  Jim Meyering  <jim@meyering.net>
57440
57441         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57442         * build-aux/bootstrap (mam_template): Move definition out of loop.
57443
57444         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57445
57446         * build-aux/bootstrap (symlink_to_dir): Rename function from
57447         symlink_to_gnulib.  Add a directory parameter.  Update all
57448         callers.
57449         (cp_mark_as_generated): Also check for -- and link to -- files in
57450         gl/.
57451
57452         2007-07-08  Jim Meyering  <jim@meyering.net>
57453
57454         Adapt to deeper hierarchy in gnulib.
57455         * build-aux/bootstrap (symlink_to_dir): If the destination
57456         directory doesn't exist, create it. This is required at least for
57457         "lib/uniwidth/cjk.h".
57458
57459         2007-05-15  Jim Meyering  <jim@meyering.net>
57460
57461         * build-aux/bootstrap: Now that generated Makefile.am files
57462         are no longer under version control, they must be created at
57463         bootstrap time.
57464
57465 2007-08-14  Ben Pfaff  <blp@gnu.org>
57466
57467         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57468
57469 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57470
57471         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57472         given the changes below.
57473         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57474         even on hosts that have padding bits beyond the supported 64.
57475
57476 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57479         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57480         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57481         depends on it.
57482         (xstrtol_error): Remove.
57483         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57484         but with a different signature.
57485         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57486         * lib/xstrtol-error.c: Include exitfail.h.
57487         (xstrtol_fatal): New function, with a different signature from the
57488         old xstrtol_error, so that the caller need not worry about passing
57489         in an exit status, or about storage management of the option argument.
57490         (xstrtol_error): Now a static function.  Redo signature to
57491         implement xstrtol_fatal.  Output the correct number of hyphens in
57492         front of the option so that the caller need not worry about
57493         storage management.
57494         (N_): New macro.
57495         (_): Remove; not used now.
57496         * modules/xstrtol: Depend on getopt.
57497         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57498         of old STRTOL_FATAL_ERROR macro.
57499         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57500         of test program.
57501         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57502         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57503
57504 2007-08-08  Eric Blake  <ebb9@byu.net>
57505
57506         * lib/xstrtol-error.c: Add missing include.
57507
57508         Move xstrtol messages into gnulib domain, when --pobase is used.
57509         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57510         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57511         * modules/xstrtol (Files): Distribute new file.
57512         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57513         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57514         * tests/test-xstrtol.c: ...into new file.
57515         * tests/test-xstrtoul.c: Also test xstrtoul.
57516         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57517         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57518         * tests/test-xstrtol.sh: Drive the tests.
57519         * tests/test-xstrtoimax.sh: Likewise.
57520         * tests/test-xstrtoumax.sh: Likewise.
57521         * modules/xstrtol-tests: New module.
57522         * modules/xstrtoimax-tests: Likewise.
57523         * modules/xstrtoumax-tests: Likewise.
57524
57525 2007-08-08  Jim Meyering  <jim@meyering.net>
57526
57527         New function: mfile_name_concat.
57528         * lib/filenamecat.c (mfile_name_concat): New function, just like
57529         file_name_concat, but return NULL upon failure rather than exiting
57530         with a diagnostic.
57531         * lib/filenamecat.h: Declare it.
57532
57533 2007-08-07  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57536         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57537         warning from gcc.
57538         Reported by Eric Blake.
57539
57540 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57541
57542         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57543         * modules/crypto/arcfour (License): Likewise.
57544         * modules/crypto/des-tests (License): Likewise.
57545         * modules/crypto/gc-arctwo-tests (License): Likewise.
57546         * modules/crypto/gc-des-tests (License): Likewise.
57547         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57548         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57549         * modules/crypto/gc-md2-tests (License): Likewise.
57550         * modules/crypto/gc-md4-tests (License): Likewise.
57551         * modules/crypto/gc-md5-tests (License): Likewise.
57552         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57553         * modules/crypto/gc-rijndael-tests (License): Likewise.
57554         * modules/crypto/gc-sha1-tests (License): Likewise.
57555         * modules/crypto/gc-tests (License): Likewise.
57556         * modules/crypto/hmac-md5 (License): Likewise.
57557         * modules/crypto/hmac-sha1 (License): Likewise.
57558         * modules/crypto/md2-tests (License): Likewise.
57559         * modules/crypto/md4-tests (License): Likewise.
57560         * modules/crypto/md5 (License): Likewise.
57561         * modules/crypto/rijndael (License): Likewise.
57562         * modules/crypto/sha1 (License): Likewise.
57563         * modules/memxor (License): Likewise.
57564
57565 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57566         and Bruno Haible  <bruno@clisp.org>
57567
57568         * NEWS: Describe interface changes to human, xstrtol.
57569         * lib/human.h: Include <xstrtol.h>.
57570         (human_options): Return enum strtol_error, not int.  Remove
57571         bool arg; take int * instead.
57572         * lib/human.c: Don't include "gettext.h".
57573         (_): Remove; no longer used.
57574         Don't include <xstrtol.h>, since human.h does it.
57575         (human_options): Adjust to abovementioned interface changes.
57576         Do not report error to stderr; that's now the caller's
57577         responsibility.
57578         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57579         interface change.
57580         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57581         Str, Argument_type_string.  All uses changed.  Put " argument"
57582         in diagnostics to make them clearer.  Change wording of suffix
57583         message for clarity.
57584         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57585         Argument_type_string.
57586         (STRTOL_FATAL_WARN): Remove; no longer used.
57587         * modules/human (Depends-on): Remove gettext-h.
57588
57589 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57590
57591         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57592
57593 2007-07-31  Bruno Haible  <bruno@clisp.org>
57594
57595         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57596         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57597         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57598
57599 2007-07-31  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57602         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57603
57604 2007-07-30  Bruno Haible  <bruno@clisp.org>
57605
57606         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57607         * modules/c-ctype (License): Likewise.
57608         * modules/c-strcase (License): Likewise.
57609         * modules/check-version (License): Likewise.
57610         * modules/iconv (License): Likewise.
57611         * modules/iconv_open (License): Likewise.
57612         * modules/read-file (License): Likewise.
57613         * modules/striconv (License): Likewise.
57614         * modules/strverscmp (License): Likewise.
57615         * modules/vasprintf (License): Likewise.
57616         * modules/crypto/des (License): Likewise.
57617         * modules/crypto/gc (License): Likewise.
57618         * modules/crypto/gc-arcfour (License): Likewise.
57619         * modules/crypto/gc-arctwo (License): Likewise.
57620         * modules/crypto/gc-des (License): Likewise.
57621         * modules/crypto/gc-hmac-md5 (License): Likewise.
57622         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57623         * modules/crypto/gc-md2 (License): Likewise.
57624         * modules/crypto/gc-md4 (License): Likewise.
57625         * modules/crypto/gc-md5 (License): Likewise.
57626         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57627         * modules/crypto/gc-random (License): Likewise.
57628         * modules/crypto/gc-rijndael (License): Likewise.
57629         * modules/crypto/gc-sha1 (License): Likewise.
57630         * modules/crypto/md2 (License): Likewise.
57631         * modules/crypto/md4 (License): Likewise.
57632
57633 2007-07-30  Jim Meyering  <jim@meyering.net>
57634
57635         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57636         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57637         it has valid stat data.  This bug would cause du not to count the
57638         sizes of inaccessible directories.
57639         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57640         in <http://bugzilla.redhat.com/250077>.
57641
57642 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57643             Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57646         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57647         #include_next, gives a diagnostic about it, but reports no error in
57648         the exit code.
57649         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57650
57651 2007-07-24  Ben Pfaff  <blp@gnu.org>
57652
57653         Improve name: "count-one-bits" is better than "popcount".
57654         * MODULES.html.sh: Update name.
57655         * lib/popcount.h: Renamed lib/count-one-bits.h.
57656         (popcount): Renamed count_one_bits.
57657         (popcountl): Renamed count_one_bits_l.
57658         (popcountll): Renamed count_one_bits_ll.
57659         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57660         * modules/popcount: Renamed module/count-one-bits.
57661         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57662         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57663
57664 2007-07-23  Ben Pfaff  <blp@gnu.org>
57665
57666         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57667         better code generation, and add U to large constants to avoid
57668         warnings, in non-GCC case.
57669         Suggested by Bruno Haible.
57670
57671 2007-07-23  Ben Pfaff  <blp@gnu.org>
57672
57673         * lib/popcount.h: Use verify_true instead of if...abort.
57674         * modules/popcount: Depend on verify module.
57675         Suggested by Jim Meyering.
57676
57677 2007-07-23  Bruno Haible  <bruno@clisp.org>
57678
57679         * gnulib-tool (func_import): Create a .cvsignore file also when the
57680         directory is not yet in CVS but the toplevel directory is. When
57681         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57682         Reported by Karl Berry.
57683
57684 2007-07-22  Ben Pfaff  <blp@gnu.org>
57685
57686         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57687         case.
57688         Suggested by Eric Blake.
57689
57690 2007-07-22  Ben Pfaff  <blp@gnu.org>
57691
57692         New module: popcount.
57693         * MODULES.html.sh: Add popcount.
57694         * modules/popcount: New file.
57695         * modules/popcount-tests: New file.
57696         * tests/test-popcount.c: New file.
57697         * lib/popcount.h: New file.
57698         * m4/popcount.m4: New file.
57699
57700 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * build-aux/announce-gen: Update to GPLv3.
57703
57704         * build-aux/config.guess: Update from config.
57705
57706 2007-07-21  Bruno Haible  <bruno@clisp.org>
57707
57708         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57709         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57710
57711 2007-07-20  Jim Meyering  <jim@meyering.net>
57712
57713         * check-module: Diagnose a self-dependency.
57714
57715 2007-07-19  Bruno Haible  <bruno@clisp.org>
57716
57717         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57718         empty.
57719         Reported by Eric Blake.
57720
57721 2007-07-18  Bruno Haible  <bruno@clisp.org>
57722
57723         * gnulib-tool: New options --po-base, --po-domain.
57724         (func_usage): Document them.
57725         (pobase, po_domain): New variables.
57726         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57727         DEFAULT_TEXT_DOMAIN.
57728         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57729         (func_import): Consider pobase and po_domain. Create a po/ directory.
57730         (func_create_testdir): Set pobase and po_domain to empty.
57731         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57732         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57733
57734 2007-07-18  Bruno Haible  <bruno@clisp.org>
57735
57736         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57737         EXTRA_DIST augmentation for files in build-aux/.
57738
57739 2007-07-16  Bruno Haible  <bruno@clisp.org>
57740
57741         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57742         * modules/getdelim (License): Likewise.
57743
57744 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57745
57746         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57747         * modules/d-type (License): Likewise.
57748         * modules/extensions (License): Likewise.
57749         * modules/fnmatch (License): Likewise.
57750         * modules/fseeko (License): Likewise.
57751         * modules/getaddrinfo (License): Likewise.
57752         * modules/getline (License): Likewise.
57753         * modules/getlogin_r (License): Likewise.
57754         * modules/getpass (License): Likewise.
57755         * modules/gettimeofday (License): Likewise.
57756         * modules/glob (License): Likewise.
57757         * modules/inet_ntop (License): Likewise.
57758         * modules/malloc (License): Likewise.
57759         * modules/malloca (License): Likewise.
57760         * modules/memmem (License): Likewise.
57761         * modules/mempcpy (License): Likewise.
57762         * modules/memset (License): Likewise.
57763         * modules/minmax (License): Likewise.
57764         * modules/mktime (License): Likewise.
57765         * modules/netinet_in (License): Likewise.
57766         * modules/pathmax (License): Likewise.
57767         * modules/poll (License): Likewise.
57768         * modules/regex (License): Likewise.
57769         * modules/snprintf (License): Likewise.
57770         * modules/stdbool (License): Likewise.
57771         * modules/stdint (License): Likewise.
57772         * modules/stdio (License): Likewise.
57773         * modules/strcase (License): Likewise.
57774         * modules/strcasestr (License): Likewise.
57775         * modules/strdup (License): Likewise.
57776         * modules/string (License): Likewise.
57777         * modules/strndup (License): Likewise.
57778         * modules/strnlen (License): Likewise.
57779         * modules/strpbrk (License): Likewise.
57780         * modules/strptime (License): Likewise.
57781         * modules/strsep (License): Likewise.
57782         * modules/sys_select (License): Likewise.
57783         * modules/sys_socket (License): Likewise.
57784         * modules/sys_stat (License): Likewise.
57785         * modules/sys_time (License): Likewise.
57786         * modules/time (License): Likewise.
57787         * modules/time_r (License): Likewise.
57788         * modules/timegm (License): Likewise.
57789         * modules/unistd (License): Likewise.
57790         * modules/vsnprintf (License): Likewise.
57791         * modules/wctype (License): Likewise.
57792
57793 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57794
57795         * modules/argz (License): LGPLv2+.
57796
57797 2007-07-15  Karl Berry  <karl@gnu.org>
57798
57799         * doc/gnulib.texi: revise node structure per new fdl.texi.
57800
57801 2007-07-14  Bruno Haible  <bruno@clisp.org>
57802
57803         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57804         the output file.
57805         * lib/uniname/uninames.h: Regenerated.
57806
57807 2007-07-14  Karl Berry  <karl@gnu.org>
57808
57809         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57810         omitting sectioning and index commands.
57811
57812 2007-07-13  Bruno Haible  <bruno@clisp.org>
57813
57814         New gnulib-tool option --more-symlinks.
57815         * gnulib-tool (func_usage): Document --more-symlinks.
57816         (do_copyrights): New variable.
57817         Recognize option --more-symlinks.
57818         (func_import): Don't add a copyright notice transform to
57819         sed_transform_lib_file if do_copyrights is empty.
57820
57821 2007-07-13  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/vasnprintf.c (decimal_point_char): Define also if
57824         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57825         && !NEED_PRINTF_DIRECTIVE_A.
57826         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57827         Gary V. Vaughan <gary@gnu.org>.
57828
57829 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         * lib/inttypes_.h: Undo previous change, since it was fixed
57832         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57833
57834 2007-07-13  Bruno Haible  <bruno@clisp.org>
57835
57836         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57837         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57838
57839 2007-07-13  Jim Meyering  <jim@meyering.net>
57840
57841         df: Don't fail for Tru64's "file-on-file mount".
57842         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57843         so we fall through and use statfs instead.  Details here:
57844         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57845         Reported by Albert Chin.
57846
57847 2007-07-13  Bruno Haible  <bruno@clisp.org>
57848
57849         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57850         * modules/configmake (License): Likewise.
57851         * modules/gettext (License): Likewise.
57852         * modules/gettext-h (License): Likewise.
57853         * modules/include_next (License): Likewise.
57854         * modules/link-warning (License): Likewise.
57855         * modules/localcharset (License): Likewise.
57856         * modules/localename (License): Likewise.
57857         * modules/lock (License): Likewise.
57858         * modules/relocatable-lib-lgpl (License): Likewise.
57859         * modules/size_max (License): Likewise.
57860         * modules/vasnprintf (License): Likewise.
57861         * modules/wchar (License): Likewise.
57862         * modules/xsize (License): Likewise.
57863
57864 2007-07-13  Bruno Haible  <bruno@clisp.org>
57865
57866         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57867         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57868
57869 2007-07-12  Bruno Haible  <bruno@clisp.org>
57870
57871         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57872         in the modules files.
57873
57874 2007-07-11  Karl Berry  <karl@gnu.org>
57875
57876         * MODULES.html.sh (func_module): use
57877          sed -e '\|^'"${includefile}"'$|d'
57878          instead of /.../d, to avoid errors on $includefile's containing /.
57879
57880 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57881
57882         * gnulib-tool (func_import): Avoid duplication of --avoid
57883         statements
57884         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57885         names to `_' in variable names.
57886
57887 2007-07-10  Eric Blake  <ebb9@byu.net>
57888
57889         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57890         * NEWS: Document this change.
57891
57892 2007-07-08  Bruno Haible  <bruno@clisp.org>
57893
57894         Update to Unicode 5.0.
57895         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57896         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57897         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57898         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57899         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57900         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57901         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57902         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57903         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57904         U+10A3F, U+1D242..U+1D244.
57905         (nonspacing_table_ind): Update.
57906         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57907         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57908
57909 2007-07-08  Bruno Haible  <bruno@clisp.org>
57910
57911         Update to Unicode 5.0.
57912         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57913         code transform. Extend the name index field of unicode_name_to_code and
57914         unicode_code_to_name from 16 to 24 bits.
57915         * lib/uniname/uniname.c (unicode_character_name,
57916         unicode_name_character): Add the range 0x12xxx to the code transform.
57917         * lib/uniname/uninames.h: Regenerated.
57918         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57919
57920 2007-07-07  Bruno Haible  <bruno@clisp.org>
57921
57922         * modules/wcwidth-tests: New file.
57923         * tests/test-wcwidth.c: New file.
57924
57925         Work around MacOS X wcwidth() bug.
57926         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57927         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57928         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57929         original wcwidth in non-UTF-8 locales.
57930         * modules/wcwidth (Depends-on): Add localcharset, streq,
57931         uniwidth/width.
57932         * doc/functions/wcwidth.texi: Update.
57933
57934 2007-07-07  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57937         (wcwidth): New declaration.
57938         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57939         macros.
57940         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57941         here. Prepare for creating <wchar.h> unconditionally.
57942         * modules/wchar (Depends-on): Add link-warning.
57943         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57944         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57945         * lib/wcwidth.h: Remove file.
57946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57947         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57948         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57949         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57950         (Include): Replace wcwidth.h with <wchar.h>.
57951         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57952         * lib/mbchar.h: Don't include wcwidth.h.
57953         * lib/mbswidth.c: Likewise.
57954         * NEWS: Mention the change.
57955
57956 2007-07-07  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57959         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57960         definition with an external declaration.
57961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57962         defined as a function. Remove AC_C_INLINE requirement.
57963         * modules/wcwidth (Files): Add lib/wcwidth.c.
57964         (Makefile.am): Remove redundant statement.
57965
57966 2007-07-07  Bruno Haible  <bruno@clisp.org>
57967
57968         * MODULES.html.sh (Unicode string functions): Add the new modules.
57969
57970         * tests/uniwidth/test-u32-strwidth.c: New file.
57971         * modules/uniwidth/u32-strwidth-tests: New file.
57972
57973         * lib/uniwidth/u32-strwidth.c: New file.
57974         * modules/uniwidth/u32-strwidth: New file.
57975
57976         * tests/uniwidth/test-u16-strwidth.c: New file.
57977         * modules/uniwidth/u16-strwidth-tests: New file.
57978
57979         * lib/uniwidth/u16-strwidth.c: New file.
57980         * modules/uniwidth/u16-strwidth: New file.
57981
57982         * tests/uniwidth/test-u8-strwidth.c: New file.
57983         * modules/uniwidth/u8-strwidth-tests: New file.
57984
57985         * lib/uniwidth/u8-strwidth.c: New file.
57986         * modules/uniwidth/u8-strwidth: New file.
57987
57988         * tests/uniwidth/test-u32-width.c: New file.
57989         * modules/uniwidth/u32-width-tests: New file.
57990
57991         * lib/uniwidth/u32-width.c: New file.
57992         * modules/uniwidth/u32-width: New file.
57993
57994         * tests/uniwidth/test-u16-width.c: New file.
57995         * modules/uniwidth/u16-width-tests: New file.
57996
57997         * lib/uniwidth/u16-width.c: New file.
57998         * modules/uniwidth/u16-width: New file.
57999
58000         * tests/uniwidth/test-u8-width.c: New file.
58001         * modules/uniwidth/u8-width-tests: New file.
58002
58003         * lib/uniwidth/u8-width.c: New file.
58004         * modules/uniwidth/u8-width: New file.
58005
58006         * tests/uniwidth/test-uc_width.c: New file.
58007         * modules/uniwidth/width-tests: New file.
58008
58009         * lib/uniwidth/width.c: New file, from GNU libiconv.
58010         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58011         * modules/uniwidth/width: New file.
58012
58013         * lib/uniwidth.h: New file, from GNU libiconv.
58014         * modules/uniwidth/base: New file.
58015
58016 2007-07-07  Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/uniname.h: New file, from GNU gettext.
58019         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58020         * lib/uniname/uninames.h: New file, from GNU gettext.
58021         * lib/uniname/uniname.c: New file, from GNU gettext.
58022         * tests/uniname/test-uninames.sh: New file.
58023         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58024         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58025         * modules/uniname/base: New file.
58026         * modules/uniname/uniname: New file.
58027         * modules/uniname/uniname-tests: New file.
58028         * MODULES.html.sh (Unicode string functions): Add the new modules.
58029
58030 2007-07-06  Bruno Haible  <bruno@clisp.org>
58031
58032         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58033
58034 2007-07-06  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58037         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58038         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58039         include <sys/time.h>.
58040         Reported by Eric Blake.
58041
58042 2007-07-06  Eric Blake  <ebb9@byu.net>
58043
58044         Fix testing canonicalize on cygwin.
58045         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58046         Revert patch from 2007-06-19.
58047         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58048         canonicalize module is also in use.
58049         * tests/test-canonicalize.c: New file.
58050         * tests/test-canonicalize.sh: Likewise.
58051         * modules/canonicalize-tests: Likewise.
58052
58053 2007-07-06  Jim Meyering  <jim@meyering.net>
58054
58055         * lib/getugroups.c (getugroups): Detect getgrent failure.
58056         Adjust comment to reflect reality: this function may return -1.
58057
58058 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58059
58060         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58061         the new TP address.
58062         (usage): Fix typo
58063         (gnulib_mk): New variable.
58064
58065 2007-07-05  Jim Meyering  <jim@meyering.net>
58066
58067         Don't let endgrent clobber errno, no matter how improbable.
58068         * lib/getugroups.c (getugroups): Save and restore errno around
58069         endgrent call.
58070
58071         Close the group DB even when failing with 2^31 or more members.
58072         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58073
58074 2007-07-04  Jim Meyering  <jim@meyering.net>
58075
58076         * lib/getugroups.h: New file.
58077         * lib/getugroups.c: Include "getugroups.h".
58078         Remove uses of "register" keyword.
58079         Move local variable, "cp", down into scope where used.
58080         Give "username" parameter the "const" attribute.
58081         * modules/getugroups (Files): Add lib/getugroups.h
58082
58083 2007-07-04  Karl Berry  <karl@gnu.org>
58084
58085         * MODULES.html.sh (func_all_modules): Complete rename of
58086         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58087
58088 2007-07-02  Bruno Haible  <bruno@clisp.org>
58089
58090         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58091         mode, when inttypes.h comes from gnulib.
58092         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58093
58094 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58095
58096         * NEWS: Mention lgpl module name change.
58097
58098         * modules/lgpl-2.1: Renamed from lgpl.
58099
58100         * NEWS: Mention gpl module name change.
58101
58102         * modules/gpl-3.0: New file, based on gpl-2.0.
58103
58104         * modules/gpl-2.0: Renamed from gpl.
58105
58106         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58107         doc/gpl-2.0.texi.
58108
58109 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58110
58111         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58112         #define __STDC_LIMIT_MACROS temporarily while including
58113         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58114         Problem reported by Joel E. Denny in
58115         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58116
58117 2007-07-01  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/unistdio.h: New file.
58120         * lib/unistdio/u-asnprintf.h: New file.
58121         * lib/unistdio/u-asprintf.h: New file.
58122         * lib/unistdio/u-printf-args.c: New file.
58123         * lib/unistdio/u-printf-args.h: New file.
58124         * lib/unistdio/u-printf-parse.h: New file.
58125         * lib/unistdio/u-snprintf.h: New file.
58126         * lib/unistdio/u-sprintf.h: New file.
58127         * lib/unistdio/u-vasprintf.h: New file.
58128         * lib/unistdio/u-vsnprintf.h: New file.
58129         * lib/unistdio/u-vsprintf.h: New file.
58130         * lib/unistdio/ulc-asnprintf.c: New file.
58131         * lib/unistdio/ulc-asprintf.c: New file.
58132         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58133         * lib/unistdio/ulc-printf-parse.c: New file.
58134         * lib/unistdio/ulc-snprintf.c: New file.
58135         * lib/unistdio/ulc-sprintf.c: New file.
58136         * lib/unistdio/ulc-vasnprintf.c: New file.
58137         * lib/unistdio/ulc-vasprintf.c: New file.
58138         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58139         * lib/unistdio/ulc-vsnprintf.c: New file.
58140         * lib/unistdio/ulc-vsprintf.c: New file.
58141         * lib/unistdio/u8-asnprintf.c: New file.
58142         * lib/unistdio/u8-asprintf.c: New file.
58143         * lib/unistdio/u8-printf-parse.c: New file.
58144         * lib/unistdio/u8-snprintf.c: New file.
58145         * lib/unistdio/u8-sprintf.c: New file.
58146         * lib/unistdio/u8-vasnprintf.c: New file.
58147         * lib/unistdio/u8-vasprintf.c: New file.
58148         * lib/unistdio/u8-vsnprintf.c: New file.
58149         * lib/unistdio/u8-vsprintf.c: New file.
58150         * lib/unistdio/u8-u8-asnprintf.c: New file.
58151         * lib/unistdio/u8-u8-asprintf.c: New file.
58152         * lib/unistdio/u8-u8-snprintf.c: New file.
58153         * lib/unistdio/u8-u8-sprintf.c: New file.
58154         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58155         * lib/unistdio/u8-u8-vasprintf.c: New file.
58156         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58157         * lib/unistdio/u8-u8-vsprintf.c: New file.
58158         * lib/unistdio/u16-asnprintf.c: New file.
58159         * lib/unistdio/u16-asprintf.c: New file.
58160         * lib/unistdio/u16-printf-parse.c: New file.
58161         * lib/unistdio/u16-snprintf.c: New file.
58162         * lib/unistdio/u16-sprintf.c: New file.
58163         * lib/unistdio/u16-vasnprintf.c: New file.
58164         * lib/unistdio/u16-vasprintf.c: New file.
58165         * lib/unistdio/u16-vsnprintf.c: New file.
58166         * lib/unistdio/u16-vsprintf.c: New file.
58167         * lib/unistdio/u16-u16-asnprintf.c: New file.
58168         * lib/unistdio/u16-u16-asprintf.c: New file.
58169         * lib/unistdio/u16-u16-snprintf.c: New file.
58170         * lib/unistdio/u16-u16-sprintf.c: New file.
58171         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58172         * lib/unistdio/u16-u16-vasprintf.c: New file.
58173         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58174         * lib/unistdio/u16-u16-vsprintf.c: New file.
58175         * lib/unistdio/u32-asnprintf.c: New file.
58176         * lib/unistdio/u32-asprintf.c: New file.
58177         * lib/unistdio/u32-printf-parse.c: New file.
58178         * lib/unistdio/u32-snprintf.c: New file.
58179         * lib/unistdio/u32-sprintf.c: New file.
58180         * lib/unistdio/u32-vasnprintf.c: New file.
58181         * lib/unistdio/u32-vasprintf.c: New file.
58182         * lib/unistdio/u32-vsnprintf.c: New file.
58183         * lib/unistdio/u32-vsprintf.c: New file.
58184         * lib/unistdio/u32-u32-asnprintf.c: New file.
58185         * lib/unistdio/u32-u32-asprintf.c: New file.
58186         * lib/unistdio/u32-u32-snprintf.c: New file.
58187         * lib/unistdio/u32-u32-sprintf.c: New file.
58188         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58189         * lib/unistdio/u32-u32-vasprintf.c: New file.
58190         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58191         * lib/unistdio/u32-u32-vsprintf.c: New file.
58192         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58193         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58194         * tests/unistdio/test-ulc-printf1.h: New file.
58195         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58196         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58197         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58198         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58199         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58200         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58201         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58202         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58203         * tests/unistdio/test-u8-asnprintf1.c: New file.
58204         * tests/unistdio/test-u8-asnprintf1.h: New file.
58205         * tests/unistdio/test-u8-printf1.h: New file.
58206         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58207         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58208         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58209         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58210         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58211         * tests/unistdio/test-u8-vasprintf1.c: New file.
58212         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58213         * tests/unistdio/test-u8-vsprintf1.c: New file.
58214         * tests/unistdio/test-u16-asnprintf1.c: New file.
58215         * tests/unistdio/test-u16-asnprintf1.h: New file.
58216         * tests/unistdio/test-u16-printf1.h: New file.
58217         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58218         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58219         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58220         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58221         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58222         * tests/unistdio/test-u16-vasprintf1.c: New file.
58223         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58224         * tests/unistdio/test-u16-vsprintf1.c: New file.
58225         * tests/unistdio/test-u32-asnprintf1.c: New file.
58226         * tests/unistdio/test-u32-asnprintf1.h: New file.
58227         * tests/unistdio/test-u32-printf1.h: New file.
58228         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58229         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58230         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58231         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58232         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58233         * tests/unistdio/test-u32-vasprintf1.c: New file.
58234         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58235         * tests/unistdio/test-u32-vsprintf1.c: New file.
58236         * modules/unistdio/base: New file.
58237         * modules/unistdio/u-printf-args: New file.
58238         * modules/unistdio/ulc-asnprintf: New file.
58239         * modules/unistdio/ulc-asprintf: New file.
58240         * modules/unistdio/ulc-fprintf: New file.
58241         * modules/unistdio/ulc-printf-parse: New file.
58242         * modules/unistdio/ulc-snprintf: New file.
58243         * modules/unistdio/ulc-sprintf: New file.
58244         * modules/unistdio/ulc-vasnprintf: New file.
58245         * modules/unistdio/ulc-vasprintf: New file.
58246         * modules/unistdio/ulc-vfprintf: New file.
58247         * modules/unistdio/ulc-vsnprintf: New file.
58248         * modules/unistdio/ulc-vsprintf: New file.
58249         * modules/unistdio/u8-asnprintf: New file.
58250         * modules/unistdio/u8-asprintf: New file.
58251         * modules/unistdio/u8-printf-parse: New file.
58252         * modules/unistdio/u8-snprintf: New file.
58253         * modules/unistdio/u8-sprintf: New file.
58254         * modules/unistdio/u8-vasnprintf: New file.
58255         * modules/unistdio/u8-vasprintf: New file.
58256         * modules/unistdio/u8-vsnprintf: New file.
58257         * modules/unistdio/u8-vsprintf: New file.
58258         * modules/unistdio/u8-u8-asnprintf: New file.
58259         * modules/unistdio/u8-u8-asprintf: New file.
58260         * modules/unistdio/u8-u8-snprintf: New file.
58261         * modules/unistdio/u8-u8-sprintf: New file.
58262         * modules/unistdio/u8-u8-vasnprintf: New file.
58263         * modules/unistdio/u8-u8-vasprintf: New file.
58264         * modules/unistdio/u8-u8-vsnprintf: New file.
58265         * modules/unistdio/u8-u8-vsprintf: New file.
58266         * modules/unistdio/u16-asnprintf: New file.
58267         * modules/unistdio/u16-asprintf: New file.
58268         * modules/unistdio/u16-printf-parse: New file.
58269         * modules/unistdio/u16-snprintf: New file.
58270         * modules/unistdio/u16-sprintf: New file.
58271         * modules/unistdio/u16-vasnprintf: New file.
58272         * modules/unistdio/u16-vasprintf: New file.
58273         * modules/unistdio/u16-vsnprintf: New file.
58274         * modules/unistdio/u16-vsprintf: New file.
58275         * modules/unistdio/u16-u16-asnprintf: New file.
58276         * modules/unistdio/u16-u16-asprintf: New file.
58277         * modules/unistdio/u16-u16-snprintf: New file.
58278         * modules/unistdio/u16-u16-sprintf: New file.
58279         * modules/unistdio/u16-u16-vasnprintf: New file.
58280         * modules/unistdio/u16-u16-vasprintf: New file.
58281         * modules/unistdio/u16-u16-vsnprintf: New file.
58282         * modules/unistdio/u16-u16-vsprintf: New file.
58283         * modules/unistdio/u32-asnprintf: New file.
58284         * modules/unistdio/u32-asprintf: New file.
58285         * modules/unistdio/u32-printf-parse: New file.
58286         * modules/unistdio/u32-snprintf: New file.
58287         * modules/unistdio/u32-sprintf: New file.
58288         * modules/unistdio/u32-vasnprintf: New file.
58289         * modules/unistdio/u32-vasprintf: New file.
58290         * modules/unistdio/u32-vsnprintf: New file.
58291         * modules/unistdio/u32-vsprintf: New file.
58292         * modules/unistdio/u32-u32-asnprintf: New file.
58293         * modules/unistdio/u32-u32-asprintf: New file.
58294         * modules/unistdio/u32-u32-snprintf: New file.
58295         * modules/unistdio/u32-u32-sprintf: New file.
58296         * modules/unistdio/u32-u32-vasnprintf: New file.
58297         * modules/unistdio/u32-u32-vasprintf: New file.
58298         * modules/unistdio/u32-u32-vsnprintf: New file.
58299         * modules/unistdio/u32-u32-vsprintf: New file.
58300         * modules/unistdio/ulc-asnprintf-tests: New file.
58301         * modules/unistdio/ulc-vasnprintf-tests: New file.
58302         * modules/unistdio/ulc-vasprintf-tests: New file.
58303         * modules/unistdio/ulc-vsnprintf-tests: New file.
58304         * modules/unistdio/ulc-vsprintf-tests: New file.
58305         * modules/unistdio/u8-asnprintf-tests: New file.
58306         * modules/unistdio/u8-vasnprintf-tests: New file.
58307         * modules/unistdio/u8-vasprintf-tests: New file.
58308         * modules/unistdio/u8-vsnprintf-tests: New file.
58309         * modules/unistdio/u8-vsprintf-tests: New file.
58310         * modules/unistdio/u16-asnprintf-tests: New file.
58311         * modules/unistdio/u16-vasnprintf-tests: New file.
58312         * modules/unistdio/u16-vasprintf-tests: New file.
58313         * modules/unistdio/u16-vsnprintf-tests: New file.
58314         * modules/unistdio/u16-vsprintf-tests: New file.
58315         * modules/unistdio/u32-asnprintf-tests: New file.
58316         * modules/unistdio/u32-vasnprintf-tests: New file.
58317         * modules/unistdio/u32-vasprintf-tests: New file.
58318         * modules/unistdio/u32-vsnprintf-tests: New file.
58319         * modules/unistdio/u32-vsprintf-tests: New file.
58320         * MODULES.html.sh (Unicode string functions): Add the new modules.
58321
58322 2007-07-01  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/sprintf.c (sprintf): Limit the available length estimation,
58325         to avoid address wraparound.
58326         * lib/vsprintf.c (vsprintf): Likewise.
58327         * modules/sprintf-posix (Dependencies): Add stdint.
58328         * modules/vsprintf-posix (Dependencies): Likewise.
58329
58330 2007-07-01  Bruno Haible  <bruno@clisp.org>
58331
58332         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58333         Windows PATH as well. Conservative double-quoting. Comments.
58334
58335 2007-07-01  Bruno Haible  <bruno@clisp.org>
58336             Eric Blake  <ebb9@byu.net>
58337             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58338
58339         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58340         empty components in $PATH, denoting '.'.
58341
58342 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58343
58344         * gnulib-tool: Fix indentation.
58345         (func_create_megatestdir): Likewise.
58346         Report by Bruno Haible.
58347
58348 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58349
58350         Sync from Automake.
58351         * build-aux/gnupload: Fix shell portability issues with for loops.
58352         Report by Karl Berry.
58353
58354 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58355
58356         * build-aux/maint.mk (POURL): Use translationproject.org.
58357
58358 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58359             Bruno Haible  <bruno@clisp.org>
58360
58361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58362         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58363         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58364         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58365         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58366
58367 2007-06-27  Bruno Haible  <bruno@clisp.org>
58368
58369         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58370         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58371
58372 2007-06-26  Karl Berry  <karl@gnu.org>
58373
58374         * MODULES.html.sh: remove xreadlink-with-size.
58375
58376 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58379         method that I hope also handles the double-include problem noted
58380         by Bruno Haible in
58381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58382
58383 2007-06-23  Bruno Haible  <bruno@clisp.org>
58384
58385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58386         Don't let the 'mostlyclean' target fail if the last subdirectory could
58387         not be removed.
58388         Reported by Karl Berry.
58389
58390 2007-06-23  Bruno Haible  <bruno@clisp.org>
58391
58392         * gnulib-tool (echo): Add a speedier workaround for ksh.
58393         * tests/test-echo.sh: Likewise.
58394
58395 2007-06-23  Bruno Haible  <bruno@clisp.org>
58396
58397         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58398         * tests/test-echo.sh: Likewise.
58399
58400 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58401
58402         * gnulib-tool (IFS): Initialize early, so we don't set it to
58403         empty later.
58404         (self_abspathname): Rewrite algorithm to set it, reindent.
58405         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58406         (func_create_megatestdir): Merge some sed scripts.
58407
58408 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58409
58410         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58411         exposed by Sun Studio 11 cc on Solaris 8.
58412
58413 2007-06-22  Bruno Haible  <bruno@clisp.org>
58414
58415         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58416         backslashes.
58417         * tests/test-echo.sh: New file.
58418
58419 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58420
58421         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58422         simplify `sed_replace_build_aux' scripts, they are portable but
58423         echoing them with `echo' is not.
58424         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58425
58426 2007-06-21  Karl Berry  <karl@gnu.org>
58427
58428         * config/srclist.txt: guess we can't handle the licenses via
58429         srclist at the moment.
58430
58431 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * MODULES.html.sh: Add include_next.
58434         * modules/include_next: New file.
58435
58436 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58437
58438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58439         INCLUDE_NEXT.
58440         (gl_CHECK_NEXT_HEADERS): New macro.
58441         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58442         the obsolescent gl_ABSOLUTE_HEADER.
58443         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58444         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58445         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58447         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58448         * m4/math_h.m4 (gl_MATH_H): Likewise.
58449         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58450         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58451         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58452         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58453         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58454         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58455         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58459         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58460         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58461         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58462         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58463         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58464         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58465         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58466         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58467         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58468         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58469         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58470         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58471         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58472         * lib/float_.h: Likewise.
58473         * lib/inttypes_.h: Likewise.
58474         * lib/math_.h: Likewise.
58475         * lib/search_.h: Likewise.
58476         * lib/signal_.h: Likewise.
58477         * lib/stdint_.h: Likewise.
58478         * lib/stdio_.h: Likewise.
58479         * lib/stdlib_.h: Likewise.
58480         * lib/string_.h: Likewise.
58481         * lib/sys_stat_.h: Likewise.
58482         * lib/sys_time_.h: Likewise.
58483         * lib/time_.h: Likewise.
58484         * lib/unistd_.h: Likewise.
58485         * lib/wchar_.h: Likewise.
58486         * lib/wctype_.h: Likewise.
58487         * lib/dirent_.h: Likewise.
58488         * lib/iconv_.h: Likewise.
58489         * lib/locale_.h: Likewise.
58490         * lib/netinet_in_.h: Likewise.
58491         * lib/sys_select_.h: Likewise.
58492         * lib/sys_socket_.h: Likewise.
58493         * lib/sysexits_.h: Likewise.
58494         * modules/fcntl (Depends-on): Depend on include_next, not
58495         absolute_header.
58496         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58497         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58498         * modules/fchdir: Likewise.
58499         * modules/float: Likewise.
58500         * modules/iconv_open: Likewise.
58501         * modules/inttypes: Likewise.
58502         * modules/locale: Likewise.
58503         * modules/math: Likewise.
58504         * modules/netinet_in: Likewise.
58505         * modules/search: Likewise.
58506         * modules/signal: Likewise.
58507         * modules/stdint: Likewise.
58508         * modules/stdio: Likewise.
58509         * modules/stdlib: Likewise.
58510         * modules/string: Likewise.
58511         * modules/sys_select: Likewise.
58512         * modules/sys_socket: Likewise.
58513         * modules/sys_stat: Likewise.
58514         * modules/sys_time: Likewise.
58515         * modules/sysexits: Likewise.
58516         * modules/time: Likewise.
58517         * modules/unistd: Likewise.
58518         * modules/wchar: Likewise.
58519         * modules/wctype: Likewise.
58520         * modules/sys_stat: Change maintainer to "all".
58521         * modules/unistd: Likewise.
58522
58523 2007-06-20  Karl Berry  <karl@gnu.org>
58524
58525         * config/srclist.txt: track www changes in license files.
58526
58527 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58528
58529         * build-aux/bootstrap: Remove stray dot.
58530         Make sure build_aux settings are honored when linking
58531         gnulib_extra_files.
58532
58533 2007-06-19  Eric Blake  <ebb9@byu.net>
58534
58535         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58536         Allow compilation on cygwin.
58537
58538 2007-06-19  Jim Meyering  <jim@meyering.net>
58539
58540         xreadlink-with-size: Remove module.  No longer used.
58541         Ex-callers now use xreadlink or mreadlink-with-size.
58542         * modules/xreadlink-with-size: Remove module.
58543         * lib/xreadlink-with-size.c: Remove file.
58544         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58545         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58546         just before the function definition *is* accurate.
58547
58548         Eliminate one way canonicalize_filename_mode could exit.
58549         * lib/canonicalize.c (canonicalize_filename_mode):
58550         Use mreadlink_with_size, not xreadlink_with_size.
58551
58552 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         Detect porting problems to FreeBSD/arm, which has time_t wider than
58555         long int.  Original problem reported for GNU diff by Xin Li in
58556         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58557         * modules/getdate (Depends-on): Add intprops, verify.
58558         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58559         is an integer type no wider than long int.
58560
58561 2007-06-18  Jim Meyering  <jim@meyering.net>
58562
58563         New module: mreadlink-with-size.
58564         * MODULES.html.sh: Add mreadlink-with-size.
58565         * modules/mreadlink-with-size: New module
58566         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58567         not xreadlink-with-size.
58568         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58569
58570 2007-06-16  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58573         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58574         Reported by Gary V. Vaughan <gary@gnu.org>.
58575
58576 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         Revamp lchown so that it lives in unistd.h where it belongs.
58579         * lib/lchown.h: Remove.
58580         * lib/dirchownmod.c: Don't include lib/lchown.h.
58581         * lib/fchownat.c: Likewise.
58582         * lib/openat.c: Likewise.
58583         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58584         does not follow symlinks.
58585         (EOPNOTSUPP): Define if not defined.
58586         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58587         is defined to 0.
58588         (lchown): New decl.
58589         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58590         Do not check for lchown decl.
58591         Set REPLACE_LCHOWN.
58592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58593         REPLACE_LCHOWN.
58594         * modules/chown: Make it clear it follows symlinks.
58595         * modules/lchown: Make it clear it doesn't follow symlinks.
58596         (Files): Remove lib/lchown.h
58597         (Depends-on): Add unistd.
58598         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58599         (Include): Include <unistd.h>, not "lchown.h".
58600         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58601         REPLACE_LCHOWN.
58602
58603 2007-06-15  Jim Meyering  <jim@meyering.net>
58604
58605         Change license (GPL to LGPL) of fsusage and dependents.
58606         * modules/fsusage (License): Change to LGPL.
58607         * modules/full-read (License): Likewise.
58608         * modules/full-write (License): Likewise.
58609         * modules/safe-read (License): Likewise.
58610         * modules/safe-write (License): Likewise.
58611
58612 2007-06-14  Ben Pfaff  <blp@gnu.org>
58613
58614         Missing part of allocsa -> malloca transition.
58615         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58616         gl_MALLOCA.
58617
58618 2007-06-12  Bruno Haible  <bruno@clisp.org>
58619
58620         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58621         to ia64, x86_64, i386.
58622         Reported by Eric Blake.
58623
58624 2007-06-12  Bruno Haible  <bruno@clisp.org>
58625
58626         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58627         cross-compiling to x86_64.
58628
58629 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58632         glitch reported by Ralf Wildenhues in
58633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58634
58635         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58636         Vin Shelton.
58637
58638 2007-06-11  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58641         replacement string.
58642         Reported by Eric Blake.
58643
58644 2007-06-10  Bruno Haible  <bruno@clisp.org>
58645
58646         Prepare vasnprintf code for use with Unicode strings.
58647         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58648         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58649         TYPE_U32_STRING.
58650         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58651         a_u32_string variants.
58652         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58653         * lib/printf-args.c: Don't include config.h and the specification
58654         header if PRINTF_FETCHARGS is already defined.
58655         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58656         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58657         TYPE_U16_STRING, TYPE_U32_STRING.
58658         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58659         u16_directive, u16_directives, u32_directive, u32_directives): New
58660         types.
58661         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58662         New declarations.
58663         * lib/printf-parse.c: Don't include config.h and the specification
58664         header if PRINTF_PARSE is already defined. Eliminate the set of
58665         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58666         them now. Include c-ctype.h.
58667         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58668         directive and CHAR_T_ONLY_ASCII.
58669         * lib/vasnprintf.c: Don't include config.h and the specification header
58670         if VASNPRINTF is already defined.
58671         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58672         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58673         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58674         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58675         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58676         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58677         code accordingly.
58678         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58679         pad_ourselves also in this case, with the 'c' and 's' directives, and
58680         with a different notion of "width".
58681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58682
58683 2007-06-10  Bruno Haible  <bruno@clisp.org>
58684
58685         * modules/unistr/u32-mbsnlen: New file.
58686         * lib/unistr/u32-mbsnlen.c: New file.
58687
58688         * modules/unistr/u16-mbsnlen: New file.
58689         * lib/unistr/u16-mbsnlen.c: New file.
58690
58691         * modules/unistr/u8-mbsnlen: New file.
58692         * lib/unistr/u8-mbsnlen.c: New file.
58693
58694         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58695         declarations.
58696
58697 2007-06-10  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/string_.h (mbsnlen): New declaration.
58700         * lib/mbsnlen.c: New file.
58701         * m4/mbsnlen.m4: New file.
58702         * modules/mbsnlen: New file.
58703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58704         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58705         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58706
58707 2007-06-10  Bruno Haible  <bruno@clisp.org>
58708
58709         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58710
58711 2007-06-10  Bruno Haible  <bruno@clisp.org>
58712
58713         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58714         * lib/mbuiter.h: Likewise.
58715
58716 2007-06-10  Bruno Haible  <bruno@clisp.org>
58717
58718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58719         declaration.
58720
58721 2007-06-10  Karl Berry  <karl@gnu.org>
58722
58723         * config/srclist.txt: remove gettext entries, Bruno prefers
58724         to update individually.
58725
58726 2007-06-10  Bruno Haible  <bruno@clisp.org>
58727
58728         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58729         'maxlen'. Ensure only length + width bytes are allocated, not
58730         length + 1 + width.
58731
58732 2007-06-09  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58735         (CHAR_T): Remove macro.
58736         (VASNPRINTF): Update.
58737
58738 2007-06-09  Bruno Haible  <bruno@clisp.org>
58739
58740         * MODULES.html.sh (Unicode string functions): Add the new modules.
58741
58742         * modules/uniconv/u32-conv-to-enc: New file.
58743         * lib/uniconv/u32-conv-to-enc.c: New file.
58744         * modules/uniconv/u32-conv-to-enc-tests: New file.
58745         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58746
58747         * modules/uniconv/u16-conv-to-enc: New file.
58748         * lib/uniconv/u16-conv-to-enc.c: New file.
58749         * lib/uniconv/u-conv-to-enc.h: New file.
58750         * modules/uniconv/u16-conv-to-enc-tests: New file.
58751         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58752
58753         * modules/uniconv/u8-conv-to-enc: New file.
58754         * lib/uniconv/u8-conv-to-enc.c: New file.
58755         * modules/uniconv/u8-conv-to-enc-tests: New file.
58756         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58757
58758         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58759         u32_conv_to_encoding): New declarations.
58760
58761 2007-06-09  Bruno Haible  <bruno@clisp.org>
58762
58763         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58764
58765 2007-06-09  Bruno Haible  <bruno@clisp.org>
58766
58767         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58768         * modules/malloca: Renamed from modules/allocsa, updated.
58769         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58770         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58771         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58772         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58773         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58774         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58775         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58776         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58777         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58778         * modules/c-strcasestr (Depends-on): Update.
58779         * lib/c-strcasestr.c: Update.
58780         * modules/c-strstr (Depends-on): Update.
58781         * lib/c-strstr.c: Update.
58782         * modules/canonicalize-lgpl (Depends-on): Update.
58783         * lib/canonicalize-lgpl.c: Update.
58784         * modules/clean-temp (Depends-on): Update.
58785         * lib/clean-temp.c: Update.
58786         * modules/csharpcomp (Depends-on): Update.
58787         * lib/csharpcomp.c: Update.
58788         * modules/csharpexec (Depends-on): Update.
58789         * lib/csharpexec.c: Update.
58790         * modules/javacomp (Depends-on): Update.
58791         * lib/javacomp.c: Update.
58792         * modules/javaexec (Depends-on): Update.
58793         * lib/javaexec.c: Update.
58794         * modules/mbscasestr (Depends-on): Update.
58795         * lib/mbscasestr.c: Update.
58796         * modules/mbsstr (Depends-on): Update.
58797         * lib/mbsstr.c: Update.
58798         * modules/setenv (Depends-on): Update.
58799         * lib/setenv.c: Update.
58800         * modules/strcasestr (Depends-on): Update.
58801         * lib/strcasestr.c: Update.
58802         * modules/striconveha (Depends-on): Update.
58803         * lib/striconveha.c: Update.
58804         * modules/relocatable-prog-wrapper (Files): Update.
58805         * lib/relocwrapper.c: Update.
58806         * build-aux/install-reloc: Update.
58807         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58808
58809 2007-06-08  Bruno Haible  <bruno@clisp.org>
58810
58811         Port to uClibc.
58812         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58813         * lib/fpurge.c (fpurge): Likewise.
58814         * lib/freading.c (freading): Likewise.
58815         * lib/fseeko.c (rpl_fseeko): Likewise.
58816         * lib/fseterr.c (fseterr): Likewise.
58817         * lib/fwriting.c (fwriting): Likewise.
58818         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58819
58820 2007-06-08  Bruno Haible  <bruno@clisp.org>
58821
58822         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58823         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58824         * modules/gettext (Files): Add m4/intlmacosx.m4.
58825
58826 2007-06-07  Bruno Haible  <bruno@clisp.org>
58827
58828         * modules/localename-tests: New file.
58829         * tests/test-localename.c: New file.
58830
58831         New module 'localename'.
58832         * lib/localename.h: New file.
58833         * lib/localename.c: New file, from GNU gettext.
58834         * m4/localename.m4: New file.
58835         * modules/localename: New file.
58836
58837 2007-06-07  Bruno Haible  <bruno@clisp.org>
58838
58839         Work around the lack of <wchar.h> on some builds of uClibc.
58840         * doc/headers/wchar.texi: Update.
58841         * lib/wchar_.h: Include <wchar.h> only if it exists.
58842         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58843         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58844         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58845         doesn't exist.
58846         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58847         * modules/mbfile (Depends-on): Add wchar.
58848         * modules/mbiter (Depends-on): Likewise.
58849         * modules/mbuiter (Depends-on): Likewise.
58850         Reported by Simon Josefsson.
58851
58852 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58853
58854         Work around problem reported by Steven M. Schweda in
58855         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58856         Tru64 5.1B with the Compaq compiler environment installed declares
58857         an 'isblank' function but does not define it in the C library.
58858         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58859         * lib/regex_internal.h (isblank): Likewise.
58860         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58861         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58862
58863 2007-06-05  Bruno Haible  <bruno@clisp.org>
58864
58865         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58866         ia64.
58867         * modules/printf-safe: New file.
58868         * modules/fprintf-posix (Depends-on): Add printf-safe.
58869         * modules/printf-posix (Depends-on): Likewise.
58870         * modules/snprintf-posix (Depends-on): Likewise.
58871         * modules/sprintf-posix (Depends-on): Likewise.
58872         * modules/vasnprintf-posix (Depends-on): Likewise.
58873         * modules/vasprintf-posix (Depends-on): Likewise.
58874         * modules/vfprintf-posix (Depends-on): Likewise.
58875         * modules/vprintf-posix (Depends-on): Likewise.
58876         * modules/vsnprintf-posix (Depends-on): Likewise.
58877         * modules/vsprintf-posix (Depends-on): Likewise.
58878         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58879         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58880         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58881         "no" on i386, x86_64, ia64.
58882         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58883         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58884         on i386, x86_64, ia64.
58885         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58886         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58887         on i386, x86_64, ia64.
58888         * tests/test-vasnprintf-posix.c: Include float.h.
58889         (LDBL80_WORDS): New macro.
58890         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58891         on i386, x86_64, ia64.
58892         * tests/test-vasprintf-posix.c: Include float.h.
58893         (LDBL80_WORDS): New macro.
58894         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58895         on i386, x86_64, ia64.
58896         * tests/test-snprintf-posix.c: Include float.h.
58897         * tests/test-sprintf-posix.c: Likewise.
58898         * tests/test-vsnprintf-posix.c: Likewise.
58899         * tests/test-vsprintf-posix.c: Likewise.
58900
58901 2007-06-05  Bruno Haible  <bruno@clisp.org>
58902
58903         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58904         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58905         non-IEEE numbers on i386, x86_64, ia64.
58906         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58907         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58908         * tests/test-isnanl.h: Include float.h.
58909         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58910
58911 2007-06-05  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58914         also the %a / %A. Handle the %a / %A code before this extra handling.
58915
58916 2007-06-05  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58919         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58920
58921 2007-06-05  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58924         typo in variable name.
58925
58926 2007-06-05  Eric Blake  <ebb9@byu.net>
58927
58928         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58929         Reported by Simon Josefsson.
58930
58931 2007-06-04  Bruno Haible  <bruno@clisp.org>
58932
58933         Avoid test failures on some PowerPC platforms.
58934         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58935         Define differently for PowerPC.
58936         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58937         Reported by Gary V. Vaughan <gary@gnu.org>.
58938
58939 2007-06-02  Bruno Haible  <bruno@clisp.org>
58940
58941         Fix test-stdint failure on FreeBSD/ia64.
58942         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58943         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58944         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58945         * doc/headers/stdint.texi: Update.
58946
58947 2007-06-01  Bruno Haible  <bruno@clisp.org>
58948
58949         * tests/test-binary-io.c (main): Pass a third argument to open().
58950         Reported by Gary V. Vaughan <gary@gnu.org>.
58951
58952 2007-06-01  Bruno Haible  <bruno@clisp.org>
58953
58954         * doc/functions/frexpl.texi: Update for mingw.
58955
58956 2007-06-01  Bruno Haible  <bruno@clisp.org>
58957
58958         * tests/test-lseek.c (main): Disable test of errno for invalid third
58959         argument.
58960         * doc/functions/lseek.texi: Update.
58961         Reported by Gary V. Vaughan <gary@gnu.org>.
58962
58963 2007-05-28  Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58966
58967 2007-05-31  Eric Blake  <ebb9@byu.net>
58968
58969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58970         cross compiling.
58971
58972 2007-05-30  Eric Blake  <ebb9@byu.net>
58973         and Bruno Haible  <bruno@clisp.org>
58974
58975         Work around mingw test failures exposed by m4-1.4.9b.
58976         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58977         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58978         moment.
58979
58980 2007-05-30  Bruno Haible  <bruno@clisp.org>
58981
58982         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58983         assuming that they are closed. Needed on HP-UX 11.
58984
58985 2007-05-29  Bruno Haible  <bruno@clisp.org>
58986
58987         Fix a problem with #include_next.
58988         * lib/dirent_.h: Split the double-inclusion guard.
58989         * lib/fcntl_.h: Likewise.
58990         * lib/float_.h: Likewise.
58991         * lib/iconv_.h: Likewise.
58992         * lib/inttypes_.h: Likewise.
58993         * lib/locale_.h: Likewise.
58994         * lib/math_.h: Likewise.
58995         * lib/netinet_in_.h: Likewise.
58996         * lib/search_.h: Likewise.
58997         * lib/signal_.h: Likewise.
58998         * lib/stdint_.h: Likewise.
58999         * lib/stdio_.h: Likewise.
59000         * lib/stdlib_.h: Likewise.
59001         * lib/string_.h: Likewise.
59002         * lib/sys_select_.h: Likewise.
59003         * lib/sys_socket_.h: Likewise.
59004         * lib/sys_stat_.h: Likewise.
59005         * lib/sys_time_.h: Likewise.
59006         * lib/sysexits_.h: Likewise.
59007         * lib/time_.h: Likewise.
59008         * lib/unistd_.h: Likewise.
59009         * lib/wchar_.h: Likewise.
59010         * lib/wctype_.h: Likewise.
59011
59012 2007-05-29  Bruno Haible  <bruno@clisp.org>
59013
59014         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59015         for the moment.
59016
59017 2007-05-29  Bruno Haible  <bruno@clisp.org>
59018
59019         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59020         invocation.
59021         Reported by Eric Blake.
59022
59023 2007-05-29  Bruno Haible  <bruno@clisp.org>
59024
59025         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59026         compiling case.
59027
59028 2007-05-29  Eric Blake  <ebb9@byu.net>
59029             Bruno Haible  <bruno@clisp.org>
59030
59031         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59032         cross compiles.
59033
59034 2007-05-28  Eric Blake  <ebb9@byu.net>
59035
59036         * modules/closein-tests (test_closein_LDADD): Support test on
59037         cygwin with libtool.
59038
59039 2007-05-28  Bruno Haible  <bruno@clisp.org>
59040
59041         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59042         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59043         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59044         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59045         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59046         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59047         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59048         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59049         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59050
59051 2007-05-28  Eric Blake  <ebb9@byu.net>
59052
59053         Unconditionally include <config.h> in unit tests.
59054         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59055         * tests/test-allocsa.c, tests/test-arcfour.c,
59056         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59057         tests/test-array_list.c, tests/test-array_oset.c,
59058         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59059         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59060         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59061         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59062         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59063         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59064         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59065         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59066         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59067         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59068         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59069         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59070         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59071         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59072         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59073         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59074         test-md5.c, test-memmem.c, test-printf-posix.c,
59075         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59076         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59077         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59078         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59079         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59080         test-vasnprintf-posix2.c, test-vasnprintf.c,
59081         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59082         test-vfprintf-posix.c, test-vprintf-posix.c,
59083         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59084         test-xvasprintf.c: Likewise.
59085
59086 2007-05-28  Bruno Haible  <bruno@clisp.org>
59087
59088         * gnulib-tool (func_import): Remember the --with-tests command-line
59089         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59090         Reported by Eric Blake.
59091
59092 2007-05-28  Bruno Haible  <bruno@clisp.org>
59093
59094         * modules/ftell-tests: New file.
59095         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59096         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59097
59098         * lib/ftell.c: New file.
59099         * modules/ftell: New file.
59100         * m4/ftell.m4: New file.
59101         * doc/functions/ftell.texi: Update.
59102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59103         REPLACE_FTELL.
59104         * lib/stdio_.h (rpl_ftell): New declaration.
59105         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59106         REPLACE_FTELL.
59107
59108 2007-05-28  Eric Blake  <ebb9@byu.net>
59109
59110         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59111
59112 2007-05-28  Bruno Haible  <bruno@clisp.org>
59113
59114         * modules/fseek-tests: New file.
59115         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59116         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59117
59118         * lib/fseek.c: New file.
59119         * modules/fseek: New file.
59120         * m4/fseek.m4: New file.
59121         * doc/functions/fseek.texi: Update.
59122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59123         REPLACE_FSEEK.
59124         * lib/stdio_.h (rpl_fseek): New declaration.
59125         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59126         REPLACE_FSEEK.
59127
59128 2007-05-28  Bruno Haible  <bruno@clisp.org>
59129
59130         * lib/stdio_.h (fflush): More comments.
59131
59132 2007-05-28  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59135         runtime test.
59136
59137 2007-05-28  Eric Blake  <ebb9@byu.net>
59138
59139         Improve lseek module.
59140         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59141         * lib/unistd_.h (lseek): Scale back link warning message.
59142         * tests/test-lseek.c: Beef up test.
59143         * tests/test-lseek.sh: Exercise more facets of lseek.
59144         Reported by Bruno Haible.
59145
59146 2007-05-28  Bruno Haible  <bruno@clisp.org>
59147
59148         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59149         to define.
59150
59151 2007-05-27  Bruno Haible  <bruno@clisp.org>
59152
59153         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59154
59155 2007-05-27  Bruno Haible  <bruno@clisp.org>
59156
59157         * modules/openmp: New file.
59158         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59159         Noah Misch.
59160
59161 2007-05-26  Bruno Haible  <bruno@clisp.org>
59162
59163         * modules/chdir-long (Depends-on): Add fchdir.
59164         * modules/chdir-safer (Depends-on): Likewise.
59165         * modules/fts (Depends-on): Likewise.
59166         * modules/fts-lgpl (Depends-on): Likewise.
59167         * modules/openat (Depends-on): Likewise.
59168         * modules/savewd (Depends-on): Likewise.
59169
59170 2007-05-24  Eric Blake  <ebb9@byu.net>
59171
59172         Fix lseek on mingw.
59173         * modules/lseek: New module.
59174         * m4/lseek.m4: New file.
59175         * lib/lseek.c: New file.
59176         * modules/lseek-tests: New file.
59177         * tests/test-lseek.c: New file.
59178         * tests/test-lseek.sh: New file.
59179         * MODULES.html.sh: Document lseek module.
59180         * modules/fflush (Depends-on): Add lseek, fseeko.
59181         * modules/fseeko (Depends-on): Likewise.
59182         * modules/ftello (Depends-on): Likewise.
59183         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59184         broken.
59185         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59186         broken.
59187         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59188         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59189         * lib/ftello.c (rpl_ftello): Likewise.
59190         * tests/test-fseeko.c (main): Test this.
59191         * tests/test-fseeko.sh: Likewise.
59192         * tests/test-ftello.c (main): Likewise.
59193         * tests/test-ftello.sh: Likewise.
59194         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59195         implies replacing fseek.
59196         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59197         HAVE_FTELLO.
59198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59199         * modules/unistd (Makefile.am): Likewise.
59200         * lib/unistd_.h (lseek): Declare a replacement.
59201         * doc/functions/lseek.texi (lseek): Document this fix.
59202         * doc/functions/fseek.texi (fseek): Likewise.
59203         * doc/functions/ftell.texi (ftell): Likewise.
59204
59205 2007-05-24  Bruno Haible  <bruno@clisp.org>
59206
59207         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59208         in the printed representation of a NaN.
59209         * tests/test-vasprintf-posix.c (test_function): Likewise.
59210         * tests/test-snprintf-posix.h (test_function): Likewise.
59211         * tests/test-sprintf-posix.h (test_function): Likewise.
59212         Reported by Eric Blake.
59213
59214 2007-05-23  Eric Blake  <ebb9@byu.net>
59215
59216         Fix fseeko/ftello on cygwin 1.5.24.
59217         * doc/functions/fseeko.texi (fseeko): Document the fix.
59218         * doc/functions/ftello.texi (ftello): Document the fix.
59219         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59220         * doc/functions/stdout.text (stdout): New file.
59221         * doc/functions/stderr.text (stderr): New file.
59222         * doc/gnulib.texi (Function Substitutes): Use new files.
59223         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59224         prior to 1.7.0.
59225         * tests/test-ftello.c (main): Likewise for ftello.
59226         * tests/test-fseeko.sh: New file.
59227         * tests/test-ftello.sh: New file.
59228         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59229         with seekable stdin.
59230         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59232         (gl_REPLACE_FSEEKO): New macro.
59233         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59234         * modules/fseeko (Files): Distribute fseeko.c.
59235         * modules/ftello (Files): Distribute ftello.c.
59236         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59237         mode.
59238         * lib/ftello.c (rpl_ftello): New file.
59239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59240         fseeko, ftello.
59241         (gl_STDIN_LARGE_OFFSET): New macro.
59242         * modules/stdio (Makefile.am): Perform the replacement.
59243         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59244
59245 2007-05-23  Bruno Haible  <bruno@clisp.org>
59246
59247         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59248         GNULIB_POSIXCHECK is defined.
59249
59250 2007-05-21  Bruno Haible  <bruno@clisp.org>
59251
59252         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59253         Check also the output for NaN arguments. When cross-compiling, guess
59254         no on IRIX.
59255         * lib/vasnprintf.c: Update comments.
59256         * tests/test-vasnprintf-posix.c (strisnan): New function.
59257         (test_function): Use it.
59258         * tests/test-vasprintf-posix.c (strisnan): New function.
59259         (test_function): Use it.
59260         * tests/test-snprintf-posix.h (strisnan): New function.
59261         (test_function): Use it.
59262         * tests/test-sprintf-posix.h (strisnan): New function.
59263         (test_function): Use it.
59264         Reported by Eric Blake.
59265
59266 2007-05-20  Bruno Haible  <bruno@clisp.org>
59267
59268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59269         numbers that fails on BeOS.
59270         * doc/functions/frexpl.texi: Update.
59271
59272 2007-05-20  Jim Meyering  <jim@meyering.net>
59273
59274         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59275         forced upon us by glibc-2.6.
59276
59277 2007-05-20  Bruno Haible  <bruno@clisp.org>
59278
59279         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59280         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59281         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59282         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59283         NEED_PRINTF_INFINITE.
59284         (is_infinitel): New function.
59285         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59287         gl_PREREQ_VASNPRINTF_INFINITE.
59288         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59289         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59290         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59291         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59292         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59293         gl_PREREQ_VASNPRINTF_INFINITE.
59294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59295         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59297         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59298         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59299         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59301         * doc/functions/fprintf.texi: Update.
59302         * doc/functions/printf.texi: Update.
59303         * doc/functions/snprintf.texi: Update.
59304         * doc/functions/sprintf.texi: Update.
59305         * doc/functions/vfprintf.texi: Update.
59306         * doc/functions/vprintf.texi: Update.
59307         * doc/functions/vsnprintf.texi: Update.
59308         * doc/functions/vsprintf.texi: Update.
59309
59310 2007-05-20  Bruno Haible  <bruno@clisp.org>
59311
59312         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59313         was not found in libc.
59314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59315
59316 2007-05-20  Bruno Haible  <bruno@clisp.org>
59317
59318         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59319         printed as "-nan" instead of "nan".
59320         * tests/test-vasprintf-posix.c (test_function): Likewise.
59321         * tests/test-snprintf-posix.h (test_function): Likewise.
59322         * tests/test-sprintf-posix.h (test_function): Likewise.
59323         Needed for HP-UX 11.
59324
59325 2007-05-20  Jim Meyering  <jim@meyering.net>
59326
59327         Fix buggy test for the fchownat-deref bug.
59328         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59329         symlink required for the run-test.  Without it, this test would
59330         always declare that fchownat doesn't work, and client code would
59331         unnecessarily use the replacement function with fixed libc.
59332         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59333         Reported by Greg Schafer.
59334
59335 2007-05-19  Bruno Haible  <bruno@clisp.org>
59336
59337         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59338         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59339         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59340         Needed for IRIX 6.5 and Solaris 2.5.1.
59341
59342 2007-05-19  Bruno Haible  <bruno@clisp.org>
59343
59344         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59345         (test_function): Skip tests involving -0.0 on platforms where
59346         -0.0 = 0.0.
59347         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59348         (test_function): Skip tests involving -0.0 on platforms where
59349         -0.0 = 0.0.
59350         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59351         (test_function): Skip tests involving -0.0 on platforms where
59352         -0.0 = 0.0.
59353         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59354         (test_function): Skip tests involving -0.0 on platforms where
59355         -0.0 = 0.0.
59356         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59357         tests.
59358         * tests/test-printf-posix.h (test_function): Likewise.
59359         * tests/test-printf-posix.output: Remove all -0.0 related results.
59360         Needed for IRIX 6.5.
59361
59362 2007-05-19  Bruno Haible  <bruno@clisp.org>
59363
59364         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59365         printed as "nan0x7fffffff" instead of "nan".
59366         * tests/test-vasprintf-posix.c (test_function): Likewise.
59367         * tests/test-snprintf-posix.h (test_function): Likewise.
59368         * tests/test-sprintf-posix.h (test_function): Likewise.
59369         * tests/test-fprintf-posix.h (NaN): Remove macro.
59370         (test_function): Remove all NaN related tests.
59371         * tests/test-printf-posix.h (NaN): Remove macro.
59372         (test_function): Remove all NaN related tests.
59373         * tests/test-printf-posix.output: Remove all NaN related results.
59374         Needed for IRIX 6.5.
59375
59376 2007-05-19  Bruno Haible  <bruno@clisp.org>
59377
59378         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59380
59381 2007-05-19  Bruno Haible  <bruno@clisp.org>
59382
59383         * lib/float_.h: New file.
59384         * m4/float_h.m4: New file.
59385         * modules/float: New file.
59386         * modules/isnanl (Dependencies): Add float.
59387         * modules/isnanl-nolibm (Dependencies): Likewise.
59388         * modules/mathl (Dependencies): Likewise.
59389         * modules/printf-frexpl (Dependencies): Likewise.
59390         * modules/signbit (Dependencies): Likewise.
59391         * modules/vasnprintf (Dependencies): Likewise.
59392         * doc/headers/float.texi: Update.
59393
59394 2007-05-19  Jim Meyering  <jim@meyering.net>
59395
59396         * lib/utimens.c (gl_futimens): Rename from futimens,
59397         now that glibc-2.6 declares futimens.
59398         * lib/utimens.h: Likewise.
59399
59400 2007-05-19  Bruno Haible  <bruno@clisp.org>
59401
59402         Avoid test failures on mingw.
59403         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59404         * tests/test-printf-posix.sh: Likewise.
59405         * tests/test-vfprintf-posix.sh: Likewise.
59406         * tests/test-vprintf-posix.sh: Likewise.
59407
59408 2007-05-19  Bruno Haible  <bruno@clisp.org>
59409
59410         Fix *printf result for NaN, Inf, -0.0 on mingw.
59411         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59412         * lib/vasnprintf.c: Include math.h and isnan.h.
59413         (is_infinite_or_zero): New function.
59414         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59415         values in the %f, %F, %e, %E, %g, %G directives.
59416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59418         gl_PRINTF_INFINITE and test its result. Invoke
59419         gl_PREREQ_VASNPRINTF_INFINITE.
59420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59422         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59424         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59426         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59427         * doc/functions/fprintf.texi: Update.
59428         * doc/functions/printf.texi: Update.
59429         * doc/functions/snprintf.texi: Update.
59430         * doc/functions/sprintf.texi: Update.
59431         * doc/functions/vfprintf.texi: Update.
59432         * doc/functions/vprintf.texi: Update.
59433         * doc/functions/vsnprintf.texi: Update.
59434         * doc/functions/vsprintf.texi: Update.
59435
59436 2007-05-19  Bruno Haible  <bruno@clisp.org>
59437
59438         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59439         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59440         Instead of multiplying with 10^k, set extra_zeroes to k.
59441         (scale10_round_long_double): Remove function.
59442
59443 2007-05-18  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59446         introduced on 2007-05-06.
59447
59448 2007-05-18  Bruno Haible  <bruno@clisp.org>
59449
59450         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59451         %g directives.
59452         * tests/test-vasprintf-posix.c (test_function): Likewise.
59453         * tests/test-snprintf-posix.h (test_function): Likewise.
59454         * tests/test-sprintf-posix.h (test_function): Likewise.
59455
59456 2007-05-18  Bruno Haible  <bruno@clisp.org>
59457
59458         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59459         (strmatch): New function.
59460         (test_function): Test the %f directive on numbers of various exponents.
59461         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59462         (strmatch): New function.
59463         (test_function): Test the %f directive on numbers of various exponents.
59464         * tests/test-snprintf-posix.h (strmatch): New function.
59465         (test_function): Test the %f directive on numbers of various exponents.
59466         * tests/test-sprintf-posix.h (strmatch): New function.
59467         (test_function): Test the %f directive on numbers of various exponents.
59468         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59469         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59470         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59471         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59472
59473 2007-05-18  Bruno Haible  <bruno@clisp.org>
59474
59475         Add support for 'long double' number output.
59476         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59477         * lib/vasnprintf.c: Include math.h and float+.h.
59478         (mp_limb_t): New type.
59479         (GMP_LIMB_BITS): New macro.
59480         (mp_twolimb_t): New type.
59481         (GMP_TWOLIMB_BITS): New macro.
59482         (mpn_t): New type.
59483         (multiply, divide, convert_to_decimal, decode_long_double,
59484         scale10_round_long_double, scale10_round_decimal_long_double,
59485         floorlog10l): New functions.
59486         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59487         for the %f, %F, %e, %E, %g, %G directives.
59488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59490         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59491         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59498         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59499         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59500         * modules/snprintf-posix (Depends-on): Likewise.
59501         * modules/sprintf-posix (Depends-on): Likewise.
59502         * modules/vasnprintf-posix (Depends-on): Likewise.
59503         * modules/vasprintf-posix (Depends-on): Likewise.
59504         * modules/vfprintf-posix (Depends-on): Likewise.
59505         * modules/vsnprintf-posix (Depends-on): Likewise.
59506         * modules/vsprintf-posix (Depends-on): Likewise.
59507         * modules/vasnprintf (Files): Add lib/float+.h.
59508         * doc/functions/fprintf.texi: Update.
59509         * doc/functions/printf.texi: Update.
59510         * doc/functions/snprintf.texi: Update.
59511         * doc/functions/sprintf.texi: Update.
59512         * doc/functions/vfprintf.texi: Update.
59513         * doc/functions/vprintf.texi: Update.
59514         * doc/functions/vsnprintf.texi: Update.
59515         * doc/functions/vsprintf.texi: Update.
59516
59517 2007-05-18  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59520
59521 2007-05-18  Bruno Haible  <bruno@clisp.org>
59522
59523         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59524         for printing 64-bit integers. Needed for mingw.
59525
59526 2007-05-18  Bruno Haible  <bruno@clisp.org>
59527
59528         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59529         gl_FUNC_FREXPL_WORKS.
59530         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59531
59532 2007-05-18  Bruno Haible  <bruno@clisp.org>
59533
59534         * modules/frexpl-nolibm-tests: New file.
59535
59536         * modules/frexpl-nolibm: New file.
59537         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59538
59539 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59542         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59543         GCC 4.2, which otherwise issues a lot of warnings.
59544         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59545         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59546         Likewise.
59547         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59548         * modules/iconv_open (iconv.h): Likewise.
59549         * modules/locale (locale.h): Likewise.
59550         * modules/netinet_in (netinet/in.h): Likewise.
59551         * modules/sys_select (sys_select.h): Likewise.
59552         * modules/sys_socket (sys/socket.h): Likewise.
59553         * modules/sys_stat (sys/stat.h): Likewise.
59554         * modules/sysexits (sysexits.h): Likewise.
59555         * modules/unistd (unistd.h): Likewise.
59556
59557 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59558
59559         * modules/closein-tests (Makefile.am): Distribute
59560         `test-closein.sh'.
59561
59562 2007-05-17  Bruno Haible  <bruno@clisp.org>
59563
59564         * tests/test-printf-posix.output: Renamed from
59565         tests/test-fprintf-posix.out.
59566         * modules/fprintf-posix-tests: Update.
59567         * modules/printf-posix-tests: Update.
59568         * modules/vfprintf-posix-tests: Update.
59569         * modules/vprintf-posix-tests: Update.
59570         * tests/test-fprintf-posix.sh: Update.
59571         * tests/test-printf-posix.sh: Update.
59572         * tests/test-vfprintf-posix.sh: Update.
59573         * tests/test-vprintf-posix.sh: Update.
59574         Reported by Ralf Wildenhues.
59575
59576 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59577
59578         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59579         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59580         GCC 4.2, which otherwise issues a lot of warnings.
59581         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59582         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59583         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59584         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59585         it should no longer be needed.
59586         * lib/string_.h: Likewise.
59587         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59588         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59589         * modules/inttypes (inttypes.h): Likewise.
59590         * modules/math (math.h): Likewise.
59591         * modules/search (search.h): Likewise.
59592         * modules/signal (signal.h): Likewise.
59593         * modules/stdint (stdint.h): Likewise.
59594         * modules/stdio (stdio.h): Likewise.
59595         * modules/stdlib (stdlib.h): Likewise.
59596         * modules/string (string.h): Likewise.
59597         * modules/sys_time (sys/time.h): Likewise.
59598         * modules/time (time.h): Likewise.
59599         * modules/wchar (wchar.h): Likewise.
59600         * modules/wctype (wtype.h): Likewise.
59601
59602 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59603
59604         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59605
59606 2007-05-13  Bruno Haible  <bruno@clisp.org>
59607
59608         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59609         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59610         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59611         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59612         (gl_PREREQ_STRTOK_R): Don't require it here.
59613
59614 2007-05-13  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59617         when used in C++ mode.
59618
59619 2007-05-12  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/linebuffer.h: Tweak doc.
59622         * lib/linebuffer.c: Likewise.
59623
59624 2007-05-12  James Youngman  <jay@gnu.org>
59625
59626         * lib/linebuffer.c (readlinebuffer_delim): New function,
59627         like readlinebuffer, but use a caller-specified delimiter.
59628         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59629         as the delimiter.
59630         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59631
59632 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59633
59634         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59635         * modules/openat (Files): Remove openat-die.c.
59636         (Depends-on): Add openat-die.
59637         * modules/openat-die: New module.
59638
59639 2007-05-06  Bruno Haible  <bruno@clisp.org>
59640
59641         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59642         Update with info about Cygwin.
59643         * doc/functions/fprintf.texi: Update.
59644         * doc/functions/printf.texi: Update.
59645         * doc/functions/snprintf.texi: Update.
59646         * doc/functions/sprintf.texi: Update.
59647         * doc/functions/vfprintf.texi: Update.
59648         * doc/functions/vprintf.texi: Update.
59649         * doc/functions/vsnprintf.texi: Update.
59650         * doc/functions/vsprintf.texi: Update.
59651         Reported by Eric Blake.
59652
59653 2007-05-06  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59656         padding ourselves for the floating-point directives.
59657         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59660         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59661         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59664         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59665         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59669         * tests/test-snprintf-posix.h (test_function): Also check the width
59670         and some flags in the %f directive.
59671         * tests/test-sprintf-posix.h (test_function): Likewise.
59672         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59673         * tests/test-vasprintf-posix.c (test_function): Likewise.
59674         * doc/functions/fprintf.texi: Update.
59675         * doc/functions/printf.texi: Update.
59676         * doc/functions/snprintf.texi: Update.
59677         * doc/functions/sprintf.texi: Update.
59678         * doc/functions/vfprintf.texi: Update.
59679         * doc/functions/vprintf.texi: Update.
59680         * doc/functions/vsnprintf.texi: Update.
59681         * doc/functions/vsprintf.texi: Update.
59682
59683 2007-05-06  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59686         pass the ' flag character to sprintf or snprintf.
59687         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59689         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59690         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59691         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59699         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59700         flag.
59701         * tests/test-sprintf-posix.h (test_function): Likewise.
59702         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59703         * tests/test-vasprintf-posix.c (test_function): Likewise.
59704         * doc/functions/fprintf.texi: Update.
59705         * doc/functions/printf.texi: Update.
59706         * doc/functions/snprintf.texi: Update.
59707         * doc/functions/sprintf.texi: Update.
59708         * doc/functions/vfprintf.texi: Update.
59709         * doc/functions/vprintf.texi: Update.
59710         * doc/functions/vsnprintf.texi: Update.
59711         * doc/functions/vsprintf.texi: Update.
59712
59713 2007-05-01  Bruno Haible  <bruno@clisp.org>
59714
59715         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59716
59717 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59718
59719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59720         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59721
59722 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59723
59724         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59725         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59727
59728 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59729
59730         * lib/argp-help.c (struct hol_entry): New member `ord'.
59731         (HOL_ENTRY_PTRCMP): Use ord for comparison
59732         (hol_sort): Initialize ord.
59733
59734 2007-05-01  Bruno Haible  <bruno@clisp.org>
59735
59736         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59737         Reported by Eric Blake.
59738         * doc/gnulib.texi (Function Substitutes): Update.
59739
59740 2007-05-01  Bruno Haible  <bruno@clisp.org>
59741
59742         * doc/functions.texi: Remove file, now redundant through
59743         doc/functions/*.texi.
59744
59745 2007-05-01  Bruno Haible  <bruno@clisp.org>
59746
59747         * modules/argp (Depends-on): Add sleep.
59748
59749 2007-05-01  Bruno Haible  <bruno@clisp.org>
59750
59751         * modules/sleep-tests: New file.
59752         * tests/test-sleep.c: New file.
59753
59754         * modules/sleep: New file.
59755         * lib/sleep.c: New file.
59756         * m4/sleep.m4: New file.
59757         * lib/unistd_.h (sleep): New declaration.
59758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59759         HAVE_SLEEP.
59760         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59761         * doc/functions/sleep.texi: Document the sleep module.
59762
59763 2007-05-01  Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/sigprocmask.h: Remove file.
59766         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59767         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59768         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59769         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59770         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59771         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59772         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59773         HAVE_SIGSET_T as a shell variable.
59774         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59775         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59776         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59777         (Depends-on): Add signal. Remove verify.
59778         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59779         (Include): Mention <signal.h> instead of sigprocmask.h.
59780         * NEWS: Mention the change.
59781         * lib/fatal-signal.c: Don't include sigprocmask.h.
59782
59783 2007-05-01  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/signal: New file.
59786         * lib/signal_.h: New file.
59787         * m4/signal_h.m4: New file.
59788
59789 2007-05-01  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59792         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59793         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59794         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59795
59796 2007-05-01  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59799         configure time.
59800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59801         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59802         * modules/sys_stat (Makefile.am): Substitute their values into
59803         sys/stat.h.
59804
59805 2007-05-01  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59808         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59809         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59810
59811 2007-05-01  Bruno Haible  <bruno@clisp.org>
59812
59813         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59814         'assert' module here.
59815
59816 2007-05-01  Bruno Haible  <bruno@clisp.org>
59817
59818         * doc/functions/*.texi: New files.
59819         * doc/functions/google-ranking.txt: New file.
59820         * doc/gnulib.texi (Function Substitutes): New chapter.
59821         (ctime, inet_ntoa): Remove sections.
59822         * doc/ctime.texi: Remove file.
59823         * doc/inet_ntoa.texi: Remove file.
59824         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59825         dependencies.
59826         (%.info): New rule, specifying a --reference-limit.
59827
59828 2007-05-01  Bruno Haible  <bruno@clisp.org>
59829
59830         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59831
59832 2007-05-01  Bruno Haible  <bruno@clisp.org>
59833
59834         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59835         the portability of 'mkdir' to mingw systems.
59836
59837 2007-05-01  Bruno Haible  <bruno@clisp.org>
59838
59839         * doc/headers/google-ranking.txt: New file.
59840
59841 2007-04-30  Eric Blake  <ebb9@byu.net>
59842
59843         Prefer fseeko to fseek.
59844         * modules/getpass (Depends-on): Add fseeko.
59845         * lib/getpass.c (getpass): Use fseeko, not fseek.
59846
59847 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59848
59849         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59850         assumes the sorting is stable, while most qsort implementations
59851         are not.  Use argument addresses to ensure they never compare as
59852         equal.
59853
59854         * tests/test-argp-2.sh (usage-indent test): Fix output
59855         (func_compare): Restore diff options
59856         * tests/test-argp.c: Restore #include "progname.h"
59857
59858 2007-04-29  Bruno Haible  <bruno@clisp.org>
59859
59860         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59862         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59864         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59865         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59866         (TESTS, check_PROGRAMS): Add test-snprintf.
59867         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59868         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59869         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59870         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59871         assertions that fail on HP-UX, OSF/1, or IRIX.
59872         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59873
59874 2007-04-29  Bruno Haible  <bruno@clisp.org>
59875
59876         * MODULES.html.sh (posix_functions): Remove 'contents'.
59877
59878 2007-04-29  Karl Berry  <karl@gnu.org>
59879
59880         * config/srclist.txt (gendocs_template_min): new entry.
59881
59882 2007-04-29  Bruno Haible  <bruno@clisp.org>
59883
59884         Work around fpurge bug on BSD systems.
59885         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59886         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59887         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59888         fpurge to rpl_fpurge if the system already has this function.
59889         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59890         the case where the system already has this function. Correct invariants
59891         on BSD systems.
59892         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59893         BSD systems.
59894
59895 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59896
59897         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59898         proposed by Sven Verdoolaege.
59899
59900         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59901         options.
59902         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59903         (usage and help tests): Update
59904
59905 2007-04-29  Bruno Haible  <bruno@clisp.org>
59906
59907         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59908         Print more information in case of failure. Disable a test on BeOS.
59909
59910 2007-04-29  Bruno Haible  <bruno@clisp.org>
59911
59912         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59913         This helps debugging on systems on which no gdb is available.
59914
59915 2007-04-29  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/freading.h: Improve comments.
59918         * lib/fwriting.h: Likewise.
59919         * tests/test-freading.c (main): Don't check freading immediately after
59920         repositioning. Needed for glibc.
59921
59922 2007-04-29  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/freading.c (freading): Trivial simplification.
59925
59926 2007-04-28  Bruno Haible  <bruno@clisp.org>
59927
59928         * tests/test-fwriting.c (main): Also test the interaction between
59929         fflush and fwriting.
59930         * modules/fwriting-tests (Depends-on): Add fflush.
59931
59932         * tests/test-freading.c (main): Also test the interaction between
59933         fflush and freading.
59934         * modules/freading-tests (Depends-on): Add fflush.
59935
59936 2007-04-28  Bruno Haible  <bruno@clisp.org>
59937
59938         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59939         fseeko and ftello.
59940         Suggested by Eric Blake.
59941
59942 2007-04-28  Jim Meyering  <jim@meyering.net>
59943
59944         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59945         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59946         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59947
59948 2007-04-27  Eric Blake  <ebb9@byu.net>
59949
59950         * doc/headers/assert.texi (assert.h): Document assert module use.
59951
59952 2007-04-27  Bruno Haible  <bruno@clisp.org>
59953
59954         * doc/headers/*.texi: New files.
59955         * doc/gnulib.texi (Header File Substitutes): New chapter.
59956         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59957         dependencies.
59958         (standards.info ,standards.html, standards.dvi): Update dependencies.
59959         (mostlyclean, clean): New targets.
59960
59961 2007-04-27  Bruno Haible  <bruno@clisp.org>
59962
59963         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59964         * modules/sysexits (Files, Makefile.am): Update.
59965
59966         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59967         * modules/sys_socket (Files, Makefile.am): Update.
59968
59969         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59970         * modules/sys_stat (Files, Makefile.am): Update.
59971
59972 2007-04-27  Eric Blake  <ebb9@byu.net>
59973
59974         * lib/freading.h: Improve comments.
59975         * lib/fwriting.h: Likewise.
59976         * lib/fflush.c: Likewise.
59977
59978         Fix closein for mingw.
59979         * modules/closein-tests: Add tests for closein.
59980         * tests/test-closein.c: New file.
59981         * tests/test-closein.sh: Likewise.
59982         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59983         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59984
59985 2007-04-27  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59988         version is < 6.
59989         * lib/math_.h [__DECC]: Likewise.
59990         * lib/stdio_.h [__DECC]: Likewise.
59991         * lib/stdlib_.h [__DECC]: Likewise.
59992         * lib/string_.h [__DECC]: Likewise.
59993         * lib/time_.h [__DECC]: Likewise.
59994         * lib/wchar_.h [__DECC]: Likewise.
59995         * lib/wctype_.h [__DECC]: Likewise.
59996
59997 2007-04-27  Bruno Haible  <bruno@clisp.org>
59998
59999         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60000
60001 2007-04-27  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/fflush.c: Add comments.
60004         * modules/fpurge-tests (Depends-on): Add fflush.
60005         * modules/freadable-tests (Depends-on): Likewise.
60006         * modules/fwritable-tests (Depends-on): Likewise.
60007
60008 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60009
60010         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60011         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60012         Report by Bruno Haible <bruno@clisp.org>.
60013
60014 2007-04-26  Eric Blake  <ebb9@byu.net>
60015
60016         Fix fflush on mingw.
60017         * modules/fflush (Depends-on): Add freading.
60018         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60019         but unread data.
60020
60021 2007-04-26  Eric Blake  <ebb9@byu.net>
60022         and Bruno Haible  <bruno@clisp.org>
60023
60024         Implement freading and fwriting.
60025         * lib/freading.c: New file.
60026         * lib/freading.h: Likewise.
60027         * m4/freading.m4: Likewise.
60028         * modules/freading: Likewise.
60029         * modules/freading-tests: Likewise.
60030         * tests/test-freading.c: Likewise.
60031         * lib/fwriting.c: New file.
60032         * lib/fwriting.h: Likewise.
60033         * m4/fwriting.m4: Likewise.
60034         * modules/fwriting: Likewise.
60035         * modules/fwriting-tests: Likewise.
60036         * tests/test-fwriting.c: Likewise.
60037         * MODULES.html.sh (File stream based Input/Output): Mention them.
60038
60039 2007-04-26  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60042         'long' when we assume it.
60043         Suggested by Eric Blake.
60044
60045 2007-04-26  Bruno Haible  <bruno@clisp.org>
60046
60047         Ensure fseeko, ftello are declared on glibc systems.
60048         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60049         * modules/fseeko (configure.ac-early): Likewise.
60050         * modules/ftello (configure.ac-early): Likewise.
60051         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60052         AC_FUNC_FSEEKO for this.
60053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60054         (gl_CHECK_FSEEKO): Remove macro.
60055
60056 2007-04-26  Bruno Haible  <bruno@clisp.org>
60057
60058         * tests/test-fflush.c (main): Also check the ftell result after
60059         fflush and fseek/fseeko.
60060         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60061         file descriptor position cache in the stream.
60062         * lib/fseeko.c (rpl_fseeko): Likewise.
60063
60064 2007-04-26  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/fflush-tests (Depends-on): Add fseeko.
60067
60068 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60069             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60070
60071         * lib/argz_.h: ensure error_t definition is obtained in same
60072         mechanism system argz.h would have.
60073         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60074         argz facilities are known bad.  Err on the side of caution if
60075         cross-compiling.
60076
60077 2007-04-25  Eric Blake  <ebb9@byu.net>
60078
60079         * lib/fpurge.c (includes): Use stdlib.h for free.
60080         * tests/test-fflush.c (main): Also test fflush-fseeko.
60081
60082 2007-04-25  Bruno Haible  <bruno@clisp.org>
60083
60084         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60085         * lib/fseeko.c: New file.
60086         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60087         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60088         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60089         gl_FUNC_FSEEKO.
60090         (gl_FUNC_FSEEKO): Invoke it.
60091         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60092         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60093         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60094
60095 2007-04-25  Bruno Haible  <bruno@clisp.org>
60096
60097         * modules/fflush (Depends-on): Add ftello.
60098
60099 2007-04-25  Bruno Haible  <bruno@clisp.org>
60100
60101         * modules/ftello-tests: New file.
60102         * tests/test-ftello.c: New file.
60103
60104         * modules/ftello: New file.
60105         * m4/ftello.m4: New file.
60106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60107         HAVE_FTELLO.
60108         * lib/stdio_.h (ftello): New declaration.
60109         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60110         HAVE_FTELLO.
60111
60112 2007-04-25  Bruno Haible  <bruno@clisp.org>
60113
60114         * modules/fseeko-tests: New file.
60115         * tests/test-fseeko.c: New file.
60116
60117         * modules/fseeko: New file.
60118         * m4/fseeko.m4: New file.
60119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60120         HAVE_FSEEKO.
60121         * lib/stdio_.h (fseeko): New declaration.
60122         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60123         HAVE_FSEEKO.
60124
60125 2007-04-25  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60128
60129 2007-04-25  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60132         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60133         * tests/test-unistd.c: Likewise.
60134         * tests/test-fcntl.c: Likewise.
60135
60136 2007-04-23  Eric Blake  <ebb9@byu.net>
60137
60138         * lib/fflush.c: Fix missing include.
60139         Reported by Bruno Haible.
60140
60141 2007-04-23  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60144         Reported by Eric Blake.
60145
60146 2007-04-23  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60149
60150 2007-04-23  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60153
60154 2007-04-23  Bruno Haible  <bruno@clisp.org>
60155
60156         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60157         Needed on HP-UX 11.
60158
60159 2007-04-16  Eric Blake  <ebb9@byu.net>
60160
60161         Make fflush rely on fpurge.
60162         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60163         open coding all variants.
60164         * modules/fflush (Depends-on): Add fpurge and unistd.
60165         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60166         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60167
60168         Fix --with-tests compilation on cygwin.
60169         * modules/argmatch-tests (Makefile.am): List gnulib library first
60170         in LDADD.
60171         * modules/argp-tests (Makefile.am): Likewise.
60172         * modules/array-list-tests (Makefile.am): Likewise.
60173         * modules/array-oset-tests (Makefile.am): Likewise.
60174         * modules/avltree-list-tests (Makefile.am): Likewise.
60175         * modules/avltree-oset-tests (Makefile.am): Likewise.
60176         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60177         * modules/carray-list-tests (Makefile.am): Likewise.
60178         * modules/dirname-tests (Makefile.am): Likewise.
60179         * modules/frexp-tests (Makefile.am): Likewise.
60180         * modules/isnanl-tests (Makefile.am): Likewise.
60181         * modules/linked-list-tests (Makefile.am): Likewise.
60182         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60183         * modules/lock-tests (Makefile.am): Likewise.
60184         * modules/rbtree-list-tests (Makefile.am): Likewise.
60185         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60186         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60187         * modules/tls-tests (Makefile.am): Likewise.
60188         * modules/tsearch-tests (Makefile.am): Likewise.
60189         * modules/xvasprintf-tests (Makefile.am): Likewise.
60190
60191         Fix fpurge for cygwin.
60192         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60193         value.
60194         * modules/fpurge-tests (Depends-on): Clean up trash.
60195
60196 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60197
60198         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60199
60200         * m4/autobuild.m4: Re-indent.
60201
60202 2007-04-13  Bruno Haible  <bruno@clisp.org>
60203
60204         * modules/fpurge-tests: New file.
60205         * tests/test-fpurge.c: New file.
60206
60207         * modules/fpurge: New file.
60208         * lib/fpurge.h: New file.
60209         * lib/fpurge.c: New file.
60210         * m4/fpurge.m4: New file.
60211
60212 2007-04-13  Bruno Haible  <bruno@clisp.org>
60213
60214         * modules/fbufmode-tests: New file.
60215         * tests/test-fbufmode.c: New file.
60216
60217         * modules/fbufmode: New file.
60218         * lib/fbufmode.h: New file.
60219         * lib/fbufmode.c: New file.
60220         * m4/fbufmode.m4: New file.
60221
60222 2007-04-13  Bruno Haible  <bruno@clisp.org>
60223
60224         * modules/fwritable-tests: New file.
60225         * tests/test-fwritable.c: New file.
60226
60227         * modules/fwritable: New file.
60228         * lib/fwritable.h: New file.
60229         * lib/fwritable.c: New file.
60230         * m4/fwritable.m4: New file.
60231
60232 2007-04-13  Bruno Haible  <bruno@clisp.org>
60233
60234         * modules/freadable-tests: New file.
60235         * tests/test-freadable.c: New file.
60236
60237         * modules/freadable: New file.
60238         * lib/freadable.h: New file.
60239         * lib/freadable.c: New file.
60240         * m4/freadable.m4: New file.
60241
60242 2007-04-13  Bruno Haible  <bruno@clisp.org>
60243
60244         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60245         MOSTLYCLEANFILES.
60246
60247 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60250         gzip bootstrap.conf to avoid dragging in i18n machinery.
60251         (gnulib_tool_option): Use it.
60252
60253 2007-04-13  Bruno Haible  <bruno@clisp.org>
60254
60255         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60256         %F directives.
60257         * tests/test-vasprintf-posix.c (test_function): Likewise.
60258         * tests/test-snprintf-posix.h (test_function): Likewise.
60259         * tests/test-sprintf-posix.h (test_function): Likewise.
60260         * tests/test-fprintf-posix.h (test_function): Likewise.
60261         * tests/test-printf-posix.h (test_function): Likewise.
60262         * tests/test-fprintf-posix.out: Likewise.
60263
60264 2007-04-13  Bruno Haible  <bruno@clisp.org>
60265
60266         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60267         * modules/tls-tests (configure.ac): Likewise.
60268         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60269
60270 2007-04-13  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/tls.c (glthread_tls_get): Fix return type.
60273         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60274
60275 2007-04-12  Eric Blake  <ebb9@byu.net>
60276
60277         * modules/gettime (Depends-on): Remove gettime.
60278         Reported by Dmitry V. Levin.
60279
60280 2007-04-12  Bruno Haible  <bruno@clisp.org>
60281
60282         * modules/fflush (Include): Mention <stdio.h>.
60283         * modules/strtoimax (Include): Mention <inttypes.h>.
60284         * modules/strtoumax (Include): Likewise.
60285
60286 2007-04-12  Eric Blake  <ebb9@byu.net>
60287
60288         * .cvsignore: New file.
60289         * .gitignore: Likewise.
60290
60291 2007-04-12  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60294         not before, since $(LDADD) often contains libgnu.a.
60295         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60296         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60297         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60298         Needed on Cygwin.
60299
60300 2007-04-12  Eric Blake  <ebb9@byu.net>
60301
60302         Work around glibc's failure to flush stdin on fclose.
60303         * lib/closein.c (close_stdin): Flush stdin before closing.
60304
60305         Work around glibc's failure to reset seekable stdin on exit.
60306         * modules/closein: New module.
60307         * lib/closein.c: New file.
60308         * lib/closein.h: Likewise.
60309         * m4/closein.m4: Likewise.
60310         * MODULES.html.sh (File stream based Input/Output): Document it.
60311
60312 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60313
60314         * gnulib-tool: Rename generated 'autobuild' script to
60315         'do-autobuild' in --create-megatestdir output.
60316
60317         * doc/gnulib.texi (Build robot for gnulib): Fix.
60318
60319 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60320
60321         * modules/sysexits (Depends-on): Add absolute-header.
60322
60323 2007-04-12  Eric Blake  <ebb9@byu.net>
60324
60325         No need to preserve errno on success.
60326         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60327         Reported by Bruno Haible.
60328
60329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60330
60331         * MODULES.html.sh (Support for maintaining and releasing
60332         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60333
60334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60335
60336         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60337
60338 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60339
60340         * modules/autobuild: New module.
60341
60342         * m4/autobuild.m4: New file.
60343
60344 2007-04-11  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60347         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60350         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60351         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60352         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60354         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60355         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60356         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60357         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60358         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60360         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60361         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60363         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60364         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60365         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60366         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60367         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60369         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60370         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60372         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60373         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60374         Reported by Eric Blake.
60375
60376 2007-04-11  Bruno Haible  <bruno@clisp.org>
60377
60378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60379
60380 2007-04-10  Bruno Haible  <bruno@clisp.org>
60381
60382         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60383         for NaN and Infinity. Needed on FreeBSD 6.1.
60384         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60385         regarding results for "%010a" of Infinity and NaN.
60386         * tests/test-vasprintf-posix.c (test_function): Likewise.
60387         * tests/test-snprintf-posix.h (test_function): Likewise.
60388         * tests/test-sprintf-posix.h (test_function): Likewise.
60389         * tests/test-fprintf-posix.h (test_function): Likewise.
60390         * tests/test-printf-posix.h (test_function): Likewise.
60391         * tests/test-fprintf-posix.out: Likewise.
60392
60393 2007-04-10  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/locale-tests: New file.
60396         * tests/test-locale.c: New file.
60397
60398         * modules/locale: New file.
60399         * lib/locale_.h: New file.
60400         * m4/locale_h.m4: New file.
60401
60402 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60403             Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60406         be determined, test for availability of the copysignf, copysign,
60407         copysignl functions.
60408         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60409         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60410         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60411
60412 2007-04-09  Eric Blake  <ebb9@byu.net>
60413
60414         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60415         * modules/stdio (Makefile.am): Support fflush.
60416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60417         * modules/fflush: New file.
60418         * lib/fflush.c: Likewise.
60419         * m4/fflush.m4: Likewise.
60420         * modules/fflush-tests: New test.
60421         * tests/test-fflush.c: Likewise.
60422         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60423
60424 2007-04-06  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60427         (VASNPRINTF): Use signbit for faster determination whether to print a
60428         minus sign.
60429         * modules/vasnprintf (Files): Remove lib/float+.h.
60430         * modules/fprintf-posix (Depends-on): Add signbit.
60431         * modules/snprintf-posix (Depends-on): Likewise.
60432         * modules/sprintf-posix (Depends-on): Likewise.
60433         * modules/vasnprintf-posix (Depends-on): Likewise.
60434         * modules/vasprintf-posix (Depends-on): Likewise.
60435         * modules/vfprintf-posix (Depends-on): Likewise.
60436         * modules/vsnprintf-posix (Depends-on): Likewise.
60437         * modules/vsprintf-posix (Depends-on): Likewise.
60438
60439 2007-04-06  Bruno Haible  <bruno@clisp.org>
60440
60441         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60442         * tests/test-frexpl.c (main): Likewise.
60443         * tests/test-ldexpl.c (main): Likewise.
60444         * modules/frexp-tests (Depends-on): Add signbit.
60445         * modules/frexpl-tests (Depdends-on): Likewise.
60446         * modules/ldexpl-tests (Depdends-on): Likewise.
60447
60448 2007-04-06  Bruno Haible  <bruno@clisp.org>
60449
60450         * modules/signbit-tests: New file.
60451         * tests/test-signbit.c: New file.
60452
60453         * modules/signbit: New file.
60454         * lib/signbitf.c: New file.
60455         * lib/signbitd.c: New file.
60456         * lib/signbitl.c: New file.
60457         * m4/signbit.m4: New file.
60458         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60459         (signbit): New macro.
60460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60461         REPLACE_SIGNBIT.
60462         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60463         REPLACE_FREXPL into math.h.
60464
60465 2007-04-06  Bruno Haible  <bruno@clisp.org>
60466
60467         * modules/isnanf-nolibm-tests: New file.
60468         * tests/test-isnanf.c: New file.
60469
60470         * modules/isnanf-nolibm: New file.
60471         * lib/isnanf.h: New file.
60472         * lib/isnanf.c: New file.
60473         * lib/isnan.c: Consider the USE_FLOAT macro.
60474         * m4/isnanf.m4: New file.
60475
60476 2007-04-06  Bruno Haible  <bruno@clisp.org>
60477
60478         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60479         (Link): New section.
60480
60481         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60482
60483 2007-04-06  Bruno Haible  <bruno@clisp.org>
60484
60485         Assume the 'long double' type.
60486         * m4/longdouble.m4: Remove file.
60487         * config/srclist.txt: Don't mention longdouble.m4.
60488         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60489         * lib/float+.h: Likewise.
60490         * lib/frexp.c: Likewise.
60491         * lib/printf-args.h: Likewise.
60492         * lib/printf-args.c: Likewise.
60493         * lib/printf-frexp.c: Likewise.
60494         * lib/printf-parse.c: Likewise.
60495         * lib/vasnprintf.c: Likewise.
60496         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60497         * m4/intl.m4: Likewise.
60498         * m4/isnanl.m4: Likewise.
60499         * m4/printf.m4: Likewise.
60500         * m4/printf-frexpl.m4: Likewise.
60501         * m4/vasnprintf.m4: Likewise.
60502         * modules/allocsa (Files): Remove m4/longdouble.m4.
60503         * modules/gettext (Files): Likewise.
60504         * modules/relocatable-prog-wrapper (Files): Likewise.
60505         * modules/vasnprintf (Files): Likewise.
60506         * modules/isnanl (Files): Likewise.
60507         (Include): Simplify.
60508         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60509         (Include): Simplify.
60510         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60511         (Include): Simplify.
60512         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60513         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60514         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60515         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60516         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60517         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60518         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60519         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60520         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60521         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60522         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60523         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60524         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60525         * tests/test-isnanl.c: Likewise.
60526         * tests/test-snprintf-posix.h: Likewise.
60527         * tests/test-sprintf-posix.h: Likewise.
60528         * tests/test-vasnprintf-posix.c: Likewise.
60529         * tests/test-vasnprintf-posix2.c: Likewise.
60530         * tests/test-vasprintf-posix.c: Likewise.
60531
60532 2007-04-06  Bruno Haible  <bruno@clisp.org>
60533
60534         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60535         * lib/math_.h [__DECC]: Include the overridden include file through
60536         #include_next, outside the double-inclusion guard.
60537         * lib/stdio_.h [__DECC]: Likewise.
60538         * lib/stdlib_.h [__DECC]: Likewise.
60539         * lib/string_.h [__DECC]: Likewise.
60540         * lib/time_.h [__DECC]: Likewise.
60541         * lib/wchar_.h [__DECC]: Likewise.
60542         * lib/wctype_.h [__DECC]: Likewise.
60543         * lib/inttypes_.h [__DECC]: Likewise.
60544         Reported by Albert Chin <china@thewrittenword.com> in
60545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60546
60547 2007-04-04  Eric Blake  <ebb9@byu.net>
60548
60549         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60550         1.5.x.
60551
60552 2007-04-04  Bruno Haible  <bruno@clisp.org>
60553
60554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60555         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60556
60557 2007-04-04  Bruno Haible  <bruno@clisp.org>
60558
60559         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60560         results for "%010a" of Infinity and NaN.
60561         * tests/test-vasprintf-posix.c (test_function): Likewise.
60562         * tests/test-snprintf-posix.h (test_function): Likewise.
60563         * tests/test-sprintf-posix.h (test_function): Likewise.
60564         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60565         * tests/test-printf-posix.h (test_function): Likewise.
60566         * tests/test-fprintf-posix.out: Update.
60567         Needed for FreeBSD 6.1.
60568
60569 2007-04-04  Bruno Haible  <bruno@clisp.org>
60570
60571         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60572         directly used by the gnulib modules nor by gnulib-tool.
60573
60574 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60575
60576         * DEPENDENCIES: Give overall description of version dependency
60577         desirability.  Use more-typical names for apps.
60578         Add shell, coreutils, diffutils, grep, tar, gzip.
60579
60580 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60581
60582         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60583
60584 2007-04-04  Karl Berry  <karl@gnu.org>
60585
60586         * MODULES.html.sh (func_module): missing '.
60587
60588 2007-04-03  Bruno Haible  <bruno@clisp.org>
60589
60590         * modules/argmatch-tests (Makefile.am): New variable
60591         test_argmatch_LDADD.
60592         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60593         * modules/array-list-tests (Makefile.am): New variable
60594         test_array_list_LDADD.
60595         * modules/array-oset-tests (Makefile.am): New variable
60596         test_array_oset_LDADD.
60597         * modules/avltree-list-tests (Makefile.am): New variable
60598         test_avltree_list_LDADD.
60599         * modules/avltree-oset-tests (Makefile.am): New variable
60600         test_avltree_oset_LDADD.
60601         * modules/avltreehash-list-tests (Makefile.am): New variable
60602         test_avltreehash_list_LDADD.
60603         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60604         test_canonicalize_lgpl_LDADD.
60605         * modules/carray-list-tests (Makefile.am): New variable
60606         test_carray_list_LDADD.
60607         * modules/dirname-tests (Makefile.am): New variable
60608         test_dirname_LDADD.
60609         * modules/linked-list-tests (Makefile.am): New variable
60610         test_linked_list_LDADD.
60611         * modules/linkedhash-list-tests (Makefile.am): New variable
60612         test_linkedhash_list_LDADD.
60613         * modules/rbtree-list-tests (Makefile.am): New variable
60614         test_rbtree_list_LDADD.
60615         * modules/rbtree-oset-tests (Makefile.am): New variable
60616         test_rbtree_oset_LDADD.
60617         * modules/rbtreehash-list-tests (Makefile.am): New variable
60618         test_rbtreehash_list_LDADD.
60619         * modules/xvasprintf-tests (Makefile.am): New variable
60620         test_xvasprintf_LDADD.
60621         Reported by Eric Blake.
60622
60623 2007-04-03  Eric Blake  <ebb9@byu.net>
60624
60625         * DEPENDENCIES: Weaken m4 requirements.
60626
60627 2007-04-03  Bruno Haible  <bruno@clisp.org>
60628
60629         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60630         * modules/isnanl-tests (configure.ac): Likewise.
60631
60632 2007-04-03  Ben Pfaff  <blp@gnu.org>
60633
60634         * modules/iconv_open: Add $(srcdir)/ to source directory
60635         references in Makefile fragments that call gperf, to fix VPATH
60636         builds.
60637
60638 2007-04-03  Bruno Haible  <bruno@clisp.org>
60639
60640         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60641         * lib/ldexpl.c: Undo last change.
60642
60643 2007-04-03  Bruno Haible  <bruno@clisp.org>
60644
60645         * modules/printf-frexpl (Depends-on): Undo last change.
60646         (Files): Add m4/ldexpl.m4.
60647
60648 2007-04-03  Bruno Haible  <bruno@clisp.org>
60649
60650         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60651         * modules/isnanl (Link): New section.
60652
60653         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60654         * modules/frexp (Link): New section.
60655
60656         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60657         * modules/frexpl (Link): New section.
60658
60659         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60660         * modules/ldexpl (Link): New section.
60661
60662 2007-04-03  Bruno Haible  <bruno@clisp.org>
60663
60664         * modules/TEMPLATE-EXTENDED: New file.
60665         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60666
60667 2007-04-03  Bruno Haible  <bruno@clisp.org>
60668
60669         * DEPENDENCIES: New file.
60670         Suggested by Simon Josefsson.
60671
60672 2007-04-03  Bruno Haible  <bruno@clisp.org>
60673
60674         * doc/gnulib.texi: Escape @.
60675
60676 2007-04-03  James Youngman  <jay@gnu.org>
60677         and Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60680         birthtime on all systems that have birthtime, not just those which
60681         use st_birthtimensec rather than st_birthtim.  Putting zero in
60682         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60683         that the birth time is not available for files on an NFS mount.
60684
60685 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60686
60687         * modules/memxor: Move back from crypto/, suggested by Bruno.
60688         * modules/crypto/hmac-sha1: Fix memxor dependency.
60689
60690         * modules/crypto/gc: Moved from ../.
60691
60692 2007-04-02  Eric Blake  <ebb9@byu.net>
60693
60694         * lib/ldexpl.c (includes): Avoid libm.
60695
60696         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60697
60698 2007-04-02  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60701         on IRIX.
60702
60703 2007-04-02  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60706         x86 or x86_64 platforms running MacOS X.
60707         Reported by Ryan Schmidt <@ryandesign.com>.
60708
60709 2007-04-02  Bruno Haible  <bruno@clisp.org>
60710
60711         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60712         i386.
60713
60714 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60715
60716         * modules/crypto/arcfour: Moved from ../.
60717         * modules/crypto/arcfour-tests: Moved from ../.
60718         * modules/crypto/arctwo: Moved from ../.
60719         * modules/crypto/arctwo-tests: Moved from ../.
60720         * modules/crypto/des: Moved from ../.
60721         * modules/crypto/des-tests: Moved from ../.
60722         * modules/crypto/gc-arcfour: Moved from ../.
60723         * modules/crypto/gc-arcfour-tests: Moved from ../.
60724         * modules/crypto/gc-arctwo: Moved from ../.
60725         * modules/crypto/gc-arctwo-tests: Moved from ../.
60726         * modules/crypto/gc-des: Moved from ../.
60727         * modules/crypto/gc-des-tests: Moved from ../.
60728         * modules/crypto/gc-hmac-md5: Moved from ../.
60729         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60730         * modules/crypto/gc-hmac-sha1: Moved from ../.
60731         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60732         * modules/crypto/gc-md2: Moved from ../.
60733         * modules/crypto/gc-md2-tests: Moved from ../.
60734         * modules/crypto/gc-md4: Moved from ../.
60735         * modules/crypto/gc-md4-tests: Moved from ../.
60736         * modules/crypto/gc-md5: Moved from ../.
60737         * modules/crypto/gc-md5-tests: Moved from ../.
60738         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60739         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60740         * modules/crypto/gc-random: Moved from ../.
60741         * modules/crypto/gc-rijndael: Moved from ../.
60742         * modules/crypto/gc-rijndael-tests: Moved from ../.
60743         * modules/crypto/gc-sha1: Moved from ../.
60744         * modules/crypto/gc-sha1-tests: Moved from ../.
60745         * modules/crypto/gc-tests: Moved from ../.
60746         * modules/crypto/hmac-md5: Moved from ../.
60747         * modules/crypto/hmac-md5-tests: Moved from ../.
60748         * modules/crypto/hmac-sha1: Moved from ../.
60749         * modules/crypto/hmac-sha1-tests: Moved from ../.
60750         * modules/crypto/md2: Moved from ../.
60751         * modules/crypto/md2-tests: Moved from ../.
60752         * modules/crypto/md4: Moved from ../.
60753         * modules/crypto/md4-tests: Moved from ../.
60754         * modules/crypto/md5: Moved from ../.
60755         * modules/crypto/md5-tests: Moved from ../.
60756         * modules/crypto/memxor: Moved from ../.
60757         * modules/crypto/rijndael: Moved from ../.
60758         * modules/crypto/rijndael-tests: Moved from ../.
60759         * modules/crypto/sha1: Moved from ../.
60760
60761 2007-03-30  James Youngman  <jay@gnu.org>
60762
60763         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60764         rename() to change the ctime of a file (because ctime is unaffected
60765         by rename on jfs2 on AIX 5.1).
60766         (main): Start by doing cleanup, in case a previous run failed leaving
60767         test files behind.
60768
60769 2007-03-31  Bruno Haible  <bruno@clisp.org>
60770
60771         Support old proprietary implementations of iconv.
60772         * modules/iconv_open: New file.
60773         * lib/iconv_.h: New file.
60774         * m4/iconv_h.m4: New file.
60775         * lib/iconv_open.c: New file.
60776         * lib/iconv_open-aix.gperf: New file.
60777         * lib/iconv_open-hpux.gperf: New file.
60778         * lib/iconv_open-irix.gperf: New file.
60779         * lib/iconv_open-osf.gperf: New file.
60780         * m4/iconv_open.m4: New file.
60781         * modules/linebreak (Depends-on): Add iconv_open.
60782         * modules/striconv (Depends-on): Likewise.
60783         * modules/striconveh (Depends-on): Likewise.
60784         * modules/unicodeio (Depends-on): Likewise.
60785         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60786         (iconv_t)(-1).
60787         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60788         conversion if cd is (iconv_t)(-1).
60789         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60790         is not possible.
60791
60792 2007-03-31  Bruno Haible  <bruno@clisp.org>
60793
60794         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60795         work on Solaris either. Protect also second use of "autodetect_jp".
60796
60797 2007-03-31  Bruno Haible  <bruno@clisp.org>
60798
60799         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60800         the function is not present.
60801
60802 2007-03-31  Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60805         the function is not present.
60806
60807 2007-03-31  Bruno Haible  <bruno@clisp.org>
60808
60809         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60810         a bug in HP-UX iconv_open().
60811
60812 2007-03-31  Bruno Haible  <bruno@clisp.org>
60813
60814         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60815         (Mathematics <math.h>): New section, add fpieee.
60816         (Input/output <stdio.h>): Add fseterr.
60817         (Mathematics <math.h>): New section, add printf-frexp.
60818         (Container data structures): Add sublist.
60819         (Core language properties): Add fpucw, inline.
60820         (Functions for greatest-width integer types <inttypes.h>): Add
60821         imaxabs, imaxdiv, inttypes.
60822         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60823         isnanl-nolibm, ldexp.
60824         (Mathematics <math.h>): New section, add printf-frexpl.
60825         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60826         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60827         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60828         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60829         (Unicode string functions): Add unistr/u*-mbtoucr.
60830         (Java): Add javacomp-script, javaexec-script.
60831         (C#): Add csharpcomp-script, csharpexec-script.
60832         (Support for building libraries and executables): Add havelib,
60833         relocatable-*.
60834         (Support for maintaining and releasing projects): Renamed from
60835         'Support for maintaining and release projects'. Add announce-gen.
60836
60837 2007-03-31  Bruno Haible  <bruno@clisp.org>
60838
60839         * README: Talk primarily about git.
60840         (git and CVS): Renamed from CVS.
60841         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60842         gnulib is available through git.
60843         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60844
60845 2007-03-30  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60848         * lib/poll_.h: Likewise.
60849         * lib/stat_.h: Likewise.
60850         * lib/sys_time_.h: Likewise.
60851         * lib/sysexit_.h: Likewise.
60852         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60853         * lib/stdbool_.h: Likewise.
60854         * lib/byteswap_.h: Add double-inclusion guard.
60855
60856 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60857
60858         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60859
60860 2007-03-30  Karl Berry  <karl@gnu.org>
60861
60862         * config/srclist-update: double space after USA in the license
60863         substitution, since that's how it's usually (?) written.
60864
60865 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60868         reported by Bruno Haible.
60869
60870 2007-03-29  Bruno Haible  <bruno@clisp.org>
60871
60872         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60873         a bug in AIX iconv().
60874
60875 2007-03-29  Bruno Haible  <bruno@clisp.org>
60876
60877         * modules/ldexpl-tests: New file.
60878         * tests/test-ldexpl.c: New file.
60879
60880 2007-03-29  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/ldexpl.c: Include fpucw.h.
60883         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60884         multiplication.
60885         * modules/ldexpl (Depends-on): Add fpucw.
60886
60887 2007-03-29  Bruno Haible  <bruno@clisp.org>
60888
60889         * modules/ldexpl: New file.
60890         * m4/ldexpl.m4: New file.
60891         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60892         set.
60893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60894         REPLACE_LDEXPL.
60895         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60896         REPLACE_LDEXPL.
60897         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60898         gl_FUNC_LDEXPL_WORKS.
60899         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60900         * modules/mathl (Files): Remove lib/ldexpl.c.
60901         (Depends-on): Add ldexpl.
60902
60903 2007-03-29  Bruno Haible  <bruno@clisp.org>
60904
60905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60906
60907 2007-03-29  Bruno Haible  <bruno@clisp.org>
60908
60909         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60910         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60911         and possibly also HP-UX.
60912         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60913         work on AIX, IRIX, HP-UX, OSF/1.
60914         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60915         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60916         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60917         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60918         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60919         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60920
60921 2007-03-29  Bruno Haible  <bruno@clisp.org>
60922
60923         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60924
60925 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60928         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60929
60930 2007-03-29  Eric Blake  <ebb9@byu.net>
60931
60932         * lib/acl-internal.h: Remove redundant include.
60933         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60934         Cygwin when a file is locked.
60935
60936 2007-03-29  Bruno Haible  <bruno@clisp.org>
60937
60938         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60939         file.
60940         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60941
60942 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60945         try to remove a parent directory if the child couldn't be removed
60946         (except for the first rmdir, which could fail because the child
60947         doesn't exist).  Problem reported by Jeff Blaine in
60948         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60949
60950 2007-03-28  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/striconveh.c (utf8conv_carefully): New function.
60953         (mem_cd_iconveh_internal): Invoke it.
60954
60955 2007-03-28  Bruno Haible  <bruno@clisp.org>
60956
60957         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60958         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60959         input.
60960         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60961         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60962         unistr/u8-uctomb.
60963
60964 2007-03-28  Bruno Haible  <bruno@clisp.org>
60965
60966         * modules/unistr/u8-mbtoucr: New file.
60967         * lib/unistr/u8-mbtoucr.c: New file.
60968         * modules/unistr/u16-mbtoucr: New file.
60969         * lib/unistr/u16-mbtoucr.c: New file.
60970         * modules/unistr/u16-mbtoucr: New file.
60971         * lib/unistr/u16-mbtoucr.c: New file.
60972         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60973
60974 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60975             Bruno Haible  <bruno@clisp.org>
60976
60977         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60978         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60979         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60980
60981         * m4/stdio_h.m4: Add stubs for vasprintf too.
60982
60983         * modules/stdio: Support vasprintf in sed command.
60984
60985         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60986         vasprintf.h.  Add stdio module indicator.
60987
60988         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60989         vasprintf.h.
60990
60991         * lib/vasprintf.h: File removed.
60992
60993         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60994         * lib/vasprintf.c: Ditto.
60995         * lib/xvasprintf.c: Ditto.
60996         * tests/test-vasprintf-posix.c: Ditto.
60997         * tests/test-vasprintf.c: Ditto.
60998
60999 2007-03-27  Bruno Haible  <bruno@clisp.org>
61000
61001         Make vasnprintf multithread-safe.
61002         * lib/vasnprintf.c (decimal_point_char): New function.
61003         (VASNPRINTF): Use it.
61004         Suggested by Simon Josefsson.
61005
61006 2007-03-27  Eric Blake  <ebb9@byu.net>
61007
61008         Support sub-second birthtime on cygwin.
61009         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61010         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61011         (get_stat_birthtime): Also work with st_birthtim.
61012
61013 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61016         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61017         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61018         (get_stat_birthtime_ns): Simplify compile-time tests.
61019         (get_stat_birthtime): Change the API to look like
61020         get_stat_mtime etc., except return a negative tv_nsec on error.
61021         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61022         Don't check for "spare" fields.
61023         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61024         or for struct stat.st_birthtime, as these tests aren't used.
61025         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61026
61027 2007-03-27  Bruno Haible  <bruno@clisp.org>
61028
61029         * lib/stat-time.h: Include <sys/stat.h>.
61030
61031 2007-03-27  James Youngman  <jay@gnu.org>
61032
61033         * lib/stat-time.h (get_stat_birthtime): New function for
61034           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61035         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61036           and its variants.
61037         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61038         * modules/stat-time-test: New file.
61039         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61040
61041 2007-03-26  Bruno Haible  <bruno@clisp.org>
61042
61043         Better support of signalling NaNs.
61044         * lib/atanl.c: Include isnanl.h.
61045         (atanl): Perform test for NaN at the beginning of the function and
61046         through a call to isnanl.
61047         * lib/cosl.c: Include isnanl.h.
61048         (cosl): Perform test for NaN at the beginning of the function and
61049         through a call to isnanl.
61050         * lib/ldexpl.c: Include isnanl.h.
61051         (ldexpl): Perform test for NaN through a call to isnanl.
61052         * lib/logl.c: Include isnanl.h.
61053         (logl): Perform test for NaN at the beginning of the function and
61054         through a call to isnanl.
61055         * lib/sinl.c: Include isnanl.h.
61056         (sinl): Perform test for NaN at the beginning of the function and
61057         through a call to isnanl.
61058         * lib/sqrtl.c: Include isnanl.h.
61059         (sqrtl): Perform test for NaN at the beginning of the function and
61060         through a call to isnanl.
61061         * lib/tanl.c: Include isnanl.h.
61062         (tanl): Perform test for NaN at the beginning of the function and
61063         through a call to isnanl.
61064         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61065         * modules/mathl (Depends-on): Add isnanl.
61066
61067 2007-03-26  Eric Blake  <ebb9@byu.net>
61068
61069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61070         regression in logic sense of previous patch.
61071
61072 2007-03-26  Bruno Haible  <bruno@clisp.org>
61073
61074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61075         unportable shell command "if ! ...".
61076         Reported by Ralf Wildenhues.
61077
61078 2007-03-25  Bruno Haible  <bruno@clisp.org>
61079
61080         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61081         <sysexits.h> file, and only add EX_CONFIG.
61082         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61083         absolute file name and whether it is sufficient. Substitute also
61084         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61085         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61086         ABSOLUTE_SYSEXITS_H into sysexits.h.
61087
61088 2007-03-25  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61091         hints is NULL.
61092
61093 2007-03-25  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61096         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61097
61098 2007-03-25  Bruno Haible  <bruno@clisp.org>
61099
61100         * lib/vasnprintf.c: Include langinfo.h.
61101         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61102         multithread-safe.
61103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61105         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61112         Reported by Simon Josefsson.
61113
61114 2007-03-25  Bruno Haible  <bruno@clisp.org>
61115
61116         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61117         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61118         * modules/vasnprintf (Depends-on): Add stdint.
61119
61120 2007-03-25  Bruno Haible  <bruno@clisp.org>
61121
61122         * modules/fpieee: New file.
61123         * m4/fpieee.m4: New file.
61124         * modules/isnan-nolibm (Depends-on): Add fpieee.
61125         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61126         * modules/isnanl (Depends-on): Add fpieee.
61127
61128 2007-03-25  Bruno Haible  <bruno@clisp.org>
61129
61130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61131
61132 2007-03-25  Bruno Haible  <bruno@clisp.org>
61133
61134         Avoid test failures on IRIX 6.5.
61135         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61136         (main): Use it.
61137         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61138         macros.
61139         (main): Use them.
61140
61141 2007-03-25  Bruno Haible  <bruno@clisp.org>
61142
61143         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61144         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61145         exists but doesn't work.
61146         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61147         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61149         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61150         math.h.
61151
61152 2007-03-25  Bruno Haible  <bruno@clisp.org>
61153
61154         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61155         returns inf. Needed on IRIX 6.5.
61156
61157 2007-03-25  Bruno Haible  <bruno@clisp.org>
61158
61159         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61160         (main): Use isnanl instead of x != x idiom.
61161         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61162
61163         * tests/test-frexp.c: Include isnan.h.
61164         (main): Use isnan instead of x != x idiom.
61165         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61166
61167 2007-03-25  Bruno Haible  <bruno@clisp.org>
61168
61169         * tests/test-frexp.c (NaN): New function/macro.
61170         (main): Use it instead of 0.0 / 0.0.
61171         * tests/test-isnan.c (NaN): New function/macro.
61172         (main): Use it instead of 0.0 / 0.0.
61173         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61174         (test_function): Use it instead of 0.0 / 0.0.
61175         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61176         (test_function): Use it instead of 0.0 / 0.0.
61177         * tests/test-snprintf-posix.h (NaN): New function/macro.
61178         (test_function): Use it instead of 0.0 / 0.0.
61179         * tests/test-sprintf-posix.h (NaN): New function/macro.
61180         (test_function): Use it instead of 0.0 / 0.0.
61181         * tests/test-fprintf-posix.h (NaN): New function/macro.
61182         (test_function): Use it instead of 0.0 / 0.0.
61183         * tests/test-printf-posix.h (NaN): New function/macro.
61184         (test_function): Use it instead of 0.0 / 0.0.
61185
61186         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61187
61188 2007-03-25  Bruno Haible  <bruno@clisp.org>
61189
61190         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61191
61192 2007-03-25  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/regexec.c (merge_state_with_log): Make static.
61195
61196 2007-03-25  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/trigl.c (kernel_rem_pio2): Make static.
61199
61200 2007-03-25  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/sincosl.c (sincosl_table): Make static.
61203
61204 2007-03-25  Bruno Haible  <bruno@clisp.org>
61205
61206         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61207         if the compiler does not support C99.
61208
61209 2007-03-25  Bruno Haible  <bruno@clisp.org>
61210
61211         * modules/time (Makefile.am): Ensure all rule action lines start with a
61212         tab.
61213
61214 2007-03-24  Bruno Haible  <bruno@clisp.org>
61215
61216         * modules/tsearch-tests: New file.
61217         * tests/test-tsearch.sh: New file.
61218         * tests/test-tsearch.c: New file, mostly copied from glibc.
61219
61220         * modules/search-tests: New file.
61221         * tests/test-search.c: New file.
61222
61223         * modules/search: New file.
61224         * lib/search_.h: New file, incorporating lib/tsearch.h.
61225         * m4/search_h.m4: New file.
61226         * lib/tsearch.h: Remove file.
61227         * lib/tsearch.c: Include search.h instead of tsearch.h.
61228         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61229         HAVE_TSEARCH.
61230         * modules/tsearch (Files): Remove lib/tsearch.h.
61231         (Depends-on): Add search.
61232         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61233         (Include): Change tsearch.h into search.h.
61234
61235 2007-03-24  Bruno Haible  <bruno@clisp.org>
61236
61237         * modules/fpucw: New file.
61238         * lib/fpucw.h: New file.
61239         * lib/frexp.c: Include fpucw.h.
61240         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61241         (FUNC): Use them.
61242         * lib/printf-frexp.c: Include fpucw.h.
61243         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61244         (FUNC): Use them.
61245         * lib/vasnprintf.c: Include fpucw.h.
61246         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61247         'long double' calculations.
61248         * tests/test-frexpl.c: Include fpucw.h.
61249         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61250         * tests/test-printf-frexpl.c: Include fpucw.h.
61251         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61252         * modules/frexpl (Depends-on): Add fpucw.
61253         * modules/printf-frexpl (Depends-on): Likewise.
61254         * modules/fprintf-posix (Depends-on): Likewise.
61255         * modules/snprintf-posix (Depends-on): Likewise.
61256         * modules/sprintf-posix (Depends-on): Likewise.
61257         * modules/vasnprintf-posix (Depends-on): Likewise.
61258         * modules/vasprintf-posix (Depends-on): Likewise.
61259         * modules/vfprintf-posix (Depends-on): Likewise.
61260         * modules/vsnprintf-posix (Depends-on): Likewise.
61261         * modules/vsprintf-posix (Depends-on): Likewise.
61262         * modules/frexpl-tests (Depends-on): Likewise.
61263         * modules/printf-frexpl-tests (Depends-on): Likewise.
61264
61265 2007-03-24  Bruno Haible  <bruno@clisp.org>
61266
61267         * lib/float+.h: New file.
61268         * lib/isnan.c: Include float+.h.
61269         (SIZE): New macro.
61270         (FUNC): Compare only SIZE bytes of the value.
61271         * lib/vasnprintf.c: Include float+.h.
61272         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61273         SIZEOF_LDBL or SIZEOF_DBL bytes.
61274         * modules/isnan-nolibm (Files): Add lib/float+.h.
61275         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61276         * modules/isnanl (Files): Add lib/float+.h.
61277         * modules/vasnprintf (Files): Add lib/float+.h.
61278
61279 2007-03-24  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61282         include isnanl-nolibm.h.
61283
61284 2007-03-24  Bruno Haible  <bruno@clisp.org>
61285
61286         * tests/test-read-file.c (main): Don't produce spurious output for
61287         expected situations. Make the test fail if it encountered unexpected
61288         results.
61289
61290 2007-03-24  Bruno Haible  <bruno@clisp.org>
61291
61292         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61293         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61294
61295 2007-03-24  Bruno Haible  <bruno@clisp.org>
61296
61297         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61298
61299 2007-03-24  Bruno Haible  <bruno@clisp.org>
61300
61301         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61302         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61303
61304         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61305         * modules/utf8-ucs4: Turn into a symbolic link to module
61306         unistr/u8-mbtouc.
61307
61308         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61309         utf8-ucs4-unsafe.
61310         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61311         unistr/u8-mbtouc-unsafe.
61312
61313         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61314         * modules/utf16-ucs4: Turn into a symbolic link to module
61315         unistr/u16-mbtouc.
61316
61317         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61318         utf16-ucs4-unsafe.
61319         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61320         unistr/u16-mbtouc-unsafe.
61321
61322         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61323         * modules/ucs4-utf8: Turn into a symbolic link to module
61324         unistr/u8-ubtomb.
61325
61326         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61327         * modules/ucs4-utf16: Turn into a symbolic link to module
61328         unistr/u16-ubtomb.
61329
61330 2007-03-24  Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61333         Enable the function only if HAVE_INLINE.
61334         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61335         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61336         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61337         Enable the function only if HAVE_INLINE.
61338         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61339         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61340         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61341         Enable the function only if HAVE_INLINE.
61342         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61343         Enable the function only if HAVE_INLINE.
61344         * modules/utf8-ucs4: Update.
61345         * modules/utf8-ucs4-unsafe: Update.
61346         * modules/utf16-ucs4: Update.
61347         * modules/utf16-ucs4-unsafe: Update.
61348         * modules/ucs4-utf8: Update.
61349         * modules/ucs4-utf16: Update.
61350
61351 2007-03-24  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/utf8-ucs4.h: Remove file.
61354         * lib/utf8-ucs4-unsafe.h: Remove file.
61355         * lib/utf16-ucs4.h: Remove file.
61356         * lib/utf16-ucs4-unsafe.h: Remove file.
61357         * lib/ucs4-utf8.h: Remove file.
61358         * lib/ucs4-utf16.h: Remove file.
61359         * lib/unistr.h: Include their previous contents.
61360         * m4/utf-ucs4.m4: Remove file.
61361         * m4/ucs4-utf.m4: Remove file.
61362         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61363         (Depends-on): Add unistr/base.
61364         (configure.ac): Remove gl_UTF_UCS4.
61365         (Makefile.am): Update.
61366         (Include): Change to unistr.h.
61367         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61368         (Depends-on): Add unistr/base.
61369         (configure.ac): Remove gl_UTF_UCS4.
61370         (Makefile.am): Update.
61371         (Include): Change to unistr.h.
61372         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61373         (Depends-on): Add unistr/base.
61374         (configure.ac): Remove gl_UTF_UCS4.
61375         (Makefile.am): Update.
61376         (Include): Change to unistr.h.
61377         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61378         (Depends-on): Add unistr/base.
61379         (configure.ac): Remove gl_UTF_UCS4.
61380         (Makefile.am): Update.
61381         (Include): Change to unistr.h.
61382         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61383         (Depends-on): Add unistr/base.
61384         (configure.ac): Remove gl_UCS4_UTF.
61385         (Makefile.am): Update.
61386         (Include): Change to unistr.h.
61387         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61388         (Depends-on): Add unistr/base.
61389         (configure.ac): Remove gl_UCS4_UTF.
61390         (Makefile.am): Update.
61391         (Include): Change to unistr.h.
61392         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61393         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61394         utf8-ucs4-unsafe.h.
61395         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61396         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61397         utf16-ucs4-unsafe.h.
61398         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61399         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61400         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61401         * lib/unistr/u8-strchr.c: Likewise.
61402         * lib/unistr/u8-strrchr.c: Likewise.
61403         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61404         * lib/unistr/u16-strchr.c: Likewise.
61405         * lib/unistr/u16-strrchr.c: Likewise.
61406         * lib/striconveh.c: Update.
61407         * lib/linebreak.c: Update.
61408
61409 2007-03-24  Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61412         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61413
61414 2007-03-22  Bruno Haible  <bruno@clisp.org>
61415
61416         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61417
61418 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61419
61420         * MODULES.html.sh (File system functions): New module write-any-file.
61421         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61422         * m4/write-any-file.m4: New files.
61423
61424 2007-03-23  Eric Blake  <ebb9@byu.net>
61425
61426         * gnulib-tool: Rearrange space-tab sequences, since some editors
61427         like to eat them.
61428
61429 2007-03-23  Eric Blake  <ebb9@byu.net>
61430
61431         * lib/version-etc.c (version_etc_va): Update license wording to
61432         be more concise.  Recommended by Richard Stallman.
61433
61434 2007-03-22  Bruno Haible  <bruno@clisp.org>
61435
61436         * lib/poll.c (MSG_PEEK): New fallback definition.
61437
61438 2007-03-22  Bruno Haible  <bruno@clisp.org>
61439
61440         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61441         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61442         (main): Update.
61443         Fixes a compilation error on BeOS.
61444
61445 2007-03-22  Bruno Haible  <bruno@clisp.org>
61446
61447         * modules/frexpl-tests: New file.
61448         * tests/test-frexpl.c: New file.
61449
61450         * modules/frexpl: New file.
61451         * m4/frexpl.m4: New file.
61452         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61453         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61455         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61456         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61457         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61458
61459 2007-03-22  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/frexpl.c: Share code with lib/frexp.c.
61462         * modules/mathl (Files): Add lib/frexp.c.
61463         (Depends-on): Add isnanl-nolibm.
61464
61465 2007-03-22  Bruno Haible  <bruno@clisp.org>
61466
61467         * modules/printf-frexp (Files): Add m4/frexp.m4.
61468         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61469         only if the found frexp function actually works.
61470
61471 2007-03-22  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/frexp.c: Remove older implementation that uses divisions.
61474
61475 2007-03-21  Bruno Haible  <bruno@clisp.org>
61476
61477         * modules/frexp-tests: New file.
61478         * tests/test-frexp.c: New file.
61479
61480         * modules/frexp: New file.
61481         * lib/frexp.c: New file.
61482         * m4/frexp.m4: New file.
61483         * lib/math_.h (frexp): New declaration.
61484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61485         REPLACE_FREXP.
61486         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61487
61488 2007-03-21  Bruno Haible  <bruno@clisp.org>
61489
61490         * modules/isnanl-tests: New file.
61491         * tests/test-isnanl.c: New file.
61492
61493         * modules/isnanl: New file.
61494         * lib/isnanl.h: New file.
61495         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61496         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61497         gl_FUNC_ISNANL_WORKS.
61498         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61499         New macros.
61500
61501 2007-03-21  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61504         lib/isnanl.h.
61505         (Include): Update.
61506         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61507         * lib/vasnprintf.c: Update.
61508         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61509         tests/test-isnanl.h, remove tests/test-isnanl.c.
61510         (Makefile.am): Update.
61511         * tests/test-isnanl-nolibm.c: New file.
61512         * tests/test-isnanl.h: New file.
61513         * tests/test-isnanl.c: Remove file.
61514
61515 2007-03-21  Jim Meyering  <jim@meyering.net>
61516
61517         When trying to open ".", treat ESTALE like EACCES.
61518         * lib/savewd.c (savewd_save): Resort to forking not just upon
61519         failure with EACCES, but also when errno is ESTALE.
61520
61521 2007-03-20  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61524         Needed on AIX 5.1. Reported by Matthew Woehlke.
61525
61526 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         Suggestions by Bruno Haible:
61529         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61530         our own.
61531         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61532         * modules/acl (Depends-on): Add gettext.
61533
61534 2007-03-19  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/iconvme: Remove file.
61537         * lib/iconvme.h: Remove file.
61538         * lib/iconvme.c: Remove file.
61539         * m4/iconvme.m4: Remove file.
61540
61541 2007-03-19  Bruno Haible  <bruno@clisp.org>
61542
61543         * doc/relocatable-maint.texi: Break long shell script line.
61544         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61545
61546 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61547
61548         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61549         handle file_has_acl.
61550         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61551         * lib/acl.c: Move header inclusions and related macro defns into
61552         lib/acl-internal.h.
61553         (S_ISLNK): Remove defn, since that's now done for us.
61554         (file_has_acl): Move to lib/file-has-acl.c.
61555         Call acl_trivial if available.  This is the crucial part of the fix.
61556         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61557         shared within the library.  Rewrite a bit, partly to make it compatible
61558         with the GNU coding style.
61559         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61560         Remove unnecessary double-quotes.
61561         Don't test for acl_to_text; the build will catch that.
61562         Replace acl_entries if it doesn't exist and it is needed.
61563         Check for -lsec and acl_trivial (as used on Solaris 10).
61564         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61565         lib/file-has-acl.c.
61566         (Depends-on): Add sys_stat, for S_ISLNK.
61567
61568 2007-03-19  Ben Pfaff  <blp@gnu.org>
61569
61570         * doc/gnulib.texi: Fix typos.
61571         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61572
61573 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61574
61575         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61576         If size is zero here, buf must be zero.
61577
61578 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61579
61580         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61581         <bruno@clisp.org>.
61582
61583 2007-03-18  Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61586         Suggested by Eric Blake.
61587
61588 2007-03-18  Ben Pfaff  <blp@gnu.org>
61589
61590         * doc/relocatable.texi: Recommend using as prefix a directory
61591         that does not exist and will never be created.  Based on
61592         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61593         and others.
61594
61595 2007-03-17  Bruno Haible  <bruno@clisp.org>
61596
61597         * lib/fchownat.c: Include lchown.h.
61598
61599 2007-03-17  Bruno Haible  <bruno@clisp.org>
61600
61601         Fix endless loop when the given allocated size was > INT_MAX.
61602         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61603         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61604         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61605         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61606         * lib/sprintf.c (sprintf): Likewise.
61607
61608 2007-03-17  Bruno Haible  <bruno@clisp.org>
61609
61610         * tests/test-argp-2.sh (func_compare): Output a context diff.
61611
61612 2007-03-17  Bruno Haible  <bruno@clisp.org>
61613
61614         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61615         locale's decimal-point character.
61616
61617 2007-03-17  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61620         before comparing it. Needed because on some platforms (e.g. x86) a
61621         'long double' occupies less bytes than sizeof (long double).
61622
61623 2007-03-17  Bruno Haible  <bruno@clisp.org>
61624
61625         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61626         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61627         * tests/test-getaddrinfo.c (simple): Likewise.
61628         * tests/test-read-file.c (main): Likewise.
61629
61630 2007-03-17  Bruno Haible  <bruno@clisp.org>
61631
61632         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61633
61634 2007-03-17  Bruno Haible  <bruno@clisp.org>
61635
61636         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61637         unused variable.
61638
61639 2007-03-17  Bruno Haible  <bruno@clisp.org>
61640
61641         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61642         * tests/test-c-strncasecmp.c: Likewise.
61643
61644 2007-03-17  Bruno Haible  <bruno@clisp.org>
61645
61646         * modules/stdlib (Depends-on): Add unistd.
61647         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61648         Needed for MacOS X 10.3.
61649
61650 2007-03-17  Bruno Haible  <bruno@clisp.org>
61651
61652         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61653
61654 2007-03-17  Bruno Haible  <bruno@clisp.org>
61655
61656         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61657
61658 2007-03-17  Bruno Haible  <bruno@clisp.org>
61659
61660         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61661         to reflect files copied from gnulib (with or without modifications).
61662         Suggested by Jim Meyering.
61663
61664 2007-03-17  Eric Blake  <ebb9@byu.net>
61665
61666         * NEWS: Document stdlib change from 2007-02-18.
61667
61668 2007-03-17  Jim Meyering  <jim@meyering.net>
61669
61670         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61671         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61672         someone uses a name containing shell meta-characters.
61673         Reported by Alfred M. Szmidt.
61674
61675         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61676
61677 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61678
61679         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61680         and copy gettext configuration files only if configure.ac contains
61681         a use of AM_GNU_GETTEXT_VERSION.
61682
61683 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61684
61685         * build-aux/bootstrap (gnulib_name): New variable.
61686         (gnulib_tool_options): Use it.
61687
61688 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61689
61690         * tests/test-des.c: Use new namespace.
61691
61692 2007-03-15  Bruno Haible  <bruno@clisp.org>
61693
61694         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61695         Reported by James Youngman <jay@gnu.org>.
61696
61697 2007-03-15  Bruno Haible  <bruno@clisp.org>
61698
61699         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61700         declared prototype. Needed with cc on OSF/1 5.1.
61701
61702 2007-03-15  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61705         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61706         (struct gl_list_implementation): Add dispose_fn argument to the
61707         'create_empty', 'create' methods.
61708         (struct gl_list_impl_base): Add field 'dispose_fn'.
61709         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61710         argument.
61711         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61712         dispose_fn argument.
61713         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61714         dispose_fn on the dropped values.
61715         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61716         dispose_fn argument.
61717         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61718         dropped values.
61719         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61720         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61721         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61722         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61723         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61724         argument.
61725         (gl_tree_list_free): Call dispose_fn on the dropped values.
61726         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61727         the dropped values.
61728         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61729         Add dispose_fn argument.
61730         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61731         Call dispose_fn on the dropped values.
61732         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61733         Add dispose_fn argument.
61734         (gl_sublist_create): Initialize the 'dispose_fn' field.
61735         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61736         * tests/test-array_list.c (main): Update.
61737         * tests/test-carray_list.c (main): Update.
61738         * tests/test-avltree_list.c (main): Update.
61739         * tests/test-rbtree_list.c (main): Update.
61740         * tests/test-avltreehash_list.c (main): Update.
61741         * tests/test-rbtreehash_list.c (main): Update.
61742         * tests/test-linked_list.c (main): Update.
61743         * tests/test-linkedhash_list.c (main): Update.
61744         * tests/test-array_oset.c (main): Update.
61745
61746 2007-03-15  Bruno Haible  <bruno@clisp.org>
61747
61748         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61749         (gl_oset_create_empty): Add dispose_fn argument.
61750         (struct gl_oset_implementation): Add dispose_fn argument to
61751         'create_empty' method.
61752         (struct gl_oset_impl_base): Add dispose_fn field.
61753         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61754         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61755         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61756         values.
61757         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61758         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61759         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61760         dropped value.
61761         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61762         dropped value.
61763         * tests/test-array_oset.c (main): Update.
61764         * tests/test-avltree_oset.c (main): Update.
61765         * tests/test-rbtree_oset.c (main): Update.
61766         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61767
61768 2007-03-13  Bruno Haible  <bruno@clisp.org>
61769
61770         * tests/test-stdbool.c (i): Update after last patch.
61771
61772 2007-03-12  Bruno Haible  <bruno@clisp.org>
61773
61774         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61775         the iswprint macro. Needed on Solaris 2.5.1.
61776
61777 2007-03-12  Bruno Haible  <bruno@clisp.org>
61778
61779         * tests/test-printf-frexp.c (main): Declare x as volatile.
61780
61781 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61782
61783         * doc/gnulib.texi (Build robot for gnulib): New section.
61784
61785 2007-03-12  Jim Meyering  <jim@meyering.net>
61786
61787         * build-aux/bootstrap: New file.
61788         * build-aux/bootstrap.conf: New file, from coreutils.
61789
61790 2007-03-11  Bruno Haible  <bruno@clisp.org>
61791
61792         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61793
61794 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61795
61796         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61797         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61798         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61799
61800 2007-03-11  Bruno Haible  <bruno@clisp.org>
61801
61802         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61803         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61804
61805 2007-03-11  Bruno Haible  <bruno@clisp.org>
61806
61807         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61808         formula. Needed for SunPRO C 5.0.
61809
61810 2007-03-11  Bruno Haible  <bruno@clisp.org>
61811
61812         * modules/long-options (Depends-on): Add getopt.
61813
61814 2007-03-11  Bruno Haible  <bruno@clisp.org>
61815
61816         * modules/modechange (Depends-on): Add stdbool.
61817
61818 2007-03-11  Bruno Haible  <bruno@clisp.org>
61819
61820         * modules/i-ring (Depends-on): Add stdbool.
61821
61822 2007-03-11  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/gc-des (Depends-on): Add stdbool.
61825
61826 2007-03-11  Bruno Haible  <bruno@clisp.org>
61827
61828         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61829
61830 2007-03-11  Bruno Haible  <bruno@clisp.org>
61831
61832         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61833
61834 2007-03-11  Bruno Haible  <bruno@clisp.org>
61835
61836         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61837
61838 2007-03-11  Bruno Haible  <bruno@clisp.org>
61839
61840         * lib/vasnprintf.c (sprintf): Undefine.
61841
61842 2007-03-11  Bruno Haible  <bruno@clisp.org>
61843
61844         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61845         initializers in SunPRO C and Compaq C compilers.
61846
61847 2007-03-11  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61850         decrementing code ANSI C compliant.
61851
61852 2007-03-11  Bruno Haible  <bruno@clisp.org>
61853
61854         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61855         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61856
61857 2007-03-11  Bruno Haible  <bruno@clisp.org>
61858
61859         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61860         <stdbool.h> substitute doesn't pass.
61861
61862 2007-03-11  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61865
61866 2007-03-11  Bruno Haible  <bruno@clisp.org>
61867
61868         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61869         script, for submission to autobuild.josefsson.org.
61870
61871 2007-03-10  Bruno Haible  <bruno@clisp.org>
61872
61873         * modules/canonicalize-lgpl-tests: New file.
61874         * tests/test-canonicalize-lgpl.sh: New file.
61875         * tests/test-canonicalize-lgpl.c: New file.
61876
61877         * modules/c-strcase-tests: New file.
61878         * tests/test-c-strcase.sh: New file.
61879         * tests/test-c-strcasecmp.c: New file.
61880         * tests/test-c-strncasecmp.c: New file.
61881
61882         * modules/atexit-tests: New file.
61883         * tests/test-atexit.sh: New file.
61884         * tests/test-atexit.c: New file.
61885
61886 2007-03-10  Bruno Haible  <bruno@clisp.org>
61887
61888         * tests/test-binary-io.sh: Use temporary filenames that are not so
61889         likely to clash with those of other tests (in a parallel make).
61890         * tests/test-binary-io.c: Likewise.
61891
61892 2007-03-10  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61895         fallback; use #error instead.
61896         Suggested by Simon Josefsson.
61897
61898 2007-03-10  Bruno Haible  <bruno@clisp.org>
61899
61900         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61901         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61902         first and the last.
61903
61904 2007-03-10  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61907
61908 2007-03-10  Bruno Haible  <bruno@clisp.org>
61909
61910         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61911         "make distcheck".
61912         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61913         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61914         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61915
61916 2007-03-10  Bruno Haible  <bruno@clisp.org>
61917
61918         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61919         variable.
61920         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61921         variable.
61922
61923 2007-03-09  Eric Blake  <ebb9@byu.net>
61924         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61925
61926         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61927         types are not being provided by gnulib.
61928         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61929         types are supported.
61930
61931 2007-03-10  Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/stdio_.h (__attribute__): New macro.
61934         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61935         vsprintf): Specify __attribute__ __format__ for GCC.
61936         Suggested by Eric Blake.
61937
61938 2007-03-09  Bruno Haible  <bruno@clisp.org>
61939
61940         * modules/printf-posix-tests: New file.
61941         * tests/test-printf-posix.sh: New file.
61942         * tests/test-printf-posix.c: New file.
61943
61944         * modules/printf-posix: New file.
61945         * lib/printf.c: New file.
61946         * m4/printf-posix-rpl.m4: New file.
61947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61948         REPLACE_PRINTF.
61949         * lib/stdio_.h (printf): New declaration.
61950         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61951         ____strfmon____): New macros.
61952         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61953         REPLACE_PRINTF.
61954
61955 2007-03-09  Bruno Haible  <bruno@clisp.org>
61956
61957         * tests/test-vasnprintf-posix2.sh: New file.
61958         * tests/test-vasnprintf-posix2.c: New file.
61959         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61960         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61961         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61962
61963         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61964         a locale dependent decimal point, rather than always '.'.
61965
61966 2007-03-09  Eric Blake  <ebb9@byu.net>
61967
61968         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61969         spite of platforms like Tandem/NSK that define it to -1.
61970
61971 2007-03-08  Bruno Haible  <bruno@clisp.org>
61972
61973         * modules/vprintf-posix-tests: New file.
61974         * tests/test-vprintf-posix.sh: New file.
61975         * tests/test-vprintf-posix.c: New file.
61976         * tests/test-printf-posix.h: New file.
61977
61978         * modules/vprintf-posix: New file.
61979         * lib/vprintf.c: New file.
61980         * m4/vprintf-posix.m4: New file.
61981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61982         REPLACE_VPRINTF.
61983         * lib/stdio_.h (vprintf): New declaration.
61984         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61985         REPLACE_VPRINTF.
61986
61987 2007-03-08  Bruno Haible  <bruno@clisp.org>
61988
61989         * modules/fprintf-posix-tests: New file.
61990         * tests/test-fprintf-posix.sh: New file.
61991         * tests/test-fprintf-posix.c: New file.
61992
61993         * modules/fprintf-posix: New file.
61994         * lib/fprintf.c: New file.
61995         * m4/fprintf-posix.m4: New file.
61996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61997         REPLACE_FPRINTF.
61998         * lib/stdio_.h (fprintf): New declaration.
61999         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62000         REPLACE_FPRINTF.
62001
62002 2007-03-08  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/vfprintf-posix-tests: New file.
62005         * tests/test-vfprintf-posix.sh: New file.
62006         * tests/test-vfprintf-posix.c: New file.
62007         * tests/test-fprintf-posix.h: New file.
62008         * tests/test-fprintf-posix.out: New file.
62009
62010         * modules/vfprintf-posix: New file.
62011         * lib/vfprintf.c: New file.
62012         * m4/vfprintf-posix.m4: New file.
62013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62014         REPLACE_VFPRINTF.
62015         * lib/stdio_.h (vfprintf): New declaration.
62016         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62017         REPLACE_VFPRINTF.
62018
62019 2007-03-08  Bruno Haible  <bruno@clisp.org>
62020
62021         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62022
62023 2007-03-08  Bruno Haible  <bruno@clisp.org>
62024
62025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62026         instead of 'expr' invocations.
62027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62032         Suggested by Paul Eggert.
62033
62034 2007-03-08  Bruno Haible  <bruno@clisp.org>
62035
62036         * modules/fseterr-tests: New file.
62037         * tests/test-fseterr.c: New file.
62038
62039         * modules/fseterr: New file.
62040         * lib/fseterr.h: New file.
62041         * lib/fseterr.c: New file.
62042
62043 2007-03-08  Bruno Haible  <bruno@clisp.org>
62044
62045         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62046         * lib/getopt_.h: Likewise.
62047         * lib/mbswidth.h: Likewise.
62048         * lib/setenv.h: Likewise.
62049         * lib/vasnprintf.h: Likewise.
62050         * lib/vasprintf.h: Likewise.
62051         * lib/verror.h: Likewise.
62052         * lib/xsetenv.h: Likewise.
62053         * lib/xvasprintf.h: Likewise.
62054
62055 2007-03-08  Jim Meyering  <jim@meyering.net>
62056
62057         * users.txt: Add parted.
62058
62059         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62060
62061 2007-03-07  Bruno Haible  <bruno@clisp.org>
62062
62063         * m4/printf.m4: Make the shell script snippets copy&pastable.
62064
62065 2007-03-02  Bruno Haible  <bruno@clisp.org>
62066
62067         * lib/netinet_in_.h: New file.
62068         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62069         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62070         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62071         (Depends-on): Add absolute-header.
62072         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62073         into netinet/in.h.
62074
62075 2007-03-03  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/sys_select_.h: New file.
62078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62079         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62080         * modules/sys_select (Files): Add lib/sys_select_.h.
62081         (Depends-on): Add absolute-header.
62082         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62083         into sys/select.h.
62084
62085 2007-03-02  Bruno Haible  <bruno@clisp.org>
62086
62087         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62088         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62089         values.
62090         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62091         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62092         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62093         * modules/sys_socket (Depends-on): Add absolute-header.
62094         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62095         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62096         (Include): Remove requirement of inclusion of <sys/types.h>.
62097
62098 2007-03-02  Bruno Haible  <bruno@clisp.org>
62099
62100         * lib/byteswap_.h (bswap_32): Fix formula.
62101
62102 2007-03-06  Bruno Haible  <bruno@clisp.org>
62103
62104         * modules/sprintf-posix-tests: New file.
62105         * tests/test-sprintf-posix.c: New file.
62106
62107         * modules/sprintf-posix: New file.
62108         * lib/sprintf.c: New file.
62109         * m4/sprintf-posix.m4: New file.
62110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62111         REPLACE_SPRINTF.
62112         * lib/stdio_.h (sprintf): New declaration.
62113         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62114         REPLACE_SPRINTF.
62115
62116 2007-03-06  Bruno Haible  <bruno@clisp.org>
62117
62118         * modules/vsprintf-posix-tests: New file.
62119         * tests/test-vsprintf-posix.c: New file.
62120         * tests/test-sprintf-posix.h: New file.
62121
62122         * modules/vsprintf-posix: New file.
62123         * lib/vsprintf.c: New file.
62124         * m4/vsprintf-posix.m4: New file.
62125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62126         REPLACE_VSPRINTF.
62127         * lib/stdio_.h (vsprintf): New declaration.
62128         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62129         REPLACE_VSPRINTF.
62130
62131 2007-03-06  Bruno Haible  <bruno@clisp.org>
62132
62133         * modules/vsnprintf (Depend-on): Remove minmax.
62134
62135 2007-03-06  Bruno Haible  <bruno@clisp.org>
62136
62137         * modules/snprintf-posix-tests: New file.
62138         * tests/test-snprintf-posix.c: New file.
62139
62140         * modules/snprintf-posix: New file.
62141         * m4/snprintf-posix.m4: New file.
62142         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62143         gl_FUNC_SNPRINTF.
62144         (gl_FUNC_SNPRINTF): Invoke it.
62145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62146         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62147         is set.
62148         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62149
62150 2007-03-06  Bruno Haible  <bruno@clisp.org>
62151
62152         * modules/vsnprintf-posix-tests: New file.
62153         * tests/test-vsnprintf-posix.c: New file.
62154         * tests/test-snprintf-posix.h: New file.
62155
62156         * modules/vsnprintf-posix: New file.
62157         * m4/vsnprintf-posix.m4: New file.
62158         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62159         gl_FUNC_VSNPRINTF.
62160         (gl_FUNC_VSNPRINTF): Invoke it.
62161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62162         * lib/stdio_.h (vsnprintf): Define as a replacement if
62163         REPLACE_VSNPRINTF is set.
62164         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62165
62166 2007-03-06  Bruno Haible  <bruno@clisp.org>
62167
62168         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62170
62171 2007-03-06  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62174         (asinl): Declare also if HAVE_DECL_ASINL is set.
62175         (atanl): Declare also if HAVE_DECL_ATANL is set.
62176         (ceill): Declare also if HAVE_DECL_CEILL is set.
62177         (cosl): Declare also if HAVE_DECL_COSL is set.
62178         (expl): Declare also if HAVE_DECL_EXPL is set.
62179         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62180         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62181         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62182         (logl): Declare also if HAVE_DECL_LOGL is set.
62183         (sinl): Declare also if HAVE_DECL_SINL is set.
62184         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62185         (tanl): Declare also if HAVE_DECL_TANL is set.
62186         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62188         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62189         declaration of frexpl, ldexpl.
62190         * modules/printf-frexpl (Depends-on): Add math.
62191         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62192
62193 2007-03-05  Bruno Haible  <bruno@clisp.org>
62194
62195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62196         frexpl and ldexpl are declared.
62197         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62198
62199 2007-03-05  Bruno Haible  <bruno@clisp.org>
62200
62201         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62202         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62203
62204 2007-03-05  Bruno Haible  <bruno@clisp.org>
62205
62206         * lib/stdio_.h: Include <stddef.h>.
62207
62208 2007-03-05  Bruno Haible  <bruno@clisp.org>
62209
62210         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62211
62212 2007-03-05  Bruno Haible  <bruno@clisp.org>
62213
62214         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62215         NetBSD 4, from Ralf Wildenhues.
62216
62217 2007-03-04  Bruno Haible  <bruno@clisp.org>
62218
62219         * lib/vasprintf.h: Update #if logic for the case when the functions
62220         exist but are overridden.
62221
62222 2007-03-04  Bruno Haible  <bruno@clisp.org>
62223
62224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62225         implementations: glibc-2.4 and MacOS X 10.3.
62226         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62227         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62228         * tests/test-vasprintf-posix.c (test_function): Likewise.
62229
62230 2007-03-04  Bruno Haible  <bruno@clisp.org>
62231
62232         * modules/vasprintf-posix-tests: New file.
62233         * tests/test-vasprintf-posix.c: New file.
62234
62235         * modules/vasprintf-posix: New file.
62236         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62237         defined.
62238         * m4/vasprintf-posix.m4: New file.
62239         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62240         gl_FUNC_VASPRINTF.
62241         (gl_FUNC_VASPRINTF): Invoke it.
62242         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62243         here.
62244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62245
62246 2007-03-04  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62249         REPLACE_GETTIMEOFDAY.
62250         * modules/sys_time (Makefile.am): Likewise.
62251         * m4/sys_time_h.m4: Likewise.
62252         * m4/gettimeofday.m4: Likewise.
62253
62254 2007-03-04  Bruno Haible  <bruno@clisp.org>
62255
62256         * modules/vasnprintf-posix-tests: New file.
62257         * tests/test-vasnprintf-posix.c: New file.
62258
62259         * modules/vasnprintf-posix: New file.
62260         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62261         printf-frexpl.h.
62262         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62263         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62264         REPLACE_VASNPRINTF is defined.
62265         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62266         gl_FUNC_VASNPRINTF.
62267         (gl_FUNC_VASNPRINTF): Invoke it.
62268         * m4/vasnprintf-posix.m4: New file.
62269         * m4/printf.m4: New file.
62270
62271 2007-03-04  Bruno Haible  <bruno@clisp.org>
62272
62273         Compile progreloc.c only if --enable-relocatable is specified.
62274         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62275         if --enable-relocatable was specified.
62276         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62277         lib_SOURCES.
62278
62279 2007-03-04  Jim Meyering  <jim@meyering.net>
62280
62281         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62282         Use it consistently, rather than enumerating errno constants.
62283
62284 2007-03-04  Bruno Haible  <bruno@clisp.org>
62285
62286         * modules/xvasprintf-tests: New file.
62287         * tests/test-xvasprintf.c: New file.
62288
62289         * modules/vasprintf-tests: New file.
62290         * tests/test-vasprintf.c: New file.
62291
62292         * modules/vasnprintf-tests: New file.
62293         * tests/test-vasnprintf.c: New file.
62294
62295         * modules/vsnprintf-tests: New file.
62296         * tests/test-vsnprintf.c: New file.
62297
62298         * modules/snprintf-tests: New file.
62299         * tests/test-snprintf.c: New file.
62300
62301 2007-03-04  Bruno Haible  <bruno@clisp.org>
62302
62303         Compile relocatable.c only if --enable-relocatable is specified.
62304         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62305         gl_RELOCATABLE_LIBRARY.
62306         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62307         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62308         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62309         gl_RELOCATABLE_LIBRARY.
62310         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62311         (Makefile.am): Remove lib_SOURCES.
62312         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62313         gl_RELOCATABLE_LIBRARY.
62314         (Makefile.am): Remove lib_SOURCES.
62315         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62316         always.
62317         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62318         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62319
62320 2007-03-04  Bruno Haible  <bruno@clisp.org>
62321
62322         * modules/argmatch-tests: New file.
62323         * tests/test-argmatch.c: New file.
62324
62325         * tests/test-allocsa.c (main): Halve the number of loop runs.
62326
62327         * modules/alloca-opt-tests: New file.
62328         * tests/test-alloca-opt.c: New file.
62329
62330 2007-03-04  Jim Meyering  <jim@meyering.net>
62331
62332         Work around difference between Linux ACLs and Solaris 10 ZFS.
62333         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62334         for EINVAL.
62335
62336 2007-03-03  Bruno Haible  <bruno@clisp.org>
62337
62338         * modules/relocatable-prog (Depends-on): Add back progreloc's
62339         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62340
62341 2007-03-03  Bruno Haible  <bruno@clisp.org>
62342
62343         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62344         * modules/relocatable-lib: New file.
62345
62346 2007-03-03  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/relocatable-prog: Renamed from modules/relocatable.
62349         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62350
62351 2007-03-03  Bruno Haible  <bruno@clisp.org>
62352
62353         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62354         m4/relocatable-lib.m4.
62355         (Depends-on): Remove 'relocatable'.
62356         (configure.ac): Add gl_RELOCATABLE_NOP.
62357
62358 2007-03-03  Bruno Haible  <bruno@clisp.org>
62359
62360         * modules/relocatable-prog-wrapper: New file.
62361         * modules/relocatable (Depends-on): Add it. Remove all other
62362         dependencies except progname.
62363         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62364
62365         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62366         (gl_FUNC_STRERROR): Nop.
62367         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62368
62369         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62370         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62371
62372         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62373         (gl_FUNC_READLINK): Update.
62374
62375         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62376
62377 2007-03-03  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62380         * modules/xreadlink (Depends-on): Add unistd.
62381         * modules/xreadlink-with-size (Depends-on): Likewise.
62382
62383 2007-03-03  Bruno Haible  <bruno@clisp.org>
62384
62385         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62386         extracted from gt_FUNC_SETENV.
62387         (gt_FUNC_SETENV): Remove macro.
62388         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62389         remove gt_FUNC_SETENV.
62390
62391 2007-03-03  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62394         ENABLE_RELOCATABLE here.
62395         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62396
62397 2007-03-03  Bruno Haible  <bruno@clisp.org>
62398
62399         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62400         * tests/test-rbtreehash_list.c: Include progname.h.
62401         (main): Call set_program_name.
62402
62403         * modules/rbtree-oset-tests (Depends-on): Add progname.
62404         * tests/test-rbtree_oset.c: Include progname.h.
62405         (main): Call set_program_name.
62406
62407         * modules/rbtree-list-tests (Depends-on): Add progname.
62408         * tests/test-rbtree_list.c: Include progname.h.
62409         (main): Call set_program_name.
62410
62411         * modules/linked-list-tests (Depends-on): Add progname.
62412         * tests/test-linked_list.c: Include progname.h.
62413         (main): Call set_program_name.
62414
62415 2007-03-03  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62418         All uses of __restrict changed to _Restrict_.
62419         * lib/glob_.h (__restrict): Remove macro.
62420
62421 2007-03-02  Bruno Haible  <bruno@clisp.org>
62422
62423         * modules/gettext (configure.ac): Require gettext infrastructure
62424         from version 0.16.1.
62425
62426 2007-03-02  Bruno Haible  <bruno@clisp.org>
62427
62428         * modules/linkedhash-list-tests (Depends-on): Add progname.
62429         * tests/test-linkedhash_list.c: Include progname.h.
62430         (main): Call set_program_name.
62431
62432         * modules/carray-list-tests (Depends-on): Add progname.
62433         * tests/test-carray_list.c: Include progname.h.
62434         (main): Call set_program_name.
62435
62436         * modules/avltreehash-list-tests (Depends-on): Add progname.
62437         * tests/test-avltreehash_list.c: Include progname.h.
62438         (main): Call set_program_name.
62439
62440         * modules/avltree-oset-tests (Depends-on): Add progname.
62441         * tests/test-avltree_oset.c: Include progname.h.
62442         (main): Call set_program_name.
62443
62444         * modules/avltree-list-tests (Depends-on): Add progname.
62445         * tests/test-avltree_list.c: Include progname.h.
62446         (main): Call set_program_name.
62447
62448         * modules/array-oset-tests (Depends-on): Add progname.
62449         * tests/test-array_oset.c: Include progname.h.
62450         (main): Call set_program_name.
62451
62452         * modules/array-list-tests (Depends-on): Add progname.
62453         * tests/test-array_list.c: Include progname.h.
62454         (main): Call set_program_name.
62455
62456         * modules/argp-tests (Depends-on): Add progname.
62457         * tests/test-argp.c: Include argp.h first. Include progname.h.
62458         (main): Call set_program_name.
62459
62460 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         * doc/gnulib-tool.texi (Initial import): Reword description of
62463         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62464         limited effect even if defined after the first system include.
62465
62466 2007-03-01  Bruno Haible  <bruno@clisp.org>
62467
62468         * build-aux/config.libpath: Update to libtool-1.5.22.
62469         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62470
62471 2007-03-01  Bruno Haible  <bruno@clisp.org>
62472
62473         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62474         foo_CFLAGS.
62475         Reported by Ralf Wildenhues.
62476
62477 2007-03-01  Bruno Haible  <bruno@clisp.org>
62478
62479         * build-aux/install-reloc: Remove object files left over by some
62480         compilers.
62481         Reported by Ralf Wildenhues.
62482
62483 2007-03-01  Bruno Haible  <bruno@clisp.org>
62484
62485         * build-aux/install-reloc: Break long lines.
62486
62487 2007-03-01  Bruno Haible  <bruno@clisp.org>
62488
62489         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62490         Reported by Ralf Wildenhues.
62491
62492 2007-03-01  Bruno Haible  <bruno@clisp.org>
62493
62494         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62495         include ordering constraints.
62496
62497 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62501         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62502         as another example.
62503         * lib/time_.h: Fix misspelling.
62504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62505         Require gl_HEADER_TIME_H_DEFAULTS.
62506         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62507         * m4/time_r.m4 (gl_TIME_R): Likewise.
62508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62509
62510 2007-03-01  Bruno Haible  <bruno@clisp.org>
62511
62512         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62513         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62514
62515 2007-03-01  Jim Meyering  <jim@meyering.net>
62516
62517         * modules/xreadlink (Maintainer): Add my name.
62518         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62519
62520 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62521             Bruno Haible  <bruno@clisp.org>
62522
62523         * build-aux/install-reloc: Compile also c-ctype.c.
62524         * build-aux/relocatable.sh.in: New file.
62525         * doc/relocatable.texi: New file.
62526         * doc/relocatable-maint.texi: New file.
62527         * doc/gnulib.texi: Include relocatable-maint.texi.
62528         * lib/progreloc.c: Include unistd.h unconditionally.
62529         * lib/relocwrapper.c: Include unistd.h unconditionally.
62530         Include c-ctype.h.
62531         (add_dotbin): Use c_tolower.
62532         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62533         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62534         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62535         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62536         to m4/relocatable-lib.m4.
62537         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62538         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62539         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62540         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62541         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62542         * modules/relocatable: New file.
62543         * modules/relocatable-lib: New file.
62544         * modules/relocatable-script: New file.
62545
62546 2007-02-28  Bruno Haible  <bruno@clisp.org>
62547
62548         Import --enable-relocatable infrastructure.
62549         * build-aux/config.libpath: New file, from GNU gettext.
62550         * build-aux/install-reloc: New file, from GNU gettext.
62551         * build-aux/reloc-ldflags: New file, from GNU gettext.
62552         * lib/relocatable.h: New file, from GNU gettext.
62553         * lib/relocatable.c: New file, from GNU gettext.
62554         * lib/relocwrapper.c: New file, from GNU gettext.
62555         * m4/relocatable.m4: New file, from GNU gettext.
62556
62557 2007-02-28  Bruno Haible  <bruno@clisp.org>
62558
62559         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62560
62561         * modules/xreadlink: New file, from GNU gettext with modifications.
62562         * lib/xreadlink.c: New file, from GNU gettext.
62563         * lib/xreadlink.h: Add comments.
62564         (xreadlink): New declaration.
62565
62566         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62567         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62568         lib/xreadlink-with-size.c.
62569         (configure.ac): Remove gl_XREADLINK invocation.
62570         (Makefile.am): Augment lib_SOURCES.
62571         * m4/xreadlink.m4: Remove file.
62572         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62573         (xreadlink_with_size): Renamed from xreadink.
62574         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62575         * modules/canonicalize (Depends-on): Replace xreadlink with
62576         xreadlink-with-size.
62577         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62578
62579 2007-02-25  Jim Meyering  <jim@meyering.net>
62580
62581         * build-aux/announce-gen: When complaining about excess arguments,
62582         list them.
62583
62584 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62585
62586         * README: Document signed integer overflow situation more
62587         accurately.
62588
62589 2007-02-25  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62592         'a' or 'A' conversion.
62593
62594 2007-02-25  Bruno Haible  <bruno@clisp.org>
62595
62596         * modules/filename: Renamed from modules/pathname.
62597         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62598         lib/concatpath.c with lib/concat-filename.c.
62599         (Makefile.am): Update.
62600         (Include): Replace pathname.h with filename.h.
62601         * lib/filename.h: Renamed from lib/pathname.h.
62602         (concatenated_filename): Renamed from concatenated_pathname.
62603         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62604         (concatenated_filename): Renamed from concatenated_pathname.
62605         * lib/findprog.c: Include filename.h instead of pathname.h.
62606         (find_in_path): Update.
62607         * lib/javacomp.c: Include filename.h instead of pathname.h.
62608         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62609         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62610         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62611         is_oldgcj_14_13_usable, is_javac_usable): Update.
62612         * lib/javaexec.c: Include filename.h instead of pathname.h.
62613         (execute_java_class): Update.
62614         * modules/findprog: Update.
62615         * modules/javacomp: Update.
62616         * modules/javaexec: Update.
62617         * MODULES.html.sh (File system functions): Add 'filename', remove
62618         'pathname'.
62619
62620 2007-02-25  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/printf-frexpl-tests: New file.
62623         * tests/test-printf-frexpl.c: New file.
62624
62625         * modules/printf-frexpl: New file.
62626         * lib/printf-frexpl.h: New file.
62627         * lib/printf-frexpl.c: New file.
62628         * m4/printf-frexpl.m4: New file.
62629
62630 2007-02-25  Bruno Haible  <bruno@clisp.org>
62631
62632         * modules/printf-frexp-tests: New file.
62633         * tests/test-printf-frexp.c: New file.
62634
62635         * modules/printf-frexp: New file.
62636         * lib/printf-frexp.h: New file.
62637         * lib/printf-frexp.c: New file.
62638         * m4/printf-frexp.m4: New file.
62639
62640 2007-02-25  Bruno Haible  <bruno@clisp.org>
62641
62642         Assume automake >= 1.10 for the tests.
62643         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62644         * modules/arctwo-tests: Likewise.
62645         * modules/argp-tests: Likewise.
62646         * modules/avltree-list-tests: Likewise.
62647         * modules/avltree-oset-tests: Likewise.
62648         * modules/avltreehash-list-tests: Likewise.
62649         * modules/carray-list-tests: Likewise.
62650         * modules/crc-tests: Likewise.
62651         * modules/des-tests: Likewise.
62652         * modules/gc-arcfour-tests: Likewise.
62653         * modules/gc-arctwo-tests: Likewise.
62654         * modules/gc-des-tests: Likewise.
62655         * modules/gc-hmac-md5-tests: Likewise.
62656         * modules/gc-hmac-sha1-tests: Likewise.
62657         * modules/gc-md2-tests: Likewise.
62658         * modules/gc-md4-tests: Likewise.
62659         * modules/gc-md5-tests: Likewise.
62660         * modules/gc-pbkdf2-sha1-tests: Likewise.
62661         * modules/gc-rijndael-tests: Likewise.
62662         * modules/gc-sha1-tests: Likewise.
62663         * modules/gc-tests: Likewise.
62664         * modules/getaddrinfo-tests: Likewise.
62665         * modules/hmac-md5-tests: Likewise.
62666         * modules/hmac-sha1-tests: Likewise.
62667         * modules/linked-list-tests: Likewise.
62668         * modules/linkedhash-list-tests: Likewise.
62669         * modules/lock-tests: Likewise.
62670         * modules/md2-tests: Likewise.
62671         * modules/md4-tests: Likewise.
62672         * modules/md5-tests: Likewise.
62673         * modules/rbtree-list-tests: Likewise.
62674         * modules/rbtree-oset-tests: Likewise.
62675         * modules/rbtreehash-list-tests: Likewise.
62676         * modules/read-file-tests: Likewise.
62677         * modules/rijndael-tests: Likewise.
62678         * modules/stdint-tests: Likewise.
62679         * modules/tls-tests: Likewise.
62680
62681 2007-02-24  Bruno Haible  <bruno@clisp.org>
62682
62683         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62684         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62685         function; instead check whether isnan with a double argument links.
62686         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62687         function; instead check whether isnan with a 'long double' argument
62688         links.
62689         Reported by Eric Blake <ebb9@byu.net>.
62690
62691 2007-02-24  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62694         defined.
62695         * lib/isnanl.c: Remove all code. Just include isnan.c.
62696         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62697
62698 2007-02-25  Jim Meyering  <jim@meyering.net>
62699
62700         Avoid conflicting types for 'unsetenv' on FreeBSD.
62701         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62702         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62703         in stdlib.h.
62704
62705 2007-02-24  Bruno Haible  <bruno@clisp.org>
62706
62707         * modules/isnanl-nolibm-tests: New file.
62708         * tests/test-isnanl.c: New file.
62709
62710         * modules/isnanl-nolibm: New file.
62711         * lib/isnanl.h: New file.
62712         * lib/isnanl.c: New file.
62713         * m4/isnanl.m4: New file.
62714
62715 2007-02-24  Bruno Haible  <bruno@clisp.org>
62716
62717         * modules/isnan-nolibm-tests: New file.
62718         * tests/test-isnan.c: New file.
62719
62720         * modules/isnan-nolibm: New file.
62721         * lib/isnan.h: New file.
62722         * lib/isnan.c: New file.
62723         * m4/isnan.m4: New file.
62724
62725 2007-02-24  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62728         assume that an exponent fits in 20 bits.
62729
62730 2007-02-24  Jim Meyering  <jim@meyering.net>
62731
62732         * m4/regex.m4: Update the description of the configure-time option,
62733         --without-included-regex, to state accurately what the defaults are,
62734         and perhaps to give people an idea why using this option is risky.
62735
62736 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62737
62738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62739         loops on small arguments.  This attempts to avoid the problem
62740         Bruno Haible reported for AIX 4.3.2 in
62741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62742
62743 2007-02-23  Bruno Haible  <bruno@clisp.org>
62744
62745         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62746         Needed for help2man.
62747
62748 2007-02-23  Karl Berry  <karl@gnu.org>
62749
62750         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62751         exists, foo.h should be cvs-ignored, not committed.
62752
62753 2007-02-23  Eric Blake  <ebb9@byu.net>
62754
62755         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62756         * lib/stat-time.h (includes): Likewise.
62757         * lib/utimecmp.c (includes): Likewise.
62758         * lib/utimens.h (includes): Likewise.
62759         * lib/getdate.y (includes): Also include "timespec.h" for use
62760         internal to the module.
62761         * modules/utimens (Depends-on): Revert yesterday's patch.
62762         * modules/nanosleep (Depends-on): Add missing dependency.
62763
62764 2007-02-22  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/glob.c: Don't include getlogin_r.h.
62767
62768 2007-02-22  Jim Meyering  <jim@meyering.net>
62769
62770         * modules/utimens (Depends-on): Add timespec, required for
62771         utimens.h's inclusion of timespec.h.
62772
62773 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62776         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62777         Schwab in
62778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62779         I'll try to think of a better way to fix the Solaris problem.
62780
62781         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62782         like glibc; on Solaris 10, it fails with errno == EINVAL.
62783         POSIX says the behavior is unspecified if the first argument is NULL,
62784         so play it safe and never pass NULL to the system getcwd.
62785
62786 2007-02-21  Jim Meyering  <jim@meyering.net>
62787
62788         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62789         of gettimeofday.  It would conflict with the one now always
62790         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62791         an IRIX 6.5 build failure.
62792
62793 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         Minor fixups to port to Solaris 10 with Sun C 5.8.
62796         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62797         * modules/getcwd (Depends-on): Add dirfd.
62798         * lib/putenv.c (putenv): #undef it.
62799         (rpl_putenv): New decl.
62800         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62801
62802 2007-02-20  Bruno Haible  <bruno@clisp.org>
62803
62804         * modules/stdio-tests: New file.
62805         * tests/test-stdio.c: New file.
62806
62807         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62808         (Depends-on): Add stdio.
62809         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62810         (Include): Use <stdio.h> instead of vsnprintf.h.
62811         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62812         HAVE_DECL_VSNPRINTF.
62813         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62814
62815         * modules/snprintf (Files): Remove lib/snprintf.h.
62816         (Depends-on): Add stdio.
62817         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62818         (Include): Use <stdio.h> instead of snprintf.h.
62819         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62820         HAVE_DECL_SNPRINTF.
62821         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62822         * lib/getaddrinfo.c: Likewise.
62823
62824         * modules/stdio: New file.
62825         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62826         * lib/snprintf.h: Remove file.
62827         * lib/vsnprintf.h: Remove file.
62828         * lib/.cppi-disable: Remove snprintf.h.
62829         * m4/stdio_h.m4: New file.
62830         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62831
62832 2007-02-20  Jim Meyering  <jim@meyering.net>
62833
62834         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62835         used by e.g., mingw.  From Bruno Haible.
62836
62837 2007-02-19  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62840         warnings.
62841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62842
62843 2007-02-19  Bruno Haible  <bruno@clisp.org>
62844
62845         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62846         from mingw users.
62847
62848 2007-02-19  Bruno Haible  <bruno@clisp.org>
62849
62850         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62851         warnings.
62852         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62853
62854 2007-02-19  Jim Meyering  <jim@meyering.net>
62855
62856         Don't use FD after a successful "fdopendir (fd)".
62857         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62858         Reset it by calling dirfd on the just-obtained DIR*.
62859
62860         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62861         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62862
62863 2007-02-18  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/readlink.c: Include <unistd.h>.
62866         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62867         HAVE_READLINK.
62868         * modules/readlink (Depends-on): Add unistd.
62869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62870         (Include): Add <unistd.h>.
62871
62872         * lib/getlogin_r.h: Remove file.
62873         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62874         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62875         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62876         HAVE_DECL_GETLOGIN_R.
62877         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62878         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62879         (Include): Use <unistd.h> instead of getlogin_r.h.
62880
62881         * lib/getcwd.h: Remove file.
62882         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62883         * lib/xgetcwd.c: Likewise.
62884         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62885         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62886         * modules/getcwd (Files): Remove lib/getcwd.h.
62887         (Depends-on): Add unistd.
62888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62889         (Include): Use <unistd.h> instad of getcwd.h.
62890
62891         * lib/ftruncate.c: Include <unistd.h> first.
62892         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62893         Set HAVE_FTRUNCATE.
62894         * modules/ftruncate (Depends-on): Add unistd.
62895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62896
62897         * lib/fchdir.c: Include <unistd.h> first.
62898         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62900         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62901         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62902         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62903
62904         * lib/dup2.c: Include <unistd.h> first.
62905         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62906         HAVE_DUP2.
62907         * modules/dup2 (Depends-on): Add unistd.
62908         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62909
62910         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62911         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62912         REPLACE_CHOWN. Don't define chown as a macro here.
62913         * modules/chown (Depends-on): Add unistd.
62914         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62915
62916         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62917         Add definition for GL_LINK_WARNING.
62918         (chown, dup2): New declarations.
62919         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62920         link warning.
62921         (ftruncate): New declaration.
62922         (getcwd): New declaration, taken from old getcwd.h.
62923         (getlogin_r): New declaration, taken from old getlogin_r.h.
62924         (readlink): New declaration.
62925         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62926         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62927         (gl_PREREQ_UNISTD): Remove macro.
62928         (gl_UNISTD_MODULE_INDICATOR): New macro.
62929         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62930         many new variables. Don't set UNISTD_H.
62931         * modules/unistd (Description): Change.
62932         (Depends-on): Add link-warning.
62933         (configure.ac): Update.
62934         (Makefile.am): Create unistd.h always. Substitute many new variables
62935         into it.
62936
62937 2007-02-18  Bruno Haible  <bruno@clisp.org>
62938
62939         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62940         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62941         HAVE_GETSUBOPT.
62942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62943         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62944         * lib/getsubopt.h: Remove file.
62945         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62946         (Depends-on): Add stdlib.
62947         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62948         (Includes): Use <stdlib.h> instead of getsubopt.h.
62949         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62950         Set HAVE_GETSUBOPT.
62951         * lib/getsubopt.c: Don't include getsubopt.h.
62952
62953 2007-02-18  Bruno Haible  <bruno@clisp.org>
62954
62955         * modules/fchdir (Depends-on): Add dup2.
62956
62957 2007-02-18  Bruno Haible  <bruno@clisp.org>
62958
62959         * lib/stdlib_.h: Handle glibc's special invocation convention
62960         specially.
62961
62962 2007-02-18  Bruno Haible  <bruno@clisp.org>
62963
62964         * modules/stdlib-tests: New file.
62965         * tests/test-stdlib.c: New file.
62966
62967         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62968         (Depends-on): Add stdlib.
62969         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62970         (Includes): Use <stdlib.h> instead of mkstemp.h.
62971         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62972         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62973         * lib/mkstemp.c: Don't include mkstemp.h.
62974         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62975         * lib/stdlib--.h: Don't include mkstemp.h.
62976
62977         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62978         (Depends-on): Add stdlib.
62979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62980         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62981         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62982         HAVE_MKDTEMP.
62983         * lib/mkdtemp.c: Don't include mkdtemp.h.
62984         * lib/clean-temp.c: Don't include mkdtemp.h.
62985
62986         * modules/exit (Files): Remove lib/exit.h.
62987         (Depends-on): Add stdlib.
62988         (Makefile.am): Remove lib_SOURCES.
62989         (Include): Use <stdlib.h> instead of exit.h.
62990         * lib/argmatch.c: Don't include exit.h.
62991         * lib/execute.c: Likewise.
62992         * lib/pagealign_alloc.c: Likewise.
62993         * lib/pipe.c: Likewise.
62994         * lib/wait-process.c: Likewise.
62995         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62996         * lib/exitfail.c: Likewise.
62997         * lib/savewd.c: Likewise.
62998         * lib/xsetenv.c: Likewise.
62999
63000         * modules/stdlib: New file.
63001         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63002         and extra comments about mkstemp().
63003         * lib/exit.h: Remove file.
63004         * lib/mkdtemp.h: Remove file.
63005         * lib/mkstemp.h: Remove file.
63006         * m4/stdlib_h.m4: New file.
63007         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63008
63009 2007-02-18  Bruno Haible  <bruno@clisp.org>
63010
63011         * modules/math-tests: New file.
63012         * tests/test-math.c: New file.
63013
63014         * modules/math: New file.
63015         * modules/mathl (Files): Remove lib/mathl.h.
63016         (Depends-on): Add math.
63017         (Makefile.am): Don't mention mathl.h.
63018         (Include): Use <math.h> instead of mathl.h.
63019         * lib/math_.h: New file.
63020         * lib/mathl.h: Remove file.
63021         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63022         mathl.h.
63023         * lib/asinl.c: Likewise.
63024         * lib/atanl.c: Likewise.
63025         * lib/ceill.c: Likewise.
63026         * lib/cosl.c: Likewise.
63027         * lib/expl.c: Likewise.
63028         * lib/floorl.c: Likewise.
63029         * lib/frexpl.c: Likewise.
63030         * lib/ldexpl.c: Likewise.
63031         * lib/logl.c: Likewise.
63032         * lib/sincosl.c: Likewise.
63033         * lib/sinl.c: Likewise.
63034         * lib/sqrtl.c: Likewise.
63035         * lib/tanl.c: Likewise.
63036         * lib/trigl.c: Likewise.
63037         * m4/math_h.m4: New file.
63038         * MODULES.html.sh (Mathematics): Add math.
63039
63040 2007-02-17  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/wctype-tests: New file.
63043         * tests/test-wctype.c: New file.
63044
63045         * modules/wchar-tests: New file.
63046         * tests/test-wchar.c: New file.
63047
63048         * modules/unistd-tests: New file.
63049         * tests/test-unistd.c: New file.
63050
63051         * modules/time-tests: New file.
63052         * tests/test-time.c: New file.
63053
63054         * modules/sysexits-tests: New file.
63055         * tests/test-sysexits.c: New file.
63056
63057         * modules/sys_time-tests: New file.
63058         * tests/test-sys_time.c: New file.
63059
63060         * modules/sys_stat-tests: New file.
63061         * tests/test-sys_stat.c: New file.
63062
63063         * modules/sys_socket-tests: New file.
63064         * tests/test-sys_socket.c: New file.
63065
63066         * modules/sys_select-tests: New file.
63067         * tests/test-sys_select.c: New file.
63068
63069         * modules/string-tests: New file.
63070         * tests/test-string.c: New file.
63071
63072         * modules/stdbool-tests: New file.
63073         * tests/test-stdbool.c: New file.
63074
63075         * modules/netinet_in-tests: New file.
63076         * tests/test-netinet_in.c: New file.
63077
63078         * modules/inttypes-tests: New file.
63079         * tests/test-inttypes.c: New file.
63080
63081         * modules/fcntl-tests: New file.
63082         * tests/test-fcntl.c: New file.
63083
63084         * modules/byteswap-tests: New file.
63085         * tests/test-byteswap.c: New file.
63086
63087         * modules/arpa_inet-tests: New file.
63088         * tests/test-arpa_inet.c: New file.
63089
63090 2007-02-17  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63093         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63094         if the corresponding module is not enabled. Emit link warnings if
63095         the function is used nevertheless.
63096         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63097         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63098         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63099         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63100         * modules/inttypes (Depends-on): Add link-warning.
63101         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63102         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63103         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63104         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63105         * modules/imaxdiv (configure.ac): Likewise.
63106         * modules/strtoimax (configure.ac): Likewise.
63107         * modules/strtoumax (configure.ac): Likewise.
63108
63109 2007-02-17  Bruno Haible  <bruno@clisp.org>
63110
63111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63112         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63113         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63114         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63115
63116 2007-02-17  Bruno Haible  <bruno@clisp.org>
63117
63118         * modules/link-warning: New file.
63119         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63120         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63121         * modules/string (Depends-on): Add link-warning.
63122         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63123         string.h.
63124         * MODULES.html.sh (Support for building libraries and executables): Add
63125         link-warning.
63126
63127 2007-02-17  Bruno Haible  <bruno@clisp.org>
63128
63129         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63130         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63131         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63132         long lines.
63133
63134 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63135             Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/tmpfile: New file.
63138         * lib/tmpfile.c: New file.
63139         * m4/tmpfile.m4: New file.
63140         * MODULES.html.sh (func_all_modules): New section "Input/output".
63141
63142 2007-02-15  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63145         (supports_delete_on_close): New function.
63146         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63147
63148 2007-02-14  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/mbspcasecmp-tests: New file.
63151         * tests/test-mbspcasecmp.sh: New file.
63152         * tests/test-mbspcasecmp.c: New file.
63153
63154         New module mbspcasecmp.
63155         * modules/mbspcasecmp: New file.
63156         * lib/mbspcasecmp.c: New file.
63157         * lib/string_.h (strncasecmp): Change warning message.
63158         (mbspcasecmp): New declaration.
63159         * m4/mbspcasecmp.m4: New file.
63160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63161         GNULIB_MBSPCASECMP.
63162         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63163         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63164
63165 2007-02-14  Bruno Haible  <bruno@clisp.org>
63166
63167         * modules/mbsncasecmp-tests: New file.
63168         * tests/test-mbsncasecmp.sh: New file.
63169         * tests/test-mbsncasecmp.c: New file.
63170
63171         New module mbsncasecmp.
63172         * modules/mbsncasecmp: New file.
63173         * lib/mbsncasecmp.c: New file.
63174         * lib/string_.h (mbsncasecmp): New declaration.
63175         * m4/mbsncasecmp.m4: New file.
63176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63177         GNULIB_MBSNCASECMP.
63178         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63179         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63180
63181 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63184         Verify that it doesn't overlap with our flags.
63185         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63186         do not have the desired effect in multibyte locales; instead, use
63187         mbscasecmp.
63188         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63189         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63190         we don't require GNU fnmatch ourselves (if our users require it, they
63191         should do so explicitly).
63192
63193         Fix regex code so it doesn't rely on strcasecmp.
63194         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63195         Otherwise, include gnulib's langinfo.h.
63196         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63197         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63198         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63199         * modules/regex (FILES): Remove m4/codeset.m4.
63200         (Depends-on): Add localcharset.  Remove strcase.
63201
63202 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63203
63204         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63205         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63206
63207 2007-02-13  Bruno Haible  <bruno@clisp.org>
63208
63209         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63211
63212 2007-02-12  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63215         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63216         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63217         time warning rather than a link error.
63218
63219 2007-02-12  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63222         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63224
63225 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63226
63227         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63228         args, not 2.
63229
63230 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         New module 'time', so that apps can include <time.h> as per
63233         POSIX and GNU instead of separate include files like time_r.h
63234         and timegm.h.  This implementation tries out a simpler approach
63235         for replacing decls in standard include files (as compared to
63236         the string module), somewhat as an experiment.
63237
63238         * config/srclist.txt: Comment out mktime.c for now.
63239         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63240         since it doesn't apply any more.  Use generic wording instead.
63241         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63242         'time'.
63243         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63244         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63245         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63246         Don't include <sys/types.h>; no longer needed since we assume C89.
63247         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63248         * lib/strftime.c: Likewise.
63249         * lib/time_r.c: Likewise.
63250         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63251         * lib/nanosleep.c: Include <time.h> first, to check interface.
63252         * lib/strptime.c: Likewise.
63253         * lib/time_r.c: Likewise.
63254         * lib/timegm.c: Likewise.
63255         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63256         needed.
63257         * lib/timegm.c: Don't include timegm.h; no longer needed.
63258         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63259         time.h now handles any problems in that area.
63260         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63261         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63262         that time.h defines struct timespec.
63263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63264         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63265         handles that.
63266         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63267         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63268         needed.  Set REPLACE_LOCALTIME.
63269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63270         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63271         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63272         nanosleep; time_h.m4 now does that.  Don't require
63273         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63274         module handles this now.
63275         * modules/getdate (Depends-on): Remove timespec.  Add time.
63276         * modules/nanosleep (Depends-on): Likewise.
63277         * modules/stat-time (Depends-on): Likewise.
63278         * modules/nanosleep (Include): Include time.h, not timespec.h.
63279         * modules/strptime (Files): Remove lib/strptime.h.
63280         (Depends-on): Add extensions, time.
63281         (Include): Include time.h, not strptime.h.
63282         * modules/time_r (Files): Remove lib/time_r.h.
63283         (Depends-on): Add time.
63284         (Include): Include time.h, not time_r.h.
63285         * modules/timegm: Likewise.
63286         * modules/timespec (Description): Now does timespec-related decls
63287         of our own, instead of struct timespec itself.
63288         (Depends-on): Add time; remove extensions.
63289         (Maintainer): Add self.
63290         * modules/utimecmp (Depends-on): Add time; remove timespec.
63291         * modules/utimens (Depends-on): Likewise.
63292         * modules/xnanosleep (Depends-on): Likewise.
63293
63294 2007-02-11  Bruno Haible  <bruno@clisp.org>
63295
63296         * lib/c-strstr.c: Include allocsa.h.
63297         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63298         * lib/c-strcasestr.c: Include allocsa.h.
63299         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63300         * lib/strcasestr.c: Include allocsa.h.
63301         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63302         * lib/mbsstr.c: Include allocsa.h.
63303         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63304         allocsa/freesa instead of malloc/free.
63305         * lib/mbscasestr.c: Include allocsa.h.
63306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63307         allocsa/freesa instead of malloc/free.
63308         * modules/c-strstr (Depends-on): Add allocsa.
63309         * modules/c-strcasestr (Depends-on): Likewise.
63310         * modules/strcasestr (Depends-on): Likewise.
63311         * modules/mbsstr (Depends-on): Likewise.
63312         * modules/mbscasestr (Depends-on): Likewise.
63313
63314 2007-02-11  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63317
63318         * modules/mbsspn-tests: New file.
63319         * tests/test-mbsspn.sh: New file.
63320         * tests/test-mbsspn.c: New file.
63321
63322 2007-02-11  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63325
63326         * modules/mbspbrk-tests: New file.
63327         * tests/test-mbspbrk.sh: New file.
63328         * tests/test-mbspbrk.c: New file.
63329
63330 2007-02-11  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63333         unneeded cast.
63334
63335         * modules/mbscspn-tests: New file.
63336         * tests/test-mbscspn.sh: New file.
63337         * tests/test-mbscspn.c: New file.
63338
63339 2007-02-11  Bruno Haible  <bruno@clisp.org>
63340
63341         * modules/mbscasecmp-tests: New file.
63342         * tests/test-mbscasecmp.sh: New file.
63343         * tests/test-mbscasecmp.c: New file.
63344
63345 2007-02-11  Bruno Haible  <bruno@clisp.org>
63346
63347         Ensure O(n) worst-case complexity of mbscasestr.
63348         * lib/mbscasestr.c: Include stdbool.h.
63349         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63350         functions.
63351         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63352         the bookkeeping indicates that it's worth it.
63353         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63354
63355         * modules/mbscasestr-tests: New file.
63356         * tests/test-mbscasestr1.c: New file.
63357         * tests/test-mbscasestr2.sh: New file.
63358         * tests/test-mbscasestr2.c: New file.
63359         * tests/test-mbscasestr3.sh: New file.
63360         * tests/test-mbscasestr3.c: New file.
63361         * tests/test-mbscasestr4.sh: New file.
63362         * tests/test-mbscasestr4.c: New file.
63363         * m4/locale-tr.m4: New file.
63364
63365 2007-02-11  Bruno Haible  <bruno@clisp.org>
63366
63367         Ensure O(n) worst-case complexity of mbsstr.
63368         * lib/mbsstr.c: Include stdbool.h.
63369         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63370         functions.
63371         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63372         bookkeeping indicates that it's worth it.
63373         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63374
63375         * modules/mbsstr-tests: New file.
63376         * tests/test-mbsstr1.c: New file.
63377         * tests/test-mbsstr2.sh: New file.
63378         * tests/test-mbsstr2.c: New file.
63379         * tests/test-mbsstr3.sh: New file.
63380         * tests/test-mbsstr3.c: New file.
63381         * m4/locale-fr.m4: New file.
63382
63383 2007-02-11  Bruno Haible  <bruno@clisp.org>
63384
63385         * lib/mbsrchr.c (mbsrchr): Fix bug.
63386
63387         * modules/mbsrchr-tests: New file.
63388         * tests/test-mbsrchr.sh: New file.
63389         * tests/test-mbsrchr.c: New file.
63390
63391 2007-02-11  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/mbschr.c (mbschr): Fix bug.
63394
63395         * modules/mbschr-tests: New file.
63396         * tests/test-mbschr.sh: New file.
63397         * tests/test-mbschr.c: New file.
63398         * m4/locale-zh.m4: New file.
63399
63400 2007-02-11  Bruno Haible  <bruno@clisp.org>
63401
63402         Support for copying multibyte string iterators.
63403         * lib/mbiter.h: Include <string.h>.
63404         (mbiter_multi_copy): New function.
63405         (mbi_copy): New macro.
63406         * lib/mbuiter.h: Include <string.h>.
63407         (mbuiter_multi_copy): New function.
63408         (mbui_copy): New macro.
63409
63410 2007-02-11  Bruno Haible  <bruno@clisp.org>
63411
63412         New module mbslen.
63413         * modules/mbslen: New file.
63414         * lib/mbslen.c: New file.
63415         * lib/string_.h (mbslen): New declaration.
63416         * m4/mbslen.m4: New file.
63417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63418         GNULIB_MBSLEN.
63419         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63420         * MODULES.html.sh (Internationalization functions): Add mbslen.
63421
63422 2007-02-11  Bruno Haible  <bruno@clisp.org>
63423
63424         Ensure O(n) worst-case complexity of strcasestr substitute.
63425         * lib/strcasestr.c: Include stdbool.h.
63426         (knuth_morris_pratt): New function.
63427         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63428         bookkeeping indicates that it's worth it.
63429         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63430
63431         * modules/strcasestr-tests: New file.
63432         * tests/test-strcasestr.c: New file.
63433
63434 2007-02-11  Bruno Haible  <bruno@clisp.org>
63435
63436         Ensure O(n) worst-case complexity of c_strcasestr.
63437         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63438         (knuth_morris_pratt): New function.
63439         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63440         the bookkeeping indicates that it's worth it.
63441         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63442
63443         * modules/c-strcasestr-tests: New file.
63444         * tests/test-c-strcasestr.c: New file.
63445
63446 2007-02-11  Bruno Haible  <bruno@clisp.org>
63447
63448         Ensure O(n) worst-case complexity of c_strstr.
63449         * lib/c-strstr.c: Include stdbool.h, string.h.
63450         (knuth_morris_pratt): New function.
63451         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63452         bookkeeping indicates that it's worth it.
63453         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63454
63455         * lib/c-strstr.c: Complete rewrite for maintainability.
63456
63457         * modules/c-strstr-tests: New file.
63458         * tests/test-c-strstr.c: New file.
63459
63460 2007-02-11  Bruno Haible  <bruno@clisp.org>
63461
63462         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63463         5.2.1 and earlier, whereby \055 was treated just like the range
63464         delimiter '-'.
63465         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63466
63467 2007-02-08  Bruno Haible  <bruno@clisp.org>
63468
63469         * modules/regex (Depends-on): Add stdbool.
63470         Reported by Dalibor Topic <robilad@kaffe.org>.
63471
63472 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63475         Prefer returning from main to exiting from it.
63476         Remove unnecessary parens after sizeof.
63477
63478 2007-02-05  Bruno Haible  <bruno@clisp.org>
63479
63480         New module mbssep.
63481         * modules/mbssep: New file.
63482         * lib/mbssep.c: New file.
63483         * lib/string_.h (strsep): Add a conditional link warning.
63484         (mbssep): New declaration.
63485         * m4/mbssep.m4: New file.
63486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63487         GNULIB_MBSSEP.
63488         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63489         * MODULES.html.sh (Internationalization functions): Add mbssep.
63490
63491 2007-02-05  Bruno Haible  <bruno@clisp.org>
63492
63493         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63494         Optimize search in case of 1 delimiter.
63495
63496 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63497
63498         * lib/acl.h: Include sys/types.h before sys/acl.h.
63499
63500 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63501
63502         Merge upstream fix for glibc bugzilla #3957:
63503
63504         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63505
63506         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63507         bit for RE_HAT_LISTS_NOT_NEWLINE.
63508         (build_charclass_op): Remove bogus comment.
63509
63510 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63511
63512         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63513
63514 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63517         * lib/memmem.c [!defined _LIBC]: Include config.h.
63518
63519 2007-02-04  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63522         warning message.
63523
63524 2007-02-04  Bruno Haible  <bruno@clisp.org>
63525
63526         New module mbstok_r.
63527         * modules/mbstok_r: New file.
63528         * lib/mbstok_r.c: New file.
63529         * lib/string_.h (strtok_r): Change argument names to match the
63530         comments. Add a conditional link warning.
63531         (mbstok_r): New declaration.
63532         * m4/mbstok_r.m4: New file.
63533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63534         GNULIB_MBSTOK_R.
63535         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63536         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63537
63538 2007-02-04  Bruno Haible  <bruno@clisp.org>
63539
63540         New module mbsspn.
63541         * modules/mbsspn: New file.
63542         * lib/mbsspn.c: New file.
63543         * lib/string_.h (strspn): Add a conditional link warning.
63544         (mbsspn): New declaration.
63545         * m4/mbsspn.m4: New file.
63546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63547         GNULIB_MBSSPN.
63548         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63549         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63550
63551 2007-02-04  Bruno Haible  <bruno@clisp.org>
63552
63553         New module mbspbrk.
63554         * modules/mbspbrk: New file.
63555         * lib/mbspbrk.c: New file.
63556         * lib/string_.h (strpbrk): Add a conditional link warning.
63557         (mbspbrk): New declaration.
63558         * m4/mbspbrk.m4: New file.
63559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63560         GNULIB_MBSPBRK.
63561         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63562         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63563
63564 2007-02-04  Bruno Haible  <bruno@clisp.org>
63565
63566         New module mbscspn.
63567         * modules/mbscspn: New file.
63568         * lib/mbscspn.c: New file.
63569         * lib/string_.h (strcspn): Add a conditional link warning.
63570         (mbscspn): New declaration.
63571         * m4/mbscspn.m4: New file.
63572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63573         GNULIB_MBSCSPN.
63574         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63575         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63576
63577 2007-02-04  Bruno Haible  <bruno@clisp.org>
63578
63579         New module mbscasestr, reduced goal of strcasestr.
63580         * modules/mbscasestr: New file.
63581         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63582         (mbscasestr): Renamed from strcasestr.
63583         * lib/strcasestr.c: Don't include mbuiter.h.
63584         (strcasestr): Remove support for multibyte locales.
63585         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63586         Change the conditional link warning.
63587         (mbscasestr): New declaration.
63588         * m4/mbscasestr.m4: New file.
63589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63590         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63591         REPLACE_STRCASESTR.
63592         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63594         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63595         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63596         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63597         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63598         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63599         (Depends-on): Remove mbuiter.
63600         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63601
63602 2007-02-04  Bruno Haible  <bruno@clisp.org>
63603
63604         Simplify handling of strncasecmp.
63605         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63606         the conditional link warning.
63607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63608         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63609         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63610         * modules/strcase (configure.ac): Don't invoke
63611         gl_STRING_MODULE_INDICATOR.
63612         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63613
63614 2007-02-04  Bruno Haible  <bruno@clisp.org>
63615
63616         New module mbscasecmp, reduced goal of strcasecmp.
63617         * modules/mbscasecmp: New file.
63618         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63619         (mbscasecmp): Renamed from strcasecmp.
63620         * lib/strcasecmp.c: Don't include mbuiter.h.
63621         (strcasecmp): Remove support for multibyte locales.
63622         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63623         Change the conditional link warning.
63624         (mbscasecmp): New declaration.
63625         * m4/mbscasecmp.m4: New file.
63626         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63627         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63628         REPLACE_STRCASECMP.
63629         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63631         GNULIB_MBSCASECMP.
63632         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63633         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63634         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63635         (Depends-on): Remove mbuiter.
63636         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63637
63638 2007-02-04  Bruno Haible  <bruno@clisp.org>
63639
63640         New module mbsstr. Remove module strstr.
63641         * modules/mbsstr: New file.
63642         * modules/strstr: Remove file.
63643         * lib/mbsstr.c: Renamed from lib/strstr.c.
63644         (mbsstr): Renamed from strstr.
63645         * lib/string_.h (strstr): Remove declaration. Change the conditional
63646         link warning.
63647         (mbsstr): New declaration.
63648         * m4/mbsstr.m4: New file.
63649         * m4/strstr.m4: Remove file.
63650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63651         REPLACE_STRSTR.
63652         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63653         Don't initialize GNULIB_STRSTR.
63654         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63655         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63656         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63657         (Support for systems lacking ANSI C 89): Remove strstr.
63658
63659 2007-02-04  Bruno Haible  <bruno@clisp.org>
63660
63661         New module mbsrchr.
63662         * modules/mbsrchr: New file.
63663         * lib/mbsrchr.c: New file.
63664         * lib/string_.h (strrchr): Add a conditional link warning.
63665         (mbsrchr): New declaration.
63666         * m4/mbsrchr.m4: New file.
63667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63668         GNULIB_MBSRCHR.
63669         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63670         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63671
63672 2007-02-04  Bruno Haible  <bruno@clisp.org>
63673
63674         New module mbschr.
63675         * modules/mbschr: New file.
63676         * lib/mbschr.c: New file.
63677         * lib/string_.h (strchr): Add a conditional link warning.
63678         (mbschr): New declaration.
63679         * m4/mbschr.m4: New file.
63680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63681         GNULIB_MBSCHR.
63682         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63683         * MODULES.html.sh (Internationalization functions): Add mbschr.
63684
63685 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63686
63687         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63688
63689         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63690
63691 2007-02-04  Bruno Haible  <bruno@clisp.org>
63692
63693         New module description section 'configure.ac-early'.
63694         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63695         (func_get_autoconf_early_snippet): New function.
63696         (func_import, func_create_testdir): Use it. Remove special cases for
63697         modules 'extensions' and 'lock'.
63698         * modules/extensions (configure.ac-early): Require
63699         gl_USE_SYSTEM_EXTENSIONS.
63700         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63701
63702 2007-02-04  Bruno Haible  <bruno@clisp.org>
63703
63704         Make use of gcj-4.3's -fsource and -ftarget option.
63705         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63706         and if so try the options -fsource and -ftarget.
63707         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63708         source_version, ftarget_option, target_version arguments.
63709         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63710         (is_envjavac_oldgcj_14_14_usable): Renamed from
63711         is_envjavac_gcj_14_14_usable.
63712         (is_envjavac_oldgcj_14_13_usable): Renamed from
63713         is_envjavac_gcj_14_13_usable.
63714         (is_gcj_present): Update.
63715         (is_gcj_43, is_gcj43_usable): New functions.
63716         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63717         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63718         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63719         try the options -fsource and -ftarget.
63720
63721 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63722
63723         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63724         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63725         larger value.
63726
63727 2007-02-03  Jim Meyering  <jim@meyering.net>
63728
63729         Give tools a better chance to allocate space for very large buffers.
63730         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63731
63732         Make pwd and readlink work also when run with an unreadable parent dir
63733         on systems with openat support.
63734         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63735         provided getcwd function, even when we have openat support.
63736         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63737
63738 2007-02-02  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63741         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63742         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63743         portability problems if one of these functions is only used on specific
63744         platforms.
63745         Reported by Paul Eggert.
63746
63747 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63748
63749         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63750         is causing more trouble than it's curing.
63751         * lib/regex_internal.h (__mempcpy): Remove.
63752         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63753         (and make the code a tad smaller to boot).
63754         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63755
63756 2007-02-02  Jim Meyering  <jim@meyering.net>
63757
63758         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63759         section, not in the Makefile.am: one.
63760
63761 2007-02-02  Eric Blake  <ebb9@byu.net>
63762
63763         * lib/strchrnul.c: Always include config.h first.
63764
63765         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63766         gnulib strstr is not necessary here.
63767
63768 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63769
63770         * m4/socklen.m4: Fix typo.
63771
63772 2007-02-02  Eric Blake  <ebb9@byu.net>
63773
63774         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63775         * modules/netinet_in (Makefile.am): Likewise.
63776
63777 2007-02-01  Bruno Haible  <bruno@clisp.org>
63778
63779         * lib/string_.h (GL_LINK_WARNING): New macro.
63780         (strcasecmp, strstr, strcasestr): If provided by the system,
63781         conditionally define as a macro that leads to a warning instead of to
63782         an error.
63783         (strncasecmp): Conditionally define as a macro that leads to a warning.
63784
63785 2007-02-01  Karl Berry  <karl@gnu.org>
63786
63787         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63788
63789 2007-02-01  Bruno Haible  <bruno@clisp.org>
63790
63791         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63792         renamings.
63793
63794 2007-02-01  Eric Blake  <ebb9@byu.net>
63795
63796         * modules/regex (Depends-on): Revert dependence on mempcpy.
63797         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63798         module's definition of mempcpy.
63799         Reported by Paul Eggert.
63800
63801 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63804         the symbol XYZ before redefining it.  This fixes a problem with
63805         programs that don't use XYZ, when compiled on systems that define
63806         XYZ to something else.
63807
63808 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63809
63810         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63811         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63812         writeable to group or other and (2) is intended to have a special
63813         mode bit that is set or cleared.  In such a case, the directory
63814         should be neither group- nor other-writeable until the special
63815         mode bits are right.
63816
63817 2007-01-31  Eric Blake  <ebb9@byu.net>
63818
63819         * modules/mountlist (Depends-on): Add strstr.
63820
63821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63822         bug.
63823         * modules/string (Makefile.am): Remove redundant replacement.
63824         * modules/regex (Depends-on): Add mempcpy.
63825
63826 2007-01-31  Bruno Haible  <bruno@clisp.org>
63827
63828         New module description field 'Link'.
63829         * gnulib-tool (func_usage): Document --extract-link-directive.
63830         (sed_extract_prog): Recognize 'Link' directive.
63831         (func_get_link_directive): New function.
63832         (func_import): Show summary of link directives.
63833         Handle --extract-link-directive option.
63834         * modules/acl (Link): New section.
63835         * modules/clock-time (Link): New section.
63836         * modules/euidaccess (Link): New section.
63837         * modules/gettext (Link): New section.
63838         * modules/iconv (Link): New section.
63839         * modules/lock (Link): New section.
63840         * modules/nanosleep (Link): New section.
63841         * modules/readline (Link): New section.
63842
63843 2007-01-27  Bruno Haible  <bruno@clisp.org>
63844
63845         Enforce the use of gnulib modules for unportable <string.h> functions.
63846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63847         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63848         (gl_HEADER_STRING_H_BODY): Require it.
63849         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63850         the symbol XYZ to one that gives a link error.
63851         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63852         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63853         * modules/mempcpy (configure.ac): Likewise.
63854         * modules/memrchr (configure.ac): Likewise.
63855         * modules/stpcpy (configure.ac): Likewise.
63856         * modules/stpncpy (configure.ac): Likewise.
63857         * modules/strcase (configure.ac): Likewise.
63858         * modules/strcasestr (configure.ac): Likewise.
63859         * modules/strchrnul (configure.ac): Likewise.
63860         * modules/strdup (configure.ac): Likewise.
63861         * modules/strndup (configure.ac): Likewise.
63862         * modules/strnlen (configure.ac): Likewise.
63863         * modules/strpbrk (configure.ac): Likewise.
63864         * modules/strsep (configure.ac): Likewise.
63865         * modules/strstr (configure.ac): Likewise.
63866         * modules/strtok_r (configure.ac): Likewise.
63867
63868 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63869
63870         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63871
63872 2007-01-30  Jim Meyering  <jim@meyering.net>
63873
63874         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63875
63876 2007-01-29  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63879         * lib/execute.c: Likewise.
63880         * lib/pipe.c: Likewise.
63881         * lib/printf-args.h: Likewise.
63882         * lib/printf-args.c: Likewise.
63883         * lib/printf-parse.c: Likewise.
63884         * lib/vasnprintf.c: Likewise.
63885
63886 2007-01-29  Eric Blake  <ebb9@byu.net>
63887
63888         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63889         declaration.
63890
63891 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * lib/strptime.h (strptime): Use 'restrict' for args where
63894         POSIX requires this.
63895         * lib/strptime.c (strptime): Likewise.
63896         Change license notice from LGPL to GPL, since gnulib-tool will
63897         change this as needed.
63898         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63899         defined.
63900         Include "strptime.h" first, to check interface.
63901         Do not #undef _LIBC and _NL_CURRENT.
63902         Do not include <stdlib.h>; no longer needed.
63903         Include "time_r.h" and declare ptime_locale_status
63904         only if _LIBC is not defined.
63905         (__P): Remove unused macro.
63906         (match_string): Bring back glibc version, but use it only if _LIBC
63907         is defined.
63908         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63909         Remove unnecessary assertion and abort() call.
63910         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63911         * m4/strptime.m4: Fix serial number comment.
63912         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63913         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63914         (Depends-on): Add time_r.
63915
63916 2007-01-29  Bruno Haible  <bruno@clisp.org>
63917
63918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63919         strptime.
63920         * modules/strptime (Depends-on): Add stdbool.
63921         * lib/strptime.h: Include <time.h> always. Add comments.
63922
63923 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63924
63925         * modules/strptime: New file.
63926         * lib/strptime.h: New file.
63927         * lib/strptime.c: New file.
63928         * m4/strptime.m4: New file.
63929
63930 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63931
63932         * MODULES.html.sh: New module mpsort.
63933         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63934
63935         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63936         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63938         All uses changed.
63939         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63940         All uses changed.
63941         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63942         to _Restrict_.
63943         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63944         the parameter matches the prototype.
63945
63946 2007-01-28  Jim Meyering  <jim@meyering.net>
63947
63948         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63949         sys/time.h here, reverting that part of the previous patch:
63950         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63951
63952 2007-01-28  Bruno Haible  <bruno@clisp.org>
63953
63954         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63955         value of $(SYS_TIME_H).
63956         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63957         remove it conditionally, too. [added by Jim Meyering]
63958         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63959         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63960         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63961         GETTIMEOFDAY_REPLACEMENT to 1.
63962
63963 2007-01-28  Bruno Haible  <bruno@clisp.org>
63964
63965         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63966         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63968         Set UNISTD_H instead of UNISTD_H2.
63969         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63970
63971 2007-01-28  Bruno Haible  <bruno@clisp.org>
63972
63973         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63974         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63975
63976 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63977
63978         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63979         (func_create_testdir): Ensure C locale for `grep' and `tr'
63980         character ranges.
63981         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63982         ACLOCAL_AMFLAGS parsing state machine.
63983
63984 2007-01-27  Bruno Haible  <bruno@clisp.org>
63985
63986         * modules/unistr/base: Update.
63987
63988 2007-01-27  Bruno Haible  <bruno@clisp.org>
63989
63990         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63991         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63992         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63993         modules/unistr/u32-mbtouc.
63994         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63995         * lib/unistr.h: Update.
63996         * lib/linebreak.c: Update.
63997         * modules/unistr/u32-mbtouc: Renamed from
63998         modules/unistr/u32-mbtouc-safe.
63999         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64000         * lib/unistr.h: Update.
64001         * lib/unistr/u32-to-u8.c: Update.
64002         * lib/unistr/u32-to-u16.c: Update.
64003
64004 2007-01-27  Bruno Haible  <bruno@clisp.org>
64005
64006         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64007         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64008         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64009         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64010         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64011         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64012         modules/unistr/u16-mbtouc.
64013         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64014         * lib/unistr.h: Update.
64015         * lib/linebreak.c: Update.
64016         * modules/linebreak: Update.
64017         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64018         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64019         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64020         * modules/unistr/u16-mbtouc: Renamed from
64021         modules/unistr/u16-mbtouc-safe.
64022         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64023         * lib/unistr.h: Update.
64024         * lib/unistr/u16-to-u8.c: Update.
64025         * modules/unistr/u16-to-u8: Update.
64026         * lib/unistr/u16-to-u32.c: Update.
64027         * modules/unistr/u16-to-u32: Update.
64028
64029 2007-01-27  Bruno Haible  <bruno@clisp.org>
64030
64031         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64032         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64033         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64034         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64035         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64036         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64037         modules/unistr/u8-mbtouc.
64038         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64039         * lib/unistr.h: Update.
64040         * lib/striconveh.c: Update.
64041         * modules/striconveh: Update.
64042         * lib/linebreak.c: Update.
64043         * modules/linebreak: Update.
64044         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64045         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64046         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64047         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64048         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64049         * lib/unistr.h: Update.
64050         * lib/striconveh.c: Update.
64051         * modules/striconveh: Update.
64052         * lib/unistr/u8-to-u16.c: Update.
64053         * modules/unistr/u8-to-u16: Update.
64054         * lib/unistr/u8-to-u32.c: Update.
64055         * modules/unistr/u8-to-u32: Update.
64056
64057 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64058
64059         Sync from Libtool.
64060         * lib/argz.c: Do not include strings.h nor memory.h, include
64061         string.h unconditionally.  Patch by Simon Josefsson.
64062
64063 2007-01-27  Bruno Haible  <bruno@clisp.org>
64064
64065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64066         from gl_HEADER_STRING_H_BODY.
64067         (gl_HEADER_STRING_H_BODY): Require it.
64068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64069         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64070         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64071         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64073         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64075         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64076         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64079         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64080         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64082         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64083
64084 2007-01-27  Bruno Haible  <bruno@clisp.org>
64085
64086         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64087         check_PROGRAMS into noinst_PROGRAMS.
64088         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64089         check_PROGRAMS in this case.
64090         (func_import): Set for_test to false.
64091         (func_create_testdir): Set for_test to true.
64092
64093 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64094             Bruno Haible  <bruno@clisp.org>
64095
64096         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64097         (Depends-on): Add string.
64098         (Includes): Use <string.h> instead of strcasestr.h.
64099         * modules/string (Makefile.am): Also substitute the value of
64100         REPLACE_STRCASESTR.
64101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64102         assume strcasestr is declared in <string.h> not <strings.h>. Also
64103         set REPLACE_STRCASESTR.
64104         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64105         REPLACE_STRCASESTR.
64106         * lib/strcasestr.h: Remove file.
64107         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64108         * lib/string_.h (strcasestr): New declaration.
64109
64110 2007-01-27  Bruno Haible  <bruno@clisp.org>
64111
64112         * lib/string_.h: Use 'extern'.
64113
64114 2007-01-27  Jim Meyering  <jim@meyering.net>
64115
64116         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64117         of set-but-not-used local, "q".
64118
64119         * lib/mempcpy.c: Include <config.h> before <string.h>.
64120         This fixes a compilation error on HP-UX, due to the system's
64121         "restrict"-using mempcpy prototype.
64122
64123 2007-01-26  Bruno Haible  <bruno@clisp.org>
64124
64125         Small optimization.
64126         * lib/javacomp.c: Include c-strstr.h.
64127          (is_envjavac_gcj): Use c_strstr instead of strstr.
64128         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64129
64130 2007-01-26  Bruno Haible  <bruno@clisp.org>
64131
64132         * MODULES.html.sh (Unicode string functions): Add the new modules.
64133
64134         * modules/uniconv/u32-strconv-to-locale: New file.
64135         * lib/uniconv/u32-strconv-to-locale.c: New file.
64136
64137         * modules/uniconv/u16-strconv-to-locale: New file.
64138         * lib/uniconv/u16-strconv-to-locale.c: New file.
64139
64140         * modules/uniconv/u8-strconv-to-locale: New file.
64141         * lib/uniconv/u8-strconv-to-locale.c: New file.
64142
64143         * modules/uniconv/u32-strconv-from-locale: New file.
64144         * lib/uniconv/u32-strconv-from-locale.c: New file.
64145
64146         * modules/uniconv/u16-strconv-from-locale: New file.
64147         * lib/uniconv/u16-strconv-from-locale.c: New file.
64148
64149         * modules/uniconv/u8-strconv-from-locale: New file.
64150         * lib/uniconv/u8-strconv-from-locale.c: New file.
64151
64152         * modules/uniconv/u32-strconv-to-enc: New file.
64153         * lib/uniconv/u32-strconv-to-enc.c: New file.
64154         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64155         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64156
64157         * modules/uniconv/u16-strconv-to-enc: New file.
64158         * lib/uniconv/u16-strconv-to-enc.c: New file.
64159         * lib/uniconv/u-strconv-to-enc.h: New file.
64160         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64161         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64162
64163         * modules/uniconv/u8-strconv-to-enc: New file.
64164         * lib/uniconv/u8-strconv-to-enc.c: New file.
64165         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64166         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64167
64168         * modules/uniconv/u32-strconv-from-enc: New file.
64169         * lib/uniconv/u32-strconv-from-enc.c: New file.
64170         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64171         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64172
64173         * modules/uniconv/u16-strconv-from-enc: New file.
64174         * lib/uniconv/u16-strconv-from-enc.c: New file.
64175         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64176         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64177
64178         * modules/uniconv/u8-strconv-from-enc: New file.
64179         * lib/uniconv/u8-strconv-from-enc.c: New file.
64180         * lib/uniconv/u-strconv-from-enc.h: New file.
64181         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64182         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64183
64184         * modules/uniconv/u32-conv-from-enc: New file.
64185         * lib/uniconv/u32-conv-from-enc.c: New file.
64186         * modules/uniconv/u32-conv-from-enc-tests: New file.
64187         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64188
64189         * modules/uniconv/u16-conv-from-enc: New file.
64190         * lib/uniconv/u16-conv-from-enc.c: New file.
64191         * lib/uniconv/u-conv-from-enc.h: New file.
64192         * modules/uniconv/u16-conv-from-enc-tests: New file.
64193         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64194
64195         * modules/uniconv/u8-conv-from-enc: New file.
64196         * lib/uniconv/u8-conv-from-enc.c: New file.
64197         * modules/uniconv/u8-conv-from-enc-tests: New file.
64198         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64199
64200         * modules/uniconv/base: New file.
64201         * lib/uniconv.h: New file.
64202
64203 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64204
64205         * doc/gnulib-tool.texi (Initial import): Update to match current
64206         behavior with strdup module.
64207         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64208         * lib/memmem.h: Remove; all uses removed.  This is now done
64209         by <string.h>.
64210         * lib/mempcpy.h: Likewise.
64211         * lib/memrchr.h: Likewise.
64212         * lib/stpcpy.h: Likewise.
64213         * lib/stpncpy.h: Likewise.
64214         * lib/strcase.h: Likewise.
64215         * lib/strchrnul.h: Likewise.
64216         * lib/strdup.h: Likewise.
64217         * lib/strndup.h: Likewise.
64218         * lib/strnlen.h: Likewise.
64219         * lib/strpbrk.h: Likewise.
64220         * lib/strsep.h: Likewise.
64221         * lib/strstr.h: Likewise.
64222         * lib/strtok_r.h: Likewise.
64223         * lib/string_.h: New file.
64224         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64225         Rely on <string.h> instead.
64226         * lib/canon-host.c: Likewise.
64227         * lib/chdir-long.c: Likewise.
64228         * lib/concatpath.c: Likewise.
64229         * lib/exclude.c: Likewise.
64230         * lib/fchdir.c: Likewise.
64231         * lib/getaddrinfo.c: Likewise.
64232         * lib/getcwd.c: Likewise.
64233         * lib/getsubopt.c: Likewise.
64234         * lib/glob.c: Likewise.
64235         * lib/hard-locale.c: Likewise.
64236         * lib/iconvme.c: Likewise.
64237         * lib/javacomp.c: Likewise.
64238         * lib/mempcpy.c: Likewise.
64239         * lib/memrchr.c: Likewise.
64240         * lib/regex_internal.h: Likewise.
64241         * lib/stpncpy.c: Likewise.
64242         * lib/strcasecmp.c: Likewise.
64243         * lib/strchrnul.c: Likewise.
64244         * lib/strdup.c: Likewise.
64245         * lib/striconv.c: Likewise.
64246         * lib/striconveh.c: Likewise.
64247         * lib/striconveha.c: Likewise.
64248         * lib/strncasecmp.c: Likewise.
64249         * lib/strndup.c: Likewise.
64250         * lib/strnlen.c: Likewise.
64251         * lib/strsep.c: Likewise.
64252         * lib/strstr.c: Likewise.
64253         * lib/strtok_r.c: Likewise.
64254         * lib/userspec.c: Likewise.
64255         * lib/w32spawn.h: Likewise.
64256         * lib/xstrndup.c: Likewise.
64257         * lib/mountlist.c (strstr): Remove decl.
64258         * m4/string_h.m4: New file.
64259         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64260         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64261         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64262         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64263         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64264         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64265         Set REPLACE_STRCASECMP if necessary.
64266         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64267         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64268         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64269         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64270         HAVE_DECL_STRDUP if necessary.
64271         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64272         since gl_FUNC_STRNDUP does that now.
64273         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64274         Check for decl here...
64275         (gl_PREREQ_STRNLEN): ... not here.
64276         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64277         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64278         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64280         necessary.
64281         * modules/string: New file.
64282         * modules/memmem (Files): Remove special-purpose include file.
64283         (Depends-on): Add string.
64284         (Include): Include <string.h>, not the removed file.
64285         * modules/mempcpy: Likewise.
64286         * modules/memrchr: Likewise.
64287         * modules/stpcpy: Likewise.
64288         * modules/stpncpy: Likewise.
64289         * modules/strcase: Likewise.
64290         * modules/strchrnul: Likewise.
64291         * modules/strdup: Likewise.
64292         * modules/strndup: Likewise.
64293         * modules/strnlen: Likewise.
64294         * modules/strpbrk: Likewise.
64295         * modules/strsep: Likewise.
64296         * modules/strstr: Likewise.
64297         * modules/strtok_r: Likewise.
64298         * tests/test-dirname.c: Don't include "strdup.h", since
64299         <string.h> now suffices.
64300         * tests/test-memmem.c: Don't include "memmem.h", since
64301         <string.h> now suffices.
64302
64303 2007-01-25  Bruno Haible  <bruno@clisp.org>
64304
64305         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64306         *resultp is 0.
64307
64308         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64309         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64310         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64311         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64312
64313         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64314         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64315         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64316         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64317         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64318         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64319
64320 2007-01-24  Bruno Haible  <bruno@clisp.org>
64321
64322         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64324         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64325         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64326         gl_FUNC_FTS_CORE.
64327         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64328         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64329         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64330         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64331         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64332         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64333         gl_FUNC_FCHOWNAT.
64334         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64335         gl_FUNC_STRFTIME.
64336         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64337         Reported by Ralf Wildenhues.
64338
64339 2007-01-24  Bruno Haible  <bruno@clisp.org>
64340
64341         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64342         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64343         gl_GETADDRINFO.
64344         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64345         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64346         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64347
64348 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64351         Don't use 'exit'; just return from 'main'.
64352         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64353
64354         * lib/fnmatch_.h: Readjust white space and comments to match
64355         glibc, to avoid spurious diffs.
64356
64357 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64360         2004-12-01 change by Jakub Jelinek, since this code won't compile
64361         if !LIBC.  Problem reported by Bob Proulx.
64362
64363 2007-01-23  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/striconveh.c: Include c-strcaseeq.h.
64366         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64367         * modules/striconveh (Depends-on): Add c-strcaseeq.
64368
64369 2007-01-23  Bruno Haible  <bruno@clisp.org>
64370
64371         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64372
64373         * modules/c-strcaseeq: New file.
64374         * lib/c-strcaseeq.h: New file.
64375
64376         * modules/streq: New file.
64377         * lib/streq.h: New file.
64378
64379 2007-01-23  Bruno Haible  <bruno@clisp.org>
64380
64381         * modules/striconveha-tests: New file.
64382         * tests/test-striconveha.c: New file.
64383
64384         * lib/striconveha.h: Include <stdbool.h>.
64385         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64386         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64387         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64388         (mem_iconveha): New function.
64389         (str_iconveha_notranslit): Renamed from str_iconveha.
64390         (str_iconveha): New function.
64391         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64392         c-strcase.
64393
64394 2007-01-23  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64397         encodings without forgiving before trying any encoding with handler.
64398         (str_iconveha): Try all encodings without forgiving before trying any
64399         encoding with handler.
64400
64401 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         Import the following changes from libc.
64404
64405         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64406
64407         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64408
64409         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64410
64411         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64412         normal_bracket label.
64413
64414         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64415
64416         [BZ #361]
64417         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64418         to normal_bracket after fetching the next character.
64419
64420 2007-01-22  Bruno Haible  <bruno@clisp.org>
64421
64422         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64423         argument.
64424         * lib/striconveh.c (iconv_carefully_1): New function.
64425         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64426         argument.
64427         (str_cd_iconveh): Update.
64428         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64429         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64430         * tests/test-striconveh.c (MAGIC): New macro.
64431         (new_offsets): New function.
64432         (main): Test call with and without offsets.
64433
64434 2007-01-22  Bruno Haible  <bruno@clisp.org>
64435
64436         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64437         * modules/sys_select (Makefile.am): Likewise.
64438         * modules/sys_socket (Makefile.am): Likewise.
64439         * modules/sys_time (Makefile.am): Likewise.
64440
64441 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * modules/gettimeofday (License): Change from GPL to LGPL, since
64444         gettimeofday is a library function.
64445
64446 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64447
64448         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64449
64450 2007-01-21  Bruno Haible  <bruno@clisp.org>
64451
64452         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64453
64454 2007-01-21  Bruno Haible  <bruno@clisp.org>
64455
64456         * modules/striconveha: New file.
64457         * lib/striconveha.h: New file.
64458         * lib/striconveha.c: New file.
64459         * MODULES.html.sh (Internationalization functions): Add striconveha.
64460         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64461         string.
64462         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64463
64464 2007-01-21  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64467         * lib/striconveh.c (str_iconveh): Likewise.
64468
64469 2007-01-21  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/striconveh.h (mem_iconveh): New declaration.
64472         * lib/striconveh.c (mem_iconveh): New function.
64473         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64474
64475 2007-01-21  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64478
64479         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64480         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64481         original result buffer.
64482         (str_cd_iconveh): Update.
64483         * tests/test-striconveh.c (main): Update.
64484
64485         * lib/striconv.h (mem_cd_iconv): Change specification.
64486         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64487         result buffer.
64488         (str_cd_iconv): Update.
64489         * tests/test-striconv.c (main): Update.
64490
64491 2007-01-21  Bruno Haible  <bruno@clisp.org>
64492
64493         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64494
64495 2007-01-20  Jim Meyering  <jim@meyering.net>
64496
64497         * lib/userspec.c (parse_with_separator): If a user or group string
64498         starts with "+", skip the corresponding name-to-ID look-up, since
64499         such a look-up must fail: user and group names may not include "+".
64500
64501 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64504         since we now assume the sys_time module.
64505         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64506         check for sys/time.h; no longer needed.
64507         * modules/poll (Depends-on): Depend on sys_time.
64508
64509 2007-01-18  Bruno Haible  <bruno@clisp.org>
64510
64511         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64512         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64513
64514         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64515         gettimeofday.
64516
64517         * tests/test-gettimeofday.c: Include <time.h>.
64518         (dummy): Remove variable.
64519
64520         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64521         gl_HEADER_SYS_TIME_H.
64522         (gl_HEADER_SYS_TIME_H): New macro.
64523
64524         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64525         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64527         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64528         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64530         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64531         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64532         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64533         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64534         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64535
64536         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64537         last change; it caused a compilation error when cross-compiling to
64538         Cygwin.
64539
64540 2007-01-18  Jim Meyering  <jim@meyering.net>
64541
64542         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64543         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64544         than the race-prone "test -d sys || mkdir sys".
64545         (configure.ac): Use AC_PROG_MKDIR_P.
64546         * modules/sys_select: Likewise.
64547         * modules/sys_socket: Likewise.
64548         * modules/sys_time: Likewise.
64549
64550 2007-01-18  Eric Blake  <ebb9@byu.net>
64551
64552         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64553         replace gettimeofday.
64554         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64555         name, to avoid infinite recursion.
64556
64557 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64560         module sys_time.
64561         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64562         assume timespec.h defines struct timeval.
64563         * lib/settime.c: Likewise.
64564         * lib/utimens.c: Likewise.
64565         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64566         since we now assume the gettimeofday module.
64567         * lib/tempname.c (__gen_tempname): Likewise.
64568         * lib/gettimeofday.h: Remove.
64569         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64570         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64571         Include <time.h>, for 'time()'.
64572         (localtime_buffer_addr): Also use this workaround if
64573         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64574         to simplify the uses.  All uses changed.
64575         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64576         that #undef is inside {}, and 'const' follows type name consistently.
64577         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64578         (gettimeofday): Do not use the maximum possible value for
64579         tv->tv_usec, since that might break usages other than ls.c.
64580         Instead, we'll leave ls.c alone.  This undoes today's patch
64581         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64582         we've never observed the problem but might as well keep the
64583         canary.
64584         * lib/nanosleep.c: Include timespec.h first, for interface check.
64585         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64586         now assume the sys_time module.
64587         * lib/tempname.c: Likewise.
64588         * lib/timespec.h: Likewise.
64589         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64590         needed.
64591         * lib/strftime.c: Likewise.
64592         * lib/timespec.h: Likewise.
64593         * lib/posixtm.c: Include posixtm.h first, for interface check.
64594         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64595         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64596         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64597         * lib/sys_time_.h: New file.
64598         * lib/timespec.h (struct timespec): Use long int, not long.
64599         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64600         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64601         Remove obsolescent call to AC_HEADER_TIME.
64602         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64604         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64605         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64606         Likewise.
64607         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64608         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64610         into the sys_time module.  Check for gettimeofday just once.
64611         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64612         for gettimeofday signature to just check the signature.  Merely
64613         compile it, since linking doesn't test signature.  Improve test for
64614         whether gettimeofday.o is actually needed.
64615         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64616         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64617         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64618         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64619         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64620         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64621         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64622         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64623         than worrying about sys/time.h.
64624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64625         Don't bother worrying about TIME_WITH_SYS_TIME.
64626         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64627         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64628         * m4/sys_time_h.m4: New file.
64629         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64630         Don't include sys/time.h.  Return from main rather than exiting.
64631         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64632         all uses changed.
64633         * modules/gethrxtime (Depends-on): Add sys_time.
64634         * modules/gettime (Depends-on): Likewise.
64635         * modules/gettimeofday (Depends-on): Likewise.
64636         * modules/nanosleep (Depends-on): Likewise.
64637         * modules/settime (Depends-on): Likewise.
64638         * modules/tempname (Depends-on): Likewise.
64639         * modules/utimens (Depends-on): Likewise.
64640         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64641         (Include): Change back to <sys/time.h>.
64642         (Maintainer): Add self.
64643         * modules/sys_time: New file.
64644         * modules/tempname (Depends-on): Add gettimeofday.
64645         * tests/test-gettimeofday.c: Include <sys/time.h>
64646         rather than gettimeofday.h.
64647
64648 2007-01-17  Bruno Haible  <bruno@clisp.org>
64649
64650         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64651         the license default to GPL.
64652         (func_create_testdir): Don't complain if a module is LGPL and its
64653         tests module depends on GPLed modules.
64654
64655 2007-01-17  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/gettimeofday.c (gettimeofday): Add code for the case
64658         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64659         maximum possible value for tv->tv_usec, rather than the minimum one.
64660
64661 2005-10-08  Martin Lambers  <marlam@marlam.de>
64662 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64663 2007-01-16  Bruno Haible  <bruno@clisp.org>
64664
64665         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64666         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64667         gl_FUNC_GETTIMEOFDAY.
64668         (Include): Add gettimeofday.h.
64669         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64670         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64671         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64672         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64673         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64674         * lib/gettimeofday.h: New file.
64675         * lib/gettimeofday.c: Include <sys/timeb.h>.
64676         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64677         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64678         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64679         fall back on time().
64680
64681         * tests/test-gettimeofday.c: New file.
64682         * modules/gettimeofday-tests: New file.
64683
64684 2007-01-16  Eric Blake  <ebb9@byu.net>
64685
64686         * modules/fnmatch (Depends-on): Depend on wchar.
64687         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64688         * m4/fnmatch.m4: Likewise.
64689         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64690         * m4/mbchar.m4: Likewise.
64691         * modules/mbswidth (Depends-on): Depend on wchar.
64692         * lib/mbswidth.c: Assume <wchar.h>.
64693         * m4/mbswidth.m4: Likewise.
64694         * modules/quotearg (Depends-on): Depend on wchar.
64695         * lib/quotearg.c: Assume <wchar.h>.
64696         * m4/quotearg.m4: Likewise.
64697         * modules/regex (Depends-on): Depend on wchar.
64698         * lib/regex_internal.h: Assume <wchar.h>.
64699         * m4/regex.m4: Likewise.
64700         * modules/stdint (Depends-on): Depend on wchar.
64701         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64702         * m4/stdint.m4: Likewise.
64703         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64704         * modules/strftime (Depends-on): Depend on wchar.
64705         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64706         * modules/strtol (Depends-on): Depend on wchar.
64707         * lib/strtol.c: Assume <wchar.h>.
64708         * modules/wcwidth (Depends-on): Depend on wchar.
64709         * lib/wcwidth.h: Assume <wchar.h>.
64710         * m4/wcwidth.m4: Likewise.
64711
64712 2007-01-16  Bruno Haible  <bruno@clisp.org>
64713
64714         * modules/csharpexec-script: New, created from...
64715         * modules/csharpexec: ... this.
64716
64717 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64718
64719         * modules/javaexec-script: New, created from...
64720         * modules/javaexec: ... this.
64721
64722 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64723
64724         * modules/poll (Dependencies): Add sys_select.
64725
64726 2007-01-15  Jim Meyering  <jim@meyering.net>
64727
64728         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64729         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64730         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64731         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64732
64733 2007-01-15  Bruno Haible  <bruno@clisp.org>
64734
64735         * modules/striconveh: New file.
64736         * lib/striconveh.h: New file.
64737         * lib/striconveh.c: New file.
64738         * MODULES.html.sh (Internationalization functions): Add striconveh.
64739
64740         * modules/striconveh-tests: New file.
64741         * tests/test-striconveh.c: New file.
64742
64743 2007-01-15  Bruno Haible  <bruno@clisp.org>
64744
64745         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64746         not from GNU libiconv or GNU libc.
64747
64748 2007-01-15  Bruno Haible  <bruno@clisp.org>
64749
64750         * doc/gnulib-intro.texi (Copyright): Explain the different license
64751         terms for module descriptions, autoconf macros, tests, documentation.
64752
64753 2007-01-14  Bruno Haible  <bruno@clisp.org>
64754
64755         * modules/striconv-tests: New file.
64756         * tests/test-striconv.c: New file.
64757
64758 2007-01-14  Bruno Haible  <bruno@clisp.org>
64759
64760         * modules/iconv-tests: New file.
64761         * tests/test-iconv.c: New file.
64762
64763 2007-01-14  Bruno Haible  <bruno@clisp.org>
64764
64765         * gnulib-tool (func_get_license): For test modules, use the license of
64766         the main module.
64767
64768 2007-01-14  Bruno Haible  <bruno@clisp.org>
64769
64770         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64771         if iconv is found to exist.
64772
64773 2007-01-14  Bruno Haible  <bruno@clisp.org>
64774
64775         * modules/c-ctype-tests: New file.
64776         * tests/test-c-ctype.c: New file.
64777
64778 2007-01-14  Bruno Haible  <bruno@clisp.org>
64779
64780         * modules/binary-io-tests: New file.
64781         * tests/test-binary-io.sh: New file.
64782         * tests/test-binary-io.c: New file.
64783
64784 2007-01-14  Bruno Haible  <bruno@clisp.org>
64785
64786         * modules/array-oset-tests: New file.
64787         * tests/test-array_oset.c: New file.
64788
64789 2007-01-14  Bruno Haible  <bruno@clisp.org>
64790
64791         * modules/array-list-tests: New file.
64792         * tests/test-array_list.c: New file.
64793
64794 2007-01-14  Bruno Haible  <bruno@clisp.org>
64795
64796         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64797         and make.
64798         Reported by Simon Josefsson in
64799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64800
64801 2007-01-14  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/allocsa-tests: New file.
64804         * tests/test-allocsa.c: New file.
64805
64806 2007-01-14  Bruno Haible  <bruno@clisp.org>
64807
64808         * modules/fchdir (Depends-on): Add absolute-header.
64809         * modules/unistd (Depends-on): Likewise.
64810
64811 2006-12-30  Bruno Haible  <bruno@clisp.org>
64812
64813         * modules/fchdir: New file.
64814         * modules/unistd (Files): Add lib/unistd_.h.
64815         (Makefile.am): Generate unistd.h from unistd_.h.
64816         * lib/fchdir.c: New file.
64817         * lib/dirent_.h: New file.
64818         * lib/unistd_.h: New file.
64819         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64820         * m4/fchdir.m4: New file.
64821         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64822         (gl_HEADER_UNISTD): Invoke it.
64823         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64824         function.
64825         * lib/backupfile.c (opendir, closedir): Undefine.
64826         * lib/chown.c (open, close): Undefine.
64827         * lib/clean-temp.c (open, close): Undefine.
64828         * lib/copy-file.c (open, close): Undefine.
64829         * lib/execute.c (open, close): Undefine.
64830         * lib/fsusage.c (open, close): Undefine.
64831         * lib/gc-gnulib.c (open, close): Undefine.
64832         * lib/getcwd.c (opendir, closedir): Undefine.
64833         * lib/glob.c (opendir, closedir): Undefine.
64834         * lib/javacomp.c (open, close): Undefine.
64835         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64836         * lib/openat-proc.c (open, close): Undefine.
64837         * lib/pagealign_alloc.c (open, close): Undefine.
64838         * lib/pipe.c (open, close): Undefine.
64839         * lib/progreloc.c (open, close): Undefine.
64840         * lib/savedir.c (opendir, closedir): Undefine.
64841         * lib/utime.c (open, close): Undefine.
64842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64843
64844 2007-01-10  Bruno Haible  <bruno@clisp.org>
64845
64846         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64847
64848 2007-01-12  Eric Blake  <ebb9@byu.net>
64849
64850         Provide a robust <wchar.h>.  Further simplifications are now
64851         possible in other modules, but not included here.
64852         * modules/wchar: New module.
64853         * m4/wchar.m4: New file.
64854         * lib/wchar_.h: Likewise.
64855         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64856         of the new module.
64857         * MODULES.html.sh (Extended multibyte and wide character utilities):
64858         New section.
64859
64860 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64863         to a reasonable default for memory allocation.
64864         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64865         file system that reports garbage st_size values for symlinks.
64866         Problem reported by Liyang Hu.
64867
64868 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64869
64870         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64871         Emacs .#* auto-save files).
64872
64873 2007-01-11  Bruno Haible  <bruno@clisp.org>
64874
64875         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64876         directory.
64877
64878 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         Use @...@ consistently in lib/wctype_.h.
64881         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64882         on it being set to 1 or 0.
64883         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64884         go back to AC_SUBSTing it.
64885         * modules/wctype (Makefile.am): Undo previous change.
64886
64887 2007-01-10  Eric Blake  <ebb9@byu.net>
64888
64889         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64890         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64891         * modules/wctype (Makefile.am): Likewise.
64892         Reported by Chris McGuire.
64893
64894 2007-01-10  Jim Meyering  <jim@meyering.net>
64895
64896         fts.c: a small readability/maintainability improvement
64897         * lib/fts.c (fts_read): Make this code slightly more readable and
64898         maintainable by hoisting the "sp->fts_cur = p" assignments to
64899         immediately follow the statements that set P.  Derived from
64900         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64901
64902 2007-01-10  Eric Blake  <ebb9@byu.net>
64903
64904         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64905         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64907         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64908         Reported by Chris McGuire.
64909
64910 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64911
64912         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64913         in sed script.
64914
64915 2007-01-09  Bruno Haible  <bruno@clisp.org>
64916
64917         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64918         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64919         variables.
64920         (func_module): Use them.
64921
64922 2007-01-09  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/unistr/base: New file.
64925         * lib/unistr.h: New file.
64926
64927         * modules/unistr/u8-to-u16: New file.
64928         * lib/unistr/u8-to-u16.c: New file.
64929
64930         * modules/unistr/u8-to-u32: New file.
64931         * lib/unistr/u8-to-u32.c: New file.
64932
64933         * modules/unistr/u16-to-u8: New file.
64934         * lib/unistr/u16-to-u8.c: New file.
64935
64936         * modules/unistr/u16-to-u32: New file.
64937         * lib/unistr/u16-to-u32.c: New file.
64938
64939         * modules/unistr/u32-to-u8: New file.
64940         * lib/unistr/u32-to-u8.c: New file.
64941
64942         * modules/unistr/u32-to-u16: New file.
64943         * lib/unistr/u32-to-u16.c: New file.
64944
64945         * modules/unistr/u8-check: New file.
64946         * modules/unistr/u16-check: New file.
64947         * modules/unistr/u32-check: New file.
64948         * lib/unistr/u8-check.c: New file.
64949         * lib/unistr/u16-check.c: New file.
64950         * lib/unistr/u32-check.c: New file.
64951
64952         * modules/unistr/u8-chr: New file.
64953         * modules/unistr/u16-chr: New file.
64954         * modules/unistr/u32-chr: New file.
64955         * lib/unistr/u8-chr.c: New file.
64956         * lib/unistr/u16-chr.c: New file.
64957         * lib/unistr/u32-chr.c: New file.
64958
64959         * modules/unistr/u8-cmp: New file.
64960         * modules/unistr/u16-cmp: New file.
64961         * modules/unistr/u32-cmp: New file.
64962         * lib/unistr/u8-cmp.c: New file.
64963         * lib/unistr/u16-cmp.c: New file.
64964         * lib/unistr/u32-cmp.c: New file.
64965
64966         * modules/unistr/u8-cpy: New file.
64967         * modules/unistr/u16-cpy: New file.
64968         * modules/unistr/u32-cpy: New file.
64969         * lib/unistr/u8-cpy.c: New file.
64970         * lib/unistr/u16-cpy.c: New file.
64971         * lib/unistr/u32-cpy.c: New file.
64972         * lib/unistr/u-cpy.h: New file.
64973
64974         * modules/unistr/u8-cpy-alloc: New file.
64975         * modules/unistr/u16-cpy-alloc: New file.
64976         * modules/unistr/u32-cpy-alloc: New file.
64977         * lib/unistr/u8-cpy-alloc.c: New file.
64978         * lib/unistr/u16-cpy-alloc.c: New file.
64979         * lib/unistr/u32-cpy-alloc.c: New file.
64980         * lib/unistr/u-cpy-alloc.h: New file.
64981
64982         * modules/unistr/u8-endswith: New file.
64983         * modules/unistr/u16-endswith: New file.
64984         * modules/unistr/u32-endswith: New file.
64985         * lib/unistr/u8-endswith.c: New file.
64986         * lib/unistr/u16-endswith.c: New file.
64987         * lib/unistr/u32-endswith.c: New file.
64988         * lib/unistr/u-endswith.h: New file.
64989
64990         * modules/unistr/u8-mblen: New file.
64991         * modules/unistr/u16-mblen: New file.
64992         * modules/unistr/u32-mblen: New file.
64993         * lib/unistr/u8-mblen.c: New file.
64994         * lib/unistr/u16-mblen.c: New file.
64995         * lib/unistr/u32-mblen.c: New file.
64996
64997         * modules/unistr/u8-mbtouc: New file.
64998         * modules/unistr/u16-mbtouc: New file.
64999         * modules/unistr/u32-mbtouc: New file.
65000         * lib/unistr/u8-mbtouc.c: New file.
65001         * lib/unistr/u16-mbtouc.c: New file.
65002         * lib/unistr/u32-mbtouc.c: New file.
65003
65004         * modules/unistr/u8-mbtouc-safe: New file.
65005         * modules/unistr/u16-mbtouc-safe: New file.
65006         * modules/unistr/u32-mbtouc-safe: New file.
65007         * lib/unistr/u8-mbtouc-safe.c: New file.
65008         * lib/unistr/u16-mbtouc-safe.c: New file.
65009         * lib/unistr/u32-mbtouc-safe.c: New file.
65010
65011         * modules/unistr/u8-move: New file.
65012         * modules/unistr/u16-move: New file.
65013         * modules/unistr/u32-move: New file.
65014         * lib/unistr/u8-move.c: New file.
65015         * lib/unistr/u16-move.c: New file.
65016         * lib/unistr/u32-move.c: New file.
65017         * lib/unistr/u-move.h: New file.
65018
65019         * modules/unistr/u8-next: New file.
65020         * modules/unistr/u16-next: New file.
65021         * modules/unistr/u32-next: New file.
65022         * lib/unistr/u8-next.c: New file.
65023         * lib/unistr/u16-next.c: New file.
65024         * lib/unistr/u32-next.c: New file.
65025
65026         * modules/unistr/u8-prev: New file.
65027         * modules/unistr/u16-prev: New file.
65028         * modules/unistr/u32-prev: New file.
65029         * lib/unistr/u8-prev.c: New file.
65030         * lib/unistr/u16-prev.c: New file.
65031         * lib/unistr/u32-prev.c: New file.
65032
65033         * modules/unistr/u8-set: New file.
65034         * modules/unistr/u16-set: New file.
65035         * modules/unistr/u32-set: New file.
65036         * lib/unistr/u8-set.c: New file.
65037         * lib/unistr/u16-set.c: New file.
65038         * lib/unistr/u32-set.c: New file.
65039         * lib/unistr/u-set.h: New file.
65040
65041         * modules/unistr/u8-startswith: New file.
65042         * modules/unistr/u16-startswith: New file.
65043         * modules/unistr/u32-startswith: New file.
65044         * lib/unistr/u8-startswith.c: New file.
65045         * lib/unistr/u16-startswith.c: New file.
65046         * lib/unistr/u32-startswith.c: New file.
65047         * lib/unistr/u-startswith.h: New file.
65048
65049         * modules/unistr/u8-stpcpy: New file.
65050         * modules/unistr/u16-stpcpy: New file.
65051         * modules/unistr/u32-stpcpy: New file.
65052         * lib/unistr/u8-stpcpy.c: New file.
65053         * lib/unistr/u16-stpcpy.c: New file.
65054         * lib/unistr/u32-stpcpy.c: New file.
65055         * lib/unistr/u-stpcpy.h: New file.
65056
65057         * modules/unistr/u8-stpncpy: New file.
65058         * modules/unistr/u16-stpncpy: New file.
65059         * modules/unistr/u32-stpncpy: New file.
65060         * lib/unistr/u8-stpncpy.c: New file.
65061         * lib/unistr/u16-stpncpy.c: New file.
65062         * lib/unistr/u32-stpncpy.c: New file.
65063         * lib/unistr/u-stpncpy.h: New file.
65064
65065         * modules/unistr/u8-strcat: New file.
65066         * modules/unistr/u16-strcat: New file.
65067         * modules/unistr/u32-strcat: New file.
65068         * lib/unistr/u8-strcat.c: New file.
65069         * lib/unistr/u16-strcat.c: New file.
65070         * lib/unistr/u32-strcat.c: New file.
65071         * lib/unistr/u-strcat.h: New file.
65072
65073         * modules/unistr/u8-strchr: New file.
65074         * modules/unistr/u16-strchr: New file.
65075         * modules/unistr/u32-strchr: New file.
65076         * lib/unistr/u8-strchr.c: New file.
65077         * lib/unistr/u16-strchr.c: New file.
65078         * lib/unistr/u32-strchr.c: New file.
65079
65080         * modules/unistr/u8-strcmp: New file.
65081         * modules/unistr/u16-strcmp: New file.
65082         * modules/unistr/u32-strcmp: New file.
65083         * lib/unistr/u8-strcmp.c: New file.
65084         * lib/unistr/u16-strcmp.c: New file.
65085         * lib/unistr/u32-strcmp.c: New file.
65086
65087         * modules/unistr/u8-strcpy: New file.
65088         * modules/unistr/u16-strcpy: New file.
65089         * modules/unistr/u32-strcpy: New file.
65090         * lib/unistr/u8-strcpy.c: New file.
65091         * lib/unistr/u16-strcpy.c: New file.
65092         * lib/unistr/u32-strcpy.c: New file.
65093         * lib/unistr/u-strcpy.h: New file.
65094
65095         * modules/unistr/u8-strcspn: New file.
65096         * modules/unistr/u16-strcspn: New file.
65097         * modules/unistr/u32-strcspn: New file.
65098         * lib/unistr/u8-strcspn.c: New file.
65099         * lib/unistr/u16-strcspn.c: New file.
65100         * lib/unistr/u32-strcspn.c: New file.
65101         * lib/unistr/u-strcspn.h: New file.
65102
65103         * modules/unistr/u8-strdup: New file.
65104         * modules/unistr/u16-strdup: New file.
65105         * modules/unistr/u32-strdup: New file.
65106         * lib/unistr/u8-strdup.c: New file.
65107         * lib/unistr/u16-strdup.c: New file.
65108         * lib/unistr/u32-strdup.c: New file.
65109         * lib/unistr/u-strdup.h: New file.
65110
65111         * modules/unistr/u8-strlen: New file.
65112         * modules/unistr/u16-strlen: New file.
65113         * modules/unistr/u32-strlen: New file.
65114         * lib/unistr/u8-strlen.c: New file.
65115         * lib/unistr/u16-strlen.c: New file.
65116         * lib/unistr/u32-strlen.c: New file.
65117         * lib/unistr/u-strlen.h: New file.
65118
65119         * modules/unistr/u8-strmblen: New file.
65120         * modules/unistr/u16-strmblen: New file.
65121         * modules/unistr/u32-strmblen: New file.
65122         * lib/unistr/u8-strmblen.c: New file.
65123         * lib/unistr/u16-strmblen.c: New file.
65124         * lib/unistr/u32-strmblen.c: New file.
65125
65126         * modules/unistr/u8-strmbtouc: New file.
65127         * modules/unistr/u16-strmbtouc: New file.
65128         * modules/unistr/u32-strmbtouc: New file.
65129         * lib/unistr/u8-strmbtouc.c: New file.
65130         * lib/unistr/u16-strmbtouc.c: New file.
65131         * lib/unistr/u32-strmbtouc.c: New file.
65132
65133         * modules/unistr/u8-strncat: New file.
65134         * modules/unistr/u16-strncat: New file.
65135         * modules/unistr/u32-strncat: New file.
65136         * lib/unistr/u8-strncat.c: New file.
65137         * lib/unistr/u16-strncat.c: New file.
65138         * lib/unistr/u32-strncat.c: New file.
65139         * lib/unistr/u-strncat.h: New file.
65140
65141         * modules/unistr/u8-strncmp: New file.
65142         * modules/unistr/u16-strncmp: New file.
65143         * modules/unistr/u32-strncmp: New file.
65144         * lib/unistr/u8-strncmp.c: New file.
65145         * lib/unistr/u16-strncmp.c: New file.
65146         * lib/unistr/u32-strncmp.c: New file.
65147
65148         * modules/unistr/u8-strncpy: New file.
65149         * modules/unistr/u16-strncpy: New file.
65150         * modules/unistr/u32-strncpy: New file.
65151         * lib/unistr/u8-strncpy.c: New file.
65152         * lib/unistr/u16-strncpy.c: New file.
65153         * lib/unistr/u32-strncpy.c: New file.
65154         * lib/unistr/u-strncpy.h: New file.
65155
65156         * modules/unistr/u8-strnlen: New file.
65157         * modules/unistr/u16-strnlen: New file.
65158         * modules/unistr/u32-strnlen: New file.
65159         * lib/unistr/u8-strnlen.c: New file.
65160         * lib/unistr/u16-strnlen.c: New file.
65161         * lib/unistr/u32-strnlen.c: New file.
65162         * lib/unistr/u-strnlen.h: New file.
65163
65164         * modules/unistr/u8-strpbrk: New file.
65165         * modules/unistr/u16-strpbrk: New file.
65166         * modules/unistr/u32-strpbrk: New file.
65167         * lib/unistr/u8-strpbrk.c: New file.
65168         * lib/unistr/u16-strpbrk.c: New file.
65169         * lib/unistr/u32-strpbrk.c: New file.
65170         * lib/unistr/u-strpbrk.h: New file.
65171
65172         * modules/unistr/u8-strrchr: New file.
65173         * modules/unistr/u16-strrchr: New file.
65174         * modules/unistr/u32-strrchr: New file.
65175         * lib/unistr/u8-strrchr.c: New file.
65176         * lib/unistr/u16-strrchr.c: New file.
65177         * lib/unistr/u32-strrchr.c: New file.
65178
65179         * modules/unistr/u8-strspn: New file.
65180         * modules/unistr/u16-strspn: New file.
65181         * modules/unistr/u32-strspn: New file.
65182         * lib/unistr/u8-strspn.c: New file.
65183         * lib/unistr/u16-strspn.c: New file.
65184         * lib/unistr/u32-strspn.c: New file.
65185         * lib/unistr/u-strspn.h: New file.
65186
65187         * modules/unistr/u8-strstr: New file.
65188         * modules/unistr/u16-strstr: New file.
65189         * modules/unistr/u32-strstr: New file.
65190         * lib/unistr/u8-strstr.c: New file.
65191         * lib/unistr/u16-strstr.c: New file.
65192         * lib/unistr/u32-strstr.c: New file.
65193         * lib/unistr/u-strstr.h: New file.
65194
65195         * modules/unistr/u8-strtok: New file.
65196         * modules/unistr/u16-strtok: New file.
65197         * modules/unistr/u32-strtok: New file.
65198         * lib/unistr/u8-strtok.c: New file.
65199         * lib/unistr/u16-strtok.c: New file.
65200         * lib/unistr/u32-strtok.c: New file.
65201         * lib/unistr/u-strtok.h: New file.
65202
65203         * modules/unistr/u8-uctomb: New file.
65204         * modules/unistr/u16-uctomb: New file.
65205         * modules/unistr/u32-uctomb: New file.
65206         * lib/unistr/u8-uctomb.c: New file.
65207         * lib/unistr/u16-uctomb.c: New file.
65208         * lib/unistr/u32-uctomb.c: New file.
65209
65210         * MODULES.html.sh (Unicode string functions): Add the new modules.
65211
65212 2007-01-08  Bruno Haible  <bruno@clisp.org>
65213
65214         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65215         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65216         subdirectories.
65217
65218 2007-01-08  Karl Berry  <karl@gnu.org>
65219
65220         * doc/error.texi: mention that main() fns must set program_name
65221         when progname is used.
65222
65223 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65226         WCTYPE_H is empty, for the benefit of builds from non-distclean
65227         directories.  Problem reported by Eric Blake in
65228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65229
65230 2007-01-08  Bruno Haible  <bruno@clisp.org>
65231
65232         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65233         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65234         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65235         PROVIDE_CANONICALIZE_FILENAME_MODE.
65236         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65237
65238 2007-01-08  Bruno Haible  <bruno@clisp.org>
65239
65240         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65241         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65242         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65243         * lib/fts.c: Likewise.
65244         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65245
65246 2006-12-25  Bruno Haible  <bruno@clisp.org>
65247
65248         * modules/utf8-ucs4-safe: New file.
65249         * lib/utf8-ucs4-safe.h: New file.
65250         * lib/unistr/utf8-ucs4-safe.c: New file.
65251
65252         * modules/utf16-ucs4-safe: New file.
65253         * lib/utf16-ucs4-safe.h: New file.
65254         * lib/unistr/utf16-ucs4-safe.c: New file.
65255
65256         * MODULES.html.sh (Unicode string functions): Add the new modules.
65257
65258 2007-01-08  Bruno Haible  <bruno@clisp.org>
65259
65260         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65261         (Depends-on): Add unitypes.
65262         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65263         (u8_mbtouc_aux): Move out to separate file.
65264         (u8_mbtouc): Use ucs4_t, uint8_t types.
65265         * lib/unistr/utf8-ucs4.c: New file.
65266
65267         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65268         (Depends-on): Add unitypes.
65269         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65270         (u16_mbtouc_aux): Move out to separate file.
65271         (u16_mbtouc): Use ucs4_t, uint16_t types.
65272         * lib/unistr/utf16-ucs4.c: New file.
65273
65274         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65275         (Depends-on): Add unitypes.
65276         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65277         (u8_uctomb_aux): Move out to separate file.
65278         (u8_uctomb): Use ucs4_t, uint8_t types.
65279         * lib/unistr/ucs4-utf8.c: New file.
65280
65281         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65282         (Depends-on): Add unitypes.
65283         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65284         (u16_uctomb_aux): Move out to separate file.
65285         (u16_uctomb): Use ucs4_t, uint16_t types.
65286         * lib/unistr/ucs4-utf16.c: New file.
65287
65288 2006-12-25  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/unitypes: New file.
65291         * lib/unitypes.h: New file.
65292         * MODULES.html.sh (func_all_modules): New section "Unicode string
65293         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65294         this section. Add unitypes.
65295
65296 2007-01-08  Bruno Haible  <bruno@clisp.org>
65297
65298         Avoid variable names that conflict with those from libtool.
65299         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65300         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65301         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65302         library_names_spec to acl_library_names_spec, hardcode_* to
65303         acl_hardcode_*.
65304         Reported by Ralf Wildenhues.
65305
65306 2007-01-08  Bruno Haible  <bruno@clisp.org>
65307
65308         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65309         definition.
65310         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65311         definition.
65312         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65313         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65314         definition.
65315         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65316         definition.
65317         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65318         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65319         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65320         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65321         definition.
65322         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65323         definition.
65324         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65325         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65326         GC_USE_<algorithm>.
65327         * lib/gc-libgcrypt.c: Likewise.
65328         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65329         * modules/gc-arctwo (configure.ac): Likewise.
65330         * modules/gc-des (configure.ac): Likewise.
65331         * modules/gc-hmac-md5 (configure.ac): Likewise.
65332         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65333         * modules/gc-md2 (configure.ac): Likewise.
65334         * modules/gc-md4 (configure.ac): Likewise.
65335         * modules/gc-md5 (configure.ac): Likewise.
65336         * modules/gc-random (configure.ac): Likewise.
65337         * modules/gc-rijndael (configure.ac): Likewise.
65338         * modules/gc-sha1 (configure.ac): Likewise.
65339
65340 2007-01-08  Bruno Haible  <bruno@clisp.org>
65341
65342         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65343         macro definition.
65344         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65345         definition.
65346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65347         definition.
65348         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65349         * modules/fcntl-safer (configure.ac): Likewise.
65350         * modules/fopen-safer (configure.ac): Likewise.
65351         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65352         GNULIB_FWRITEERROR macro definition.
65353
65354 2007-01-08  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/gnulib-common.m4: New file.
65357         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65358         (func_get_filelist): Add m4/gnulib-common.m4.
65359
65360 2007-01-08  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65363         command.
65364
65365 2007-01-08  Jim Meyering  <jim@meyering.net>
65366
65367         Use a more robust test for a "can't happen" condition.
65368         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65369         narrowed the st_size value.  Presuming the "can't happen" condition
65370         is true, that narrowing could conceivably convert an invalid st_size
65371         value into a valid one.  Instead, use a change based on Matthew
65372         Woehlke's original patch.
65373
65374         Slight readability improvement: use an assert-like macro
65375         in place of literal "abort ()" uses.
65376         * lib/fts.c (fts_assert): Define.
65377         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65378         Use this macro instead of a bare 'abort'.
65379
65380 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65383         simply work around them.
65384         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65385         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65386         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65387         declaring.
65388         Don't bother to define as macros, since the standard doesn't require it.
65389         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65390         longer worry about IRIX 5.3.
65391         (HAVE_WCTYPE_CTMP_BUG): Remove.
65392
65393 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65396         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65397         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65398         Problems reported by Georg Schwarz for IRIX 5.3.
65399
65400         * gnulib-tool (autoconf_minversion): Take the maximum version number
65401         found, not the minimum.  Problem reported by James Youngman.
65402
65403 2007-01-03  Karl Berry  <karl@gnu.org>
65404
65405         * doc/error.texi: new file, explaining interaction with progname.
65406         * doc/gnulib.texi: include it.  Update copyright.
65407
65408 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65409
65410         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65411         AC_CANONICAL_HOST, to improve autobuild outputs.
65412
65413 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65414             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65415
65416         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65417         sockets, server sockets, and other file descriptors.  Count errors
65418         to compute the return value.  Reorder the code a bit to be easier
65419         to follow.  Don't set event bits that were not requested (except
65420         POLLERR and POLLHUP).
65421
65422 2007-01-01  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65425
65426 2007-01-03  Jim Meyering  <jim@meyering.net>
65427
65428         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65429
65430 2007-01-02  Bruno Haible  <bruno@clisp.org>
65431
65432         * modules/settime (Include): Require timespec.h.
65433         * modules/nanosleep (Include): Likewise.
65434
65435 2007-01-01  Bruno Haible  <bruno@clisp.org>
65436
65437         * gnulib-tool (func_emit_copyright_notice): Bump year.
65438         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65439
65440 2007-01-01  Bruno Haible  <bruno@clisp.org>
65441
65442         Improve support for OpenBSD.
65443         * build-aux/config.rpath (libname_spec): Export.
65444         (library_names_spec): New variable. Export.
65445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65446         library_names_spec from the config.rpath output. Locate shared library
65447         through the name pattern in library_names_spec.
65448
65449 2007-01-01  Eric Blake  <ebb9@byu.net>
65450
65451         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65452
65453 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65456         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65457         assume the C locale, and avoid an "eval" that could cause trouble.
65458         Problem with SORT reported by Bob Proulx.
65459
65460         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65461         Define.  Trivial patch from Henning Nielsen Lund, originally
65462         sent to bug-grep@gnu.org today.
65463
65464 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65467         struct stat.  Problem reported by Henning Nielsen Lund.
65468         * lib/acl.c: Include acl.h first, to check interface.  Don't
65469         bother to include sys/types.h and sys/stat.h again.
65470
65471 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65472
65473         Import the following change from libc; problem reported by
65474         Sven Verdoolaege.
65475
65476         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65477
65478         [BZ #1373]
65479         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65480
65481 2006-12-28  Jim Meyering  <jim@meyering.net>
65482
65483         * build-aux/announce-gen: Do not assume that the package
65484         builds any of tar.gz, tar.bz2, and .xdelta files.
65485         Suggestion from Simon Josefsson.
65486
65487 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65488
65489         * modules/announce-gen: New file.
65490
65491 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65492
65493         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65494         handles its gotchas now.
65495         * lib/mbswidth.c: Likewise.
65496         * lib/wcwidth.h: Likewise.
65497         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65498         and iswcntrl; the wctype module does this stuff now.
65499         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65501         * modules/mbchar (Depends-on): Add wctype.
65502         * modules/mbswidth (Depends-on): Likewise.
65503         * modules/wcwidth (Depends-on): Likewise.
65504
65505 2006-12-27  Eric Blake  <ebb9@byu.net>
65506
65507         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65508         module uses more than what <wctype.h> is required to provide.
65509
65510 2006-12-26  Eric Blake  <ebb9@byu.net>
65511
65512         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65513
65514 2006-12-26  Eric Blake  <ebb9@byu.net>
65515
65516         * modules/absolute-header: New module.
65517         * modules/fcntl (Depends-on): Depend on it.
65518         * modules/inttypes (Depends-on): Likewise.
65519         * modules/stdint (Depends-on): Likewise.
65520         * modules/sys_stat (Depends-on): Likewise.
65521         * modules/wctype (Depends-on): Likewise.
65522         * MODULES.html.sh (Support for building libraries and
65523         executables): Document it.
65524
65525 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65526
65527         * gnulib-tool (SED): Remove, undoing previous change.
65528         The problem was that it broke coreutils on Solaris, because
65529         "sed --posix" leaked into a makefile.
65530         (sed): New alias, if 'alias' and GNU sed.
65531
65532 2006-12-24  Jim Meyering  <jim@meyering.net>
65533
65534         Work around an fchownat bug in glibc-2.4:
65535         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65536         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65537         in spite of the -P option.
65538         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65539         New macros.
65540         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65541         * modules/openat (Files): Add lib/fchownat.c.
65542         * lib/openat.c (fchownat): Don't define here.  Move to...
65543         * lib/fchownat.c: ...this new file.
65544
65545 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         Fix bug reported by Bruno Haible in
65548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65549         where quotearg.c didn't compile on Mac OS X 10.2 because it
65550         lacks <wchar.h> and wint_t.
65551         * lib/wctype_.h (__wctype_wint_t): New type.
65552         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65553         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65554         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65555         Arg is now of type __wctype_wint_t, not wint_t.
65556         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65557         substitute HAVE_WINT_T.
65558         * modules/wctype (Files): Add m4/wint_t.m4.
65559         (wctype.h): Substitute HAVE_WINT_T.
65560
65561 2006-12-23  Bruno Haible  <bruno@clisp.org>
65562
65563         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65564
65565 2006-12-23  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65568         S_ISLNK.
65569         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65570         mingw.
65571
65572 2006-12-22  Bruno Haible  <bruno@clisp.org>
65573
65574         * lib/copy-file.c: Include acl.h.
65575         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65576         Close the file descriptors only after being done with copy_acl.
65577         * modules/copy-file (Depends-on): Add acl.
65578
65579 2006-12-22  Bruno Haible  <bruno@clisp.org>
65580
65581         * gnulib-tool (SED): New variable.
65582         Use $SED instead of sed everywhere.
65583
65584 2006-12-22  Bruno Haible  <bruno@clisp.org>
65585
65586         * modules/no-c++: New file.
65587         * m4/no-c++.m4: New file.
65588         * MODULES.html.sh (Support for building libraries and executables):
65589         Add no-c++.
65590
65591 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65594         Include <limits.h>, and use its INT_MAX to rewrite the
65595         j loop so that it does not overflow 'int'.  Problem reported by
65596         Ralf Wildenhues in
65597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65598         Play it safe by shifting left by 1 rather than multiplying by 2,
65599         as GCC is less likely to optimize this away when the value
65600         is signed (when it assumes overflow leads to undefined behavior).
65601         Also, don't assume time_t uses two's complement.
65602
65603 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * MODULES.html.sh: New module wctype.
65606         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65607         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65608         <wctype.h>, since the new wctype module should fix this.
65609         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65610         the wctype module should arrange for it.
65611         * lib/regex_internal.h: Likewise.
65612         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65613         since the wctype module should handle this now.
65614         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65615         * modules/fnmatch (Depends-on): Add wctype.
65616         * modules/quotearg (Depends-on): Likewise.
65617         * modules/regex (Depends-on): Likewise.
65618
65619 2006-12-19  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65622         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65623
65624 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65625
65626         * modules/savewd (Depends-on): Fix dependency on fcntl.
65627
65628 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65631         conforms to C99, rather than relying on the user's environment
65632         setting of STDINT_H.
65633
65634 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65635         and Eric Blake  <ebb9@byu.net>
65636
65637         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65638         This is more consistent with the other defines here.
65639         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65640         Port to z/OS.  Problem reported by Paul Gilmartin.
65641         Change local vars to use gl_ prefix rather than ac_.
65642         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65643         with other defines.
65644         * modules/double-slash-root: New module.
65645         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65646         (Depends-on): Add double-slash-root.
65647         * MODULES.html.sh (File system functions): Mention new module.
65648
65649 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65652         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65653         This is for the benefit of gzip, which doesn't do i18n.
65654
65655 2006-12-12  Jim Meyering  <jim@meyering.net>
65656
65657         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65658         Reported by Andreas Schwab <schwab@suse.de>.
65659
65660 2006-12-12  Bruno Haible  <bruno@clisp.org>
65661
65662         Merge these changes.
65663         2006-09-05  Bruno Haible  <bruno@clisp.org>
65664         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65665         iconv_alloc succeeded.
65666         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65667         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65668         test for " && dest " at the end - dest is always != NULL there. Call
65669         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65670         with 2xNULL arguments, also to flush the state storage. Handle the
65671         IRIX iconv behaviour. Realloc the final result, to throw away unused
65672         memory.
65673
65674 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65677         and fchmodat unconditionally, since glibc 2.4 has them.
65678         Problem reported by Arkadiusz Miskiewicz.
65679
65680 2006-12-10  Bruno Haible  <bruno@clisp.org>
65681
65682         * gnulib-tool (func_import): Show the include files only for those
65683         modules that are copied and specified.
65684         Reported by Karl Berry.
65685
65686 2006-12-08  Jim Meyering  <jim@meyering.net>
65687
65688         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65689         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65690
65691         * build-aux/announce-gen: Add two new options, both optional:
65692         --bootstrap-tools=TOOL_LIST
65693               a comma-separated list of tools, e.g.,
65694               autoconf,automake,bison,gnulib
65695         --gnulib-snapshot-date=DATE
65696               if gnulib is in the bootstrap tool list,
65697               then report this as the snapshot date.
65698               If not specified, use the current date/time.
65699               If you specify a date here, be sure it's UTC.
65700
65701 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65702
65703         * tests/test-argp-2.sh: Fix test to match actual output.
65704         (func_compare): Fix sed script to be portable.
65705
65706 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65709         workaround for this case.  It is not autoconfigured now; offhand
65710         it's hard to see how to autoconfigure it.
65711
65712 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65715         a directory that is about to be chowned.  Such a directory's
65716         initial file permissions should permit the owner only and this
65717         should not be changed until after the chown, since the group and
65718         other bits would be incorrect if they granted permission before
65719         the chown.
65720
65721         Fix porting problem for iswctype reported by Georg Schwarz in:
65722         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65723         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65724         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65726         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65727
65728 2006-12-03  Jim Meyering  <jim@meyering.net>
65729
65730         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65731         p->fts_statp may not yet be defined.
65732         (fts_read): Instead, set it in the caller, once p->fts_statp is
65733         sure to be defined, and corresponds to a top-level directory.
65734         This bug made du -x fail.  Here's the coreutils test case:
65735         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65736         Reported by Mike Frysinger.
65737
65738 2006-12-01  Jim Meyering  <jim@meyering.net>
65739
65740         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65741         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65742         Reported by Simon Josefsson.
65743
65744 2006-11-30  Jim Meyering  <jim@meyering.net>
65745
65746         * m4/warning.m4: Use the all-permissive copyright notice
65747         recommended by RMS (rather than LGPL).
65748         * m4/vararrays.m4: Likewise.
65749         * m4/flexmember.m4: Likewise.
65750
65751 2006-11-29  Bruno Haible  <bruno@clisp.org>
65752
65753         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65754         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65755         using +=.
65756         Reported by Simon Josefsson <simon@josefsson.org>.
65757
65758 2006-11-28  James Youngman <jay@gnu.org>
65759
65760         * README: Advise users that they might find the bug-gnulib@gnu.org
65761         and autotools-announce@gnu.org mailing lists useful.
65762
65763 2006-11-28  Bruno Haible  <bruno@clisp.org>
65764
65765         * m4/ptrdiff_max.m4: Remove file.
65766
65767 2006-11-21  Bruno Haible  <bruno@clisp.org>
65768
65769         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65770         _AC_COMPUTE_INT.
65771         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65772         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65773         _AC_COMPUTE_INT.
65774         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65775         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65776         _AC_COMPUTE_INT.
65777         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65778
65779 2006-11-28  Jim Meyering  <jim@meyering.net>
65780
65781         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65782         warning from "gcc -Wshadow" about shadowing the builtin.
65783
65784 2006-11-27  Bruno Haible  <bruno@clisp.org>
65785
65786         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65787         _AC_COMPUTE_INT.
65788         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65789
65790 2006-11-27  Bruno Haible  <bruno@clisp.org>
65791             Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65794
65795 2006-11-26  Bruno Haible  <bruno@clisp.org>
65796
65797         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65798         noinst_LTLIBRARIES.
65799
65800 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65801             Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65804         if compiling with "gcc -ansi".
65805
65806 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         Fix some incompatibilities with gcc -ansi -pedantic.
65809         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65810         if compiling pedantically with GCC, unless it's C99 or later.
65811         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65812         it mishandles gcc -ansi -pedantic as well.
65813         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65814         if gcc -pedantic.
65815         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65816         initializers for struct if -pedantic, unless it's C99 or later.
65817
65818 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65819
65820         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65821         Don't close an fd more than once. Identical atimes indicate
65822         success, not failure.
65823
65824 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65825
65826         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65827
65828 2006-11-23  Jim Meyering  <jim@meyering.net>
65829
65830         * build-aux/announce-gen: New file.  From coreutils.
65831
65832 2006-11-22  Jim Meyering  <jim@meyering.net>
65833
65834         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65835         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65836         (fts_read): Use a temporary to narrow the overused st_size member
65837         before using it in a switch statement.  Reported by Matthew Woehlke.
65838
65839         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65840         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65841
65842 2006-11-20  Bruno Haible  <bruno@clisp.org>
65843
65844         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65845         changequote instead of pairs of brackets.
65846         Reported by Andreas Schwab <schwab@suse.de>.
65847
65848 2006-11-21  Jim Meyering  <jim@meyering.net>
65849
65850         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65851         so as to remain compatible with older compilers.
65852         Patch from Michael Deutschmann.
65853
65854 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65855
65856         * MODULES.html.sh (File system functions): Add openat.
65857
65858         * lib/openat.h (rpl_fstatat): New macro, if
65859         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65860         (fstatat): Define to rpl_fstatat under the same conditions,
65861         unless COMPILING_FSTATAT.
65862         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65863         seems to have the bug.
65864         * lib/fstatat.c: New file.
65865         * modules/openat (Files): Add it.
65866
65867 2006-11-20  Bruno Haible  <bruno@clisp.org>
65868
65869         * Makefile: New file.
65870
65871 2006-11-20  Jim Meyering  <jim@meyering.net>
65872
65873         The beginnings of syntax-related checks for gnulib.
65874         * lib/Makefile: New file.
65875         * lib/t-idcache: New script.  Ensure that the two halves of
65876         idcache.c stay in sync.
65877
65878         * lib/idcache.c: Adjust comments in user- and group- portions to
65879         be more accurate, and to be consistent with one another.
65880
65881 2006-11-20  Jim Meyering  <jim@meyering.net>
65882
65883         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65884         continue using the flexible array member (thus, this module performs
65885         half as many malloc calls), with the addition that...
65886         (getgroup, getuser): Consistently record a non-match via an empty
65887         "name" string, and map an empty string match to a NULL return value.
65888         * modules/idcache (Depends-on): Re-add flexmember.
65889
65890         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65891         (getuidbyname, getgroup, getgidbyname): Likewise.
65892
65893         Use cleaner syntax: NULL rather than 0.
65894         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65895
65896 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65899         It mishandled the case where the group was missing.
65900         Problem reported by Greg Schafer.
65901         * modules/idcache: Likewise.
65902
65903 2006-11-18  Jim Meyering  <jim@meyering.net>
65904
65905         * check-module (%exempt_header): Add exception for some
65906         conditionally-included headers.
65907
65908         * modules/i-ring (Depends-on): Add verify.
65909         (License): Change to LGPL.
65910
65911 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65914         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65915         and inttostr.h.  Use snprintf rather than uinttostr, so that
65916         LGPLed code doesn't depend on GPLed.
65917
65918 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         * modules/inline (License): Change from GPL to LGPL.
65921
65922 2006-11-17  Jim Meyering  <jim@meyering.net>
65923
65924         * modules/d-type (License): Switch to LGPL.
65925
65926 2006-11-15  Bruno Haible  <bruno@clisp.org>
65927
65928         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65929
65930 2006-11-15  Eric Blake  <ebb9@byu.net>
65931
65932         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65933         the module dependency.
65934
65935 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65936             Bruno Haible  <bruno@clisp.org>
65937
65938         * gnulib-tool (func_create_testdir): Add license consistency check.
65939
65940 2006-11-15  Eric Blake  <ebb9@byu.net>
65941
65942         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65943         random "(cached)" in configure output.
65944
65945 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65946
65947         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65948         test for conforming inttypes.h is both announced and cached.
65949
65950         * MODULES.html.sh (seen_modules, seen_files): New variables.
65951         (func_module): Rewrite to use a few less gnulib-tool and sed
65952         invocations.  Avoid a couple of quadratic algorithms for ...
65953         (missed_modules, missed_files): ... these, with ...
65954         (func_append, func_tmpdir): ... these new functions, from
65955         gnulib-tool.  Analogously, install traps for cleanup.
65956
65957         * tests/test-gc.c (main): Remove unused variables.
65958         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65959
65960 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         * modules/inttostr (License): Change to LGPL.
65963
65964 2006-11-14  Eric Blake  <ebb9@byu.net>
65965
65966         * modules/tempname (License): Change to LGPL.
65967
65968 2006-11-14  Eric Blake  <ebb9@byu.net>
65969
65970         * doc/functions.texi (Function Portability): *printf functions on
65971         Cygwin now understand all POSIX size specifiers.
65972
65973 2006-11-14  Bruno Haible  <bruno@clisp.org>
65974
65975         * modules/c-ctype (License): Change to LGPL.
65976
65977 2006-11-12  Bruno Haible  <bruno@clisp.org>
65978
65979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65980         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65981         for GNOME libraries, for which the include files are installed in
65982         subdirectories of $prefix/include.
65983
65984 2006-11-12  Bruno Haible  <bruno@clisp.org>
65985
65986         * m4/lib-link.m4: Require at least autoconf-2.54.
65987         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65988         name to underscores for the --with option.
65989
65990 2006-11-13  Bruno Haible  <bruno@clisp.org>
65991
65992         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65993         the tests directory.
65994         Reported by Ralf Wildenhues.
65995
65996 2006-11-13  Bruno Haible  <bruno@clisp.org>
65997
65998         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65999         (func_emit_initmacro_end): Undo the override here.
66000         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66001         Works around the famous automake error in coreutils.
66002
66003 2006-11-13  Eric Blake  <ebb9@byu.net>
66004
66005         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66006         element, not its node.
66007
66008 2006-11-12  Bruno Haible  <bruno@clisp.org>
66009
66010         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66011         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66012
66013 2006-11-12  Bruno Haible  <bruno@clisp.org>
66014
66015         * gnulib-tool: New option --local-symlink.
66016         (func_usage): Document it.
66017         (lsymbolic): New variable.
66018         (func_import, func_create_testdir): If --symlink was not specified,
66019         test whether --local-symlink was specified and the file comes from
66020         the local_gnulib_dir.
66021
66022 2006-11-12  Bruno Haible  <bruno@clisp.org>
66023
66024         * gnulib-tool (func_ln): New function.
66025         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66026
66027 2006-11-12  Bruno Haible  <bruno@clisp.org>
66028
66029         Finish support for source files in subdirectories.
66030         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66031         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66032         AUTOMAKE_OPTIONS.
66033         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66034
66035 2006-11-12  Bruno Haible  <bruno@clisp.org>
66036
66037         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66038         EXTRA_lib_SOURCES augmentation.
66039         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66040
66041 2006-11-12  Jim Meyering  <jim@meyering.net>
66042
66043         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66044         file descriptors.  This also averts a failure on systems with
66045         native openat support when a traversed directory lacks "x" access.
66046         * lib/fts_.h: Include "i-ring.h"
66047         (struct FTS) [fts_fd_ring]: New member.
66048         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66049         (FCHDIR): Add parentheses.
66050         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66051         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66052         When descending, rather than simply closing the previous
66053         fts_cwd_fd value, push that file descriptor onto the ring.
66054         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66055         (fts_open): Initialize the new fd_ring member.
66056         (fts_close): Clear the ring.
66057         (fts_safe_changedir): When possible, use our new fd_ring to skip
66058         the diropen and fstat and dev/ino comparison that would normally
66059         accompany a virtual `chdir ("..")'.
66060
66061         * modules/fts (Depends-on): Add i-ring.
66062         * modules/i-ring: New module.
66063         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66064         * m4/i-ring.m4: New file.
66065
66066 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66067
66068         * gnulib-tool (func_create_testdir): Fix replacement of
66069         `build-aux' in configure.ac.  Run autotools in gltests
66070         subdirectory.
66071         (func_create_testdir, func_create_megatestdir, test): There is
66072         no need for '--force' in most autotool invocations in a new
66073         tree.  Actually fail the whole test if any of the tools, or the
66074         configure or make stages fail.
66075
66076         Sync from Automake.
66077         * build-aux/gnupload: Revert last change.  Add pointer to upload
66078         instructions of the GNU Maintenance Instructions.
66079         Suggestion by Karl Berry.
66080
66081 2006-11-10  Jim Meyering  <jim@meyering.net>
66082
66083         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66084
66085 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66086
66087         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66088         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66089         (bind_textdomain_codeset) [! ENABLE_NLS]:
66090         Evaluate all the arguments.  That way, callers get compatible behavior
66091         if the arguments have side effects.  Also, it avoids some GCC
66092         diagnostics in some cases; Joel E. Denny reported problems when Bison
66093         was configured with --enable-gcc-warnigs.
66094
66095 2006-11-10  Jim Meyering  <jim@meyering.net>
66096
66097         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66098         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66099         account.
66100
66101 2006-11-10  Jim Meyering  <jim@meyering.net>
66102
66103         * modules/inline: New file/module.
66104         * modules/xalloc (Files): Remove m4/inline.m4.
66105         (Depends-on): Add inline, instead.
66106         * modules/oset: Likewise.
66107         * modules/list: Likewise.
66108
66109 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66112         Problem reported by Matthew Woehlke.
66113
66114 2006-11-09  Bruno Haible  <bruno@clisp.org>
66115
66116         * lib/tempname.c (gen_tempname): Remove variant that invokes
66117         __gen_tempname.
66118         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66119         __gen_tempname.
66120
66121 2006-11-08  Bruno Haible  <bruno@clisp.org>
66122
66123         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66124         to 'yes' instead of 'cross-compiling'.
66125
66126 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * lib/quotearg.h (quotearg_free): New decl.
66129         * lib/quotearg.c (quotearg_free): New function.
66130         (slot0, nslots, slotvec0, slotvec):
66131         Now file-scope so that quotearg_free can get at them.
66132
66133 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66134
66135         Sync from Automake.
66136         * build-aux/gnupload: Add missing 'gnu' to example URL.
66137         Report by Karl Berry.
66138
66139 2006-11-08  Bruno Haible  <bruno@clisp.org>
66140
66141         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66142         Suggested by Paul Eggert.
66143
66144 2006-11-08  Jim Meyering  <jim@meyering.net>
66145
66146         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66147         It's already included if !_LIBC.
66148         (fts_safe_changedir): Add a comment.
66149
66150 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66153         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66154         Matthew Woehlke.
66155
66156         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66157         definitions up, to avoid colliding with change below.
66158         (static_inline) [HAVE_INLINE]: New macro.
66159         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66160         Provide extern decls when !HAVE_INLINE.  Do not define unless
66161         static_inline is defined, either by us or by xmalloc.c.  Use
66162         static_inline rather than static inline.
66163         (XCALLOC): Optimize sizeof(T) = 1 case.
66164         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66165
66166 2006-11-07  Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66169         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66170         AC_C_INLINE.
66171         * modules/xalloc (Files): Add m4/inline.m4.
66172
66173 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66174
66175         * README: Fix typo.
66176         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66177         (Miscellanous Notes): ...from this.
66178
66179 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66182         Mention that offsetof should be used instead of sizeof.
66183         From Bruno Haible.
66184
66185 2006-11-07  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66188
66189 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66192         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66193         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66194         (gl_tree_add_before, gl_tree_add_after):
66195         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66196         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66197         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66198         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66199         (gl_linked_add_after, gl_linked_add_at): Likewise.
66200         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66201         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66202         (gl_tree_add_before, gl_tree_add_after): Likewise.
66203         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66204         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66205         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66206
66207 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66208
66209         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66210
66211 2006-11-06  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/inline.m4: New file.
66214         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66215         * modules/list (Files): Add m4/inline.m4.
66216         * modules/oset (Files): Likewise.
66217
66218 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         * lib/idcache.c: Include <stddef.h>, for offsetof.
66221         (struct userid.name): Change from char * to a flexible array member.
66222         All uses changed.
66223         * modules/idcache (Depends-on): Add flexmember.
66224
66225         * MODULES.html.sh (Core language properties): New module flexmember.
66226         * modules/flexmember, m4/flexmember.m4: New files.
66227
66228         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66229         inline functions that are identical with the old xnmalloc_inline,
66230         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66231         that we can avoid some unnecessary integer multiplications and
66232         divisions in the common case where the element size is known at
66233         compile time.
66234         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66235         needed.
66236         (xnboundedmalloc): Remove.
66237         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66238         arguments, for consistency with rest of this header.
66239         (xcharalloc): Rewrite using XNMALLOC.
66240         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66241         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66242         versions have been moved to lib/xalloc.h and renamed to be the
66243         non-*_inline versions.
66244         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66245         and xnrealloc functions, since those functions are now inline and
66246         now call us.
66247         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66248         renaming described above.
66249         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66250         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66251         captures the dependency in AC_C_INLINE.
66252
66253         New module canonicalize-lgpl, proposed by Charles Wilson in
66254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66255         with a few small changes afterwards.
66256         * MODULES.html.sh (File system functions): New module
66257         canonicalize-lgpl.
66258         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66259         and canonicalize_file_name.
66260         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66261         * modules/canonicalize-lgpl: New files.
66262
66263 2006-11-05  Bruno Haible  <bruno@clisp.org>
66264
66265         * gnulib-tool (func_import, func_create_testdir): Create directories
66266         also for files in subdirectories of lib/.
66267
66268 2006-11-05  Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66271         ANSI C compliant.
66272
66273 2006-11-03  Bruno Haible  <bruno@clisp.org>
66274
66275         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66276         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66277         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66278         (xnboundedmalloc): New inline function.
66279         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66280         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66281         xmalloc.
66282         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66283         xmalloc.
66284         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66285         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66286         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66287         xmalloc.
66288         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66289         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66290         xmalloc.
66291         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66292         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66293         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66294         xmalloc.
66295         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66296         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66297         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66298         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66299         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66300         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66301         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66302
66303 2006-11-03  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/c-ctype.h [C++]: Define functions without name mangling.
66306         * lib/fwriteerror.h [C++]: Likewise.
66307         * lib/gcd.h [C++]: Likewise.
66308         * lib/linebreak.h [C++]: Likewise.
66309
66310 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66313         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66314         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66315         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66316         Check for functions and headers just once.
66317         Check for declaration of canonicalize_file_name.
66318         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66319
66320 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66321
66322         * gnulib-tool (func_import): Fix typo in actioncmd.
66323
66324 2006-11-02  Bruno Haible  <bruno@clisp.org>
66325
66326         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66327         newline sequence in the Makefile.am snippet as a space, like "make"
66328         does.
66329         Reported by Roger Persson <perrog@gmail.com>.
66330
66331 2006-11-01  Bruno Haible  <bruno@clisp.org>
66332
66333         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66334         already declared in <string.h>.
66335         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66336
66337 2006-11-01  Bruno Haible  <bruno@clisp.org>
66338
66339         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66340         * lib/strcase.h: Include <string.h>.
66341         (strcasecmp): Define to rpl_strcasecmp here.
66342
66343 2006-11-01  Bruno Haible  <bruno@clisp.org>
66344
66345         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66346
66347 2006-11-01  Eric Blake  <ebb9@byu.net>
66348
66349         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66350
66351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66352
66353 2006-10-29  Bruno Haible  <bruno@clisp.org>
66354
66355         Make it compile in C++ mode.
66356         * lib/full-write.c (full_rw): Add a cast.
66357
66358 2006-11-01  Bruno Haible  <bruno@clisp.org>
66359
66360         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66361         be POSIX compliant.
66362         Reported by Roger Persson <perrog@gmail.com>.
66363
66364 2006-11-01  Eric Blake  <ebb9@byu.net>
66365
66366         * lib/getopt_.h: Fix comments.
66367
66368 2006-10-31  Eric Blake  <ebb9@byu.net>
66369
66370         * modules/tmpdir (Depends-on): Add sys_stat.
66371         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66372         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66373         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66374         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66375         tempname.
66376
66377 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         Avoid some C++ diagnostics reported by Bruno Haible.
66380         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66381         xmalloc.
66382         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66383         (struct slotvec): Move to top level.
66384         (quotearg_n_options): Rewrite to avoid xmalloc.
66385         * lib/xalloc.h (xcharalloc): New function.
66386         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66387         [defined __cplusplus]: Add function template that provides result
66388         type propagation.  This part of the change is from Bruno Haible.
66389
66390 2006-10-29  Bruno Haible  <bruno@clisp.org>
66391
66392         Make it compile in C++ mode.
66393         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66394         * lib/strnlen1.c (strnlen1): Cast memchr result.
66395         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66396         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66397         (create_temp_dir): Rename local variable 'template'.
66398         (compile_csharp_using_sscli): Add cast.
66399         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66400         * lib/findprog.c (find_in_path): Likewise.
66401         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66402         * lib/wait-process.c (register_slave_subprocess): Likewise.
66403
66404 2006-10-22  Bruno Haible  <bruno@clisp.org>
66405
66406         * modules/tsearch: New file.
66407         * lib/tsearch.h: New file.
66408         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66409         * m4/tsearch.m4: New file.
66410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66411
66412 2006-10-29  Eric Blake  <ebb9@byu.net>
66413
66414         * lib/arcfour.c: Assume config.h.
66415         * lib/arctwo.c: Likewise.
66416         * lib/base64.c: Likewise.
66417         * lib/check-version.c: Likewise.
66418         * lib/crc.c: Likewise.
66419         * lib/des.c: Likewise.
66420         * lib/gc-gnulib.c: Likewise.
66421         * lib/gc-libgcrypt.c: Likewise.
66422         * lib/gc-pbkdf2-sha1.c: Likewise.
66423         * lib/getaddrinfo.c: Likewise.
66424         * lib/getdelim.c: Likewise.
66425         * lib/getline.c: Likewise.
66426         * lib/hmac-md5.c: Likewise.
66427         * lib/hmac-sha1.c: Likewise.
66428         * lib/iconvme.c: Likewise.
66429         * lib/md2.c: Likewise.
66430         * lib/md4.c: Likewise.
66431         * lib/memxor.c: Likewise.
66432         * lib/read-file.c: Likewise.
66433         * lib/readline.c: Likewise.
66434         * lib/rijndael-alg-fst.c: Likewise.
66435         * lib/rijndael-api-fst.c: Likewise.
66436         * lib/xgetdomainname.c: Likewise.
66437
66438 2006-10-28  Eric Blake  <ebb9@byu.net>
66439
66440         * lib/xstrndup.c: Assume config.h.
66441
66442 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66445         stat-macros.h is now for our own macros, whereas stat_h is for
66446         macros in the <sys/stat.h> name space.
66447         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66448         (STAT_MACROS_H): Remove.
66449         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66450         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66451         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66452         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66453         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66454         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66455         Move these macros to ...
66456         * lib/stat_.h: here.  Don't include stat-macros.h.
66457         * lib/canonicalize.c: Don't include stat-macros.h.
66458         * lib/chown.c: Likewise.
66459         * lib/euidaccess.c: Likewise.
66460         * lib/file-type.c: Likewise.
66461         * lib/filemode.c: Likewise.
66462         * lib/glob.c: Likewise.
66463         * lib/isapipe.c: Likewise.
66464         * lib/lchown.c: Likewise.
66465         * lib/lstat.c: Likewise.
66466         * lib/mkdir-p.c: Likewise.
66467         * lib/rmdir.c: Likewise.
66468         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66470         unless mkdir isn't declared, to speed up 'configure'.
66471         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66472         would define all the S_* symbols.
66473         * modules/canonicalize (Depends-on):
66474         Depend on sys_stat, not stat-macros.
66475         * modules/chown: Likewise.
66476         * modules/euidaccess: Likewise.
66477         * modules/filemode: Likewise.
66478         * modules/file-type: Likewise.
66479         * modules/glob: Likewise.
66480         * modules/isapipe: Likewise.
66481         * modules/lchown: Likewise.
66482         * modules/lstat: Likewise.
66483         * modules/mkancesdirs: Likewise.
66484         * modules/rmdir: Likewise.
66485         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66486         * modules/modechange: Likewise.
66487         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66488         (configure.ac): Remove gl_STAT_MACROS.
66489         * modules/sys_stat (Depends-on): Remove stat-macros.
66490
66491 2006-10-27  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/signed.m4: Remove file.
66494         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66495         invocation.
66496         * modules/vasnprintf (Files): Remove m4/signed.m4.
66497
66498 2006-10-27  Bruno Haible  <bruno@clisp.org>
66499
66500         Update to GNU gettext 0.16.
66501         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66502         m4/inttypes-h.m4, m4/signed.m4.
66503         * m4/gettext.m4: Update to GNU gettext 0.16.
66504         * m4/intl.m4: New file, from GNU gettext.
66505         * m4/intldir.m4: New file, from GNU gettext.
66506         * config/srclist.txt: Update
66507
66508 2006-10-27  Eric Blake  <ebb9@byu.net>
66509
66510         * MODULES.html.sh: Document tempname.
66511         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66512         dependencies.
66513         (Files): Move lib/tempname.c...
66514         * modules/tempname: ...to this new module.
66515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66516         (gl_PREREQ_TEMPNAME): Move...
66517         * m4/tempname.m4: ...to this new file.
66518         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66519         * modules/sys_stat (Depends-on): Add stat-macros.
66520         * lib/stat_.h (includes): Pick up stat macros.
66521         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66522         if stat macros are broken.
66523         * lib/tempname.c (includes): No need to include "stat-macros.h".
66524         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66525         (direxists, __path_search) [!_LIBC]: Don't compile these in
66526         gnulib; the tmpdir module covers that.
66527         * lib/tempname.h: New file.
66528
66529 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * COPYING: Explain how gnulib-tool converts licence headers.
66532         Almost all wording by Eric Blake.
66533
66534 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66535
66536         * lib/mbchar.h (is_basic_table): Make read-only.
66537         * lib/mbchar.c (is_basic_table): Likewise.
66538         Reported by John Darrington.
66539
66540 2006-10-25  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/progname.h (set_program_name): Undefine before defining.
66543
66544 2006-10-25  Bruno Haible  <bruno@clisp.org>
66545
66546         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66547         false for non-gcc C++ compilers.
66548         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66549
66550 2006-10-24  Bruno Haible  <bruno@clisp.org>
66551
66552         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66553         iconv implementations like Irix iconv.
66554
66555 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         * modules/vararrays: New file.
66558         * m4/vararrays.m4: New file, taken from diffutils.
66559         * MODULES.html.sh: New module vararrays.
66560
66561 2006-10-24  Karl Berry  <karl@gnu.org>
66562
66563         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66564         Don't call GNU Unix.
66565
66566 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66567
66568         * users.txt: Add Libtool.
66569
66570         Sync from Libtool:
66571
66572         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66575         to gnulib's policy of including config.h unconditionally.
66576
66577 2006-10-24  Bruno Haible  <bruno@clisp.org>
66578
66579         * modules/wcwidth (Files): Add m4/wint_t.m4.
66580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66581         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66582
66583 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66586         to pacify GCC with some -W flags enabled.  Problem reported by
66587         Bruno Haible.
66588
66589 2006-10-24  Jim Meyering  <jim@meyering.net>
66590
66591         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66592         Reported by Karl Berry.
66593
66594 2006-10-23  Bruno Haible  <bruno@clisp.org>
66595
66596         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66597
66598 2006-10-24  Bruno Haible  <bruno@clisp.org>
66599
66600         * lib/gl_list.h: Use C comment style, not C++ comment style.
66601
66602 2006-10-23  Eric Blake  <ebb9@byu.net>
66603
66604         * lib/getaddrinfo.c (includes): Add missing include.
66605
66606 2006-10-23  Bruno Haible  <bruno@clisp.org>
66607             Paul Eggert  <eggert@cs.ucla.edu>
66608
66609         Ability to rename obstack_free.
66610         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66611         obstack_free.
66612         (obstack_free): Invoke the __obstack_free macro.
66613         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66614
66615 2006-10-23  Bruno Haible  <bruno@clisp.org>
66616             Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66619         __argc, __argv from the declaration. (They are defined as macros on
66620         mingw.)
66621
66622 2006-10-22  Bruno Haible  <bruno@clisp.org>
66623
66624         * doc/gnulib-intro.texi: New file.
66625         * doc/gnulib.texi: Include it.
66626
66627 2006-10-21  Bruno Haible  <bruno@clisp.org>
66628
66629         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66630         "Introduction", "Miscellanous Notes", "Particular Modules".
66631
66632 2006-10-21  Bruno Haible  <bruno@clisp.org>
66633
66634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66635         Change mostlyclean-local rule to avoid sh syntax error from bash
66636         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66637
66638 2006-10-23  Jim Meyering  <jim@meyering.net>
66639
66640         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66641         in place of snprintf.
66642
66643         * modules/inttostr (Files): Add lib/uinttostr.c.
66644         * lib/uinttostr.c (inttostr): New file/function.
66645         * lib/inttostr.h (uinttostr): Declare.
66646         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66647         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66648         Add uinttostr.
66649         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66650
66651 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * lib/canonicalize.c (ELOOP): Define if not already defined.
66654         Problem reported by Bruno Haible in
66655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66656
66657 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66658
66659         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66660         Problem reported by Perry Smith and Ville Laurikari.
66661
66662         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66663         uses.
66664
66665 2006-10-19  Bruno Haible  <bruno@clisp.org>
66666
66667         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66668         for mingw.
66669
66670 2006-10-19  Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66673         Needed for mingw.
66674
66675 2006-10-19  Bruno Haible  <bruno@clisp.org>
66676
66677         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66678
66679 2006-10-19  Bruno Haible  <bruno@clisp.org>
66680
66681         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66682         it.
66683
66684 2006-10-19  Bruno Haible  <bruno@clisp.org>
66685
66686         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66687         invocation.
66688
66689 2006-10-19  Bruno Haible  <bruno@clisp.org>
66690
66691         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66692         mountlist by default.
66693
66694 2006-10-16  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/c-strstr.c: Include c-strstr.h.
66697
66698 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66699
66700         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66701         in a slash.
66702
66703 2006-10-18  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/lock.h [C++]: Wrap definitions in extern "C".
66706
66707 2006-10-18  Bruno Haible  <bruno@clisp.org>
66708
66709         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66710         gl_LIBOBJS list.
66711
66712 2006-10-18  Bruno Haible  <bruno@clisp.org>
66713
66714         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66715
66716 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66717
66718         * lib/xstrtol.h: Include gettext.h.
66719         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66720         Problem reported by Eric Blake.
66721         * modules/xstrtol (Depends-on): Add gettext-h.
66722
66723 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66724
66725         * lib/strftime.c (advance): New macro.
66726         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66727         incomplete type, so you can't add 0 to it.  Problem and patch
66728         reported by Eelco Dolstra for dietlibc.
66729
66730 2006-10-18  Jim Meyering  <jim@meyering.net>
66731
66732         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66733         type for a local, and rename it: s/up/user_proc/.
66734
66735 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66736
66737         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66738         READ_UTMP_USER_PROCESS.
66739         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66740
66741 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66744         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66745
66746 2006-10-17  Eric Blake  <ebb9@byu.net>
66747
66748         * lib/sigprocmask.c (sigprocmask): Fix typo.
66749
66750         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66751
66752         * modules/clean-temp (Makefile.am): Don't add to make output...
66753         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66754         config.h.
66755
66756 2006-10-17  Bruno Haible  <bruno@clisp.org>
66757
66758         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66759         differently if DEFAULT_TEXT_DOMAIN is set.
66760
66761 2006-10-16  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/clean-temp.c: Include fwriteerror.h.
66764
66765 2006-10-16  Bruno Haible  <bruno@clisp.org>
66766
66767         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66768
66769 2006-10-16  Bruno Haible  <bruno@clisp.org>
66770
66771         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66772         * lib/sigprocmask.h: Include <sys/types.h>.
66773         (sigset_t): Use the system's definition if present.
66774
66775 2006-10-17  Eric Blake  <ebb9@byu.net>
66776
66777         * lib/xvasprintf.c (includes): Assume config.h.
66778         * lib/xasprintf.c (includes): Likewise.
66779
66780 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66783         at least as wide as intmax_t.
66784
66785 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66786
66787         (Imported from Automake.)
66788         * build-aux/gnupload: Update to version 1.1 of directive file.
66789
66790 2006-10-16  Eric Blake  <ebb9@byu.net>
66791
66792         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66793         match Automake 1.10a.
66794
66795 2006-10-14  Bruno Haible  <bruno@clisp.org>
66796
66797         * modules/sigprocmask: New file.
66798         * lib/sigprocmask.h: New file.
66799         * lib/sigprocmask.c: New file.
66800         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66801         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66802         request sigprocmask.o.
66803         (gl_PREREQ_SIGPROCMASK): New macro.
66804         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66805         (Depends-on): Add sigprocmask.
66806         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66807         gt_SIGNALBLOCKING. Test for 'raise' only once.
66808         * lib/fatal-signal.c: Include sigprocmask.h.
66809         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66810         unblock_fatal_signals): Define always.
66811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66812         sigprocmask.
66813
66814 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         Sync from Automake.
66817         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66818         which incorrectly sets the mode of an existing destination
66819         directory.  In some cases the unpatched install-sh could do the
66820         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66821         system.  We hope this is rare in practice, but it's clearly worth
66822         fixing.  Problem reported by Alex Unleashed in
66823         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66824         Also, don't bother to check for -m bugs unless we're using -m;
66825         suggested by Stepan Kasal.
66826
66827 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66828
66829         Sync from Automake.
66830         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66831         `-c' flag, so they appear at the same position as in %FASTDEP%
66832         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66833         which ignores unknown options only after the first non-option.
66834         Bug report against M4 by Nelson H. F. Beebe.
66835
66836 2006-10-13  Jim Meyering  <jim@meyering.net>
66837
66838         Fix a bug in yesterday's change.
66839         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66840         p->fts_statp->st_dev would be used uninitialized.
66841         Ensures that we always call fts_stat on the very first entry.
66842         Miklos Szeredi reported that find -xdev stopped working.
66843
66844 2006-10-12  Bruno Haible  <bruno@clisp.org>
66845
66846         * gnulib-tool (func_get_automake_snippet): Append an automatically
66847         computed EXTRA_DIST augmentation.
66848         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66849         * modules/alloca-opt (Makefile.am): Likewise.
66850         * modules/allocsa (Makefile.am): Likewise.
66851         * modules/arcfour (Makefile.am): Likewise.
66852         * modules/arctwo (Makefile.am): Likewise.
66853         * modules/argmatch (Makefile.am): Likewise.
66854         * modules/argz (Makefile.am): Likewise.
66855         * modules/atexit (Makefile.am): Likewise.
66856         * modules/backupfile (Makefile.am): Likewise.
66857         * modules/byteswap (Makefile.am): Likewise.
66858         * modules/c-strtod (Makefile.am): Likewise.
66859         * modules/c-strtold (Makefile.am): Likewise.
66860         * modules/calloc (Makefile.am): Likewise.
66861         * modules/canon-host (Makefile.am): Likewise.
66862         * modules/canonicalize (Makefile.am): Likewise.
66863         * modules/chdir-long (Makefile.am): Likewise.
66864         * modules/chdir-safer (Makefile.am): Likewise.
66865         * modules/check-version (Makefile.am): Likewise.
66866         * modules/chown (Makefile.am): Likewise.
66867         * modules/cloexec (Makefile.am): Likewise.
66868         * modules/close-stream (Makefile.am): Likewise.
66869         * modules/closeout (Makefile.am): Likewise.
66870         * modules/crc (Makefile.am): Likewise.
66871         * modules/csharpexec (Makefile.am): Likewise.
66872         * modules/cycle-check (Makefile.am): Likewise.
66873         * modules/des (Makefile.am): Likewise.
66874         * modules/dev-ino (Makefile.am): Likewise.
66875         * modules/dirfd (Makefile.am): Likewise.
66876         * modules/dirname (Makefile.am): Likewise.
66877         * modules/dup2 (Makefile.am): Likewise.
66878         * modules/eealloc (Makefile.am): Likewise.
66879         * modules/error (Makefile.am): Likewise.
66880         * modules/euidaccess (Makefile.am): Likewise.
66881         * modules/exclude (Makefile.am): Likewise.
66882         * modules/exitfail (Makefile.am): Likewise.
66883         * modules/fcntl-safer (Makefile.am): Likewise.
66884         * modules/fcntl (Makefile.am): Likewise.
66885         * modules/file-type (Makefile.am): Likewise.
66886         * modules/fileblocks (Makefile.am): Likewise.
66887         * modules/filemode (Makefile.am): Likewise.
66888         * modules/filenamecat (Makefile.am): Likewise.
66889         * modules/fnmatch (Makefile.am): Likewise.
66890         * modules/fopen-safer (Makefile.am): Likewise.
66891         * modules/fpending (Makefile.am): Likewise.
66892         * modules/fprintftime (Makefile.am): Likewise.
66893         * modules/free (Makefile.am): Likewise.
66894         * modules/fsusage (Makefile.am): Likewise.
66895         * modules/ftruncate (Makefile.am): Likewise.
66896         * modules/fts (Makefile.am): Likewise.
66897         * modules/gc-arcfour (Makefile.am): Likewise.
66898         * modules/gc-des (Makefile.am): Likewise.
66899         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66900         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66901         * modules/gc-md4 (Makefile.am): Likewise.
66902         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66903         * modules/gc-sha1 (Makefile.am): Likewise.
66904         * modules/gc (Makefile.am): Likewise.
66905         * modules/getaddrinfo (Makefile.am): Likewise.
66906         * modules/getcwd (Makefile.am): Likewise.
66907         * modules/getdelim (Makefile.am): Likewise.
66908         * modules/getdomainname (Makefile.am): Likewise.
66909         * modules/getgroups (Makefile.am): Likewise.
66910         * modules/gethostname (Makefile.am): Likewise.
66911         * modules/gethrxtime (Makefile.am): Likewise.
66912         * modules/getline (Makefile.am): Likewise.
66913         * modules/getloadavg (Makefile.am): Likewise.
66914         * modules/getlogin_r (Makefile.am): Likewise.
66915         * modules/getndelim2 (Makefile.am): Likewise.
66916         * modules/getopt (Makefile.am): Likewise.
66917         * modules/getpagesize (Makefile.am): Likewise.
66918         * modules/getpass-gnu (Makefile.am): Likewise.
66919         * modules/getpass (Makefile.am): Likewise.
66920         * modules/getsubopt (Makefile.am): Likewise.
66921         * modules/gettime (Makefile.am): Likewise.
66922         * modules/gettimeofday (Makefile.am): Likewise.
66923         * modules/getugroups (Makefile.am): Likewise.
66924         * modules/getusershell (Makefile.am): Likewise.
66925         * modules/glob (Makefile.am): Likewise.
66926         * modules/group-member (Makefile.am): Likewise.
66927         * modules/hard-locale (Makefile.am): Likewise.
66928         * modules/hash (Makefile.am): Likewise.
66929         * modules/hmac-md5 (Makefile.am): Likewise.
66930         * modules/hmac-sha1 (Makefile.am): Likewise.
66931         * modules/human (Makefile.am): Likewise.
66932         * modules/idcache (Makefile.am): Likewise.
66933         * modules/imaxabs (Makefile.am): Likewise.
66934         * modules/imaxdiv (Makefile.am): Likewise.
66935         * modules/inet_ntop (Makefile.am): Likewise.
66936         * modules/inet_pton (Makefile.am): Likewise.
66937         * modules/intprops (Makefile.am): Likewise.
66938         * modules/inttostr (Makefile.am): Likewise.
66939         * modules/inttypes (Makefile.am): Likewise.
66940         * modules/isapipe (Makefile.am): Likewise.
66941         * modules/javaversion (Makefile.am): Likewise.
66942         * modules/lchmod (Makefile.am): Likewise.
66943         * modules/lchown (Makefile.am): Likewise.
66944         * modules/localcharset (Makefile.am): Likewise.
66945         * modules/long-options (Makefile.am): Likewise.
66946         * modules/lstat (Makefile.am): Likewise.
66947         * modules/malloc (Makefile.am): Likewise.
66948         * modules/mathl (Makefile.am): Likewise.
66949         * modules/mbchar (Makefile.am): Likewise.
66950         * modules/md2 (Makefile.am): Likewise.
66951         * modules/md4 (Makefile.am): Likewise.
66952         * modules/md5 (Makefile.am): Likewise.
66953         * modules/memcasecmp (Makefile.am): Likewise.
66954         * modules/memchr (Makefile.am): Likewise.
66955         * modules/memcmp (Makefile.am): Likewise.
66956         * modules/memcoll (Makefile.am): Likewise.
66957         * modules/memcpy (Makefile.am): Likewise.
66958         * modules/memmem (Makefile.am): Likewise.
66959         * modules/memmove (Makefile.am): Likewise.
66960         * modules/mempcpy (Makefile.am): Likewise.
66961         * modules/memrchr (Makefile.am): Likewise.
66962         * modules/memset (Makefile.am): Likewise.
66963         * modules/memxor (Makefile.am): Likewise.
66964         * modules/mkancesdirs (Makefile.am): Likewise.
66965         * modules/mkdir-p (Makefile.am): Likewise.
66966         * modules/mkdir (Makefile.am): Likewise.
66967         * modules/mkdtemp (Makefile.am): Likewise.
66968         * modules/mkstemp (Makefile.am): Likewise.
66969         * modules/mktime (Makefile.am): Likewise.
66970         * modules/modechange (Makefile.am): Likewise.
66971         * modules/mountlist (Makefile.am): Likewise.
66972         * modules/nanosleep (Makefile.am): Likewise.
66973         * modules/obstack (Makefile.am): Likewise.
66974         * modules/openat (Makefile.am): Likewise.
66975         * modules/pagealign_alloc (Makefile.am): Likewise.
66976         * modules/pathmax (Makefile.am): Likewise.
66977         * modules/physmem (Makefile.am): Likewise.
66978         * modules/poll (Makefile.am): Likewise.
66979         * modules/posixtm (Makefile.am): Likewise.
66980         * modules/posixver (Makefile.am): Likewise.
66981         * modules/putenv (Makefile.am): Likewise.
66982         * modules/quote (Makefile.am): Likewise.
66983         * modules/quotearg (Makefile.am): Likewise.
66984         * modules/raise (Makefile.am): Likewise.
66985         * modules/read-file (Makefile.am): Likewise.
66986         * modules/readline (Makefile.am): Likewise.
66987         * modules/readlink (Makefile.am): Likewise.
66988         * modules/readtokens (Makefile.am): Likewise.
66989         * modules/readutmp (Makefile.am): Likewise.
66990         * modules/realloc (Makefile.am): Likewise.
66991         * modules/regex (Makefile.am): Likewise.
66992         * modules/rename-dest-slash (Makefile.am): Likewise.
66993         * modules/rename (Makefile.am): Likewise.
66994         * modules/rijndael (Makefile.am): Likewise.
66995         * modules/rmdir (Makefile.am): Likewise.
66996         * modules/rpmatch (Makefile.am): Likewise.
66997         * modules/safe-read (Makefile.am): Likewise.
66998         * modules/safe-write (Makefile.am): Likewise.
66999         * modules/same-inode (Makefile.am): Likewise.
67000         * modules/same (Makefile.am): Likewise.
67001         * modules/save-cwd (Makefile.am): Likewise.
67002         * modules/savedir (Makefile.am): Likewise.
67003         * modules/setenv (Makefile.am): Likewise.
67004         * modules/settime (Makefile.am): Likewise.
67005         * modules/sha1 (Makefile.am): Likewise.
67006         * modules/sig2str (Makefile.am): Likewise.
67007         * modules/snprintf (Makefile.am): Likewise.
67008         * modules/stat-macros (Makefile.am): Likewise.
67009         * modules/stat-time (Makefile.am): Likewise.
67010         * modules/stdbool (Makefile.am): Likewise.
67011         * modules/stdint (Makefile.am): Likewise.
67012         * modules/stdlib-safer (Makefile.am): Likewise.
67013         * modules/stpcpy (Makefile.am): Likewise.
67014         * modules/stpncpy (Makefile.am): Likewise.
67015         * modules/strcase (Makefile.am): Likewise.
67016         * modules/strcasestr (Makefile.am): Likewise.
67017         * modules/strchrnul (Makefile.am): Likewise.
67018         * modules/strcspn (Makefile.am): Likewise.
67019         * modules/strdup (Makefile.am): Likewise.
67020         * modules/strerror (Makefile.am): Likewise.
67021         * modules/strftime (Makefile.am): Likewise.
67022         * modules/strndup (Makefile.am): Likewise.
67023         * modules/strnlen (Makefile.am): Likewise.
67024         * modules/strpbrk (Makefile.am): Likewise.
67025         * modules/strsep (Makefile.am): Likewise.
67026         * modules/strstr (Makefile.am): Likewise.
67027         * modules/strtod (Makefile.am): Likewise.
67028         * modules/strtoimax (Makefile.am): Likewise.
67029         * modules/strtok_r (Makefile.am): Likewise.
67030         * modules/strtol (Makefile.am): Likewise.
67031         * modules/strtoll (Makefile.am): Likewise.
67032         * modules/strtoul (Makefile.am): Likewise.
67033         * modules/strtoull (Makefile.am): Likewise.
67034         * modules/strtoumax (Makefile.am): Likewise.
67035         * modules/strverscmp (Makefile.am): Likewise.
67036         * modules/sys_socket (Makefile.am): Likewise.
67037         * modules/sys_stat (Makefile.am): Likewise.
67038         * modules/sysexits (Makefile.am): Likewise.
67039         * modules/time_r (Makefile.am): Likewise.
67040         * modules/timegm (Makefile.am): Likewise.
67041         * modules/timespec (Makefile.am): Likewise.
67042         * modules/tmpfile-safer (Makefile.am): Likewise.
67043         * modules/trim (Makefile.am): Likewise.
67044         * modules/unistd-safer (Makefile.am): Likewise.
67045         * modules/unlinkdir (Makefile.am): Likewise.
67046         * modules/unlocked-io (Makefile.am): Likewise.
67047         * modules/userspec (Makefile.am): Likewise.
67048         * modules/utime (Makefile.am): Likewise.
67049         * modules/utimecmp (Makefile.am): Likewise.
67050         * modules/utimens (Makefile.am): Likewise.
67051         * modules/vasnprintf (Makefile.am): Likewise.
67052         * modules/vasprintf (Makefile.am): Likewise.
67053         * modules/vsnprintf (Makefile.am): Likewise.
67054         * modules/xalloc (Makefile.am): Likewise.
67055         * modules/xgetcwd (Makefile.am): Likewise.
67056         * modules/xnanosleep (Makefile.am): Likewise.
67057         * modules/xreadlink (Makefile.am): Likewise.
67058         * modules/xstrtod (Makefile.am): Likewise.
67059         * modules/xstrtol (Makefile.am): Likewise.
67060         * modules/xstrtold (Makefile.am): Likewise.
67061         * modules/yesno (Makefile.am): Likewise.
67062         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67063
67064 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * modules/error (Makefile.am): Distribute files through
67067         EXTRA_DIST, not lib_SOURCES.
67068
67069 2006-10-12  Eric Blake  <ebb9@byu.net>
67070
67071         * modules/error (Makefile.am): Distribute files in /lib.
67072         * modules/obstack (Makefile.am): Likewise.
67073
67074 2006-10-12  Bruno Haible  <bruno@clisp.org>
67075
67076         * modules/acl (Makefile.am): Distribute all files in lib/ through
67077         EXTRA_DIST.
67078         * modules/arcfour (Makefile.am): Likewise.
67079         * modules/arctwo (Makefile.am): Likewise.
67080         * modules/argmatch (Makefile.am): Likewise.
67081         * modules/argz (Makefile.am): Likewise.
67082         * modules/atexit (Makefile.am): Likewise.
67083         * modules/backupfile (Makefile.am): Likewise.
67084         * modules/c-strtod (Makefile.am): Likewise.
67085         * modules/c-strtold (Makefile.am): Likewise.
67086         * modules/calloc (Makefile.am): Likewise.
67087         * modules/canon-host (Makefile.am): Likewise.
67088         * modules/canonicalize (Makefile.am): Likewise.
67089         * modules/chdir-long (Makefile.am): Likewise.
67090         * modules/chdir-safer (Makefile.am): Likewise.
67091         * modules/check-version (Makefile.am): Likewise.
67092         * modules/chown (Makefile.am): Likewise.
67093         * modules/cloexec (Makefile.am): Likewise.
67094         * modules/close-stream (Makefile.am): Likewise.
67095         * modules/closeout (Makefile.am): Likewise.
67096         * modules/crc (Makefile.am): Likewise.
67097         * modules/cycle-check (Makefile.am): Likewise.
67098         * modules/des (Makefile.am): Likewise.
67099         * modules/dirfd (Makefile.am): Likewise.
67100         * modules/dirname (Makefile.am): Likewise.
67101         * modules/dup2 (Makefile.am): Likewise.
67102         * modules/euidaccess (Makefile.am): Likewise.
67103         * modules/exclude (Makefile.am): Likewise.
67104         * modules/exitfail (Makefile.am): Likewise.
67105         * modules/fcntl-safer (Makefile.am): Likewise.
67106         * modules/file-type (Makefile.am): Likewise.
67107         * modules/fileblocks (Makefile.am): Likewise.
67108         * modules/filemode (Makefile.am): Likewise.
67109         * modules/filenamecat (Makefile.am): Likewise.
67110         * modules/fnmatch (Makefile.am): Likewise.
67111         * modules/fopen-safer (Makefile.am): Likewise.
67112         * modules/fpending (Makefile.am): Likewise.
67113         * modules/fprintftime (Makefile.am): Likewise.
67114         * modules/free (Makefile.am): Likewise.
67115         * modules/fsusage (Makefile.am): Likewise.
67116         * modules/ftruncate (Makefile.am): Likewise.
67117         * modules/fts (Makefile.am): Likewise.
67118         * modules/gc (Makefile.am): Likewise.
67119         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67120         * modules/getaddrinfo (Makefile.am): Likewise.
67121         * modules/getcwd (Makefile.am): Likewise.
67122         * modules/getdelim (Makefile.am): Likewise.
67123         * modules/getdomainname (Makefile.am): Likewise.
67124         * modules/getgroups (Makefile.am): Likewise.
67125         * modules/gethostname (Makefile.am): Likewise.
67126         * modules/gethrxtime (Makefile.am): Likewise.
67127         * modules/getline (Makefile.am): Likewise.
67128         * modules/getloadavg (Makefile.am): Likewise.
67129         * modules/getlogin_r (Makefile.am): Likewise.
67130         * modules/getopt (Makefile.am): Likewise.
67131         * modules/getpass (Makefile.am): Likewise.
67132         * modules/getpass-gnu (Makefile.am): Likewise.
67133         * modules/getsubopt (Makefile.am): Likewise.
67134         * modules/gettime (Makefile.am): Likewise.
67135         * modules/gettimeofday (Makefile.am): Likewise.
67136         * modules/getugroups (Makefile.am): Likewise.
67137         * modules/getusershell (Makefile.am): Likewise.
67138         * modules/glob (Makefile.am): Likewise.
67139         * modules/group-member (Makefile.am): Likewise.
67140         * modules/hard-locale (Makefile.am): Likewise.
67141         * modules/hash (Makefile.am): Likewise.
67142         * modules/hmac-md5 (Makefile.am): Likewise.
67143         * modules/hmac-sha1 (Makefile.am): Likewise.
67144         * modules/human (Makefile.am): Likewise.
67145         * modules/idcache (Makefile.am): Likewise.
67146         * modules/imaxabs (Makefile.am): Likewise.
67147         * modules/imaxdiv (Makefile.am): Likewise.
67148         * modules/inet_ntop (Makefile.am): Likewise.
67149         * modules/inet_pton (Makefile.am): Likewise.
67150         * modules/inttostr (Makefile.am): Likewise.
67151         * modules/isapipe (Makefile.am): Likewise.
67152         * modules/lchown (Makefile.am): Likewise.
67153         * modules/long-options (Makefile.am): Likewise.
67154         * modules/lstat (Makefile.am): Likewise.
67155         * modules/malloc (Makefile.am): Likewise.
67156         * modules/mathl (Makefile.am): Likewise.
67157         * modules/mbchar (Makefile.am): Likewise.
67158         * modules/md2 (Makefile.am): Likewise.
67159         * modules/md4 (Makefile.am): Likewise.
67160         * modules/md5 (Makefile.am): Likewise.
67161         * modules/memcasecmp (Makefile.am): Likewise.
67162         * modules/memchr (Makefile.am): Likewise.
67163         * modules/memcmp (Makefile.am): Likewise.
67164         * modules/memcoll (Makefile.am): Likewise.
67165         * modules/memcpy (Makefile.am): Likewise.
67166         * modules/memmem (Makefile.am): Likewise.
67167         * modules/memmove (Makefile.am): Likewise.
67168         * modules/mempcpy (Makefile.am): Likewise.
67169         * modules/memrchr (Makefile.am): Likewise.
67170         * modules/memset (Makefile.am): Likewise.
67171         * modules/memxor (Makefile.am): Likewise.
67172         * modules/mkancesdirs (Makefile.am): Likewise.
67173         * modules/mkdir (Makefile.am): Likewise.
67174         * modules/mkdir-p (Makefile.am): Likewise.
67175         * modules/mkdtemp (Makefile.am): Likewise.
67176         * modules/mkstemp (Makefile.am): Likewise.
67177         * modules/mktime (Makefile.am): Likewise.
67178         * modules/modechange (Makefile.am): Likewise.
67179         * modules/mountlist (Makefile.am): Likewise.
67180         * modules/nanosleep (Makefile.am): Likewise.
67181         * modules/openat (Makefile.am): Likewise.
67182         * modules/pagealign_alloc (Makefile.am): Likewise.
67183         * modules/physmem (Makefile.am): Likewise.
67184         * modules/poll (Makefile.am): Likewise.
67185         * modules/posixtm (Makefile.am): Likewise.
67186         * modules/posixver (Makefile.am): Likewise.
67187         * modules/putenv (Makefile.am): Likewise.
67188         * modules/quote (Makefile.am): Likewise.
67189         * modules/quotearg (Makefile.am): Likewise.
67190         * modules/raise (Makefile.am): Likewise.
67191         * modules/read-file (Makefile.am): Likewise.
67192         * modules/readline (Makefile.am): Likewise.
67193         * modules/readlink (Makefile.am): Likewise.
67194         * modules/readtokens (Makefile.am): Likewise.
67195         * modules/readutmp (Makefile.am): Likewise.
67196         * modules/realloc (Makefile.am): Likewise.
67197         * modules/regex (Makefile.am): Likewise.
67198         * modules/rename (Makefile.am): Likewise.
67199         * modules/rename-dest-slash (Makefile.am): Likewise.
67200         * modules/rijndael (Makefile.am): Likewise.
67201         * modules/rmdir (Makefile.am): Likewise.
67202         * modules/rpmatch (Makefile.am): Likewise.
67203         * modules/safe-read (Makefile.am): Likewise.
67204         * modules/safe-write (Makefile.am): Likewise.
67205         * modules/same (Makefile.am): Likewise.
67206         * modules/save-cwd (Makefile.am): Likewise.
67207         * modules/savedir (Makefile.am): Likewise.
67208         * modules/setenv (Makefile.am): Likewise.
67209         * modules/settime (Makefile.am): Likewise.
67210         * modules/sha1 (Makefile.am): Likewise.
67211         * modules/sig2str (Makefile.am): Likewise.
67212         * modules/snprintf (Makefile.am): Likewise.
67213         * modules/stdlib-safer (Makefile.am): Likewise.
67214         * modules/stpcpy (Makefile.am): Likewise.
67215         * modules/stpncpy (Makefile.am): Likewise.
67216         * modules/strcase (Makefile.am): Likewise.
67217         * modules/strcasestr (Makefile.am): Likewise.
67218         * modules/strchrnul (Makefile.am): Likewise.
67219         * modules/strcspn (Makefile.am): Likewise.
67220         * modules/strdup (Makefile.am): Likewise.
67221         * modules/strerror (Makefile.am): Likewise.
67222         * modules/strftime (Makefile.am): Likewise.
67223         * modules/strndup (Makefile.am): Likewise.
67224         * modules/strnlen (Makefile.am): Likewise.
67225         * modules/strpbrk (Makefile.am): Likewise.
67226         * modules/strsep (Makefile.am): Likewise.
67227         * modules/strstr (Makefile.am): Likewise.
67228         * modules/strtod (Makefile.am): Likewise.
67229         * modules/strtoimax (Makefile.am): Likewise.
67230         * modules/strtok_r (Makefile.am): Likewise.
67231         * modules/strtol (Makefile.am): Likewise.
67232         * modules/strtoll (Makefile.am): Likewise.
67233         * modules/strtoul (Makefile.am): Likewise.
67234         * modules/strtoull (Makefile.am): Likewise.
67235         * modules/strtoumax (Makefile.am): Likewise.
67236         * modules/strverscmp (Makefile.am): Likewise.
67237         * modules/time_r (Makefile.am): Likewise.
67238         * modules/timegm (Makefile.am): Likewise.
67239         * modules/tmpfile-safer (Makefile.am): Likewise.
67240         * modules/unistd-safer (Makefile.am): Likewise.
67241         * modules/unlinkdir (Makefile.am): Likewise.
67242         * modules/userspec (Makefile.am): Likewise.
67243         * modules/utime (Makefile.am): Likewise.
67244         * modules/utimecmp (Makefile.am): Likewise.
67245         * modules/utimens (Makefile.am): Likewise.
67246         * modules/vasnprintf (Makefile.am): Likewise.
67247         * modules/vasprintf (Makefile.am): Likewise.
67248         * modules/vsnprintf (Makefile.am): Likewise.
67249         * modules/xalloc (Makefile.am): Likewise.
67250         * modules/xgetcwd (Makefile.am): Likewise.
67251         * modules/xnanosleep (Makefile.am): Likewise.
67252         * modules/xreadlink (Makefile.am): Likewise.
67253         * modules/xstrtod (Makefile.am): Likewise.
67254         * modules/xstrtol (Makefile.am): Likewise.
67255         * modules/xstrtold (Makefile.am): Likewise.
67256         * modules/yesno (Makefile.am): Likewise.
67257
67258 2006-10-12  Jim Meyering  <jim@meyering.net>
67259
67260         * m4/getloadavg.m4: Revert the change below.
67261
67262         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67263         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67264         fail with a symlink, which is what coreutils' ./bootstrap now
67265         creates by default.
67266
67267 2006-10-12  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67270         mingw.
67271         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67272         MSVC and mingw explicitly.
67273
67274 2006-10-11  Simon Josefsson  <jas@extundo.com>
67275             Bruno Haible  <bruno@clisp.org>
67276
67277         Add support for multiple gnulib-tool invocations in the scope of a
67278         single configure.ac file.
67279         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67280         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67281         with the same contents as the _LIBADD variable.
67282         (func_emit_initmacro_start, func_emit_initmacro_end,
67283         func_emit_initmacro_done): New functions.
67284         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67285         gl_LIBOBJS and gl_LTLIBOBJS.
67286
67287 2006-10-11  Bruno Haible  <bruno@clisp.org>
67288
67289         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67290         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67291         autoreconf. Instead, invoke autopoint explicitly but move back the
67292         *.m4 files from gnulib.
67293
67294 2006-10-11  Bruno Haible  <bruno@clisp.org>
67295
67296         * gnulib-tool (func_usage): Make module names after --create-testdir
67297         optional.
67298         (func_create_testdir): If no module was specified, use nearly all
67299         modules.
67300
67301 2006-10-12  Jim Meyering  <jim@meyering.net>
67302
67303         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67304         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67305         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67306         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67307         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67308         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67309         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67310         (fts_set_stat_required): New function.
67311         (fts_open): Defer the calls to fts_stat, if possible or requested.
67312         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67313         into fts_stat itself.
67314         (fts_read): Perform any required (deferred) fts_stat call.
67315         (fts_build): Likewise, for the directory we're about to open and read.
67316         In the readdir loop, carefully decide whether each entry will require
67317         an eventual call to fts_stat, using dirent.d_type info if available.
67318         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67319         a command line argument into this function.  Update all callers.
67320         Map a return value of FTS_DOT to FTS_D for a command line argument.
67321         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67322         Thanks to Miklos Szeredi for his tenacity and for the initial
67323         bug report about "find" failing on a FUSE-based file system.
67324
67325         * lib/fts.c (fts_open): Use consistent indentation.
67326
67327 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67330         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67331         reported by Jim Meyering.  All uses of cache variables renamed
67332         to match Autoconf's.
67333         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67334         the other one.
67335
67336         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67337         Fix misspelling in diagnostic.
67338
67339 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67340
67341         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67342         defined.  Problem reported by Matthew Woehlke.
67343
67344         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67345         Add support for Tandem NonStop R series.
67346         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67347         Use new macro.
67348
67349         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67350         (has_trailing_slash): Omit size arg; all callers changed.
67351         Omit 'inline', since it doesn't help performance and we'd
67352         need to configure it.
67353         Don't count //, ///, etc. as having a trailing slash.
67354         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67355         (rpl_rename_dest_slash): On failure, use rename's errno rather
67356         than (in some cases) an incorrect or junk errno.
67357         Simplify code by removing need to compute length; this does
67358         cause it to make two passes instead of one over the file name,
67359         but it's worth it.
67360
67361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67362         change, since Autoconf's version may no longer be appropriate now
67363         that we are using CVS Autoconf's version.  Add support for Tandem.
67364
67365 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67366             Bruno Haible  <bruno@clisp.org>
67367
67368         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67369         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67370         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67371         gl_AC_TYPE_LONG_LONG.
67372
67373         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67374         instead of HAVE_LONG_LONG.
67375         * lib/printf-args.c (printf_fetchargs): Likewise.
67376         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67377         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67379         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67380         gl_AC_TYPE_LONG_LONG.
67381
67382 2006-10-11  Bruno Haible  <bruno@clisp.org>
67383
67384         * m4/longlong.m4: Add comments.
67385         * m4/ulonglong.m4: Likewise.
67386
67387 2006-10-10  Bruno Haible  <bruno@clisp.org>
67388
67389         Make it possible to #define stpcpy, strdup to aliases.
67390         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67391         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67392
67393 2006-10-10  Bruno Haible  <bruno@clisp.org>
67394
67395         Make it possible to #define gcd to an alias.
67396         * lib/gcd.c: Include config.h.
67397
67398 2006-10-10  Bruno Haible  <bruno@clisp.org>
67399
67400         Make it possible to #define c_isascii to an alias.
67401         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67402         defined. Undefine the macros before defining them, to avoid gcc
67403         warnings.
67404         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67405         define NO_C_CTYPE_MACROS early.
67406
67407 2006-10-10  Bruno Haible  <bruno@clisp.org>
67408
67409         Make it possible to #define set_program_name to an alias.
67410         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67411         ENABLE_RELOCATABLE early.
67412
67413 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67416         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67417         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67418         More generally, don't assume that 64-bit signed int is available
67419         if unsigned int is, and vice versa.
67420         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67421         unsigned symbols, not on their signed counterparts.
67422         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67423         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67424         (UINT64_C, UINTMAX_C):
67425         Likewise.
67426         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67427         unsigned counterparts.
67428         (Have_long_long, Unsigned): New macros.
67429         (Int): Renamed from INT.
67430         (strtoimax): Use the new macros.
67431         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67432         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67433         * modules/inttypes (inttypes.h): Substitute
67434         HAVE_UNSIGNED_LONG_LONG_INT.
67435         * modules/stdint (stdint.h): Likewise.
67436         (Files): Add m4/ulonglong.m4.
67437
67438 2006-10-10  Bruno Haible  <bruno@clisp.org>
67439
67440         Fix a gcc -Wshadow warning.
67441         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67442         to 'bucket'.
67443         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67444         gl_linked_indexof_from_to): Likewise.
67445         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67446         Likewise.
67447         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67448         Likewise.
67449         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67450         Reported by Eric Blake.
67451
67452 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67453
67454         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67455         for NetBSD.  Problem reported by Bruno Haible.
67456
67457 2006-10-09  Jim Meyering  <jim@meyering.net>
67458
67459         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67460         Patch from Bruno Haible.
67461
67462 2006-10-09  Jim Meyering  <jim@meyering.net>
67463
67464         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67465         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67466         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67467
67468 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67469
67470         Don't include <config.h> twice; this doesn't work in some cases,
67471         e.g., when config.h has "#define intmax_t long long int" and
67472         we include <config.h>, <inttypes.h>, <config.h> in that order.
67473         Problem reported by Matthew Woehlke in:
67474         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67475         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67476         * lib/fts-cycle.c: Don't include config.h.
67477         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67478         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67479         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67480         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67481         inttypes.h.
67482         * lib/xstrtoumax.c: Likewise.
67483         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67484         __strtol and the like, so that this module is more like its siblings.
67485         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67486         Remove; no longer needed now that we assume gnulib inttypes.h.
67487
67488 2006-10-08  Bruno Haible  <bruno@clisp.org>
67489
67490         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67491         option.
67492
67493 2006-10-07  Jim Meyering  <jim@meyering.net>
67494
67495         * modules/inttypes (inttypes.h): Revert what seems to have been
67496         an inadvertent part of today's change: use "|", not "/" in the
67497         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67498
67499 2006-10-07  Bruno Haible  <bruno@clisp.org>
67500
67501         * modules/sublist: New file.
67502
67503 2006-10-07  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67506         * modules/argz (argz.h): Likewise.
67507         * modules/arpa_inet (arpa/inet.h): Likewise.
67508         * modules/byteswap (byteswap.h): Likewise.
67509         * modules/configmake (configmake.h): Likewise.
67510         * modules/fcntl (fcntl.h): Likewise.
67511         * modules/fnmatch (fnmatch.h): Likewise.
67512         * modules/getopt (getopt.h): Likewise.
67513         * modules/glob (glob.h): Likewise.
67514         * modules/inttypes (inttypes.h): Likewise.
67515         * modules/netinet_in (netinet/in.h): Likewise.
67516         * modules/poll (poll.h): Likewise.
67517         * modules/stdbool (stdbool.h): Likewise.
67518         * modules/stdint (stdint.h): Likewise.
67519         * modules/sys_select (sys/select.h): Likewise.
67520         * modules/sys_socket (sys/socket.h): Likewise.
67521         * modules/sys_stat (sys/stat.h): Likewise.
67522         * modules/sysexits (sysexits.h): Likewise.
67523         * modules/unistd (unistd.h): Likewise.
67524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67525         Add a "DO NOT EDIT" comment to the generated file.
67526         (func_import): Likewise for gnulib-comp.m4.
67527
67528 2006-10-07  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/gl_sublist.h: New file.
67531         * lib/gl_sublist.c: New file.
67532
67533 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67536         name (relative to the original working directory) and the file
67537         name component (relative to the temporary working directory).  All
67538         callers changed.
67539         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67540         * lib/mkdir-p.c (make_dir_parents): Likewise.
67541         * lib/mkdir-p.h (make_dir_parents): Likewise.
67542
67543 2006-10-06  Eric Blake  <ebb9@byu.net>
67544
67545         Define several macros for use by the clean-temp module.
67546         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67547         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67548         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67549
67550         * lib/clean-temp.h (close_stream_temp): New declaration.
67551         * lib/clean-temp.c (includes): Pull in headers according to what
67552         other modules are in use.
67553         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67554
67555 2006-10-06  Bruno Haible  <bruno@clisp.org>
67556
67557         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67558         instead of fopen, fwriteerror.
67559
67560 2006-10-06  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67563         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67564         int.
67565         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67566         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67567         Return an error indicator.
67568         Suggested by Eric Blake.
67569
67570 2006-10-06  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67573         Reported by Eric Blake.
67574
67575 2006-10-06  Bruno Haible  <bruno@clisp.org>
67576
67577         * modules/closeout (Description): Mention stderr too.
67578
67579 2006-10-06  Bruno Haible  <bruno@clisp.org>
67580         and Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         * lib/closeout.c (close_stdout): Also close stderr.
67583         * lib/closeout.h: Update comment.
67584
67585 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67588         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67589         * lib/dirchownmod.c: Include lchown.h.
67590         * lib/lchown.c: Don't include files that lchown.h now includes.
67591         Don't declare chown, since lchown.h now does that.
67592         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67593         (lchown): Define to rpl_chown if lchown is declared but
67594         does not exist.  Declare using a prototype if lchown is not
67595         declared.  Add a copyright notice.
67596         * lib/mkstemp.h: Include <unistd.h>.
67597         * lib/openat.c: Include lchown.h.
67598
67599         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67600         we now test for that separately.
67601         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67602         rather than O_NOFOLLOW, when testing whether it's possible to
67603         avoid a race condition reliably.
67604         * lib/savewd.c (savewd_chdir): Likewise.
67605
67606         Remove macros that are no longer needed now that stdint.h is
67607         reliable.
67608         * lib/fsusage.c (UINTMAX_MAX): Remove.
67609         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67610         * lib/utimecmp.c (SIZE_MAX): Remove.
67611
67612         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67613
67614         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67615         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67616         O_NOATIME works.
67617
67618 2006-10-05  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/gl_list.h (gl_sortedlist_search_from_to,
67621         gl_sortedlist_indexof_from_to): New declarations.
67622         (gl_list_implementation): New fields sortedlist_search_from_to,
67623         sortedlist_indexof_from_to.
67624         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67625         inline functions.
67626         * lib/gl_list.c (gl_sortedlist_search_from_to,
67627         gl_sortedlist_indexof_from_to): New functions.
67628         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67629         function.
67630         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67631         (gl_array_sortedlist_search_from_to): New function.
67632         (gl_array_list_implementation): Update.
67633         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67634         function.
67635         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67636         (gl_carray_sortedlist_search_from_to): New function.
67637         (gl_carray_list_implementation): Update.
67638         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67639         gl_linked_sortedlist_indexof_from_to): New functions.
67640         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67641         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67642         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67643         gl_tree_sortedlist_indexof_from_to): New functions.
67644         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67645         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67646         Update.
67647         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67648         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67649         Update.
67650
67651 2006-10-05  Bruno Haible  <bruno@clisp.org>
67652
67653         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67654         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67655         (struct gl_list_implementation): Add fields search_from_to,
67656         indexof_from_to. Remove fields search, indexof.
67657         (gl_list_search): Use the search_from_to method.
67658         (gl_list_search_from, gl_list_search_from_to): New functions.
67659         (gl_list_indexof): Use the indexof_from_to method.
67660         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67661         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67662         (gl_list_search_from, gl_list_search_from_to): New functions.
67663         (gl_list_indexof): Use the indexof_from_to method.
67664         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67665         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67666         gl_array_indexof. Add start_index, end_index arguments.
67667         (gl_array_search_from_to): Renamed from gl_array_search. Add
67668         start_index, end_index arguments.
67669         (gl_array_remove, gl_array_list_implementation): Update.
67670         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67671         gl_carray_indexof. Add start_index, end_index arguments.
67672         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67673         start_index, end_index arguments.
67674         (gl_carray_remove, gl_carray_list_implementation): Update.
67675         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67676         gl_linked_search. Add start_index, end_index arguments.
67677         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67678         start_index, end_index arguments.
67679         (gl_linked_remove): Update.
67680         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67681         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67682         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67683         field to 'size_t'.
67684         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67685         gl_tree_search. Add start_index, end_index arguments.
67686         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67687         start_index, end_index arguments.
67688         (gl_tree_remove): Update.
67689         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67690         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67691         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67692         function.
67693         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67694         gl_tree_search. Add start_index, end_index arguments.
67695         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67696         start_index, end_index arguments.
67697         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67698         Update.
67699         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67700
67701 2006-10-05  Bruno Haible  <bruno@clisp.org>
67702
67703         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67704
67705         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67706         fwriteerror_temp): New declarations.
67707         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67708         (descriptors): New variable.
67709         (cleanup): First, close the descriptors.
67710         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67711         fclose_temp, fwriteerror_temp): New functions.
67712
67713 2006-10-04  Jim Meyering  <jim@meyering.net>
67714
67715         * lib/fts.c (fts_open): Tiny comment change.
67716
67717 2006-10-04  Bruno Haible  <bruno@clisp.org>
67718
67719         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67720         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67721         gl_LOCK_BODY.
67722         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67723         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67724         gl_LOCK_EARLY_BODY.
67725         (gl_LOCK): Require gl_LOCK_BODY.
67726
67727 2006-10-04  Bruno Haible  <bruno@clisp.org>
67728
67729         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67730         (gl_oset_search_atleast): New declaration.
67731         (struct gl_oset_implementation): Add field 'search_atleast'.
67732         (gl_oset_search_atleast): New inline function.
67733         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67734         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67735         (gl_array_oset_implementation): Update.
67736         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67737         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67738         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67739
67740 2006-10-04  Bruno Haible  <bruno@clisp.org>
67741
67742         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67743
67744 2006-10-03  Bruno Haible  <bruno@clisp.org>
67745
67746         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67747         from gl_avltreehash_list_implementation.
67748
67749 2006-10-03  Bruno Haible  <bruno@clisp.org>
67750
67751         * lib/gl_oset.c (gl_oset_add): Fix return type.
67752
67753 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67754
67755         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67756
67757 2006-10-02  Eric Blake  <ebb9@byu.net>
67758
67759         * modules/strnlen (Depends-on): Add extensions.
67760
67761 2006-10-02  Eric Blake  <ebb9@byu.net>
67762
67763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67764         definition in 2.60+.
67765
67766 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67767
67768         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67769         checks.
67770
67771 2006-10-02  Bruno Haible  <bruno@clisp.org>
67772
67773         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67774         to the AUTOMAKE_OPTIONS.
67775         Reported by Jim Meyering.
67776
67777 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         Work around bug in Solaris 10 /proc file system:
67780         /proc/self/fd/NNN/.. isn't the parent directory of
67781         the directory whose file descriptor is NNN.  This needs to
67782         be worked around at run time, not compile time, since a
67783         program might be built on Solaris 8, where things work, and
67784         run on Solaris 10.
67785         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67786         to use the following interface instead:
67787         (OPENAT_BUFFER_SIZE): New macro.
67788         (openat_proc_name): New function.
67789         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67790         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67791         Likewise.
67792         * lib/openat-proc.c: New file.
67793         * modules/openat (Files): Add lib/openat-proc.c.
67794         (Depends-on): Add same-inode, stdbool.
67795         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67796
67797 2006-09-29  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67800         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67801         argument. Set stdout_closed before testing for ferror, not after.
67802         (fwriteerror, fwriteerror_no_ebadf): New functions.
67803
67804 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67805
67806         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67807
67808 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67809
67810         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67811         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67812
67813 2006-09-28  Jim Meyering  <jim@meyering.net>
67814
67815         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67816         Include <unistd.h>.
67817
67818 2006-09-28  Bruno Haible  <bruno@clisp.org>
67819
67820         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67821         * modules/linkedhash-list (Depends-on): Likewise.
67822         * modules/rbtreehash-list (Depends-on): Likewise.
67823
67824 2006-09-28  Bruno Haible  <bruno@clisp.org>
67825
67826         * lib/strndup.h: Simplify the redefinition of strndup.
67827         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67828         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67829
67830 2006-09-28  Bruno Haible  <bruno@clisp.org>
67831
67832         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67833         * lib/gl_linkedhash_list.c: Likewise.
67834         * lib/gl_rbtreehash_list.c: Likewise.
67835
67836 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67837
67838         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67839         getaddrinfo.
67840
67841         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67842         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67843         it causes <stdio_ext.h> to cause a compile-time error.
67844         Problem reported by Nelson H. F. Beebe.
67845         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67846         of HAVE_DECL___PENDING.
67847
67848         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67849         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67850         declaration.
67851
67852 2006-09-27  Jim Meyering  <jim@meyering.net>
67853
67854         This file could end up with a definition for a function
67855         named __strndup, rather than rpl_strndup on a system with
67856         incomplete weak_alias support.
67857         * lib/strndup.c (strndup): Rename from __strndup.
67858         Remove #defines that used to map __strndup to strndup.
67859         Don't use K&R prototypes.
67860         Remove LIBC-related code, since this file is not sync'd with glibc.
67861         * lib/strndup.h: Revamp, accordingly.
67862         * m4/strndup.m4: Modernize.
67863
67864 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * modules/savewd (Depends-on): Add 'raise'.
67867         * lib/savewd.c: Include <signal.h>, for 'raise'.
67868
67869 2006-09-26  Jim Meyering  <jim@meyering.net>
67870
67871         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67872         when we detect Darwin 8.7.0's acl_get_file bug.
67873         Rearrange to perform the new (below) run-test while $LIBS
67874         contains any acl-related library.  Set USE_ACL at the end.
67875         (gl_ACL_GET_FILE): New function.
67876
67877 2006-09-26  Eric Blake  <ebb9@byu.net>
67878
67879         * lib/verror.c: Include <config.h> unconditionally.
67880
67881 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * modules/clock-time (Maintainer): Add self.
67884         * modules/getlogin_r (Depends-on): Add extensions.
67885
67886 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67887
67888         * modules/clock-time: New module.
67889         * modules/nanosleep (Depends-on): Add clock-time.
67890         * modules/gethrxtime (Depends-on): Likewise.
67891         * modules/gettime (Depends-on): Likewise.
67892         * modules/settime (Depends-on): Likewise.
67893
67894         * modules/fts-lgpl: Depend on openat.
67895         * modules/mkancesdirs: Depend on savewd.
67896         * modules/mkdir-p: Likewise.
67897
67898 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67899
67900         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67901
67902         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67903         `gl_have_arbitrary_file_name_length_limit' to
67904         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67905         actually works between configure runs.
67906
67907 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67908             Bruno Haible  <bruno@clisp.org>
67909
67910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67911
67912 2006-09-25  Jim Meyering  <jim@meyering.net>
67913
67914         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67915         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67916
67917 2006-09-25  Eric Blake  <ebb9@byu.net>
67918
67919         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67920         exec's in 2006-09-18 patch when shuffling fds.
67921
67922 2006-09-25  Bruno Haible  <bruno@clisp.org>
67923
67924         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67925         Reported by Jim Meyering.
67926
67927 2006-09-24  Jim Meyering  <jim@meyering.net>
67928
67929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67930         compare a pointer against a literal "0".  That caused failures with
67931         at least HP-UX's hpcc.
67932
67933 2006-09-22  Simon Josefsson  <jas@extundo.com>
67934
67935         * modules/gc-sha1:
67936         * modules/gc-md4:
67937         * modules/gc-hmac-sha1:
67938         * modules/gc-hmac-md5:
67939         * modules/gc-des:
67940         * modules/gc-arcfour: Distribute more files.
67941
67942 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67943
67944         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67945         (gl_linked_iterator_from_to): Initialize struct completely.
67946         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67947         (gl_tree_iterator_from_to): Likewise
67948         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67949         * lib/gl_array_list.c [lint] (gl_array_iterator)
67950         (gl_array_iterator_from_to): Likewise.
67951         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67952         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67953         (gl_carray_iterator_from_to): Likewise.
67954
67955         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67956         * lib/md4.c (md4_process_block): Remove unused variable.
67957         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67958         parentheses for clarity.
67959
67960 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67961
67962         * modules/bison-i18n (Depends-on): Add gettext.
67963
67964 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67965
67966         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67967         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67968         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67969         also add missing comma that caused broken test.
67970         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67971         stdlib.h, for `abort'.
67972         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67973         variables.
67974         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67975         include unistd.h if present, for `rmdir'.
67976         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67977         variables.
67978         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67979         in the process include standard headers for prototypes.
67980         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67981         gets declared on GNU/Linux.
67982         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67983         unistd.h, for `rmdir'.
67984         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67985
67986         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67987         always true.
67988         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67989
67990         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67991
67992 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67993
67994         * gnulib-tool (func_version): Create output all at once.  This
67995         may help avoid triggering unnecessary SIGPIPEs, and at any
67996         rate it doesn't hurt.
67997
67998 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67999             Bruno Haible  <bruno@clisp.org>
68000
68001         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68002         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68003         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68004
68005         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68006         (gl_FUNC_VASPRINTF): Invoke it.
68007
68008 2006-09-22  Bruno Haible  <bruno@clisp.org>
68009
68010         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68011         getloadavg.c as first argument.
68012
68013 2006-09-22  Bruno Haible  <bruno@clisp.org>
68014
68015         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68016         at the beginning of the gl_INIT macro.
68017         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68018         gl_GETLOADAVG.
68019
68020 2006-09-22  Bruno Haible  <bruno@clisp.org>
68021
68022         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68023         module.
68024         Suggested by Ralf Wildenhues.
68025
68026 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         Import this patch from libc:
68029
68030         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68031
68032         * lib/regex_internal.c (re_string_reconstruct): Handle
68033         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68034         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68035         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68036         re_string_context_at.
68037
68038         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68039         now requires it.
68040         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68041         gl_REGEX now does it for us.
68042         (gl_REGEX): Add test taken from
68043         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68044
68045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68046         Check that large offsets work.  Modernize Autoconf usages.
68047         Prefer "yes" to mean a good thing rather than a bad.
68048         Don't put "#define mkstemp" in config.h, as this might interfere
68049         with standard system headers that "#define mkstemp mkstemp64".
68050
68051         * modules/mkstemp (Depends-on): Add extensions, so that
68052         mkstemp is visible on some platforms.
68053         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68054         (Include): Change to "mkstemp.h" from <stdlib.h>.
68055         (Files): Add mkstemp.h.
68056
68057         * lib/mkstemp.h: New file, since some standard headers
68058         #define mkstemp.
68059         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68060         Include "mkstemp.h".
68061         Make the _LIBC code resemble glibc original more,
68062         e.g., use K&R style.
68063         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68064         (mkstemp): Remove, since mkstemp.h does this for us.
68065         * lib/stdlib--.h: Include mkstemp.h.
68066
68067         Import this patch from libc:
68068
68069         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68070
68071         * lib/tempname.c (__gen_tempname): Change attempts_min
68072         into a macro.  Use preprocessor to decide how to initialize
68073         attempts [Coverity CID 67].
68074
68075 2006-09-20  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/mkdtemp.c: Import from libc.
68078         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68079                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68080                 attempts_min into a macro.  Use preprocessor to decide how to
68081                 initialize attempts [Coverity CID 67].
68082         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68083                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68084                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68085
68086 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68087
68088         * gnulib-tool (func_exit): New function, to allow to pass the
68089         exit status portably through the trap.  Use everywhere.
68090         (--help, --version): Signal a write error.
68091         (trap): catch SIGPIPE, for write errors.
68092         Exit at the end of the trap, with the correct exit status.
68093
68094 2006-09-19  Karl Berry  <karl@gnu.org>
68095
68096         * doc/gnulib.texi: note about the license texinfo files.
68097
68098 2006-09-19  Eric Blake  <ebb9@byu.net>
68099
68100         * gnulib-tool: Avoid space-tab.
68101
68102 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68105         that prevented coreutils 6.1 from building.  Problem reported
68106         by Petter Reinholdtsen.
68107
68108 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * gnulib-tool (avoidlist): Fix typo that broke options like
68111         --avoid=lock that are used by coreutils bootstrap.
68112
68113 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68114
68115         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68116         more systematically.
68117
68118 2006-09-18  Jim Meyering  <jim@meyering.net>
68119
68120         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68121
68122 2006-09-18  Bruno Haible  <bruno@clisp.org>
68123
68124         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68125
68126 2006-09-18  Bruno Haible  <bruno@clisp.org>
68127
68128         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68129         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68130         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68131         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68132         * m4/gettext.m4: Require autoconf >= 2.52.
68133         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68134         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68135         of gl_cv_header_inttypes_h.
68136
68137 2006-09-18  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/javaversion.c: Include configmake.h.
68140
68141 2006-09-18  Bruno Haible  <bruno@clisp.org>
68142
68143         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68144         avoid that the while loops be executed in a subshell.
68145
68146 2006-09-18  Bruno Haible  <bruno@clisp.org>
68147
68148         * MODULES.html.sh (func_module): Break long lines.
68149         Suggested by Bruce Korb <bkorb@gnu.org>.
68150
68151 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68152
68153         Speed up by a factor of 1.12.
68154         * gnulib-tool (nl): New variable.
68155         (func_import): Rewrite include directive extraction to only read each
68156         directive once.
68157
68158 2006-09-17  Bruno Haible  <bruno@clisp.org>
68159
68160         * modules/javaversion (Makefile.am): Remove DEFS setting.
68161         (Depends-on): Add configmake, for PKGDATADIR definition.
68162
68163 2006-09-17  Bruno Haible  <bruno@clisp.org>
68164
68165         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68166
68167 2006-09-17  Bruno Haible  <bruno@clisp.org>
68168
68169         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68170         (func_modules_transitive_closure, func_modules_add_dummy,
68171         func_modules_to_filelist, func_import, func_create_testdir,
68172         func_create_megatestdir, ...): Use it wherever possible.
68173         Suggested by Ralf Wildenhues.
68174
68175 2006-09-16  Karl Berry  <karl@gnu.org>
68176
68177         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68178         to avoid sectioning errors.
68179         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68180         [ifinfo]: blank line after @center-ed titles.
68181         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68182         Spell FSF address consistently with others.
68183         (These changes approved by rms.)
68184
68185 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68186
68187         Speed up by a factor of 1.61.
68188         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68189         already checked module names again.
68190
68191 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68192
68193         Speed up by a factor of 1.13.
68194         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68195         for new_files, and the input to func_add_or_update.
68196
68197 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68198
68199         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68200         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68201
68202 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68203
68204         * modules/mkancesdirs (Depends-on): Add fcntl.
68205         * modules/savewd: New file.
68206         * MODULES.html.sh (File system functions): Add savewd.
68207
68208         * modules/configmake (Makefile.am): Add support for the
68209         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68210
68211 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * m4/savewd.m4: New file.
68214
68215 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68216
68217         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68218         (dirchownmod): New arg FD.  All callers changed.
68219         Use FD rather than opening the directory ourself, as opening is
68220         now the caller's responsibility.
68221         * lib/dirchownmod.h: Likewise.
68222         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68223         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68224         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68225         (test_dir): Remove.
68226         (mkancesdirs): Return length of prefix of FILE that has already
68227         been made, or -2 if there is a child doing the work.  Redo
68228         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68229         ".", and treat ".." specially since it might stray back into
68230         already-created areas.  Use a subprocess if necessary.  New arg
68231         WD; all users changed.  MAKE_DIR function should now return 1
68232         if it creates a directory that is not readable.  Return -2 if
68233         a child process is spun off.
68234         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68235         Adjust signature to match code.
68236         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68237         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68238         all users changed.
68239         * lib/savewd.c, lib/savewd.h: New files.
68240
68241 2006-09-15  Jim Meyering  <jim@meyering.net>
68242
68243         * modules/rename-dest-slash: New module.
68244         * MODULES.html.sh (posix_compat): Add it here.
68245
68246         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68247
68248 2006-09-15  Jim Meyering  <jim@meyering.net>
68249
68250         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68251         file.
68252
68253         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68254
68255 2006-09-15  Jim Meyering  <jim@meyering.net>
68256
68257         * lib/rename-dest-slash.c (has_trailing_slash): Use
68258         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68259         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68260         test before testing whether SRC is a directory.
68261         Suggestions from Bruno Haible.
68262
68263         Avoid a warning about an unused variable.
68264         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68265         into the #ifdef block where it's used.
68266
68267         * lib/rename-dest-slash.c: New file.
68268
68269 2006-09-14  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/allocsa.c: Include <config.h> unconditionally.
68272         * lib/asnprintf.c: Likewise.
68273         * lib/asprintf.c: Likewise.
68274         * lib/c-strcasecmp.c: Likewise.
68275         * lib/c-strcasestr.c: Likewise.
68276         * lib/c-strncasecmp.c: Likewise.
68277         * lib/c-strstr.c: Likewise.
68278         * lib/classpath.c: Likewise.
68279         * lib/clean-temp.c: Likewise.
68280         * lib/concatpath.c: Likewise.
68281         * lib/copy-file.c: Likewise.
68282         * lib/csharpcomp.c: Likewise.
68283         * lib/csharpexec.c: Likewise.
68284         * lib/execute.c: Likewise.
68285         * lib/fatal-signal.c: Likewise.
68286         * lib/findprog.c: Likewise.
68287         * lib/fwriteerror.c: Likewise.
68288         * lib/gl_array_list.c: Likewise.
68289         * lib/gl_array_oset.c: Likewise.
68290         * lib/gl_avltree_list.c: Likewise.
68291         * lib/gl_avltree_oset.c: Likewise.
68292         * lib/gl_avltreehash_list.c: Likewise.
68293         * lib/gl_carray_list.c: Likewise.
68294         * lib/gl_linked_list.c: Likewise.
68295         * lib/gl_linkedhash_list.c: Likewise.
68296         * lib/gl_list.c: Likewise.
68297         * lib/gl_oset.c: Likewise.
68298         * lib/gl_rbtree_list.c: Likewise.
68299         * lib/gl_rbtree_oset.c: Likewise.
68300         * lib/gl_rbtreehash_list.c: Likewise.
68301         * lib/imaxabs.c: Likewise.
68302         * lib/imaxdiv.c: Likewise.
68303         * lib/javacomp.c: Likewise.
68304         * lib/javaexec.c: Likewise.
68305         * lib/javaversion.c: Likewise.
68306         * lib/linebreak.c: Likewise.
68307         * lib/localcharset.c: Likewise.
68308         * lib/lock.c: Likewise.
68309         * lib/mbchar.c: Likewise.
68310         * lib/mbswidth.c: Likewise.
68311         * lib/mkdtemp.c: Likewise.
68312         * lib/pipe.c: Likewise.
68313         * lib/printf-args.c: Likewise.
68314         * lib/printf-parse.c: Likewise.
68315         * lib/progname.c: Likewise.
68316         * lib/progreloc.c: Likewise.
68317         * lib/readlink.c: Likewise.
68318         * lib/sh-quote.c: Likewise.
68319         * lib/stpcpy.c: Likewise.
68320         * lib/stpncpy.c: Likewise.
68321         * lib/strcasecmp.c: Likewise.
68322         * lib/strcasestr.c: Likewise.
68323         * lib/strcspn.c: Likewise.
68324         * lib/striconv.c: Likewise.
68325         * lib/strncasecmp.c: Likewise.
68326         * lib/strnlen1.c: Likewise.
68327         * lib/strstr.c: Likewise.
68328         * lib/strtok_r.c: Likewise.
68329         * lib/tls.c: Likewise.
68330         * lib/tmpdir.c: Likewise.
68331         * lib/unicodeio.c: Likewise.
68332         * lib/unsetenv.c: Likewise.
68333         * lib/vasnprintf.c: Likewise.
68334         * lib/vasprintf.c: Likewise.
68335         * lib/wait-process.c: Likewise.
68336         * lib/xallocsa.c: Likewise.
68337         * lib/xsetenv.c: Likewise.
68338         * lib/xstriconv.c: Likewise.
68339
68340 2006-09-13  Simon Josefsson  <jas@extundo.com>
68341
68342         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68343         that internally, suggested by Ralf Wildenhues
68344         <Ralf.Wildenhues@gmx.de>.
68345
68346 2006-09-13  Simon Josefsson  <jas@extundo.com>
68347
68348         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68349         @LIBOBJS@.
68350         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68351
68352 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68355         longer worry about uses that don't define HAVE_CONFIG_H.
68356         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68357         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68358         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68359         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68360         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68361         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68362         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68363         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68364         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68365         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68366         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68367         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68368         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68369         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68370         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68371         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68372         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68373         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68374         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68375         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68376         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68377         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68378         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68379         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68380         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68381         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68382         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68383         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68384         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68385         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68386         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68387         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68388         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68389         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68390         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68391         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68392         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68393         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68394         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68395         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68396         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68397         Likewise.
68398
68399 2006-09-13  Eric Blake  <ebb9@byu.net>
68400
68401         * lib/getopt.c: Fix typo in last commit.
68402
68403 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68404
68405         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68406         dgettext.
68407
68408 2006-09-12  Jim Meyering  <jim@meyering.net>
68409
68410         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68411         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68412         Reported by Nelson H. F. Beebe.
68413
68414 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68415
68416         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68417         program_invocation_name and program_invocation_short_name are
68418         initialized.
68419         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68420         and program_invocation_short_name to argp.h, so they are visible
68421         to user programs.
68422         * lib/argp.h: Likewise
68423
68424 2006-09-10  Bruno Haible  <bruno@clisp.org>
68425
68426         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68427         m4/inttypes_h.m4, m4/uintmax_t.m4.
68428
68429 2006-09-10  Bruno Haible  <bruno@clisp.org>
68430
68431         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68432         gl_AC_TYPE_UINTMAX_T.
68433
68434 2006-09-10  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68437
68438 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68439
68440         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68441         convention.  Text proposed by Bruno Haible.
68442         (struct argp_option): Document the use of N_() wrappers.
68443
68444         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68445         '\v', and translate the two parts separately, instead of feeding
68446         the whole string to gettext.  This allows to exclude
68447         '\v' from the strings visible to the translator by writing doc
68448         strings as N_("..") "\v" N_("..").
68449
68450 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * config/srclist.txt: Undo latest change; the bug was fixed.
68453
68454 2006-09-09  Bruno Haible  <bruno@clisp.org>
68455
68456         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68457         assignments if building a library without libtool.
68458         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68459         in func_emit_lib_Makefile_am.
68460         (func_import): When building a static library libfoo.a, arrange to
68461         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68462         (func_create_testdir): Likewise.
68463         * modules/gc (configure.ac, Makefile.am): If building statically,
68464         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68465         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68466         * modules/striconv (configure.ac, Makefile.am): Likewise.
68467         Based on a suggestion by Ralf Wildenhues.
68468
68469 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68472         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68473         Also:
68474
68475         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68476         Add year_2050_test to catch glibc bug 2821
68477         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68478
68479         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68480         Prefer #ifdef to #if.
68481
68482         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68483         Return from 'main' instead of calling 'exit'.
68484
68485 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68488         returned the maximum time_t value rather than (time_t) -1.
68489         Problem originally reported by William Bardwell
68490         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68491
68492         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68493         Moved to here ...
68494         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68495         ... from here.
68496
68497 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68500         2821 is fixed.
68501
68502 2006-09-08  Jim Meyering  <jim@meyering.net>
68503
68504         Don't make generated files read-only.  That would bother too many
68505         people.  However, do retain the ability to work when targets are
68506         read-only: remove the destination and temporary files before writing
68507         them (when generated via sed or echo), or by using the -f option for
68508         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68509         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68510         * modules/byteswap, modules/configmake, modules/fcntl:
68511         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68512         * modules/localcharset, modules/netinet_in, modules/poll:
68513         * modules/stdbool, modules/stdint, modules/sys_select:
68514         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68515
68516 2006-09-08  Jim Meyering  <jim@meyering.net>
68517
68518         Avoid new build failure on FreeBSD 6.0.
68519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68520         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68521         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68522
68523 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68524
68525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68526
68527 2006-09-07  Jim Meyering  <jim@meyering.net>
68528
68529         Fix global typo in last change: use chmod u-w, not chmod u-x.
68530         Spotted by Paul Eggert and Bruce Korb.
68531         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68532         * modules/byteswap, modules/configmake, modules/fcntl:
68533         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68534         * modules/localcharset, modules/netinet_in, modules/poll:
68535         * modules/stdbool, modules/stdint, modules/sys_select:
68536         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68537
68538 2006-09-06  Jim Meyering  <jim@meyering.net>
68539
68540         Make generated files be read-only.
68541         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68542         Ensure that each generated file is now read-only.
68543         * modules/argz: Likewise.
68544         * modules/arpa_inet: Likewise.
68545         * modules/byteswap: Likewise.
68546         * modules/configmake: Likewise.
68547         * modules/fcntl: Likewise.
68548         * modules/fnmatch: Likewise.
68549         * modules/getopt: Likewise.
68550         * modules/glob: Likewise.
68551         * modules/inttypes: Likewise.
68552         * modules/netinet_in: Likewise.
68553         * modules/poll: Likewise.
68554         * modules/stdbool: Likewise.
68555         * modules/stdint: Likewise.
68556         * modules/sys_select: Likewise.
68557         * modules/sys_socket: Likewise.
68558         * modules/sys_stat: Likewise.
68559         * modules/sysexits: Likewise.
68560         * modules/localcharset: Same as above, but continue using temporary
68561         file named "t-$@" (why different?) rather than the "$@-t" used
68562         everywhere else.
68563
68564         * modules/sysexits (Makefile.am): Replace literal occurrences
68565         of "sysexit.h" more readable, and more consistent, "$@".
68566
68567 2006-09-06  Bruno Haible  <bruno@clisp.org>
68568
68569         * modules/striconv: New file.
68570         * modules/xstriconv: New file.
68571         * MODULES.html.sh (Internationalization functions): Add striconv,
68572         xstriconv.
68573
68574 2006-09-06  Bruno Haible  <bruno@clisp.org>
68575
68576         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68577         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68578         not using libtool correctly.
68579
68580 2006-09-06  Bruno Haible  <bruno@clisp.org>
68581
68582         * lib/striconv.h: New file.
68583         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68584         iconvstring.c.
68585         * lib/xstriconv.h: New file.
68586         * lib/xstriconv.c: New file.
68587
68588 2006-09-06  Bruno Haible  <bruno@clisp.org>
68589
68590         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68591         lib_..._LDFLAGS.
68592
68593 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68594
68595         * lib/argz_.h: Sync from Libtool.
68596
68597         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68598                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68599
68600         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68601
68602 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68603
68604         * modules/trim: New file.
68605
68606 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68607
68608         * lib/trim.h: New file.
68609         * lib/trim.c: New file.
68610
68611 2006-09-05  Bruno Haible  <bruno@clisp.org>
68612
68613         * MODULES.html.sh (String handling): Add trim.
68614
68615 2006-09-04  Karl Berry  <karl@gnu.org>
68616
68617         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68618         until next release.
68619
68620 2006-09-03  Bruno Haible  <bruno@clisp.org>
68621
68622         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68623         correctly.
68624
68625 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68628         not gl_GETLOADAVG.  Omit unneeded semicolons.
68629         Problems reported by Ralf Wildenhues in
68630         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68631         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68632         at the end, which is the usual gnulib style.
68633
68634         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68635         of doing all the work ourselves.
68636         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68637         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68638
68639 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68642         Problem reported by Ralf Wildenhues in
68643         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68644
68645         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68646         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68647
68648 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68651         yesterday's patch by changing test -n to test -z.
68652
68653 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68656         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68657         the former is now obsolescent.
68658
68659         * modules/chdir-long (Depends-on): Add fcntl.
68660
68661 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68664         obsolescent, and programs should use gnulib instead.
68665         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68666         but with prefixes changed.
68667
68668 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68671         or stdbool.h, because they might not exist while configuring.
68672
68673         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68674         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68675         does that for us.
68676         (O_DIRECTORY): Remove.
68677
68678 2006-08-31  Eric Blake  <ebb9@byu.net>
68679
68680         * gnulib-tool: Don't let emacs change spaces to TAB.
68681
68682 2006-08-31  Bruno Haible  <bruno@clisp.org>
68683
68684         * gnulib-tool: When calling func_import more than once, do it in a
68685         subshell.
68686         Reported by Eric Blake <ebb9@byu.net>.
68687
68688 2006-08-31  Bruno Haible  <bruno@clisp.org>
68689
68690         * gnulib-tool (nl): Remove variable.
68691         (sed_transform_lib_file): Use more robust test for config-h module.
68692         (func_import): Fix typo in 2006-08-25 patch.
68693
68694 2006-08-31  Bruno Haible  <bruno@clisp.org>
68695
68696         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68697         specified, augment Makefile.am variables instead of assigning them.
68698
68699 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         Work around a bug in both the Linux and SunOS 64-bit kernels:
68702         nanosleep mishandles sleeps for longer than 2**31 seconds.
68703         Problem reported by Frank v Waveren in
68704         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68706         Check for nanosleep bug.
68707         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68708
68709 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68710
68711         Work around a bug in both the Linux and SunOS 64-bit kernels:
68712         nanosleep mishandles sleeps for longer than 2**31 seconds.
68713         Problem reported by Frank v Waveren in
68714         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68715         * lib/nanosleep.c (BILLION): New constant.
68716         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68717         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68718         implementation.
68719
68720 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         * modules/nanosleep (Depends-on): Add gettime.
68723
68724 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68725         and Simon Josefsson  <jas@extundo.com>
68726         and Oskar Liljeblad  <oskar@osk.mine.nu>
68727
68728         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68729         * gnulib-tool (func_import): New license type 'unmodifiable license
68730         text'.
68731         * modules/fdl: Use it.  Longer description.
68732         * module/gpl, module/lgpl: New files.
68733
68734 2006-08-30  Jim Meyering  <jim@meyering.net>
68735
68736         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68737         shadowing the parameter.
68738
68739 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68740
68741         Sync from Libtool:
68742
68743         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68744
68745         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68746         sharing with gnulib.  Report by Eric Blake.
68747
68748 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * modules/isapipe: New file.
68751         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68752
68753 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * modules/configmake (Makefile.am): Add a comment, and omit
68756         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68757         by Bruno Haible.
68758
68759 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * m4/isapipe.m4: New file.
68762
68763 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         * lib/isapipe.c, lib/isapipe.h: New files.
68766
68767 2006-08-29  Jim Meyering  <jim@meyering.net>
68768
68769         * modules/configmake (Makefile.am): Make configmake.h depend on
68770         Makefile.  Otherwise, a stale configmake.h could hang around.
68771
68772 2006-08-29  Eric Blake  <ebb9@byu.net>
68773
68774         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68775         resolution of upstream bug 3044.
68776
68777 2006-08-29  Bruno Haible  <bruno@clisp.org>
68778
68779         * modules/localcharset (Depends-on): Add configmake.
68780         (Makefile.am): Remove setting of LIBDIR through DEFS.
68781
68782 2006-08-29  Bruno Haible  <bruno@clisp.org>
68783
68784         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68785         defined.
68786
68787 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         * modules/fcntl: New file.
68790         * modules/chdir-safer (Depends-on): Add fcntl.
68791         * modules/fts: Likewise.
68792         * modules/mkdir-p: Likewise.
68793
68794         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68795         This undoes the most recent change, since we're now addressing the
68796         problem in a different way.
68797
68798         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68799         into output, since the output might be called Makefile.am even
68800         if $makefile_name is something different.
68801         (func_import): Use $makefile_am rather than
68802         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68803         empty.
68804
68805         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68806
68807 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68808
68809         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68810         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68811         recent change to stdint.m4, since we're now addressing the problem in a
68812         different way.
68813
68814 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * m4/fcntl_h.m4: New file.
68817
68818 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * lib/fcntl_.h: New file.
68821         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68822         the fcntl module.
68823         * lib/dirchownmod.c: Likewise.
68824         * lib/fts.c: Likewise.
68825
68826         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68827         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68828         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68829         just before including <inttypes.h>, to avoid circular inclusion.
68830
68831 2006-08-28  Jim Meyering  <jim@meyering.net>
68832
68833         * doc/visibility.texi: Actually read and correct the grammar of the
68834         sentence affected by yesterday's change.
68835
68836 2006-08-28  Eric Blake  <ebb9@byu.net>
68837
68838         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68839         needs wrapper.
68840
68841 2006-08-28  Eric Blake  <ebb9@byu.net>
68842
68843         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68844
68845 2006-08-28  Eric Blake  <ebb9@byu.net>
68846
68847         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68848
68849 2006-08-28  Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/c-strstr: New file, from GNU gettext.
68852         * MODULES.html.sh (String handling): Add c-strstr.
68853
68854 2006-08-28  Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68857         macros.
68858         Reported by Eric Blake.
68859
68860 2006-08-28  Bruno Haible  <bruno@clisp.org>
68861
68862         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68863         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68864         * lib/vasprintf.c: Include errno.h, limits.h.
68865         (EOVERFLOW): New fallback definition.
68866         (vasprintf): Test here whether the string length is > INT_MAX.
68867         * lib/vsnprintf.c: Include errno.h, limits.h.
68868         (EOVERFLOW): New fallback definition.
68869         (vsnprintf): Fix bug when generated string was too long for the buffer.
68870         Test here whether the string length is > INT_MAX.
68871
68872 2006-08-28  Bruno Haible  <bruno@clisp.org>
68873
68874         * lib/inttypes_.h (SCNX*): Remove definitions.
68875         Reported by Eric Blake.
68876
68877 2006-08-28  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/c-strstr.h: New file, from GNU gettext.
68880         * lib/c-strstr.c: New file, from GNU gettext.
68881
68882 2006-08-28  Bruno Haible  <bruno@clisp.org>
68883
68884         * gnulib-tool: Reorder some statements.
68885
68886 2006-08-28  Bruno Haible  <bruno@clisp.org>
68887
68888         * gnulib-tool: New option --makefile-name.
68889         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68890         $makefile_name.
68891         (func_import): Write $makefile_name to the cache file, and read it from
68892         there unless explicitly specified. Use $makefile_name as file name
68893         instead of Makefile.am. Adjust the recommendations accordingly.
68894
68895 2006-08-28  Bruno Haible  <bruno@clisp.org>
68896
68897         * gnulib-tool (func_verify_module): Check against misapplying patch.
68898
68899 2006-08-28  Bruno Haible  <bruno@clisp.org>
68900
68901         * gnulib-tool (func_relativize, func_relconcat): New functions.
68902         Give an error if --local-dir is given with --update.
68903         Remove trailing slashes from $local_gnulib_dir.
68904         (func_import): Store the relativized $local_gnulib_dir in
68905         gnulib-cache.m4, and read it from there if not specified explicitly.
68906
68907 2006-08-28  Bruno Haible  <bruno@clisp.org>
68908
68909         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68910         is the current directory. Respect also $local_gnulib_dir.
68911
68912 2006-08-28  Bruno Haible  <bruno@clisp.org>
68913             Simon Josefsson  <jas@extundo.com>
68914
68915         BeOS portability.
68916         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68917
68918 2006-08-27  Jim Meyering  <jim@meyering.net>
68919
68920         * doc/visibility.texi: Remove duplicate word: "pointer".
68921
68922 2006-08-26  Bruno Haible  <bruno@clisp.org>
68923
68924         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68925         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68926         (Makefile.am): Create inttypes.h from inttypes_.h.
68927         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68928
68929         * modules/imaxabs: New file.
68930
68931         * modules/imaxdiv: New file.
68932
68933 2006-08-26  Bruno Haible  <bruno@clisp.org>
68934
68935         * m4/inttypes.m4: New file.
68936         * m4/_inttypes_h.m4: Remove file.
68937         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68938         PRI_MACROS_BROKEN.
68939         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68940
68941         * m4/imaxabs.m4: New file.
68942
68943         * m4/imaxdiv.m4: New file.
68944
68945 2006-08-26  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/inttypes_.h: New file.
68948         * lib/inttypes.h: Remove file.
68949         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68950
68951         * lib/imaxabs.c: New file.
68952
68953         * lib/imaxdiv.c: New file.
68954
68955 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68956
68957         New config-h module, so that "make" output needn't be cluttered
68958         by -DHAVE_CONFIG_H.
68959         * MODULES.html.sh (Support for building libraries and executables):
68960         Add config-h.
68961         * modules/config-h: New file.
68962         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68963         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68964         the config-h module is used.
68965
68966         New configmake module, so that "make" output needn't be cluttered
68967         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68968         * MODULES.html.sh (Support for building libraries and executables):
68969         Add configmake.
68970         * modules/configmake: New file.
68971
68972 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * m4/config-h.m4: New file.
68975
68976 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68977
68978         * config/srclist.txt: Add elisp-comp.
68979
68980 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * MODULES.html.sh (Support for building libraries and executables):
68983         Add elisp-comp.
68984         * build-aux/elisp-comp: New file.
68985         * modules/elisp-comp: New file.
68986
68987 2006-08-24  Bruno Haible  <bruno@clisp.org>
68988
68989         * gnulib-tool (func_create_testdir): Use non-default values of
68990         sourcebase and m4base.
68991
68992 2006-08-24  Bruno Haible  <bruno@clisp.org>
68993
68994         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68995         HTML structure.
68996
68997 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68998
68999         * modules/openat (Depends-on): Add lchown.
69000
69001 2006-08-23  Bruno Haible  <bruno@clisp.org>
69002
69003         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69004         of gl_LOCK_EARLY instead of gl_LOCK.
69005
69006 2006-08-23  Bruno Haible  <bruno@clisp.org>
69007
69008         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69009         on OSF/1 to no.
69010         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69011
69012 2006-08-23  Bruno Haible  <bruno@clisp.org>
69013
69014         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69015         as unusable.
69016
69017         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69018         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69019         (gl_LOCK): New macro.
69020
69021 2006-08-22  Simon Josefsson  <jas@extundo.com>
69022
69023         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69024         to md5 module.
69025
69026 2006-08-22  Simon Josefsson  <jas@extundo.com>
69027
69028         * MODULES.html.sh: Add "Support for maintaining and release
69029         projects".
69030
69031         * build-aux/gnupload: New file, from coreutils.
69032
69033 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         Avoid the need for AC_LIBSOURCES in m4 macros.
69036         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69037         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69038         * modules/check-version (EXTRA_DIST): Add check-version.h.
69039         * modules/crc (EXTRA_DIST): Add crc.h.
69040         * modules/des (EXTRA_DIST): Add des.h.
69041         * modules/gc (EXTRA_DIST): Add gc.h.
69042         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69043         * modules/getline (EXTRA_DIST): Add getline.h.
69044         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69045         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69046         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69047         * modules/md2 (EXTRA_DIST): Add md2.h.
69048         * modules/md4 (EXTRA_DIST): Add md4.h.
69049         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69050         * modules/read-file (EXTRA_DIST): Add read-file.h.
69051         * modules/readline (EXTRA_DIST): Add readline.h.
69052         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69053         rijndael-api-fst.h.
69054
69055 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         * m4/rijndael.m4 (gl_ARCFOUR):
69058         * m4/arctwo.m4 (gl_ARCTWO):
69059         * m4/check-version.m4 (gl_CHECK_VERSION):
69060         * m4/crc.m4 (gl_CRC):
69061         * m4/des.m4 (gl_DES):
69062         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69063         * m4/gc.m4 (gl_GC):
69064         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69065         * m4/getline.m4 (gl_FUNC_GETLINE):
69066         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69067         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69068         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69069         * m4/md2.m4 (gl_MD2):
69070         * m4/md4.m4 (gl_MD4):
69071         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69072         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69073         * m4/readline.m4 (gl_FUNC_READLINE):
69074         * m4/rijndael.m4 (gl_RIJNDAEL):
69075         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69076         to get the necessary .h files and whatnot.
69077
69078 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69081         gnulib rather than the other way around.
69082         * config/srclistvars.sh (COREUTILS): Remove.
69083
69084 2006-08-22  Jim Meyering  <jim@meyering.net>
69085
69086         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69087
69088         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69089
69090 2006-08-22  Eric Blake  <ebb9@byu.net>
69091
69092         * modules/regexprops-generic: New file.
69093         * MODULES.html.sh (Support for building documentation): List it.
69094
69095 2006-08-22  Eric Blake  <ebb9@byu.net>
69096
69097         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69098         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69100         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69101
69102 2006-08-22  Bruno Haible  <bruno@clisp.org>
69103
69104         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69105         and lib_LTLIBRARIES like the other lib_* variables.
69106
69107 2006-08-22  Bruno Haible  <bruno@clisp.org>
69108
69109         * build-aux/x-to-1.in: New file, from GNU gettext.
69110
69111 2006-08-22  Bruno Haible  <bruno@clisp.org>
69112
69113         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69114         <utmpx.h> exists.
69115
69116 2006-08-22  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69119         <utmpx.h> exists.
69120
69121 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         BeOS portability.
69124         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69125         exist.
69126         Problem reported by Bruno Haible.
69127
69128 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         Avoid the need for AC_LIBSOURCES in m4 macros.
69131         * modules/acl (EXTRA_DIST): Add acl.h.
69132         * modules/argmatch (Files): Add m4/argmatch.m4.
69133         (configure.ac): Add gl_ARGMATCH.
69134         (EXTRA_DIST): Renamed from lib_SOURCES, for
69135         consistency with the other modules.  Remove argmatch.c.
69136         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69137         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69138         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69139         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69140         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69141         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69142         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69143         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69144         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69145         * modules/closeout (EXTRA_DIST): Add closeout.h.
69146         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69147         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69148         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69149         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69150         dirname.h; remove basename.c and stripslash.c.
69151         * modules/exclude (EXTRA_DIST): Add exclude.h.
69152         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69153         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69154         * modules/file-type (EXTRA_DIST): Add file-type.h.
69155         * modules/filemode (EXTRA_DIST): Add filemode.h.
69156         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69157         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69158         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69159         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69160         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69161         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69162         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69163         * modules/getdate (EXTRA_DIST): Add getdate.c.
69164         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69165         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69166         * modules/getpass (EXTRA_DIST): Add getpass.h.
69167         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69168         * modules/group-member (EXTRA_DIST): Add group-member.h.
69169         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69170         * modules/hash (EXTRA_DIST): Add hash.h.
69171         * modules/human (EXTRA_DIST): Add human.h.
69172         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69173         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69174         * modules/lchown (EXTRA_DIST): Add lchown.h.
69175         * modules/long-options (EXTRA_DIST): Add long-options.h.
69176         * modules/lstat (EXTRA_DIST): Add lstat.h.
69177         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69178         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69179         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69180         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69181         * modules/memxor (EXTRA_DIST): Add memxor.h.
69182         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69183         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69184         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69185         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69186         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69187         * modules/physmem (EXTRA_DIST): Add physmem.h.
69188         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69189         * modules/posixver (EXTRA_DIST): Add posixver.h.
69190         * modules/quote (EXTRA_DIST): Add quote.h.
69191         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69192         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69193         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69194         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69195         regex_internal.h regexec.c.
69196         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69197         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69198         * modules/same (EXTRA_DIST): Add same.h.
69199         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69200         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69201         * modules/savedir (EXTRA_DIST): Add savedir.h.
69202         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69203         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69204         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69205         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69206         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69207         * modules/strdup (EXTRA_DIST): Add strdup.h.
69208         * modules/strftime (EXTRA_DIST): Add strftime.h.
69209         * modules/strndup (EXTRA_DIST): Add strndup.h.
69210         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69211         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69212         * modules/time_r (EXTRA_DIST): Add time_r.h.
69213         * modules/timespec (EXTRA_DIST): Add timespec.h.
69214         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69215         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69216         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69217         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69218         * modules/userspec (EXTRA_DIST): Add userspec.h.
69219         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69220         * modules/utimens (EXTRA_DIST): Add utimens.h.
69221         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69222         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69223         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69224         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69225         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69226         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69227         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69228         * modules/yesno (EXTRA_DIST): Add yesno.h.
69229
69230 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69233
69234         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69235         * m4/dev-ino.m4, same-inode.m4: Remove.
69236
69237         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69238         * m4/acl.m4 (AC_FUNC_ACL):
69239         * m4/backupfile.m4 (gl_BACKUPFILE):
69240         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69241         * m4/canon-host.m4 (gl_CANON_HOST):
69242         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69243         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69244         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69245         * m4/cloexec.m4 (gl_CLOEXEC):
69246         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69247         * m4/closeout.m4 (gl_CLOSEOUT):
69248         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69249         * m4/dirname.m4 (gl_DIRNAME):
69250         * m4/exclude.m4 (gl_EXCLUDE):
69251         * m4/exitfail.m4 (gl_EXITFAIL):
69252         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69253         * m4/file-type.m4 (gl_FILE_TYPE):
69254         * m4/filemode.m4 (gl_FILEMODE):
69255         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69256         * m4/fpending.m4 (gl_FUNC_FPENDING):
69257         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69258         * m4/fts.m4 (gl_FUNC_FTS):
69259         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69260         * m4/getdate.m4 (gl_GETDATE):
69261         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69262         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69263         * m4/getpass.m4 (gl_FUNC_GETPASS):
69264         * m4/gettime.m4 (gl_GETTIME):
69265         * m4/getugroups.m4 (gl_GETUGROUPS):
69266         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69267         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69268         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69269         * m4/hash.m4 (gl_HASH):
69270         * m4/idcache.m4 (gl_IDCACHE):
69271         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69272         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69273         * m4/long-options.m4 (gl_LONG_OPTIONS):
69274         * m4/lstat.m4 (gl_FUNC_LSTAT):
69275         * m4/md5.m4 (gl_MD5):
69276         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69277         * m4/memcoll.m4 (gl_MEMCOLL):
69278         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69279         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69280         * m4/memxor.m4 (gl_MEMXOR):
69281         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69282         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69283         * m4/modechange.m4 (gl_MODECHANGE):
69284         * m4/mountlist.m4 (gl_MOUNTLIST):
69285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69286         * m4/openat.m4 (gl_FUNC_OPENAT):
69287         * m4/pathmax.m4 (gl_PATHMAX):
69288         * m4/physmem.m4 (gl_PHYSMEM):
69289         * m4/posixtm.m4 (gl_POSIXTM):
69290         * m4/posixver.m4 (gl_POSIXVER):
69291         * m4/quote.m4 (gl_QUOTE):
69292         * m4/quotearg.m4 (gl_QUOTEARG):
69293         * m4/readtokens.m4 (gl_READTOKENS):
69294         * m4/readutmp.m4 (gl_READUTMP):
69295         * m4/regex.m4 (gl_REGEX):
69296         * m4/safe-read.m4 (gl_SAFE_READ):
69297         * m4/safe-write.m4 (gl_SAFE_WRITE):
69298         * m4/same.m4 (gl_SAME):
69299         * m4/save-cwd.m4 (gl_SAVE_CWD):
69300         * m4/savedir.m4 (gl_SAVEDIR):
69301         * m4/settime.m4 (gl_SETTIME):
69302         * m4/sha1.m4 (gl_SHA1):
69303         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69304         * m4/stat-macros.m4 (gl_STAT_MACROS):
69305         * m4/stat-time.m4 (gl_STAT_TIME):
69306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69307         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69308         * m4/strdup.m4 (gl_FUNC_STRDUP):
69309         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69310         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69311         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69312         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69313         * m4/time_r.m4 (gl_TIME_R):
69314         * m4/timespec.m4 (gl_TIMESPEC):
69315         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69316         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69317         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69318         * m4/userspec.m4 (gl_USERSPEC):
69319         * m4/utimecmp.m4 (gl_UTIMECMP):
69320         * m4/utimens.m4 (gl_UTIMENS):
69321         * m4/xalloc.m4 (gl_XALLOC):
69322         * m4/xgetcwd.m4 (gl_XGETCWD):
69323         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69324         * m4/xreadlink.m4 (gl_XREADLINK):
69325         * m4/xstrtod.m4 (gl_XSTRTOD):
69326         * m4/yesno.m4 (gl_YESNO):
69327         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69328         to get the necessary .h files and whatnot.
69329
69330 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69331             Bruno Haible  <bruno@clisp.org>
69332
69333         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69334         /bin/sh understanding of '!' conditional negation.
69335
69336 2006-08-21  Jim Meyering  <jim@meyering.net>
69337
69338         * modules/openat (Depends-on): Really alphabetize.
69339
69340         * modules/acl (Depends-on): Add error and quote.
69341
69342         * check-module (find_included_lib_files): Add at-func.c to the
69343         ok-to-include-more-than-once white list.
69344
69345         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69346
69347 2006-08-21  Bruno Haible  <bruno@clisp.org>
69348
69349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69350         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69351         Reported by Martin Lambers <marlam@marlam.de>.
69352
69353 2006-08-21  Bruno Haible  <bruno@clisp.org>
69354
69355         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69356         specify an installation location, don't emit a noinst_LIBRARIES or
69357         noinst_LTLIBRARIES assignment.
69358
69359 2006-08-21  Bruno Haible  <bruno@clisp.org>
69360
69361         BeOS portability.
69362         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69363         BeOS has mbrtowc() but no <wctype.h>.
69364
69365 2006-08-21  Bruno Haible  <bruno@clisp.org>
69366
69367         BeOS portability.
69368         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69369         exist.
69370
69371 2006-08-21  Bruno Haible  <bruno@clisp.org>
69372
69373         BeOS portability.
69374         * lib/mbchar.h: Include <wctype.h> only if it exists.
69375
69376 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         Remove files that are no longer needed by their respective modules.
69379         * m4/obstack.m4: Remove.
69380         * m4/strerror_r.m4: Remove.
69381         * m4/uint32_t.m4: Remove.
69382         * m4/uintptr_t.m4: Remove.
69383         * m4/ullong_max.m4: Remove.
69384         * m4/xstrtoimax.m4: Remove.
69385         * m4/xstrtoumax.m4: Remove.
69386
69387         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69388         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69389         dependencies now capture this.
69390
69391         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69392         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69393         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69394         * m4/human.m4 (gl_HUMAN): Likewise.
69395         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69396         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69397
69398         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69399
69400         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69401         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69402         stdint.
69403         * m4/human.m4 (gl_HUMAN): Likewise.
69404         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69405         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69406         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69407         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69408         * m4/xstrtol (gl_XSTRTOL): Likewise.
69409
69410         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69411         AC_TYPE_LONG_LONG_INT.
69412         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69413         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69414         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69415         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69416
69417         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69418         on stdbool.
69419
69420         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69421         (gl_PREREQ_XSTRTOUL): Remove.
69422
69423         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69424
69425         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69426         mode.
69427
69428 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         Add and change modules to make it easier for coreutils to use
69431         gnulib-tool.
69432         * modules/backupfile (Files): Remove m4/d-ino.m4.
69433         (Depends-on): Add d-ino.
69434         * modules/cycle-check (Depends-on): Add stdint.
69435         (lib_SOURCES): Add cycle-check.h.
69436         * modules/d-ino: New module.
69437         * modules/d-type: New module.
69438         * modules/error (Files): Remove m4/strerror_r.m4.
69439         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69440         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69441         m4/inttypes_h.m4, m4/uintmax_t.m4.
69442         (Depends-on): Add stdint.
69443         (lib_SOURCES): Add fsusage.h.
69444         * modules/getcwd (Files): Remove d-ino.m4.
69445         (Depends-on): Add d-ino.
69446         * modules/getndelim2 (Depends-on): Add stdint.
69447         * modules/glob (Files): Remove m4/d-type.m4.
69448         (Depends-on): Add d-type.
69449         * modules/host-os: New module.
69450         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69451         m4/inttypes_h.m4, m4/uintmax_t.m4.
69452         * Depends-on: Add stdint.
69453         (lib_SOURCES): Add human.h.
69454         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69455         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69456         m4/uintmax_t.m4, m4/ulonglong.m4.
69457         (Depends-on): Add stdint.
69458         (EXTRA_DIST): Add inttostr.h.
69459         * modules/lchmod: New module.
69460         * modules/link-follow: New module.
69461         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69462         (Depends-on): Add lchmod.
69463         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69464         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69465         (Depends-on): Add stdint.
69466         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69467         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69468         (Depends-on): Add stdint.
69469         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69470         * modules/perl: New module.
69471         * modules/regex (Depends-on): Add stdint.
69472         * modules/rmdir-errno: New module.
69473         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69474         m4/intmax_t.m4.
69475         (Depends-on): Add stdint.
69476         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69477         m4/uintmax_t.m4.
69478         (Depends-on): Add stdint.
69479         * modules/unlink-busy: New module.
69480         * modules/utimecmp (Depends-on): Add stdint.
69481         * modules/uptime: New module.
69482         * modules/winsz-ioctl: New module.
69483         * modules/winsz-termios: New module.
69484         * modules/xnanosleep (Depends-on): Add nanosleep.
69485         * modules/ullong_max: Remove.
69486         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69487         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69488         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69489         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69490         (Depends-on): Add inttypes.
69491         (lib_SOURCES): Add xstrtol.h.
69492         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69493         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69494         * MODULES.html.sh: Move 'assert' into the assert section.
69495         Move 'dummy' into the linking section.
69496         Remove ullong_max.
69497         Add section for compatibility checks for POSIX:2001 functions,
69498         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69499         winsz-ioctl, and winsz-termios into it.
69500         Add lchmod.
69501         Add top-level Misc section and put host-os, perl, and uptime
69502         into it.
69503
69504 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69505
69506         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69507         now assume the stdint module.  Do not include inttypes.h.
69508         * lib/fsusage.h: Likewise.
69509         * lib/getndelim2.c: Likewise.
69510         * lib/human.h: Likewise.
69511         * lib/inttostr.h: Likewise.
69512         * lib/obstack.c: Likewise.
69513         * lib/regex_internal.h: Likewise.
69514         * lib/tempname.c: Likewise.
69515         * lib/utimecmp.c: Likewise.
69516         * lib/xstrtol.h: Likewise.
69517
69518         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69519
69520         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69521         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69522         * lib/xtime.h: Likewise.
69523
69524 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         * modules/openat (Files): Add lib/fchmodat.c.
69527         Fixes problem reported by Jay Youngman.
69528
69529 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69532         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69533
69534 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69535             Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69538         and is a script that invokes bison. Tighten the code. Add comments.
69539
69540 2006-08-18  Jim Meyering  <jim@meyering.net>
69541
69542         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69543         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69544         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69545         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69546
69547 2006-08-18  Bruno Haible  <bruno@clisp.org>
69548
69549         * modules/bison-i18n: New file.
69550         * MODULES.html.sh (Internationalization functions): Add it.
69551
69552 2006-08-18  Bruno Haible  <bruno@clisp.org>
69553
69554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69555         sys/statvfs.h. When getmntinfo was found, check its declaration and
69556         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69557
69558 2006-08-18  Bruno Haible  <bruno@clisp.org>
69559
69560         * m4/bison-i18n.m4: New file, from bison.
69561
69562 2006-08-18  Bruno Haible  <bruno@clisp.org>
69563
69564         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69565         (ME_DUMMY): Treat "kernfs" as a dummy.
69566         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69567
69568 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         Update from coreutils.
69571
69572         2006-08-15  Jim Meyering  <jim@meyering.net>
69573
69574         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69575
69576         2006-01-17  Jim Meyering  <jim@meyering.net>
69577
69578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69579
69580         2006-01-11  Jim Meyering  <jim@meyering.net>
69581
69582         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69583         Check for the lchmod function.
69584
69585 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         Update from coreutils.
69588
69589         * lib/__fpending.h: Add copyright notice.
69590         * lib/fprintftime.h: Likewise.
69591         * lib/savedir.c: Use (C) in copyright notice.
69592         * lib/savedir.h: Likewise.
69593
69594         2006-08-15  Jim Meyering  <jim@meyering.net>
69595
69596         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69597         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69598         in support of the EXPECTED_ERRNO macro.
69599         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69600         definitions.  Instead, define the appropriate symbols and include
69601         "at-func.c".
69602         * lib/mkdirat.c (mkdirat): Likewise.
69603         * lib/fchmodat.c (fchmodat): Likewise.
69604         (ENOSYS): Remove definition.
69605         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69606         it.  Don't include "unistd--.h" -- it wasn't ever used.
69607
69608         2006-01-17  Jim Meyering  <jim@meyering.net>
69609
69610         Rewrite fts.c not to change the current working directory,
69611         by using openat, fstatat, fdopendir, etc..
69612
69613         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69614         (HAVE_OPENAT_SUPPORT): Define.
69615         [_LIBC] (fchdir): Don't undef or define; no longer used.
69616         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69617         Now, this `function' always succeeds, and consumes its file descriptor
69618         parameter -- so callers must not close such FDs.  Update callers.
69619         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69620         (diropen): Add parameter, SP.  Adjust all callers.
69621         Implement using diropen_fd, rather than open.
69622         (fts_open): Initialize new member, fts_cwd_fd.
69623         Remove fts_rft-setting code.
69624         (fts_close): Close fts_cwd_fd, if necessary.
69625         (__opendir2): Define in terms of opendir or opendirat,
69626         depending on whether the FST_NOCHDIR flag is set.
69627         (fts_build): Since fts_safe_changedir consumes its FD, and since
69628         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69629         and close the dup'd file descriptor upon failure.
69630         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69631         (fts_safe_changedir): Tweak semantics to reflect that this function
69632         now calls cwd_advance_fd and hence consumes its FD argument.
69633         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69634         [struct FTS] (fts_rft): Remove now-unused member.
69635         [struct FTS] (fts_cycle.state): Improve comment.
69636
69637         * lib/openat.c (openat_needs_fchdir): New function.
69638         * lib/openat.h (openat_needs_fchdir): Declare it.
69639
69640 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69643         Problem and fix reported by Pádraig Brady in
69644         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69645
69646 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69647
69648         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69649
69650 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * lib/memcoll.c (memcoll): Optimize for the common case where the
69653         arguments are bytewise equal.
69654
69655 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * doc/regexprops-generic.texi: Add a copyright notice.
69658
69659 2006-08-15  Bruno Haible  <bruno@clisp.org>
69660
69661         * modules/tmpdir (License): Change to LGPL.
69662
69663 2006-08-15  Bruno Haible  <bruno@clisp.org>
69664
69665         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69666         module.
69667
69668 2006-08-14  Simon Josefsson  <jas@extundo.com>
69669
69670         * config/srclist.txt: Add gnupload.
69671
69672 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         Change copyright notice from LGPL 2 to GPL 2, since that's the
69675         standard form used in the gnulib repository.
69676         * tests/test-lock.c: Likewise.
69677         * tests/test-stdint.c: Likewise.
69678         * tests/test-tls.c: Likewise.
69679
69680         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69681         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69682         Add copyright notice.
69683
69684         * check-module: Add copyright notice.  Output a copyright
69685         notice if "--version" is specified.
69686         * modules/COPYING: New file.
69687         * tests/test-getaddrinfo.c: Add copyright notice.
69688         * tests/test-verify.c: Likewise.
69689
69690 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         Change copyright notice from LGPL 2 to GPL 2, since that's the
69693         standard form used in the gnulib repository.
69694         * lib/lock.c: LGPL -> GPL.
69695         * lib/lock.h: Likewise.
69696         * lib/strnlen1.c: Likewise.
69697         * lib/strnlen1.h: Likewise.
69698         * lib/tls.c: Likewise.
69699         * lib/tls.h: Likewise.
69700         * lib/tmpdir.c: Likewise.
69701
69702         * lib/TODO: Remove; this belongs only in coreutils.
69703
69704 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         Add copyright notices to long-enough files that lack them, since
69707         otherwise the files aren't clearly free.  Use the same notice that
69708         getdate.texi already uses.
69709         * doc/alloca-opt.texi: Add copyright notice.
69710         * doc/alloca.texi: Likewise.
69711         * doc/ctime.texi: Likewise.
69712         * doc/functions.texi: Likewise.
69713         * doc/gcd.texi: Likewise.
69714         * doc/gnulib-tool.texi: Likewise.
69715         * doc/inet_ntoa.texi: Likewise.
69716         * doc/visibility.texi: Likewise.
69717
69718         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69719         * doc/quote.texi: Add copyright notice.
69720
69721         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69722         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69723         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69724         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69725         is now obsolete, and give a pointer to the Sun list.
69726         Add copyright notice.
69727
69728 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * config/srclistvars.sh: Add copyright notice.
69731
69732 2006-08-14  Eric Blake  <ebb9@byu.net>
69733
69734         Import the following change from libc:
69735
69736         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69737
69738         Upstream bug 2997.
69739         * lib/misc/error.c: Add space between program name and message if file
69740         name is missing.
69741
69742 2006-08-12  Karl Berry  <karl@gnu.org>
69743
69744         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69745         remove, these originate in gnulib now.
69746
69747 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69748
69749         * doc/Makefile (standards.info standards.html standards.dvi):
69750         Also depend on make-stds.texi.
69751
69752 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69755         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69756
69757         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69758         in wchar_t.  Problem reported by Eric Blake.
69759
69760         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69761         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69762         Also, help the compiler to keep LEN in a register.
69763
69764 2006-08-11  Eric Blake  <ebb9@byu.net>
69765
69766         * users.txt: Sort.  Add tar.
69767
69768 2006-08-11  Bruno Haible  <bruno@clisp.org>
69769
69770         * users.txt: New file.
69771
69772 2006-08-11  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69775         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69776
69777 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         * modules/snprintf (Depends-on): Remove minmax.
69780         (Maintainer): Add self and Bruno.
69781
69782 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69785         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69786         (EOVERFLOW): Define if the system does not.
69787         Do not include "minmax.h"; it wasn't used.
69788         (snprintf): Don't assume size_t promotes to an unsigned type.
69789         Fix bug when generated string was too long for the buffer: the
69790         buffer's contents are supposed to be the initial prefix of the
69791         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69792         exceeds INT_MAX; do the check ourselves.
69793
69794         Import the following changes from libc:
69795
69796         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69797
69798         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69799         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69800         set wc to the byte which couldn't be converted.
69801         (re_string_reconstruct): Don't clear valid_raw_len before calling
69802         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69803         tip_context using re_string_context_at.
69804
69805         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69806
69807         * lib/posix/regex.h: g++ still cannot handled [restrict].
69808
69809         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69810
69811         * lib/posix/regex.h: Remove special handling for VMS.
69812
69813 2006-08-10  Jim Meyering  <jim@meyering.net>
69814
69815         * modules/same-inode: New module.
69816         * modules/dev-ino: New module.
69817         * modules/cycle-check: Depend on these modules, rather than simply
69818         including their .h files.
69819         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69820         required via m4/cycle-check.m4.
69821         * modules/same: Depend on new same-inode module, rather than
69822         including same-inode.h.
69823         * modules/chdir-safer: New file.
69824
69825         * modules/chown (Depends-on): Add stat-macros.
69826
69827 2006-08-10  Jim Meyering  <jim@meyering.net>
69828
69829         * m4/cycle-check.m4: New file.
69830         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69831         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69832
69833 2006-08-10  Eric Blake  <ebb9@byu.net>
69834
69835         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69836         in from original proposal.
69837
69838 2006-08-10  Eric Blake  <ebb9@byu.net>
69839         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69840
69841         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69842         namespace.
69843
69844 2006-08-10  Bruno Haible  <bruno@clisp.org>
69845
69846         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69847         as well.
69848
69849 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         Sync from coreutils.
69852
69853         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69854
69855         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69856         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69857
69858 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * modules/restrict: Remove; no longer needed now that we assume
69861         Autoconf 2.59 or later.
69862         * MODULES.html.sh: Remove 'restrict'.
69863         * modules/argp (Depends-on): Remove 'restrict'.
69864         * modules/base64 (Depends-on): Likewise.
69865         * modules/gc (Depends-on): Likewise.
69866         * modules/getaddrinfo (Depends-on): Likewise.
69867         * modules/glob (Depends-on): Likewise.
69868         * modules/inet_ntop (Depends-on): Likewise.
69869         * modules/inet_pton (Depends-on): Likewise.
69870         * modules/memxor (Depends-on): Likewise.
69871         * modules/regex (Depends-on): Likewise.
69872         * modules/strtok_r (Depends-on): Likewise.
69873         * modules/time_r (Depends-on): Likewise.
69874
69875 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69876
69877         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69878         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69879         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69880         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69881         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69882         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69883         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69884         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69885
69886         Merge from coreutils.
69887         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69888         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69889         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69890         * m4/time_r.m4 (gl_TIME_R): Likewise.
69891
69892 2006-08-09  Karl Berry  <karl@gnu.org>
69893
69894         * config/srclist.txt: no more gettext-tools, per Bruno.
69895
69896 2006-08-08  Eric Blake  <ebb9@byu.net>
69897
69898         * modules/verror: New module.
69899         * MODULES.html.sh: Document it.
69900
69901 2006-08-08  Eric Blake  <ebb9@byu.net>
69902
69903         * lib/verror.h, lib/verror.c: New files.
69904
69905 2006-08-08  Eric Blake  <ebb9@byu.net>
69906
69907         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69908         verror_at_line output complies with GNU Coding Standards even when
69909         file is NULL.
69910
69911 2006-08-07  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69914         versions of AIX.
69915         Reported by Ralf Wildenhues.
69916
69917 2006-08-07  Bruno Haible  <bruno@clisp.org>
69918
69919         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69920         in an AC_DEFUN. Needed so that the autoconf snippets can use
69921         AC_REQUIRE.
69922
69923 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69924
69925         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69926         Initialize pkgdata_DATA.
69927         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69928         overriding it.
69929
69930 2006-08-06  Eric Blake  <ebb9@byu.net>
69931
69932         * lib/error.h: Fold in some upstream changes from glibc.
69933         * lib/error.c: Likewise.
69934
69935 2006-08-04  Bruno Haible  <bruno@clisp.org>
69936
69937         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69938         Make the mostlyclean-local rule depend on mostlyclean-generic.
69939         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69940
69941 2006-07-31  Bruno Haible  <bruno@clisp.org>
69942
69943         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69944         <stdlib.h>, <string.h>.
69945
69946 2006-07-30  Bruno Haible  <bruno@clisp.org>
69947
69948         * modules/readlink (License): Change to LGPL.
69949
69950 2006-07-30  Bruno Haible  <bruno@clisp.org>
69951
69952         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69953         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69954         set PKGDATADIR to point to it.
69955
69956 2006-07-30  Bruno Haible  <bruno@clisp.org>
69957
69958         * modules/csharpexec (configure.ac): Comment out macro invocation.
69959         * modules/javaexec (configure.ac): Likewise.
69960         * modules/javacomp-script (configure.ac): Likewise.
69961
69962         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69963
69964 2006-07-30  Bruno Haible  <bruno@clisp.org>
69965
69966         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69967         linked-list.
69968
69969 2006-07-30  Bruno Haible  <bruno@clisp.org>
69970
69971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69972
69973 2006-07-30  Bruno Haible  <bruno@clisp.org>
69974
69975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69976         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69977         get removed.
69978
69979 2006-07-29  Bruno Haible  <bruno@clisp.org>
69980
69981         Make it possible for gnulib-tool to work with locally modified or
69982         augmented gnulib repositories.
69983         * gnulib-tool (func_usage): Document --local-dir option.
69984         (local_gnulib_dir): New variable.
69985         Handle --local-dir option.
69986         (func_lookup_file): New function.
69987         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69988         (func_get_description, func_get_filelist, func_get_description,
69989         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69990         func_get_automake_snippet, func_get_include_directive,
69991         func_get_license, func_get_maintainer): Use func_lookup_file.
69992         (func_import, func_create_testdir): Use func_lookup_file.
69993
69994 2006-07-29  Bruno Haible  <bruno@clisp.org>
69995
69996         * modules/setenv (Depends-on): Add unistd.
69997
69998 2006-07-29  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70001
70002 2006-07-29  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70005
70006 2006-07-29  Bruno Haible  <bruno@clisp.org>
70007
70008         * gnulib-tool (import, update): If there is no Makefile.am, look at
70009         aclocal.m4, instead of bailing out.
70010
70011 2006-07-29  Bruno Haible  <bruno@clisp.org>
70012
70013         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70014         Categorize the options by when they are useful.
70015
70016 2006-07-29  Bruno Haible  <bruno@clisp.org>
70017
70018         * gnulib-tool (func_usage): Document option --no-libtool.
70019         Handle option --no-libtool.
70020         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70021         for changed semantics of $libtool variable.
70022         (func_import): Likewise. If libtool is not used, show this through
70023         an option --no-libtool.
70024         (func_create_testdir): Update.
70025
70026 2006-07-29  Bruno Haible  <bruno@clisp.org>
70027
70028         * gnulib-tool (func_import): Extend error message about missing
70029         --doc-base.
70030
70031 2006-07-29  Bruno Haible  <bruno@clisp.org>
70032
70033         * gnulib-tool (func_import): Don't create the $docbase directory if
70034         there is no file to store there.
70035
70036 2006-07-29  Bruno Haible  <bruno@clisp.org>
70037
70038         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70039         relevant, look for configure.ac there, not in the current directory.
70040         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70041
70042 2006-07-29  Bruno Haible  <bruno@clisp.org>
70043
70044         * gnulib-tool (SORT): New variable.
70045         (func_usage): Undocument --assume-autoconf option.
70046         Remove --assume-autoconf option handling.
70047         (autoconf_minversion): Determine from the contents of configure.ac.
70048         (func_import): Remove autoconf_minversion handling.
70049         Suggested by Eric Blake.
70050
70051 2006-07-29  Bruno Haible  <bruno@clisp.org>
70052
70053         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70054
70055 2006-07-29  Bruno Haible  <bruno@clisp.org>
70056
70057         * config/srclist.txt (*setenv.[ch]): Remove rules.
70058
70059 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70060
70061         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70062
70063 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70064
70065         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70066         arpa/inet.h.
70067
70068 2006-07-28  Simon Josefsson  <jas@extundo.com>
70069
70070         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70071         * modules/inet_pton (Depends-on): Likewise.
70072
70073 2006-07-28  Simon Josefsson  <jas@extundo.com>
70074
70075         * m4/netinet_in_h.m4: New file.
70076
70077 2006-07-28  Simon Josefsson  <jas@extundo.com>
70078
70079         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70080         #include's.
70081
70082 2006-07-28  Simon Josefsson  <jas@extundo.com>
70083
70084         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70085         #include's.
70086
70087 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70090         setgid on directories only if they set these bits.
70091         * lib/modechange.h: Remove obsolete comment about masks.
70092
70093 2006-07-28  Eric Blake  <ebb9@byu.net>
70094
70095         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70096         macro expansion.
70097
70098 2006-07-28  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70101
70102 2006-07-28  Bruno Haible  <bruno@clisp.org>
70103
70104         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70105
70106 2006-07-28  Bruno Haible  <bruno@clisp.org>
70107
70108         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70109         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70110         Define fallbacks.
70111         Avoids link error on FreeBSD 4.x.
70112         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70113
70114         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70115         encoding.
70116         * lib/mbswidth.c (iswcntrl): Likewise.
70117
70118 2006-07-27  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70121         test.
70122
70123 2006-07-27  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70126         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70127         defined.
70128
70129 2006-07-26  Eric Blake  <ebb9@byu.net>
70130
70131         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70132
70133 2006-07-26  Eric Blake  <ebb9@byu.net>
70134
70135         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70136         like mingw that lack mkstemp.
70137         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70138         avoid compilation warning on mingw.
70139
70140 2006-07-26  Bruno Haible  <bruno@clisp.org>
70141
70142         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70143         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70144         INT_FAST*_MIN, INTPTR_MIN.
70145
70146 2006-07-25  Bruno Haible  <bruno@clisp.org>
70147
70148         * modules/version-etc (Depends-on): Add stdarg.
70149
70150 2006-07-25  Bruno Haible  <bruno@clisp.org>
70151
70152         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70153         complex commands.
70154
70155 2006-07-25  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70158         defined in <stdarg.h> or config.h.
70159
70160 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70163         (gl_STDIO_SAFER): Remove.
70164
70165 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * MODULES.html.sh (File stream based Input/Output):
70168         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70169         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70170         * modules/fopen-safer, modules/tmpfile-safer: New files.
70171         * modules/stdio-safer: Remove.
70172
70173 2006-07-24  Bruno Haible  <bruno@clisp.org>
70174
70175         * modules/tmpdir: New file.
70176         * MODULES.html.sh (File system functions): Add it.
70177
70178 2006-07-24  Bruno Haible  <bruno@clisp.org>
70179
70180         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70181         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70182
70183 2006-07-24  Bruno Haible  <bruno@clisp.org>
70184
70185         * modules/clean-temp: New file.
70186
70187 2006-07-24  Bruno Haible  <bruno@clisp.org>
70188
70189         * m4/tmpdir.m4: New file, from GNU gettext.
70190
70191 2006-07-24  Bruno Haible  <bruno@clisp.org>
70192
70193         * lib/tmpdir.h: New file, from GNU gettext.
70194         * lib/tmpdir.c: New file, from GNU gettext.
70195
70196 2006-07-24  Bruno Haible  <bruno@clisp.org>
70197
70198         * lib/clean-temp.h: New file, from GNU gettext.
70199         * lib/clean-temp.c: New file, from GNU gettext.
70200
70201 2006-07-23  Eric Blake  <ebb9@byu.net>
70202
70203         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70204         (Depends-on): Add binary-io.
70205
70206 2006-07-23  Eric Blake  <ebb9@byu.net>
70207
70208         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70209
70210 2006-07-23  Eric Blake  <ebb9@byu.net>
70211
70212         * lib/tmpfile-safer.c: New file.
70213         * lib/stdio-safer.h (fopen_safer): Add prototype.
70214         * lib/stdio--.h (tmpfile): Make safer.
70215
70216 2006-07-23  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70219         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70220         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70221         gl_linked_remove_at): Use it.
70222
70223 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70224         and Simon Josefsson <jas@extundo.com>
70225
70226         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70227
70228         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70229
70230 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         * modules/close-stream: New file.
70233         * modules/closeout (Description): Make it clear that it exits
70234         with a diagnostic on error.
70235         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70236         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70237
70238 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * m4/close-stream.m4: New file.
70241
70242 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * lib/close-stream.c, lib/close-stream.h: New files.
70245
70246 2006-07-22  Bruno Haible  <bruno@clisp.org>
70247
70248         Merge from GNU gettext 0.15.
70249
70250         2006-05-01  Bruno Haible  <bruno@clisp.org>
70251
70252                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70253
70254         2006-07-22  Bruno Haible  <bruno@clisp.org>
70255
70256                 * modules/javaversion: New file.
70257                 * MODULES.html.sh (Java): Add javaversion.
70258
70259         2006-03-12  Bruno Haible  <bruno@clisp.org>
70260
70261                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70262
70263         2005-12-04  Bruno Haible  <bruno@clisp.org>
70264
70265                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70266                 (untested).
70267
70268         2006-06-21  Bruno Haible  <bruno@clisp.org>
70269
70270                 Avoid warnings from recent versions of mcs.
70271                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70272                 -o, -L, -r any more. Use options documented since mcs-1.0
70273                 instead. Similarly for -g.
70274
70275         2005-12-04  Bruno Haible  <bruno@clisp.org>
70276
70277                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70278                 .resources, not .resource.
70279
70280         2005-07-09  Bruno Haible  <bruno@clisp.org>
70281
70282                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70283                 add a .dll suffix.
70284                 Reported by Mark Junker <mjscod@gmx.de>.
70285
70286         2006-07-22  Bruno Haible  <bruno@clisp.org>
70287
70288                 * modules/gettext: Upgrade to gettext-0.15.
70289                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70290                 m4/visibility.m4.
70291                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70292
70293 2006-07-22  Bruno Haible  <bruno@clisp.org>
70294
70295         Merge from GNU gettext 0.15.
70296
70297         2006-03-25  Bruno Haible  <bruno@clisp.org>
70298
70299                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70300
70301         2006-07-21  Bruno Haible  <bruno@clisp.org>
70302
70303                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70304                 "1.1".
70305
70306         2006-05-09  Bruno Haible  <bruno@clisp.org>
70307
70308                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70309                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70310                 for the conftestver execution.
70311
70312         2006-05-01  Bruno Haible  <bruno@clisp.org>
70313
70314                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70315                 optional target-version argument. Verify that the compiler
70316                 groks source of the specified source-version, or add -source
70317                 option as necessary. Verify that the compiler produces
70318                 bytecode in the specified target-version, or add -target and
70319                 -source options as necessary. Make the result of the test
70320                 available as variable CONF_JAVAC. Also log error output in
70321                 config.log.
70322
70323         2006-03-11  Bruno Haible  <bruno@clisp.org>
70324
70325                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70326
70327         2006-05-09  Bruno Haible  <bruno@clisp.org>
70328
70329                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70330                 CLASSPATH_SEPARATOR to a semicolon.
70331
70332         2006-03-12  Bruno Haible  <bruno@clisp.org>
70333
70334                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70335                 available as variable CONF_JAVA, for subsequent autoconf
70336                 tests. Also log error output in config.log.
70337
70338         2006-07-19  Bruno Haible  <bruno@clisp.org>
70339
70340                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70341                 that getline works on glibc2 systems. Needed to avoid trouble
70342                 in relocatable.c.
70343                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70344
70345         2005-12-04  Bruno Haible  <bruno@clisp.org>
70346
70347                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70348                 launcher (untested).
70349
70350         2005-12-04  Bruno Haible  <bruno@clisp.org>
70351
70352                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70353
70354         2006-07-22  Bruno Haible  <bruno@clisp.org>
70355
70356                 * gettext.m4: Update from GNU gettext-0.15.
70357                 * nls.m4: Likewise.
70358                 * po.m4: Likewise.
70359                 * inttypes-pri.m4: Likewise.
70360                 * inttypes-h.m4: Renamed from inttypes.m4.
70361                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70362
70363 2006-07-22  Bruno Haible  <bruno@clisp.org>
70364
70365         Merge from GNU gettext 0.15.
70366
70367         2005-07-05  Bruno Haible  <bruno@clisp.org>
70368
70369                 * printf-args.c (printf_fetchargs): Work around broken
70370                 definition of wint_t on mingw.
70371
70372         2005-02-12  Bruno Haible  <bruno@clisp.org>
70373
70374                 * xallocsa.h: Add extern "C" for C++.
70375
70376         2006-05-17  Bruno Haible  <bruno@clisp.org>
70377
70378                 Cygwin portability.
70379                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70380
70381         2006-04-30  Bruno Haible  <bruno@clisp.org>
70382
70383                 * progreloc.c: Include <mach-o/dyld.h> if available.
70384                 (find_executable): Use _NSGetExecutablePath when possible.
70385
70386         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70387
70388                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70389                 function.
70390
70391         2005-12-29  Bruno Haible  <bruno@clisp.org>
70392
70393                 * progreloc.c (set_program_name_and_installdir): Fix
70394                 compilation error.
70395
70396         2005-12-04  Bruno Haible  <bruno@clisp.org>
70397
70398                 Cygwin portability.
70399                 * progreloc.c: Include <windows.h> also on Cygwin.
70400                 (find_executable): Add support for Cygwin.
70401                 (set_program_name_and_installdir): Handle also platforms with
70402                 nonempty EXEEXT.
70403
70404         2006-07-11  Bruno Haible  <bruno@clisp.org>
70405
70406                 * javacomp.c: Fix a comment.
70407                 Reported by Jim Meyering.
70408
70409         2006-04-30  Bruno Haible  <bruno@clisp.org>
70410
70411                 * javacomp.h (compile_java_class): Add source_version,
70412                 target_version arguments.
70413                 * javacomp.c: Rewritten to choose only a compiler that
70414                 respects the specified source_version and target_version.
70415
70416         2006-06-27  Bruno Haible  <bruno@clisp.org>
70417
70418                 Assume correct S_ISDIR macro.
70419                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70420
70421         2006-07-22  Bruno Haible  <bruno@clisp.org>
70422
70423                 * javaversion.h: New file, from GNU gettext.
70424                 * javaversion.c: New file, from GNU gettext.
70425                 * javaversion.java: New file, from GNU gettext.
70426                 * javaversion.class: New file, from GNU gettext.
70427
70428         2006-05-17  Bruno Haible  <bruno@clisp.org>
70429
70430                 Cygwin portability.
70431                 * javaexec.c (execute_java_class): Test for jview program
70432                 also on Cygwin.
70433
70434         2006-04-09  Bruno Haible  <bruno@clisp.org>
70435
70436                 * fatal-signal.c: Don't include string.h.
70437                 (at_fatal_signal): Use a copying loop instead of memcpy.
70438
70439         2005-12-04  Bruno Haible  <bruno@clisp.org>
70440
70441                 * csharpexec.c: Add support for 'clix' launcher (untested).
70442                 (execute_csharp_using_sscli): New function.
70443                 (execute_csharp_program): Call it.
70444
70445         2006-06-21  Bruno Haible  <bruno@clisp.org>
70446
70447                 Avoid warnings from recent versions of mcs.
70448                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70449                 -o, -L, -r any more. Use options documented since mcs-1.0
70450                 instead. Similarly for -g.
70451
70452         2005-07-09  Bruno Haible  <bruno@clisp.org>
70453
70454                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70455                 add a .dll suffix.
70456                 Reported by Mark Junker <mjscod@gmx.de>.
70457
70458         2006-06-17  Bruno Haible  <bruno@clisp.org>
70459
70460                 * config.charset: Update for NetBSD 3.0.
70461
70462         2006-05-17  Bruno Haible  <bruno@clisp.org>
70463
70464                 Cygwin portability.
70465                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70466
70467         2006-05-16  Bruno Haible  <bruno@clisp.org>
70468
70469                 * localcharset.c [CYGWIN]: Include <windows.h>.
70470                 (get_charset_aliases): For Cygwin, return the same CPxxx
70471                 aliases list as under WIN32.
70472                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70473                 the environment variables. Fall back to GetACP().
70474
70475         2006-04-05  Bruno Haible  <bruno@clisp.org>
70476
70477                 * config.charset: Update Juan Manuel Guerrero's address.
70478
70479         2005-02-12  Bruno Haible  <bruno@clisp.org>
70480
70481                 * allocsa.h: Add extern "C" for C++.
70482
70483         2005-02-10  Bruno Haible  <bruno@clisp.org>
70484
70485                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70486                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70487
70488         2006-07-22  Bruno Haible  <bruno@clisp.org>
70489
70490                 * gettext.h: Update to GNU gettext-0.15.
70491
70492 2006-07-22  Bruno Haible  <bruno@clisp.org>
70493
70494         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70495         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70496         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70497
70498 2006-07-21  Eric Blake  <ebb9@byu.net>
70499
70500         * modules/stdlib-safer: New file.
70501         * MODULES.html.sh (File stream based Input/Output): Add
70502         stdlib-safer.
70503
70504 2006-07-21  Eric Blake  <ebb9@byu.net>
70505
70506         * lib/stdlib-safer.h: New file from coreutils, required by
70507         stdlib--.h.
70508
70509 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70512
70513 2006-07-20  Bruno Haible  <bruno@clisp.org>
70514
70515         * gnulib-tool: Recognize new option --assume-autoconf.
70516         (autoconf_minversion): New variable.
70517         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70518
70519 2006-07-20  Bruno Haible  <bruno@clisp.org>
70520
70521         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70522
70523 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70524
70525         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70526         Reindent and repaginate.
70527
70528 2006-07-19  Derek Price  <derek@ximbiot.com>
70529
70530         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70531         Correct grammar.
70532
70533 2006-07-17  Bruno Haible  <bruno@clisp.org>
70534
70535         * modules/list: New file.
70536         * modules/array-list: New file.
70537         * modules/carray-list, modules/carray-list-tests: New files.
70538         * modules/linked-list, modules/linked-list-tests: New files.
70539         * modules/avltree-list, modules/avltree-list-tests: New files.
70540         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70541         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70542         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70543         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70544         * modules/oset: New file.
70545         * modules/array-oset: New file.
70546         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70547         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70548         * tests/test-carray_list.c: New file.
70549         * tests/test-linked_list.c: New file.
70550         * tests/test-avltree_list.c: New file.
70551         * tests/test-rbtree_list.c: New file.
70552         * tests/test-linkedhash_list.c: New file.
70553         * tests/test-avltreehash_list.c: New file.
70554         * tests/test-rbtreehash_list.c: New file.
70555         * tests/test-avltree_oset.c: New file.
70556         * tests/test-rbtree_oset.c: New file.
70557         * MODULES.html.sh (Container data structures): New section.
70558
70559 2006-07-17  Bruno Haible  <bruno@clisp.org>
70560
70561         * m4/gl_list.m4: New file.
70562
70563 2006-07-17  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/gl_list.h: New file.
70566         * lib/gl_list.c: New file.
70567         * lib/gl_array_list.h: New file.
70568         * lib/gl_array_list.c: New file.
70569         * lib/gl_carray_list.h: New file.
70570         * lib/gl_carray_list.c: New file.
70571         * lib/gl_linked_list.h: New file.
70572         * lib/gl_linked_list.c: New file.
70573         * lib/gl_anylinked_list1.h: New file.
70574         * lib/gl_anylinked_list2.h: New file.
70575         * lib/gl_avltree_list.h: New file.
70576         * lib/gl_avltree_list.c: New file.
70577         * lib/gl_anyavltree_list1.h: New file.
70578         * lib/gl_anyavltree_list2.h: New file.
70579         * lib/gl_rbtree_list.h: New file.
70580         * lib/gl_rbtree_list.c: New file.
70581         * lib/gl_anyrbtree_list1.h: New file.
70582         * lib/gl_anyrbtree_list2.h: New file.
70583         * lib/gl_anytree_list1.h: New file.
70584         * lib/gl_anytree_list2.h: New file.
70585         * lib/gl_linkedhash_list.h: New file.
70586         * lib/gl_linkedhash_list.c: New file.
70587         * lib/gl_anyhash_list1.h: New file.
70588         * lib/gl_anyhash_list2.h: New file.
70589         * lib/gl_avltreehash_list.h: New file.
70590         * lib/gl_avltreehash_list.c: New file.
70591         * lib/gl_rbtreehash_list.h: New file.
70592         * lib/gl_rbtreehash_list.c: New file.
70593         * lib/gl_anytreehash_list1.h: New file.
70594         * lib/gl_anytreehash_list2.h: New file.
70595
70596         * lib/gl_oset.h: New file.
70597         * lib/gl_oset.c: New file.
70598         * lib/gl_array_oset.h: New file.
70599         * lib/gl_array_oset.c: New file.
70600         * lib/gl_avltree_oset.h: New file.
70601         * lib/gl_avltree_oset.c: New file.
70602         * lib/gl_rbtree_oset.h: New file.
70603         * lib/gl_rbtree_oset.c: New file.
70604         * lib/gl_anytree_oset.h: New file.
70605
70606 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70607
70608         * m4/mkancesdirs.m4: New file.
70609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70610         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70611         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70612         it.
70613
70614 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70617         * lib/mkancesdirs.h: New files.
70618         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70619         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70620         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70621         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70622         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70623         callers changed.  Revamp internals significantly, by not
70624         attempting to create directories that are temporarily more
70625         permissive than the final results.  Do not attempt to use
70626         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70627         This removes some race conditions, fixes some bugs, and simplifies
70628         things.  Use new dirchownmod function to do owner and mode changes.
70629         * lib/mkdir-p.h: Likewise.
70630         * lib/modechange.c (octal_to_mode): New function.
70631         (struct mode_change): New member mentioned.
70632         (make_node_op_equals): New arg mentioned.  All callers changed.
70633         (mode_compile): Keep track of which mode bits the user has explicitly
70634         mentioned.
70635         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70636         New arg PMODE_BITS, to keep track of which mode bits the user
70637         mentioned; it treats S_ISUID and S_ISGID speciall.
70638         All callers changed.
70639         * lib/modechange.h: Likewise.
70640
70641 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70642
70643         * MODULES.html.sh: Add mkancestors.
70644         * modules/mkancesdirs: New module.
70645         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70646         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70647         The chdir-safer and afs files are now orphans; I'll remove them
70648         unless someone speaks up.
70649         Add lib/dirchownmod.c, lib/dirchownmod.h.
70650         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70651         Add lchown, mkancesdirs.
70652         (Maintainer): Add self.
70653
70654 2006-07-15  Karl Berry  <karl@gnu.org>
70655
70656         * gnulib-tool: help message wording/arrangement.
70657
70658 2006-07-14  Simon Josefsson  <jas@extundo.com>
70659
70660         * doc/gnulib.texi (Libtool and Windows): New section.
70661
70662 2006-07-12  Simon Josefsson  <jas@extundo.com>
70663
70664         * modules/gendocs (License): Fix license, approved by Karl.
70665
70666 2006-07-12  Eric Blake  <ebb9@byu.net>
70667
70668         * MODULES.html.sh: Add gendocs.
70669
70670 2006-07-11  Eric Blake  <ebb9@byu.net>
70671
70672         * modules/fdl: New module, to install doc/fdl.texi.
70673         * MODULES.html.sh: Add new section for documentation modules.
70674         * gnulib-tool: Avoid space-tab.
70675         (--doc-base): New option, to manage files from doc.
70676
70677 2006-07-11  Eric Blake  <ebb9@byu.net>
70678
70679         * m4/absolute-header.m4: Fix comments to match recent change.
70680
70681 2006-07-11  Eric Blake  <ebb9@byu.net>
70682
70683         * gnulib-tool: List --doc-base before --tests-base.
70684
70685 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70686
70687         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70688
70689 2006-07-11  Bruno Haible  <bruno@clisp.org>
70690
70691         * README: Mention where to put documentation.
70692
70693 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70694
70695         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70696
70697 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70700         to stdint.m4.
70701
70702 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70705         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70706         "no/such/file/stdint.h" when there is no such file, so that
70707         the resulting C code can be parsed by dodgy compilers.
70708         Problems reported by Bob Proulx.
70709
70710 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70711
70712         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70713         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70714         macros into the GNU _D_EXACT_NAMLEN.
70715         * lib/savedir.c:  Likewise.
70716         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70717
70718 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70719         and Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70722         * m4/savedir.m4:
70723         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70724         macros into the GNU _D_EXACT_NAMLEN.
70725
70726 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70729         around the absolute name, to work around a problem with the HP-UX
70730         11.23 native C compiler, reported by Bob Proulx.
70731
70732 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * doc/maintain.texi, make-stds.texi: Sync from
70735         <http://savannah.gnu.org/projects/gnustandards>.
70736
70737 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70740
70741 2006-07-09  Jim Meyering  <jim@meyering.net>
70742
70743         * m4/glob.m4: Remove a doubled word in a comment.
70744
70745 2006-07-09  Jim Meyering  <jim@meyering.net>
70746
70747         * lib/argp-pv.c: Remove a doubled word in a comment.
70748         * lib/check-version.c (check_version): Likewise.
70749         * lib/javacomp.c (compile_java_class): Likewise.
70750
70751 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70754         for the benefit of people using Autoconf 2.60.  If you want to
70755         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70756         (or m4/onceonly.m4, if pre-2.57) manually.
70757
70758 2006-07-08  Jim Meyering  <jim@meyering.net>
70759
70760         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70761         comment.
70762         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70763         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70764         comment.
70765
70766 2006-07-08  Jim Meyering  <jim@meyering.net>
70767
70768         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70769
70770 2006-07-07  Simon Josefsson  <jas@extundo.com>
70771
70772         * tests/test-crc.c: Change expected crc value, the test vector
70773         were probably computed using the old broken crc.c?
70774
70775 2006-07-06  Simon Josefsson  <jas@extundo.com>
70776
70777         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70778         now the canonical place for the M4 file).
70779
70780         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70781         from the sys_socket dependency now.
70782
70783         * modules/inet_pton (Files): Ditto.
70784
70785         * modules/inet_ntop (Files): Ditto.
70786
70787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70788
70789         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70790         not gl_PREREQ_GETUSERSHELL.
70791
70792 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70793
70794         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70795         with only one argument, for Autoconf 2.60.
70796         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70797         expand to nothing, so add a shell command to avoid syntax error.
70798         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70799
70800 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70801
70802         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70803
70804 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70807         no longer needed.  Check for isblank decl.
70808         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70809         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70810         of existence.
70811
70812 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * lib/getloadavg.c: Use __VMS, not VMS.
70815         * lib/getopt.c: Likewise.
70816         * lib/getpagesize.h: Likewise.
70817         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70818         and probably does not work.
70819
70820 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * lib/.cppi-disable: Add wcwidth.
70823         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70824         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70825         (ISGRAPH): Remove.  All uses changed to isgraph.
70826         (FOLD) [!defined _LIBC]: Remove special case.
70827         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70828         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70829         HAVE_ISBLANK.
70830         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70831         case.
70832
70833 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70834
70835         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70836         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70837         brackets.  Other minor changes to suppress some compiler
70838         warnings.
70839
70840 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70841         and Paul Eggert  <eggert@cs.ucla.edu>
70842
70843         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70844         of invoking obsolescent AC_HEADER_DIRENT macro.
70845         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70846         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70847         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70848         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70849         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70850         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70851         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70852         * m4/readdir.m4: Remove; no longer needed.
70853
70854 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70855         and Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70858         Don't worry about this obsolete case any more.
70859         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70860         directories.
70861         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70862         worry about this obsolete case any more.
70863         * lib/fts.c: Likewise.
70864         * lib/getcwd.c: Likewise.
70865         * lib/glob.h: Likewise.
70866         * lib/savedir.c: Likewise.
70867
70868 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70871         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70873         needed.
70874         All uses removed.
70875         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70876         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70877         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70878         needed.
70879         * m4/getdate.m4 (gl_GETDATE): Likewise.
70880         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70881         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70882         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70883         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70884         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70886         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70887         needed.
70888
70889 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70890
70891         * lib/memcasecmp.c: Include <limits.h>.
70892         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70893         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70894         Don't assume isdigit succeeds only on '0' through '9'.
70895
70896 2006-07-05  Eric Blake  <ebb9@byu.net>
70897
70898         * modules/getaddrinfo (Depends-on): Add snprintf.
70899
70900 2006-07-05  Eric Blake  <ebb9@byu.net>
70901
70902         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70903         to avoid 'header present but could not be compiled' on cygwin.
70904
70905 2006-07-05  Eric Blake  <ebb9@byu.net>
70906
70907         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70908         missing from netdb.h.
70909         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70910
70911 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70912
70913         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70914         no longer needed.
70915         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70916         * m4/getdate.m4 (gl_GETDATE): Likewise.
70917         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70918         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70919         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70920         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70921         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70922
70923 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70924
70925         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70926         All uses of is_space replaced by isspace.
70927         * lib/exit.h: Don't talk about STDC_HEADERS.
70928         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70929         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70930         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70931         replaced by isprint etc.
70932         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70933         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70934         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70935         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70936         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70937         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70938
70939 2006-07-05  Bruno Haible  <bruno@clisp.org>
70940
70941         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70942         the function exists, before testing against AIX.
70943         Reported by Martin Lambers <marlam@marlam.de>.
70944
70945 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70948         From Mark D. Baushke.
70949
70950 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70953         to the absolute name, not just one, to bypass Sun C 5.8's
70954         "warning: #include of /usr/include/... may be non-portable".
70955
70956 2006-07-04  Eric Blake  <ebb9@byu.net>
70957
70958         * modules/dirname-tests: New test module.
70959         * tests/test-dirname.c: New file, replacing dirname.c
70960         TEST_DIRNAME section that was recently deleted.
70961
70962 2006-07-04  Bruno Haible  <bruno@clisp.org>
70963
70964         Assume ANSI C header files and <ctype.h> functions.
70965         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70966         (mbsnwidth): Use isprint, iscntrl instead.
70967
70968 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         Merge from coreutils.
70971         * MODULES.html.sh: Add xstrtold.
70972         * modules/xstrtold: New file.
70973         * modules/cycle-check (Files): Add lib/same-inode.h.
70974         * modules/dirname (Files): Add m4/double-slash-root.m4.
70975         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70976         * modules/mkdir-p (Files): Add lib/same-inode.h.
70977         * modules/same (Files): Add lib/same-inode.h.
70978
70979 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70982         This is to keep the terminology clean; POSIX talks about
70983         "absolute pathnames", not "full pathnames", but the GNU
70984         Coding Standards say to use "path" for something else;
70985         so use "absolute" to keep both sides happy.
70986         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70987         Set gl_absolute_header, not gl_full_header_path.
70988         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70989         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70990         All uses changed.
70991
70992         Merge from coreutils.
70993
70994         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70997         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70998         want to require the building of c-strtod.o.
70999         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71000         needs -lm directly.
71001         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71002
71003         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71006         --as-needed option if available.  Problem reported by Albert Chin in
71007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71008         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71009         cc merely issues a bunch of annoying warnings for --as-needed
71010         (this problem was reported by Bob Proulx).  Also, try linking with
71011         -lm to detect a bug in binutils 2.16 (this problem was reported
71012         by Ralf Wildenhues).
71013
71014         2006-06-18  Jim Meyering  <jim@meyering.net>
71015
71016         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71017         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71018         macro.
71019         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71020         also check for glibc-2.4's abort-inducing bug.
71021
71022         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71023         Low-probability clean-up should be to use rmdir to get rid of
71024         the just-created directory, not unlink.
71025
71026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71027         configure fail, and request a bug report to inform us about it.
71028         Add a comment that, barring reports to the contrary, in 2007 we'll
71029         assume ftruncate is universally available.
71030
71031         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71034
71035         2006-03-12  Jim Meyering  <jim@meyering.net>
71036
71037         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71038         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71039         * m4/same.m4 (gl_SAME): Likewise.
71040         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71041
71042         2006-03-11  Eric Blake  <ebb9@byu.net>
71043
71044         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71045         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71046         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71047         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71048
71049 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71052         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71053         reported by Mark D. Baushke, one in
71054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71055
71056         Merge from coreutils.
71057
71058         * lib/.cppi-disable: Add stdint_.h.
71059         * lib/.cvsignore: Add stdint.h.
71060
71061         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71064         both double and long double versions.
71065         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71066         * lib/xstrtold.c: New file.
71067         * lib/xstrtod.h (xstrtold): New decl.
71068
71069         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         * lib/filemode.c (setst): Remove.
71072         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71073         (arguably) clearer, and the generated code is a bit smaller on my
71074         Debian GNU/Linux stable x86 host.
71075
71076         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71077
71078         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71079         Assume that filemode.h includes sys/types.h and sys/stat.h.
71080         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71081         (ftypelet): Reorder to put common cases first, for efficiency.
71082         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71083         to do 'M'.
71084         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71085         of 10, for compatibility with FreeBSD.  All callers changed.
71086         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71087         types that can't be deduced solely from st_mode.  First arg is now a
71088         const pointer.
71089         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71090         (strmode): Renamed from mode_string.
71091         (filemodestring): New decl.
71092         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71093         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71094         needed.
71095         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71096
71097         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71100         fsusage.h now does that.  Include fsusage.h first, to test interface.
71101         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71102         at most one method (the old code could have generated decls that
71103         didn't conform to C89, not that this was ever exercised).
71104         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71105
71106         2006-03-19  Jim Meyering  <jim@meyering.net>
71107
71108         Work even in a chroot where d_ino values for entries in "/"
71109         don't match the stat.st_ino values for the same names.
71110         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71111         number, iterate through all entries again, using lstat instead.
71112         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71113         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71114
71115         * lib/getcwd.c (__getcwd): Clarify a comment.
71116         Use memcpy in place of a call to strcpy.
71117
71118         2006-03-12  Jim Meyering  <jim@meyering.net>
71119
71120         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71121         matches that of the current directory (which we're about to chdir ".."
71122         out of), then save the dev-ino of the parent, instead.
71123
71124         * lib/same-inode.h (SAME_INODE): New file/macro.
71125         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71126         Include "same-inode.h", instead.
71127         * lib/same.c: Likewise.
71128         * lib/cycle-check.h: Include "same-inode.h".
71129         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71130         * lib/cycle-check.c (SAME_INODE): Remove definition.
71131         * lib/root-dev-ino.h: Include "same-inode.h".
71132
71133         2006-03-11  Eric Blake  <ebb9@byu.net>
71134
71135         * lib/same.c (same_name): s/base_name/last_component/
71136         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71137         * lib/filenamecat.c (file_name_concat): Likewise.
71138
71139         2006-03-11  Eric Blake  <ebb9@byu.net>,
71140                     Paul Eggert  <eggert@cs.ucla.edu>
71141
71142         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71143         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71144         drive prefix.
71145         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71146         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71147         (last_component): New method.
71148         * lib/dirname.c (dir_len): Determine when drive letters need a
71149         subsequent slash.  Preserve // when it is special.
71150         (dir_name): Don't append dot when drive letter is absolute.
71151         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71152         * lib/basename.c (base_name): New semantics - malloc the result.
71153         Preserve // when it is special.  Preserve relative files that look
71154         like drive letters.
71155         (base_len): Preserve // when it is special.
71156         (last_component): New method, similar to old base_name semantics.
71157         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71158         base_name.  Strip redundant slashes from ///.
71159
71160 2006-07-03  Jim Meyering  <jim@meyering.net>
71161
71162         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71163         macro is used before the first cycle_check call.
71164
71165 2006-07-03  Eric Blake  <ebb9@byu.net>
71166
71167         * modules/dirname (Depends-on): Add xstrndup.
71168
71169 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71172         test cases, so that config.log is a bit easier to follow.
71173
71174 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71177         both are 64 bits, since this seems to be the tradition, and this
71178         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71179         we ever run into a host that prefers long long to long in this
71180         case, we'll need another configure-time test.  Problem reported by
71181         Jim Meyering.
71182
71183 2006-07-02  Eric Blake  <ebb9@byu.net>
71184
71185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71186
71187 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * modules/inttypes (Depends-on): No longer depends on stdint.
71190         * modules/stdint (Description): Say more about assumptions.
71191         Say that the fast types might differ.  Say macros are used.
71192         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71193         (Makefile.am): Revise list of substituted symbols to match
71194         new stdint.m4.
71195         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71196         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71197         * tests/test-stdint.c (verify_same_types)
71198         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71199         the code conforms to C99/C89.
71200         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71201         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71202
71203 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71206         but fix a bug, by requiring at least 64 bits.
71207         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71208         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71209         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71210         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71211
71212         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71213         changes.  Make 2.59 a prerequisite.  Check and substitute for
71214         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71215         inttypes.h.  Do not use special include files; just use the
71216         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71217         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71218         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71219         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71220         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71221         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71222         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71223         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71224         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71225         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71226         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71227         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71228         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71229         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71230         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71231         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71232         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71233         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71234         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71235         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71236         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71237         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71238         not check for things that C99 does not require, e.g., int8_t.  If
71239         a test isn't needed unless <stdint.h> isn't working, and is
71240         unlikely to be needed for any other reason, then don't do it
71241         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71242         size_t, since we assume C89 freestanding at least.  Do not check
71243         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71244         the right thing even if the types are not defined.  Instead use:
71245         (gl_STDINT_TYPE_PROPERTIES): New macro.
71246         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71247         testing whether <sys/types.h> clashes, as Autoconf does this for
71248         us now.  All uses removed.
71249         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71250         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71251         (gl_CHECK_TYPE_SAME):
71252         Remove; no longer needed.
71253         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71254         exists, since we'll return 0 anyway in that case.
71255         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71256
71257 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71260         possible collision with system files.
71261         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71262         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71263         WCHAR_MIN and WCHAR_MAX in this case.
71264         (<stddef.h>): Do not include; no longer needed.
71265         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71266         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71267         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71268         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71269         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71270         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71271         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71272         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71273         !defined(__c99))]: Include in this case too, since it's harmless
71274         now.
71275         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71276         dangerous to do so.
71277         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71278         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71279         (_STDINT_MIN, _STDINT_MAX): New macros.
71280         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71281         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71282         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71283         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71284         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71285         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71286         macros, not typedefs; this simplifies things quite a bit.
71287         Use long int for all types narrower than int64_t.
71288         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71289         Define in terms of long long int or int64_t or long int,
71290         not int64_t or int32_t.  This saves some compile-time testing.
71291         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71292         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71293         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71294         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71295         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71296         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71297         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71298         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71299         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71300         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71301         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71302         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71303         undef any previous version and define our own version, for
71304         simplicity and consistency with the new macros for types.
71305         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71306         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71307         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71308         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71309         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71310         @WINT_T_SUFFIX@ to keep things simple here.
71311         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71312         Simplify by assuming typical 8/16/32/64 host, since we're
71313         already doing that elsewhere anyway.
71314         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71315         and assume long long int is 64 bits if available.  This
71316         speeds up 'configure'.
71317
71318 2006-07-01  Eric Blake  <ebb9@byu.net>
71319
71320         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71321         Reported by Andreas Buening.
71322
71323 2006-07-01  Eric Blake  <ebb9@byu.net>
71324
71325         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71326
71327 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71328
71329         * lib/getaddrinfo.c: fixed typo
71330
71331 2006-06-29  Jim Meyering  <jim@meyering.net>
71332
71333         * modules/strftime (Maintainer): Add my name, since with the
71334         FPRINTFTIME changes strftime.c has forked from glibc.
71335
71336 2006-06-29  Eric Blake  <ebb9@byu.net>
71337
71338         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71339
71340 2006-06-29  Eric Blake  <ebb9@byu.net>
71341
71342         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71343
71344 2006-06-29  Eric Blake  <ebb9@byu.net>
71345
71346         * lib/stat_.h: New file.
71347
71348 2006-06-29  Eric Blake  <ebb9@byu.net>
71349
71350         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71351         unused static function.
71352
71353 2006-06-29  Eric Blake  <ebb9@byu.net>
71354
71355         * doc/functions.texi (Function Portability): Document missing lstat
71356         on mingw.
71357
71358 2006-06-29  Eric Blake  <ebb9@byu.net>
71359
71360         * MODULES.html.sh: Add sys_stat.
71361         * modules/sys_stat: New module.
71362         * modules/mkstemp (Depends-on): Add sys_stat.
71363
71364 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71365
71366         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71367
71368 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71369
71370         * m4/c-bs-a.m4: Removed.
71371
71372 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71373
71374         * lib/strftime.c: Assume strftime() exists.
71375
71376 2006-06-29  Derek Price  <derek@ximbiot.com>
71377
71378         * modules/c-bs-a: Removed - \a is C89.
71379         * MODULES.html.sh: Remove c-bs-a.
71380
71381 2006-06-29  Bruno Haible  <bruno@clisp.org>
71382
71383         * modules/wcwidth (License): Change to LGPL.
71384
71385 2006-06-28  Simon Josefsson  <jas@extundo.com>
71386
71387         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71388         on _WIN32.
71389
71390         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71391         getnameinfo.
71392
71393 2006-06-28  Simon Josefsson  <jas@extundo.com>
71394
71395         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71396
71397 2006-06-28  Simon Josefsson  <jas@extundo.com>
71398
71399         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71400         functions there.  It will succeed on Windows XP, but on Windows
71401         2000 and (presumably) earlier, it will fail, and use the internal
71402         re-implementation.
71403         (use_win32_p): New function.
71404         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71405         Support AI_NUMERICSERV to disable getservbyname.
71406         (getnameinfo): New function, only supports
71407         NI_NUMERICHOST|NI_NUMERICSERV for now.
71408
71409         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71410         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71411         getnameinfo.
71412
71413 2006-06-28  Eric Blake  <ebb9@byu.net>
71414
71415         * modules/wcwidth: New file.
71416         * modules/mbchar (Depends-on): Add wcwidth.
71417         * modules/mbswidth (Depends-on): Add wcwidth.
71418         * MODULES.html.sh: Add wcwidth.
71419
71420 2006-06-28  Eric Blake  <ebb9@byu.net>
71421
71422         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71424
71425 2006-06-28  Eric Blake  <ebb9@byu.net>
71426
71427         * lib/xvasprintf.h: Fix comments.
71428
71429 2006-06-28  Eric Blake  <ebb9@byu.net>
71430
71431         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71432         * lib/mbswidth.c (wcwidth): Move from here...
71433         * lib/wcwidth.h: ...to this new file.
71434
71435 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71436
71437         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71438
71439         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71440         it's obsolete.
71441         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71442
71443 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71444
71445         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71446         Autoconf 2.60 says this stuff was obsolete.
71447
71448 2006-06-28  Bruno Haible  <bruno@clisp.org>
71449
71450         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71451
71452 2006-06-28  Bruno Haible  <bruno@clisp.org>
71453
71454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71455         gt_TYPE_WCHAR_T.
71456
71457 2006-06-28  Bruno Haible  <bruno@clisp.org>
71458
71459         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71460         declaration for wcwidth.
71461         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71462
71463 2006-06-28  Bruno Haible  <bruno@clisp.org>
71464
71465         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71466         (mkdir): Define using _mkdir.
71467
71468 2006-06-28  Bruno Haible  <bruno@clisp.org>
71469
71470         * lib/getaddrinfo.h: Fix POSIX URL.
71471         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71472         _WIN32.
71473         (use_win32_p): Make static.
71474         (getaddrinfo): Reject service name if it is empty or does not consist
71475         solely of decimal digits, or if its value is > 65535.
71476         (getnameinfo): Remove useless casts.
71477
71478 2006-06-27  Simon Josefsson  <jas@extundo.com>
71479
71480         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71481         Eggert and Martin Lambers.
71482
71483 2006-06-27  Simon Josefsson  <jas@extundo.com>
71484
71485         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71486         Eggert and Martin Lambers.
71487
71488 2006-06-27  Bruno Haible  <bruno@clisp.org>
71489
71490         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71491         result to 0, not to empty.
71492         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71493
71494 2006-06-27  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71497
71498 2006-06-26  Simon Josefsson  <jas@extundo.com>
71499
71500         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71501         present.
71502
71503 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71504
71505         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71506         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71508
71509 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71510
71511         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71512
71513 2006-06-26  Bruno Haible  <bruno@clisp.org>
71514
71515         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71516
71517 2006-06-26  Bruno Haible  <bruno@clisp.org>
71518
71519         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71520
71521 2006-06-26  Bruno Haible  <bruno@clisp.org>
71522
71523         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71524         SGI C compiler in pre-C99 mode.
71525         Suggested by Mark D. Baushke and Larry Jones.
71526
71527 2006-06-26  Bruno Haible  <bruno@clisp.org>
71528
71529         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71530         WCHAR_MAX.
71531         Reported by Mark D. Baushke and Larry Jones.
71532
71533 2006-06-26  Bruno Haible  <bruno@clisp.org>
71534
71535         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71536         in pre-C99 mode.
71537         Suggested by Mark D. Baushke and Larry Jones.
71538
71539 2006-06-23  Simon Josefsson  <jas@extundo.com>
71540             Bruno Haible  <bruno@clisp.org>
71541
71542         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71543         Emit mostlyclean-local rule.
71544         (func_emit_tests_Makefile_am): Likewise.
71545         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71546
71547 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71548
71549         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71550
71551 2006-06-23  Bruno Haible  <bruno@clisp.org>
71552
71553         * tests/test-stdint.c: Update to match ISO C 99 Technical
71554         Corrigendum 1.
71555
71556 2006-06-23  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71559
71560 2006-06-23  Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/stdint_.h: Treat IRIX like OpenBSD.
71563
71564 2006-06-23  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71567         ISO C 99 Technical Corrigendum 1.
71568
71569 2006-06-22  Simon Josefsson  <jas@extundo.com>
71570
71571         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71572         MinGW.
71573
71574 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71577         needed.  Some compiler complained about some of them.  Problem reported
71578         by Larry Jones in
71579         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71580
71581 2006-06-21  Simon Josefsson  <jas@extundo.com>
71582
71583         * tests/test-getaddrinfo.c: New file.
71584
71585         * modules/getaddrinfo-tests: New file.
71586
71587         * MODULES.html.sh: Add inet_pton.
71588
71589         * modules/inet_pton: New file.
71590
71591 2006-06-21  Simon Josefsson  <jas@extundo.com>
71592
71593         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71594         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71595         of using the (limited) gnulib implementation on Windows XP.
71596
71597         * m4/inet_pton.m4: New file.
71598
71599 2006-06-21  Simon Josefsson  <jas@extundo.com>
71600
71601         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71602         variable.
71603
71604         * lib/socket_.h: Don't define WINVER.
71605
71606         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71607         slightly modified to work in gnulib.
71608
71609 2006-06-21  Simon Josefsson  <jas@extundo.com>
71610
71611         * doc/gnulib.texi (Windows sockets): Add.
71612
71613 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71614
71615         * lib/read-file.c (fread_file): Start with buffer allocation of
71616         0 bytes rather than 1 byte; this simplifies the code.
71617         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71618         code to free buffer and save/restore errno.
71619         (internal_read_file): Remove unused local.
71620
71621 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71624         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71625         Problem reported by Denis Excoffier in
71626         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71627
71628 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71629
71630         * modules/sys_socket, modules/socklen: Include sys/types since
71631         FreeBSD 4.x's sys/socket.h needs it.
71632
71633 2006-06-19  Simon Josefsson  <jas@extundo.com>
71634
71635         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71636
71637 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71640
71641 2006-06-19  Bruno Haible  <bruno@clisp.org>
71642
71643         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71644         and FULL_PATH_INTTYPES_H in angle brackets.
71645         Reported by Mark D. Baushke <mdb@gnu.org>.
71646
71647 2006-06-17  Eric Blake  <ebb9@byu.net>
71648
71649         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71650         errno.
71651
71652 2006-06-17  Bruno Haible  <bruno@clisp.org>
71653
71654         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71655         <sys/inttypes.h>.
71656
71657 2006-06-17  Bruno Haible  <bruno@clisp.org>
71658
71659         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71660         whether errno is declared. Assume <errno.h> declares errno.
71661
71662 2006-06-17  Bruno Haible  <bruno@clisp.org>
71663
71664         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71665
71666 2006-06-17  Bruno Haible  <bruno@clisp.org>
71667
71668         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71669         problem on Solaris 2.5.1.
71670
71671 2006-06-16  Eric Blake  <ebb9@byu.net>
71672
71673         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71674         * lib/unicodeio.c [!defined errno]: Likewise.
71675         * lib/strtol.c [!defined errno]: Likewise.
71676         * lib/strtod.c [!defined errno]: Likewise.
71677
71678 2006-06-15  Eric Blake  <ebb9@byu.net>
71679
71680         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71681
71682 2006-06-15  Eric Blake  <ebb9@byu.net>
71683
71684         * config/srclist.txt (ssize_t.m4): Lose sync.
71685
71686 2006-06-15  Bruno Haible  <bruno@clisp.org>
71687
71688         * modules/stdint (Files): Include m4/full-header-path.m4,
71689         m4/size_max.m4, m4/wchar_t.m4.
71690         (Makefile.am): Many more substitutions.
71691         * modules/stdint-tests: New file.
71692         * tests/test-stdint.c: New file.
71693
71694 2006-06-15  Bruno Haible  <bruno@clisp.org>
71695
71696         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71697         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71698         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71699         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71700         gl_CHECK_TYPE_SAME): New macros.
71701
71702 2006-06-15  Bruno Haible  <bruno@clisp.org>
71703
71704         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71705
71706 2006-06-15  Bruno Haible  <bruno@clisp.org>
71707
71708         * lib/stdint_.h: Rewritten to be fully auto-configured.
71709         Fixes bug on HP-UX/IA64.
71710
71711 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71712
71713         * lib/getdate.y (__attribute__): Don't define if already defined.
71714         Problem reported by Larry Jones.
71715         * lib/utimens.c (__attribute__): Likewise.
71716
71717 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71720         reported by Andreas Schwab.
71721
71722 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71723             Bruno Haible  <bruno@clisp.org>
71724
71725         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71726         check for the declaration of strnlen and a run test that exposes the
71727         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71728         rpl_strndup.
71729
71730 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71731             Bruno Haible  <bruno@clisp.org>
71732
71733         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71734
71735 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71736
71737         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71738         compile test, for Tru64 4.0D.
71739
71740 2006-05-28  Karl Berry  <karl@gnu.org>
71741
71742         * config/srclist.txt (printf-args.c): lose sync.
71743
71744 2006-05-26  Martin Lambers  <marlam@marlam.de>
71745
71746         * lib/getpass.c: Updates the test for the native W32 API, and adds
71747         missing includes, thus fixing compilation warnings.
71748
71749 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71750
71751         * lib/exclude.c (exclude_fnmatch): New function.
71752         (excluded_file_name): Call exclude_fnmatch.
71753         * lib/exclude.h (excluded_file_name): New prototype
71754
71755 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * lib/tempname.c (small_open, large_open): New macros.
71758         (__open, __open64) [!_LIBC]: Remove.
71759         (__gen_tempname): Use small_open and large_open instead of __open
71760         and __open64.  This fixes a portability bug on HP-UX 11.11i
71761         reported by Simon Wing-Tang in
71762         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71763
71764 2006-05-24  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71767         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71768         Reported by Thorsten Maerz <torte@netztorte.de> via
71769         Aaron Stone <aaron@serendipity.cx>.
71770
71771 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71772
71773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71774         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71775         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71776         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71777         not really conditional on the cache.
71778         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71779
71780 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71783         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71784         (my_usleep): Don't mishandle maximum value.
71785
71786 2006-05-19  Jim Meyering  <jim@meyering.net>
71787
71788         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71789
71790 2006-05-17  Bruno Haible  <bruno@clisp.org>
71791
71792         Cygwin portability.
71793         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71794
71795 2006-05-17  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/stdint_.h: Fix recognition of Cygwin.
71798
71799 2006-05-15  Bruno Haible  <bruno@clisp.org>
71800
71801         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71802         on libtool patch by Ralf Wildenhues.
71803
71804 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71807         test for C99 conformance; (bool) 0.5 is an integer constant
71808         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71809         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71810
71811 2006-05-11  Simon Josefsson  <jas@extundo.com>
71812
71813         * m4/xvasprintf.m4: Fix obvious typo.
71814
71815 2006-05-11  Jim Meyering  <jim@meyering.net>
71816
71817         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71818         James Lemley.
71819
71820 2006-05-10  Simon Josefsson  <jas@extundo.com>
71821
71822         * lib/md4.c: Typo fix, update copyright years.
71823         (K1, K2): Don't use L because it turn computations into 64-bit on
71824         64-bit platforms.
71825
71826 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71829         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71830         unwanted sign propagation, e.g., on hosts with 64-bit int.
71831         There still are some problems with reeelly weird theoretical hosts
71832         (e.g., 33-bit int) but it's not worth worrying about now.
71833         * lib/sha1.c (rol): Likewise.
71834         (K1, K2, K3, K4): Remove unnecessary L suffix.
71835
71836 2006-05-10  Bruno Haible  <bruno@clisp.org>
71837
71838         * lib/des.c: Cast to avoid warnings.
71839
71840 2006-05-09  Bruno Haible  <bruno@clisp.org>
71841
71842         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71843         (Depends-on): Depend also on xsize, stdarg.
71844         (configure.ac): Add gl_XVASPRINTF.
71845
71846 2006-05-09  Bruno Haible  <bruno@clisp.org>
71847
71848         * m4/xvasprintf.m4: New file.
71849
71850 2006-05-09  Bruno Haible  <bruno@clisp.org>
71851
71852         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71853         (EOVERFLOW): Define fallback value.
71854         (xstrcat): New function.
71855         (xvasprintf): Recognize the special case of a string concatenation.
71856
71857 2006-05-08  Eric Blake  <ebb9@byu.net>
71858
71859         * gnulib-tool (func_version): Base copyright year on CVS date.
71860         (func_emit_copyright_notice): New function.
71861         (func_emit_lib_Makefile_am): Use it.
71862         (func_emit_tests_Makefile_am): Likewise.
71863         (func_import): Likewise.
71864
71865 2006-05-08  Bruno Haible  <bruno@clisp.org>
71866
71867         * modules/stdarg: New file.
71868         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71869
71870 2006-05-08  Bruno Haible  <bruno@clisp.org>
71871
71872         * m4/stdarg.m4: New file, from GNU gettext.
71873
71874 2006-05-08  Bruno Haible  <bruno@clisp.org>
71875
71876         * config/srclist.txt (build-aux/config.rpath): different from latest
71877         release.
71878
71879 2006-05-08  Bruno Haible  <bruno@clisp.org>
71880
71881         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71882
71883 2006-05-05  Jim Meyering  <jim@meyering.net>
71884
71885         * m4/warning.m4: New file, derived from bison's file by the same name.
71886
71887 2006-05-03  Bruno Haible  <bruno@clisp.org>
71888
71889         * lib/stdint_.h: Shorter URL.
71890         * lib/inttypes.h: Likewise.
71891
71892 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71893
71894         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71895
71896 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * lib/verify.h: Document the internals better.  Most of this change
71899         was written by Bruno Haible.
71900
71901 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * doc/verify.texi: New file, partly based on a proposal by
71904         Bruno Haible.
71905
71906 2006-05-02  Bruno Haible  <bruno@clisp.org>
71907
71908         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71909         test from here...
71910         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71911
71912 2006-04-29  Bruno Haible  <bruno@clisp.org>
71913
71914         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71915         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71916
71917 2006-04-29  Bruno Haible  <bruno@clisp.org>
71918
71919         * gnulib-tool: Make --update option actually work.
71920
71921 2006-04-29  Bruno Haible  <bruno@clisp.org>
71922
71923         * doc/gcd.texi: New file.
71924         * doc/gnulib.texi: Include it.
71925
71926 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * lib/getdate.y (get_date): When adding relative date, start with the
71929         initial time, not with the result of the first mktime call.
71930
71931 2006-04-25  Bruno Haible  <bruno@clisp.org>
71932
71933         * gnulib-tool (func_import): Output the include directives in three
71934         blocks, sorted separately.
71935         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71936
71937 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71940         to define main with arguments, for C++.  Reported by Eric Blake.
71941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71942         Prefer 'int main ()' to 'int main (void)', for C++.
71943         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71945         for 'main', for C99 and C++.
71946
71947 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71950         Don't assume that exit status -1 is valid.
71951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71952         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71953         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71954         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71955         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71956         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71957         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71958         functions can be used without declaring them, or that you can
71959         exit with status -1.
71960         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71961
71962 2006-04-24  Karl Berry  <karl@gnu.org>
71963
71964         * config/srclist.txt (longdouble.m4): sync lost.
71965
71966 2006-04-24  Eric Blake  <ebb9@byu.net>
71967
71968         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71969
71970 2006-04-24  Bruno Haible  <bruno@clisp.org>
71971
71972         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71973         poll() implementation in AIX.
71974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71975
71976 2006-04-24  Bruno Haible  <bruno@clisp.org>
71977
71978         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71979         assigned exactly once.
71980
71981 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71982             Bruno Haible  <bruno@clisp.org>
71983
71984         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71985         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71986         for AM_CPPFLAGS.
71987
71988 2006-04-23  Bruno Haible  <bruno@clisp.org>
71989
71990         * modules/copy-file: Depend on unistd.
71991         * modules/execute: Likewise.
71992         * modules/fatal-signal: Likewise.
71993         * modules/findprog: Likewise.
71994         * modules/mkdtemp : Likewise.
71995         * modules/pipe: Likewise.
71996         * modules/wait-process: Likewise.
71997
71998 2006-04-23  Bruno Haible  <bruno@clisp.org>
71999
72000         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72001         condition was already detected.
72002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72003
72004 2006-04-23  Bruno Haible  <bruno@clisp.org>
72005
72006         * lib/copy-file.c: Include <unistd.h> unconditionally.
72007         * lib/execute.c: Likewise.
72008         * lib/fatal-signal.c: Likewise.
72009         * lib/findprog.c: Likewise.
72010         * lib/mkdtemp.c: Likewise.
72011         * lib/pipe.h: Likewise.
72012         * lib/pipe.c: Likewise.
72013         * lib/wait-process.h: Likewise.
72014
72015 2006-04-23  Bruno Haible  <bruno@clisp.org>
72016
72017         * gnulib-tool (func_usage): Fix --import description. Document
72018         --update.
72019         (func_import): Create temporary file in a temporary directory, if
72020         --dry-run is specified. Silence errors from 'grep' when there are no
72021         m4 files in $m4dir.
72022         (func_create_testdir): Silence errors from 'grep' when there are no
72023         m4 files in $m4dir.
72024         Reported by Karl Berry <karl@freefriends.org>.
72025
72026 2006-04-20  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72029         one argument, so that the code will be portable to Autoconf 2.60.
72030         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72032         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72033
72034 2006-04-19  Derek Price  <derek@ximbiot.com>
72035             Eric Blake  <ebb9@byu.net>
72036
72037         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72038         rather than "/full/path.h".  Update comment to match.  Shorten &
72039         generalize m4_translit call via AS_TR_CPP.
72040
72041 2006-04-19  Derek Price  <derek@ximbiot.com>
72042             Eric Blake  <ebb9@byu.net>
72043
72044         * lib/inttypes.h: Correct grammar in comment.
72045
72046 2006-04-18  Derek Price  <derek@ximbiot.com>
72047             Paul Eggert  <eggert@cs.ucla.edu>
72048
72049         * modules/inttypes: New file.
72050         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72051
72052 2006-04-18  Derek Price  <derek@ximbiot.com>
72053             Paul Eggert  <eggert@cs.ucla.edu>
72054
72055         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72056         New files.
72057
72058 2006-04-18  Derek Price  <derek@ximbiot.com>
72059             Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         * lib/inttypes.h: New file.
72062         * lib/strtoimax.c: Assume <inttypes.h>.
72063
72064 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72067         isn't mounted.  Problem reported by Kir Kolyshkin.
72068
72069 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72072         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72073         Derek R. Price.
72074         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72075         implementation.
72076
72077 2006-04-12  Eric Blake  <ebb9@byu.net>
72078
72079         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72080         is now done automatically by the corresponding Autoconf macro.
72081
72082 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72085         time_r.h.
72086
72087 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         Merge regex changes from libc, removing some of our
72090         POSIX-conformance changes that were rejected and redoing them in a
72091         less-intrusive way.
72092
72093         * lib/regcomp.c (re_compile_internal, init_dfa):
72094         Length arg is now size_t, not Idx.  All uses changed.
72095         (peek_token): Forward decl now says internal_function.
72096         (__re_error_msgid, __re_error_msgid_idx):
72097         Now static rather than extern with attribute_hidden.
72098         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72099         For some reason libc prefers K&R style defns for external functions.
72100         (regerror) [!defined _LIBC]: Likewise.
72101         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72102         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72103         (build_range_exp, build_collating_symbol):
72104         Use K&R-style defn.
72105         (re_compile_fastmap): Use '\0' to memset, not 0.
72106         (utf8_sb_map): Make the calculations more obvious.
72107         (init_dfa, parse_bracket_exp, build_charclass_op):
72108         Call calloc and cast result, as glibc does.
72109         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72110         (build_range_exp, build_collating_symbol):
72111         Now internal functions.
72112
72113         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72114
72115         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72116         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72117         Don't depend on VMS; depend on __VMS instead, for POSIX
72118         namespace cleanness.
72119         (regoff_t): Define to ssize_t, not long int.
72120
72121         Remove the REG_ macros named below.  Instead, make the old names
72122         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72123         __USE_GNU_REGEX.
72124         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72125         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72126         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72127         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72128         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72129         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72130         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72131         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72132         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72133         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72134         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72135         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72136         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72137         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72138         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72139         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72140         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72141         (REG_NREGS):
72142         Remove.  All uses replaced by the old RE_* names.
72143         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72144         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72145         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72146         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72147         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72148         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72149         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72150         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72151         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72152         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72153         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72154         Don't bother having these macros be independent of each others'
72155         values, since they no longer exist in the POSIX name space.
72156
72157         Rename the following member names back to their old names,
72158         unless !__USE_GNU_REGEX.  All uses changed back.
72159         (buffer): Renamed from re_buffer.
72160         (allocated): Renamed from re_allocated.
72161         (used): Renamed from re_used.
72162         (syntax): Renamed from re_syntax.
72163         (fastmap): Renamed from re_fastmap.
72164         (translate): Renamed from re_translate.
72165         (can_be_null): Renamed from re_can_be_null.
72166         (regs_allocated): Renamed from re_regs_allocated.
72167         (fastmap_accurate): Renamed from re_fastmap_accurate.
72168         (no_sub): Renamed from re_no_sub.
72169         (not_bol): Renamed from re_not_bol.
72170         (not_eol): Renamed from re_not_eol.
72171         (newline_anchor): Renamed from re_newline_anchor.
72172         (num_regs): Renamed from rm_num_regs.
72173         (start): Renamed from rm_start.
72174         (end): Renamed from rm_end.
72175
72176         (free_state): Move up a bit.
72177
72178         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72179         #define to be empty.
72180         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72181         when that is what is intended.
72182         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72183         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72184         (MAX): New macro.
72185         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72186         All uses changed back to re_malloc, etc.  It's now the caller's
72187         responsibility to check for overflow; all callers changed.
72188         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72189         (re_x2nrealloc): Remove.
72190         (free_state): Remove decl.
72191
72192         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72193         (re_set_registers, re_exec):
72194         Use K&R-style defn.
72195
72196         2006-01-31  Roland McGrath  <roland@redhat.com>
72197
72198         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72199         Reported by Mike Frysinger <vapier@gentoo.org>.
72200
72201         2006-01-15  Andreas Jaeger  <aj@suse.de>
72202
72203         [BZ #1950]
72204         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72205         build_wcs_upper_buffer change.
72206         (build_wcs_upper_buffer): Change return type.
72207
72208         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72209
72210         * lib/regex_internal.h: Include <stdint.h> if available.
72211
72212         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72213
72214         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72215
72216         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72217
72218         * lib/regcomp.c: Adjust for changed secondary hash function.
72219
72220         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72221
72222         * lib/regex.h: Pretty printing.
72223         Clean up namespace a bit.
72224
72225         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72226
72227         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72228         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72229
72230         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72231                     Ulrich Drepper  <drepper@redhat.com>
72232
72233         [BZ #1302]
72234         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72235         changed.
72236         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72237
72238         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72239
72240         [BZ #281]
72241         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72242         * lib/regcomp.c: Remove unnecessary uses of
72243         unsigned RE_TRANSLATE_TYPE.
72244         * lib/regex_internal.h: Likewise.
72245         * lib/regex_internal.c: Likewise.
72246         * lib/regexec.c: Likewise.
72247         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72248
72249         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72250
72251         * lib/regexec.c (find_recover_state): Remove unnecessary
72252         initialization.
72253         (transit_state_bkref): Make DFA a const pointer.
72254         (get_subexp): Likewise.
72255         (check_arrival): Likewise.
72256         (update_cur_sifted_state): Likewise.
72257         (re_search_internal): Likewise.
72258         (prune_impossible_nodes): Likewise.
72259         (acquire_init_state_context): Likewise.
72260         (proceed_next_node): Likewise.
72261         (set_regs): Likewise.
72262         (free_fail_stack_return): Likewise.
72263         (check_arrival_expand_ecl): Mark DFA parameter as const.
72264         (check_arrival_expand_ecl_sub): Likewise.
72265         (check_subexp_limits): Likewise.
72266         (sub_epsilon_src_nodes):  Likewise.
72267         (add_epsilon_src_nodes):  Likewise.
72268         (merge_state_array): Likewise.
72269         (update_regs): Likewise.
72270         (build_trtable): Likewise.
72271         (sift_states_backward): Mark MCTX parameter as const.
72272         (build_sifted_states): Likewise.
72273         (update_cur_sifted_state): Likewise.
72274         (sift_states_mkref): Likewise.
72275         (check_arrival_expand_ecl): Mark eclosure as const.
72276         (check_dst_limits_calc_pos_1): Likewise.
72277         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72278         pointer.
72279
72280         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72281
72282         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72283         (transit_state_sb): Likewise.
72284         (transit_state_mb): Likewise.
72285         (sift_states_iter_mb): Likewise.
72286         (check_arrival_add_next_nodes): Likewise.
72287         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72288         [_LIBC] (re_search_2_stub): Use mempcpy.
72289
72290         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72291         mbrtowc for very simple UTF-8 case.
72292
72293         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72294         a pointer-to-const.
72295         (re_acquire_state_context): Likewise.
72296         * lib/regex_internal.h: Adjust prototypes.
72297
72298         * lib/regex.c: Prevent using C++ compilers.
72299
72300         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72301         (re_acquire_state_context): Likewise.
72302
72303 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * modules/regex (Depends-on): Add ssize_t.
72306
72307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72310         translation table.
72311
72312 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72315
72316 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72317             Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72320         <sys/types.h> and <inttypes.h>.
72321
72322 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72323
72324         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72325         `__error_t_defined', so argp.h will not typedef the former.
72326
72327 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72330         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72331         glibc names.  Even if glibc is changed to conform to POSIX, the
72332         traditional names will be available anyway, since regex depends on
72333         the extensions module.  Also, fix a longstanding typo in the
72334         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72335         reported by Emanuele Giaquinta.  Also, change sense of cached
72336         variable, so that the message makes sense.
72337
72338 2006-03-24  Simon Josefsson  <jas@extundo.com>
72339
72340         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72341         including some doc fixes.
72342         (base64_encode_alloc): Fix +1 bug on allocation failures.
72343
72344 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72345
72346         * lib/base64.c (base64_encode): Do not read past end of array with
72347         unsanitized input on systems with CHAR_BIT > 8.
72348
72349 2006-03-24  Eric Blake  <ebb9@byu.net>
72350
72351         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72352
72353 2006-03-22  Karl Berry  <karl@gnu.org>
72354
72355         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72356         * config/srclistvars.sh (COREUTILS): new var.
72357
72358 2006-03-17  Jim Meyering  <jim@meyering.net>
72359
72360         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72361         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72362
72363 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72366         no longer needs it.  Instead, check that regoff_t is as least
72367         as wide as ptrdiff_t.
72368
72369         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72370         so that our regex.h stays compatible with the installed regex.
72371         This is helpful for installers who configure --without-included-regex.
72372         Problem reported by Emanuele Giaquinta.
72373
72374 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72377         Typedef to long int, not to off_, as POSIX will likely change
72378         in that direction.
72379
72380 2006-03-15  Eric Blake  <ebb9@byu.net>
72381
72382         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72383
72384 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72385
72386         * lib/argp-help.c (validate_uparams): Fix typo
72387         * lib/argp-parse.c (argp_default_options): Consistently begin help
72388         messages with a lowercase letter.
72389
72390 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72393         overrun buffers and shouldn't be used (much as gets shouldn't be
72394         used).
72395         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72396
72397 2006-03-08  Simon Josefsson  <jas@extundo.com>
72398
72399         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72400         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72401
72402 2006-03-08  Simon Josefsson  <jas@extundo.com>
72403
72404         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72405         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72406
72407 2006-03-08  Simon Josefsson  <jas@extundo.com>
72408
72409         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72410         signal that configure disabled the device.
72411
72412 2006-03-08  Simon Josefsson  <jas@extundo.com>
72413
72414         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72415         languages.
72416
72417 2006-03-07  Simon Josefsson  <jas@extundo.com>
72418
72419         * modules/getopt (Depends-on): Add unistd.
72420
72421         * modules/unistd: New file.
72422
72423 2006-03-07  Simon Josefsson  <jas@extundo.com>
72424
72425         * modules/gc-random: New file.
72426
72427 2006-03-07  Simon Josefsson  <jas@extundo.com>
72428
72429         * m4/unistd_h.m4: New file.
72430
72431 2006-03-07  Simon Josefsson  <jas@extundo.com>
72432
72433         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72434         test to be side-effect free by storing the result in the cache
72435         variable gl_cv_lib_readline, and moving the assignment of
72436         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72437         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72438
72439 2006-03-07  Simon Josefsson  <jas@extundo.com>
72440
72441         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72442         error on missing devices (the functions will return an error).
72443
72444         * m4/gc.m4: Move random stuff to gc-random.m4
72445
72446 2006-03-07  Simon Josefsson  <jas@extundo.com>
72447
72448         * lib/unistd_.h: New file.
72449
72450 2006-03-07  Simon Josefsson  <jas@extundo.com>
72451
72452         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72453
72454 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72457         Problem reported by Juan Manuel Guerrero.
72458
72459 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72462         the unistd module.
72463         * lib/getlogin_r.c: Likewise.
72464         * lib/getlogin_r.h: Likewise.
72465         * lib/glob.c: Likewise.
72466         * lib/pagealign_alloc.c: Likewise.
72467         * lib/unistd_.h: Remove; no longer needed.
72468
72469 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72472         Add unistd.
72473         * modules/c-stack (Depends-on): Add unistd.
72474         * modules/getlogin_r: Likewise.
72475         * modules/glob: Likewise.
72476         * modules/pagealign_alloc: Likewise.
72477         * modules/unistd (Files): Remove lib/unistd_.h.
72478         (EXTRA_DIST): Remove.
72479         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72480         need unistd_.h.
72481         (MOSTLYCLEANFILES): Remove unistd.h-t.
72482
72483 2006-03-03  Simon Josefsson  <jas@extundo.com>
72484
72485         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72486
72487 2006-03-03  Simon Josefsson  <jas@extundo.com>
72488
72489         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72490         libidn and bison.
72491
72492 2006-03-03  Simon Josefsson  <jas@extundo.com>
72493
72494         * build-aux/maint.mk: Add indent target.
72495
72496 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72497
72498         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72499         our replacement poll.h in any case, to avoid a differing
72500         declaration from a system header.  Seen on AIX.
72501
72502 2006-03-01  Simon Josefsson  <jas@extundo.com>
72503
72504         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72505         <kasal@ucw.cz>.
72506
72507 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72508
72509         * modules/gettime (Depends-on): Add extensions module.
72510         * modules/nanosleep (Depends-on): Likewise.
72511         * modules/settime (Depends-on): Likewise.
72512
72513 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72516         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72517         pedantically.
72518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72519         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72520
72521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72522         not "==".  Reported by Ralf Wildenhues.
72523
72524 2006-03-01  Karl Berry  <karl@gnu.org>
72525
72526         * doc/Copyright/request-*: new files, synced from gnuorg.
72527
72528 2006-03-01  Karl Berry  <karl@gnu.org>
72529
72530         * config/srclist.txt (Copyright/*): new entries.
72531
72532 2006-02-28  Simon Josefsson  <jas@extundo.com>
72533
72534         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72535
72536 2006-02-27  Simon Josefsson  <jas@extundo.com>
72537
72538         * lib/base64.h: Indent #define's.  From Jim Meyering
72539         <jim@meyering.net>.
72540
72541 2006-02-27  Jim Meyering  <jim@meyering.net>
72542
72543         Revert the change of 2006-02-24, so these files can continue
72544         to be sync'd from gettext.
72545         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72546         of `config.h'.
72547
72548 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * modules/intprops: New file.
72551         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72552         Add intprops.
72553         * modules/getloadavg (Files): Remove lib/intprops.h.
72554         (Depends-on): Add intprops.
72555         * modules/human: Likewise.
72556         * modules/inttostr: Likewise.
72557         * modules/openat: Likewise.
72558         * modules/sig2str: Likewise.
72559         * modules/userspec: Likewise.
72560         * modules/utimecmp: Likewise.
72561         * modules/xnanosleep: Likewise.
72562         * modules/xstrtol: Likewise.
72563
72564 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72565
72566         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72567         * modules/lock-tests (TESTS): Use $(EXEEXT).
72568         * modules/tls-tests: Likewise.
72569         * modules/argp-tests: Likewise.
72570         (check_PROGRAMS): New var, replacing...
72571         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72572
72573 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72574
72575         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72576         `config.h'.
72577
72578 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72581
72582 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72583
72584         Sync from coreutils.
72585         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72586         gl_CHDIR_SAFER.
72587
72588 2006-02-22  Jim Meyering  <jim@meyering.net>
72589
72590         Sync from coreutils.
72591         * m4/chdir-safer.m4: New file.
72592
72593 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72596         AT_FDCWD exceeds INT_MAX.
72597         * lib/openat.h (AT_FDCWD): Likewise.
72598
72599 2006-02-17  Eric Blake  <address@hidden>
72600
72601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72602
72603 2006-02-16  Simon Josefsson  <jas@extundo.com>
72604
72605         * modules/getaddrinfo (Depends-on): Add sys_socket.
72606
72607 2006-02-15  Simon Josefsson  <jas@extundo.com>
72608
72609         * build-aux/maint.mk: Add dsyntax-check rule.
72610
72611 2006-02-15  Eric Blake  <ebb9@byu.net>
72612
72613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72614         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72615         'present but cannot compile' warnings on cygwin.
72616         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72617         use ws2tcpip.h if sys/socket.h works.
72618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72619         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72620
72621 2006-02-14  Simon Josefsson  <jas@extundo.com>
72622
72623         * modules/maintainer-makefile (Files): Rename.
72624
72625         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72626         and (the local) Makefile.cfg to maint-cfg.mk.
72627
72628         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72629         to the latter.
72630
72631         * modules/maintainer-makefile: New module.
72632
72633         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72634         severaly stripped to make it possible to build it up from scratch
72635         with reliable tests.
72636
72637         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72638         fixes to permit overriding the default actions when configure and
72639         makefile are not available.
72640
72641 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         Sync from coreutils.
72644         * modules/lstat (Depends-on): Don't depend on xalloc.
72645         (License): Change from GPL to LGPL, since this is now simply a
72646         replacement for a libc function.
72647
72648 2006-02-14  Jim Meyering  <jim@meyering.net>
72649
72650         Sync from coreutils.
72651
72652         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72653         failure on deficient systems, and simplify gnulib lgpl dependencies.
72654         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72655         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72656
72657         * lib/xalloc-die.c: Remove unused definition of N_.
72658
72659 2006-02-14  Jim Meyering  <jim@meyering.net>
72660
72661         Sync from coreutils.
72662         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72663         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72664         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72665         double-quote uses of that variable, to accommodate the rare case in
72666         which getmntent is available in none of the libraries checked.  This
72667         happens at least on FreeBSD 5.0.
72668
72669 2006-02-13  Simon Josefsson  <jas@extundo.com>
72670
72671         * gnulib-tool (Usage): Fix --import, from
72672         karl@freefriends.org (Karl Berry).
72673
72674 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72675
72676         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72677
72678 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72679
72680         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72681         "autoupdate" on 2005-12-12.
72682
72683 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * modules/closeout (Depends-on): Remove atexit.
72686
72687 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72690         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72691
72692 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72695         __EXTENSIONS__ if this causes compilation to fail.  Problem
72696         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72697         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72698
72699 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72700
72701         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72702         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72704         All uses changed.
72705
72706 2006-01-26  Simon Josefsson  <jas@extundo.com>
72707
72708         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72709         prototype is visible on mingw32.
72710
72711         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72712         for mingw32.
72713
72714         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72715         mingw32).
72716
72717 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72720         attempt to open for write; this always fails, at least on POSIX
72721         hosts.  This reinstates the 2006-01-09 change, which was
72722         inadvertently removed.
72723
72724 2006-01-26  Bruno Haible  <bruno@clisp.org>
72725
72726         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72727         Reported by Paul Eggert.
72728
72729 2006-01-26  Bruno Haible  <bruno@clisp.org>
72730             Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * lib/stdbool_.h (_Bool)
72733         [(! (defined __cplusplus || defined __BEOS__)
72734           && !defined __GNUC__
72735           && !(defined __HP_cc || defined __xlc__
72736                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72737                || defined __sgi))]:
72738         #define to signed char in these cases too; this simplifies
72739         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72740         etc., separately) and makes it more conservative.
72741
72742 2006-01-25  Simon Josefsson  <jas@extundo.com>
72743
72744         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72745         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72746         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72747
72748 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72749
72750         * lib/argp-namefrob.h: Bugfix. Remove stray #
72751
72752 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72755         so that we test the test.
72756         Check for yet another HP-UX cc bug involving *bool |= bool.
72757
72758 2006-01-25  Karl Berry  <karl@gnu.org>
72759
72760         * config/srclist.txt (vasnprintf.c): sync lost.
72761
72762 2006-01-25  Jim Meyering  <jim@meyering.net>
72763
72764         Sync from the stable (b5) branch of coreutils:
72765
72766         * lib/fts.c (fts_children): Don't let close() clobber errno from
72767         failed fchdir().
72768
72769         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72770         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72771         a dangling symlink.  That can also happen at least for ELOOP.
72772         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72773         FYI, this bug predates the inclusion of fts.c in coreutils.
72774
72775         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72776         in their own block, so pre-c99 compilers don't object.
72777
72778         Avoid the double-free (first in fts_read, second in fts_close) that
72779         would occur when an `active' directory is made inaccessible (e.g.,
72780         via chmod a-x) during a traversal.
72781         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72782         before returning.  Reproduce this failure by
72783         mkdir -p a/b; cd a; chmod a-x . b
72784         Reported by Stavros Passas.
72785
72786 2006-01-25  Jim Meyering  <jim@meyering.net>
72787
72788         * lib/fileblocks.c: Remove more useless parentheses.
72789         * lib/readutmp.h: Likewise.
72790
72791 2006-01-25  Bruno Haible  <bruno@clisp.org>
72792
72793         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72794         warnings.
72795         Reported by Paul Eggert.
72796
72797 2006-01-25  Bruno Haible  <bruno@clisp.org>
72798
72799         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72800         rid of a trap command. For Solaris sh.
72801         Reported by Mark D. Baushke <mdb@gnu.org>.
72802
72803 2006-01-24  Simon Josefsson  <jas@extundo.com>
72804
72805         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72806         Bruno.
72807
72808 2006-01-24  Karl Berry  <karl@gnu.org>
72809
72810         * config/srclist.txt (argp-namefrob.h): sync lost.
72811
72812 2006-01-24  Jim Meyering  <jim@meyering.net>
72813
72814         * modules/openat (Files): Add lib/intprops.h.
72815         From Mark D. Baushke.
72816
72817 2006-01-24  Jim Meyering  <jim@meyering.net>
72818
72819         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72820         Reported by Mark D. Baushke.
72821
72822 2006-01-24  Jim Meyering  <jim@meyering.net>
72823
72824         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72825
72826 2006-01-24  Bruno Haible  <bruno@clisp.org>
72827
72828         * modules/strnlen (Maintainer): Change from glibc to all.
72829
72830 2006-01-24  Bruno Haible  <bruno@clisp.org>
72831
72832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72833         Patch by Paul Eggert.
72834
72835 2006-01-24  Bruno Haible  <bruno@clisp.org>
72836
72837         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72838         already has it.
72839         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72840         2005-11-26.
72841
72842         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72843         'signed char' to avoid problems with the built-in _Bool type.
72844         Reported by Paul Eggert on 2005-11-26.
72845
72846 2006-01-24  Bruno Haible  <bruno@clisp.org>
72847
72848         * gnulib-tool (func_import): Avoid constructing complicated sed
72849         expressions inside backquote.
72850         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72851
72852 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72853
72854         These changes imported from libc.
72855         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72856         test and two separate function calls.
72857         * lib/strndup.c (__strndup): Add libc_hidden_def.
72858
72859 2006-01-23  Simon Josefsson  <jas@extundo.com>
72860
72861         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72862         Remove the test_*_SOURCES variable: automake infers it by default.
72863         * modules/tls-tests: Likewise.
72864
72865 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         Work around porting bugs reported by Dieter in
72868         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72869         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72870         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72871         Include "getopt.h" first, to check interface.
72872         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72873         !HAVE_DECL_GETENV.
72874         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72875         (__strndup): Revert to K&R-style function dfns, the glibc style.
72876         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72877         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72878         Include strnlen.h first, to get prototype properly.
72879         (strnlen): Renamed from __strnlen.
72880         Remove weak alias.
72881
72882 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72883
72884         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72885
72886 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * config/srclist.txt: Adjust to reflect glibc reorganization.
72889         This affects only comments.
72890
72891 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72892
72893          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72894          Reported by Bruce Korb <bkorb@gnu.org>.
72895
72896 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72899         to pacify gcc -Wswitch-default.
72900
72901 2006-01-22  Bruno Haible  <bruno@clisp.org>
72902
72903         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72904         temporary buffer for sprintf, take into account the precision also
72905         for 'd', 'i', 'u', 'o', 'x', 'X'.
72906
72907 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72908
72909         * modules/argp-tests: New module
72910         * tests/test-argp.c: New file
72911         * tests/test-argp-2.sh: New file
72912
72913 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72914
72915         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72916         (__argp_base_name): Removed
72917         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72918         typo.
72919         (__argp_base_name): Provide macro definition or extern declaration
72920         depending on the configuration
72921
72922 2006-01-20  Simon Josefsson  <jas@extundo.com>
72923
72924         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72925
72926 2006-01-20  Simon Josefsson  <jas@extundo.com>
72927
72928         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72929
72930 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72931
72932         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72933         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72934         Suggested by Bruno Haible.
72935
72936 2006-01-20  Karl Berry  <karl@gnu.org>
72937
72938         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72939         until changes propagate, I guess.
72940
72941 2006-01-19  Simon Josefsson  <jas@extundo.com>
72942
72943         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72944
72945 2006-01-19  Simon Josefsson  <jas@extundo.com>
72946
72947         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72948
72949 2006-01-19  Simon Josefsson  <jas@extundo.com>
72950
72951         * gnulib-tool: Set check_PROGRAMS.
72952
72953         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72954         modules/des-tests, modules/gc-arcfour-tests,
72955         modules/gc-arctwo-tests, modules/gc-des-tests,
72956         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72957         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72958         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72959         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72960         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72961         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72962         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72963         test_*_SOURCES.
72964
72965 2006-01-18  Simon Josefsson  <jas@extundo.com>
72966
72967         * modules/socklen (Depends-on): Depend on sys_socket.
72968
72969 2006-01-18  Simon Josefsson  <jas@extundo.com>
72970
72971         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72972         modules/des-tests, modules/gc-arcfour-tests,
72973         modules/gc-arctwo-tests, modules/gc-des-tests,
72974         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72975         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72976         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72977         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72978         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72979         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72980         $(EXEEXT) to automake TESTS variable, for mingw32.
72981
72982 2006-01-17  Simon Josefsson  <jas@extundo.com>
72983
72984         * modules/socklen (Include): Need sys/socket.h.
72985
72986 2006-01-17  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/ssize_t (Include): Add <sys/types.h>.
72989
72990 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72993         it's not portable and it doesn't work with cross-compiles.
72994         Problem reported by Bruno Haible.  Fix missing-$ typo in
72995         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72996         -zignore from being used with Sun's C compiler.
72997
72998 2006-01-12  Simon Josefsson  <jas@extundo.com>
72999
73000         * lib/base64.c: Fix warning, reported by Bruno Haible
73001         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73002
73003 2006-01-12  Bruno Haible  <bruno@clisp.org>
73004
73005         * modules/ldd: New file.
73006         * build-aux/ldd.sh.in: New file.
73007         * MODULES.html.sh (Support for building libraries and executables): Add
73008         ldd.
73009
73010 2006-01-12  Bruno Haible  <bruno@clisp.org>
73011
73012         * m4/ldd.m4: New file.
73013
73014 2006-01-12  Bruno Haible  <bruno@clisp.org>
73015
73016         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73017         endless loop while replacing $auxdir with build-aux.
73018
73019 2006-01-11  Simon Josefsson  <jas@extundo.com>
73020
73021         * lib/stdint_.h (SIZE_MAX): Add missing (.
73022
73023 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73024
73025         Sync from coreutils.
73026         * lib/md5.c: Fix commentary typos.
73027         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73028         * lib/md5.h (__attribute__): Remove; unused.
73029         * lib/sha1.c: Fix commentary to match md5 better.
73030         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73031         so that we don't need to worry about alignment.  All uses changed.
73032         This merges the 2005-10-28 md5 change into sha1.
73033
73034 2006-01-11  Jim Meyering  <jim@meyering.net>
73035
73036         Sync from coreutils.
73037         * lib/md5.c (OP): Fix spacing.
73038
73039 2006-01-11  Bruno Haible  <bruno@clisp.org>
73040
73041         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73042         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73043         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73044
73045 2006-01-11  Bruno Haible  <bruno@clisp.org>
73046
73047         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73048         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73049         the "early" section as well.
73050
73051 2006-01-11  Bruno Haible  <bruno@clisp.org>
73052
73053         Avoid "ar: no archive members specified" error on MacOS X.
73054         * gnulib-tool (func_modules_add_dummy): New function.
73055         (func_import, func_create_testdir): Invoke it.
73056
73057 2006-01-11  Bruno Haible  <bruno@clisp.org>
73058
73059         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73060         with $auxdir in AC_CONFIG_FILES statements.
73061
73062 2006-01-11  Bruno Haible  <bruno@clisp.org>
73063
73064         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73065         Initialize also noinst_HEADERS to empty.
73066
73067 2006-01-11  Bruno Haible  <bruno@clisp.org>
73068
73069         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73070         variables.
73071         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73072         autoreconf.
73073
73074 2006-01-11  Bruno Haible  <bruno@clisp.org>
73075
73076         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73077         overridable by the user.
73078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73079
73080 2006-01-10  Simon Josefsson  <jas@extundo.com>
73081
73082         * modules/sys_socket: New file.
73083
73084 2006-01-10  Simon Josefsson  <jas@extundo.com>
73085
73086         * m4/sys_socket_h.m4: New file.
73087
73088 2006-01-10  Simon Josefsson  <jas@extundo.com>
73089
73090         * lib/socket_.h: New file.
73091
73092 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73093
73094         * modules/readutmp (Maintainer): Add myself.
73095
73096 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73099         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73100         People who are still concerned with buggy memcmp implementations
73101         can invoke gl_FUNC_MEMCMP themselves.
73102
73103 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73104
73105         * lib/regex_internal.h (BITSET_WORD_BITS):
73106         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73107         preprocessor mishandles large unsigned values as if they were signed.
73108         Problem reported by Claudio Fontana in
73109         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73110
73111 2006-01-10  Jim Meyering  <jim@meyering.net>
73112
73113         Avoid the double-free (first in fts_read, second in fts_close) that
73114         would occur when an `active' directory is made inaccessible (e.g.,
73115         via chmod a-x) during a traversal.
73116         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73117         before returning.  Reproduce this failure by
73118         mkdir -p a/b; cd a; chmod a-x . b
73119         Reported by Stavros Passas.
73120
73121         Sync from coreutils.
73122         * lib/sha1.c: Tweak grammar in a comment.
73123
73124 2006-01-10  Jim Meyering  <jim@meyering.net>
73125
73126         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73127         Patch by Joerg Sonnenberger.
73128
73129 2006-01-10  Bruno Haible  <bruno@clisp.org>
73130
73131         * modules/readutmp: Depend on module free.
73132         * modules/strtok_r: Depend on module restrict.
73133
73134 2006-01-10  Bruno Haible  <bruno@clisp.org>
73135
73136         * modules/gettext (configure.ac): Add an invocation of
73137         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73138
73139 2006-01-10  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73142         Reported by Werner Lemberg <wl@gnu.org>.
73143
73144 2006-01-10  Bruno Haible  <bruno@clisp.org>
73145
73146         * lib/localcharset.c: Update from GNU gettext.
73147
73148 2006-01-10  Bruno Haible  <bruno@clisp.org>
73149
73150         * lib/argp.h (__const): Remove macro. Use const instead.
73151         * lib/argp-fmtstream.h (__const): Likewise.
73152         * lib/glob_.h (__const): Remove macro.
73153         * lib/glob-libc.h: Use const instead of __const.
73154
73155 2006-01-10  Bruno Haible  <bruno@clisp.org>
73156
73157         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73158         variable.
73159         Needed to avoid an automake error regarding the 'gettext' module.
73160
73161 2006-01-09  Simon Josefsson  <jas@extundo.com>
73162
73163         * modules/inet_ntop (Depends-on): Add restrict.
73164
73165 2006-01-09  Simon Josefsson  <jas@extundo.com>
73166
73167         * modules/gc-rijndael-tests (License): Put under LGPL.
73168
73169         * modules/gc-des-tests (License): Likewise.
73170
73171         * modules/gc-arcfour-tests (License): Likewise.
73172
73173         * modules/gc-arctwo-tests (License): Likewise.
73174
73175         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73176
73177         * modules/gc-hmac-sha1-tests (Files): Likewise.
73178
73179         * modules/gc-hmac-md5-tests (License): Likewise.
73180
73181         * modules/gc-sha1-tests (License): Likewise.
73182
73183         * modules/gc-md5-tests (License): Likewise.
73184
73185         * modules/gc-md4-tests (License): Likewise.
73186
73187         * modules/gc-md2-tests (License): Likewise.
73188
73189         * modules/gc-tests (License): Likewise.
73190
73191         * modules/des-tests (License): Likewise.
73192
73193         * modules/md4-tests (License): Likewise.
73194
73195         * modules/md2-tests (License): Likewise.
73196
73197 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         Sync from coreutils:
73200
73201         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73202         * modules/lib-ignore: New file.
73203         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73204         chdir-safer.m4, lchmod.m4.
73205         * modules/openat: Add mkdirat.c, openat-priv.h.
73206
73207 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         Sync from coreutils.
73210         * m4/lib-ignore.m4: New file.
73211         * m4/lchmod.m4: New file.
73212
73213 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         Sync from coreutils.
73216         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73217         for write access: POSIX says that must fail.
73218         * lib/fts.c (diropen): Likewise.
73219         * lib/save-cwd.c (save_cwd): Likewise.
73220         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73221         well, for minor improvements on hosts that lack O_DIRECTORY.
73222         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73223         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73224         Fall back on chown if open failed with EACCES.
73225
73226         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73227         Report an error at compile-time if only a 1-second nominal clock
73228         resolution is found.
73229
73230         * lib/lchmod.h: New file.
73231         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73232         (make_dir_parents): Use lchown rather than chown, and
73233         lchmod rather than chmod.
73234
73235         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73236         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73237         "proc" reported by n0dalus.
73238
73239         * lib/mountlist.c: Include <limits.h>.
73240         (dev_from_mount_options)
73241         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73242         New function.  It no longer assumes "dev=" has the System V meaning
73243         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73244         (read_file_system_list)
73245         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73246         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73247         dev= in that case.
73248
73249         * lib/posixtm.h (PDS_PRE_2000): New macro.
73250         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73251         allow_century.  All usages changed.  Reject dates outside the range
73252         1969-1999 if PDS_PRE_2000 is used.
73253
73254 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         Sync from coreutils.
73257         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73258         (Time of day items): Mention the possibility of leap seconds.
73259         Problem reported by Dr. David Alan Gilbert.
73260
73261 2006-01-09  Jim Meyering  <jim@meyering.net>
73262
73263         Sync from coreutils.
73264
73265         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73266
73267         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73268
73269         * lib/modechange.c (mode_compile): Reject an invalid mode string
73270         that starts with an octal digit.  From Andreas Gruenbacher.
73271
73272         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73273         and dup to open_safer and dup_safer, respectively.
73274         (openat_permissive): Fix typo in comment.
73275
73276         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73277         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73278         (_): Remove; no longer needed.
73279         (openat): Renamed from rpl_openat; no need for rpl_openat
73280         since openat.h renames openat for us.
73281         Replace most of the body with a call to openat_permissive,
73282         to avoid duplicate code.
73283         Port to (probably hypothetical) environments were mode_t is
73284         wider than int.
73285         (openat_permissive): Require mode arg, so that we can check
73286         types better.  Put it just after flags.  Change cwd failure
73287         indicator from pointer-to-bool to pointer-to-errno-value.
73288         All callers changed.
73289         Invoke openat_save_fail and/or openat_restore_fail if
73290         cwd_errno is null, so that openat can call us.
73291         (openat_permissive, fdopendir, fstatat, unlinkat):
73292         Simplify errno handling to avoid some duplicate code,
73293         as it's OK to set errno on success.
73294         * lib/openat.h: Revamp code so that function macros depend on
73295         __OPENAT_PREFIX only, not also on AT_FDCWD.
73296         (openat_ro): Remove.  Caller changed to use openat_permissive.
73297         (openat_permissive): Now a macro, if not a function.
73298         (openat_restore_fail, openat_save_fail): Now always functions,
73299         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73300
73301         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73302         and openat.c.
73303         * lib/mkdirat.c: Include openat-priv.h.
73304         Remove definitions of macros defined therein.
73305         * lib/openat.c: Likewise.
73306
73307         * lib/mkdirat.c (mkdirat): New file and function.
73308         * lib/openat.h (mkdirat): Declare.
73309
73310         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73311
73312         * lib/openat.h (openat_permissive): Declare.
73313         (openat_ro): Define.
73314
73315         * lib/openat.c (EXPECTED_ERRNO): New macro.
73316         (openat_permissive): New function -- used in remove.c rewrite.
73317         (all functions): Set errno just before returning, only if there
73318         was an actual failure.
73319         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73320
73321         Emulate openat-family functions using Linux's procfs, if possible.
73322         Idea and some code based on Ulrich Drepper's glibc changes.
73323
73324         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73325         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73326         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73327         before falling back on save_cwd and restore_cwd.
73328         (fdopendir, fstatat, unlinkat): Likewise.
73329
73330         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73331         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73332
73333         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73334         as second argument to va_arg.  Otherwise, some versions of gcc
73335         warn that `if this code is reached, the program will abort'.
73336
73337 2006-01-09  Jim Meyering  <jim@meyering.net>
73338
73339         Sync from coreutils.
73340         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73341         Require openat-priv.h.
73342
73343 2006-01-09  Bruno Haible  <bruno@clisp.org>
73344
73345         * modules/strnlen (Include): Use strnlen.h.
73346
73347 2006-01-09  Bruno Haible  <bruno@clisp.org>
73348
73349         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73350
73351 2006-01-09  Bruno Haible  <bruno@clisp.org>
73352
73353         * lib/sysexit_.h (EX_OK): New macro.
73354         Suggested by Martin Lambers <marlam@marlam.de>.
73355
73356 2006-01-09  Bruno Haible  <bruno@clisp.org>
73357
73358         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73359         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73360
73361 2006-01-09  Bruno Haible  <bruno@clisp.org>
73362
73363         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73364         numbers.
73365
73366 2006-01-09  Bruno Haible  <bruno@clisp.org>
73367
73368         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73369         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73370         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73371         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73372
73373 2006-01-09  Bruno Haible  <bruno@clisp.org>
73374
73375         * build-aux/javacomp.sh.in: New file, moved from lib/.
73376         * modules/javacomp-script (Files): Update.
73377         (configure.ac): Add AC_CONFIG_FILES invocation.
73378         (EXTRA_DIST): Remove variable.
73379
73380         * build-aux/javaexec.sh.in: New file, moved from lib/.
73381         * modules/javaexec (Files): Update.
73382         (configure.ac): Add AC_CONFIG_FILES invocation.
73383         (EXTRA_DIST): Remove javaexec.sh.in.
73384
73385         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73386         * modules/csharpcomp-script (Files): Update.
73387         (configure.ac): Add AC_CONFIG_FILES invocation.
73388         (EXTRA_DIST): Remove variable.
73389
73390         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73391         * modules/csharpexec (Files): Update.
73392         (configure.ac): Add AC_CONFIG_FILES invocation.
73393         (EXTRA_DIST): Remove csharpexec.sh.in.
73394
73395 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73396
73397         Sync from coreutils.
73398
73399         Add POSIX ACL support
73400         * lib/acl.h (copy_acl, set_acl): Add declarations.
73401         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73402         systems other than Linux.
73403         (chmod_or_fchmod): New function: use fchmod when possible,
73404         and chmod otherwise.
73405         (file_has_acl): Add a POSIX ACL implementation, with a
73406         Linux-specific subcase.
73407         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73408         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73409         acls are unsupported.
73410         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73411         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73412         are unsupported.
73413
73414 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73415
73416         Sync from coreutils.
73417         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73418
73419 2006-01-07  Bruno Haible  <bruno@clisp.org>
73420
73421         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73422         gl_EARLY.
73423
73424 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73427         Problem reported for Mingw by Mark Junker.
73428
73429 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * README: Gnulib normally doesn't generate a tarball.
73432
73433 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73436         long int, not int, for nanosecond counts, so that people who are
73437         used to POSIX struct timespec won't be surprised.  Reported by Jim
73438         Meyering.
73439
73440 2005-12-28  Bruno Haible  <bruno@clisp.org>
73441
73442         * build-aux/config.rpath: Update from GNU gettext.
73443
73444 2005-12-16  Jim Meyering  <jim@meyering.net>
73445
73446         * modules/fprintftime: New module.
73447         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73448
73449 2005-12-16  Jim Meyering  <jim@meyering.net>
73450
73451         * m4/fprintftime.m4: New file.
73452
73453 2005-12-16  Jim Meyering  <jim@meyering.net>
73454
73455         * lib/fprintftime.c, lib/fprintftime.h: New files.
73456
73457 2005-12-15  Simon Josefsson  <jas@extundo.com>
73458
73459         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73460         new m4/socklen.m4.
73461
73462 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73463
73464         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73465         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73466
73467 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73468
73469         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73470         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73471         struct uparams is valid. Fall back to the default values if it is
73472         not.
73473
73474 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73475
73476         * modules/argp (Files): Add argp-pin.c
73477         (Depends-on): dirname
73478         (lib_SOURCES): Add argp-pin.c
73479
73480 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73481
73482         * m4/argp.m4:  Check if program_invocation_name and
73483         program_invocation_short_name are declared and define appropriate
73484         macros if they are not.
73485
73486 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73487
73488         * lib/argp-help.c (__argp_base_name): New function
73489         (__argp_short_program_name): Rewrite using __argp_base_name
73490         * lib/argp-namefrob.h: Define program_invocation_name and
73491         program_invocation_short_name if requested
73492         (__argp_base_name): Add prototype
73493         * lib/argp-parse.c (argp_def): Use gettext wrappers
73494         (argp_default_parser): Use __argp_base_name
73495         * lib/argp-pin.c: New file. Defines program_invocation_name and
73496         program_invocation_short_name on systems that lack them.
73497
73498 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73501         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73502         porting problem reported by Georg Schwarz in
73503         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73504
73505 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73508         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73509         porting problem reported by Georg Schwarz in
73510         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73511
73512 2005-12-05  Bruno Haible  <bruno@clisp.org>
73513
73514         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73515         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73516         Reported by Mark Junker <mjscod@gmx.de>.
73517
73518 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73519
73520         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73521         Use implementation from Albert Chin, with some
73522         comments/corrections by Stepan Kasal and myself.
73523
73524 2005-12-02  Bruno Haible  <bruno@clisp.org>
73525
73526         * gnulib-tool (func_import): Accept GPLed build tool modules when
73527         --lgpl is given.
73528         * modules/csharpcomp-script: New file.
73529         * modules/csharpcomp: Depend on it.
73530         * modules/javacomp-script: New file.
73531         * modules/javacomp: Depend on it.
73532         Suggested by Simon Josefsson.
73533
73534 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73537         statement, to work around an HP-UX 10.20 compiler bug reported by
73538         Peter O'Gorman.
73539
73540 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * modules/savedir (Depends-on): Add openat.
73543
73544 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73545
73546         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73547         (uintmax_t) [defined uintmax_t]: Do not declare.
73548         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73549         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73550         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73551         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73552         sake of portability to weird hosts that C allows (though we don't
73553         know of any practical examples).
73554
73555         * lib/savedir.h (fdsavedir): New decl.
73556         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73557         contains most of the former guts of savedir.
73558         (savedir): Use savedirstream.
73559         Include "openat.h".
73560
73561 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         * modules/obstack (Files): Add m4/ulonglong.m4.
73564         Problem reported by Davide Angelocola.
73565
73566 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73567
73568         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73569         coreutils no longer futzes with rounding modes.
73570
73571 2005-11-14  Jim Meyering  <jim@meyering.net>
73572
73573         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73574         replacement of mkstemp.
73575
73576 2005-11-10  Simon Josefsson  <jas@extundo.com>
73577
73578         * lib/readline.c: Remove EOL.
73579
73580 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * modules/gethrxtime (Depends-on): Add gettime.
73583
73584 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73587         or gettimeofday; no longer needed.
73588
73589 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73592         time business.
73593         (gethrxtime) [! (HAVE_NANOUPTIME
73594         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73595         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73596         our own approximation.
73597
73598 2005-11-08  Eric Blake  <ebb9@byu.net>
73599
73600         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73601
73602 2005-11-08  Eric Blake  <ebb9@byu.net>
73603
73604         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73605
73606 2005-11-04  Bruno Haible  <bruno@clisp.org>
73607
73608         * gnulib-tool: Implement --update mode.
73609
73610 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73611
73612         Fix porting problem reported by Theodoros V. Kalamatianos.
73613         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73614         Don't assume that futimes failing means we must fail.
73615
73616 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73619         variables to suggest the intended function of the PATH_MAX check.
73620
73621 2005-10-30  Kean Johnston  <jkj@sco.com>
73622
73623         Trivial changes to support SCO systems.
73624         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73625         as PATH_MAX.
73626         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73627         where __ptr is null when no I/O is pending.
73628
73629 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73630
73631         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73632         leave errno alone.  Problem reported by Dmitry V. Levin.
73633
73634 2005-10-28  Simon Josefsson  <jas@extundo.com>
73635
73636         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73637         Test more.
73638
73639         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73640
73641         * modules/md2, modules/md2-tests: New files.
73642
73643 2005-10-28  Simon Josefsson  <jas@extundo.com>
73644
73645         * m4/inet_ntop.m4: More tests.
73646
73647         * m4/gc-md2.m4, md2.m4: New file.
73648
73649 2005-10-28  Simon Josefsson  <jas@extundo.com>
73650
73651         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73652         "restrict" keywords, as per POSIX.  Protect the function
73653         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73654         Don't use K&R prototypes.  Check the sprintf return values.
73655         Re-define EAFNOSUPPORT if not present.  Indent.
73656
73657         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73658         suggested by Bruno Haible <bruno@clisp.org>.
73659
73660         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73661
73662         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73663
73664         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73665         libgcrypt).
73666
73667         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73668
73669         * lib/md2.h, lib/md2.c: New files.
73670
73671 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73674         errno alone.  Problem reported by Frederic Jolliton.
73675
73676 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * modules/verify (License): Change from GPL to LGPL.  This is a
73679         tiny module and there are apparently near-equivalents that are
73680         under the BSD license.
73681
73682 2005-10-24  Simon Josefsson  <jas@extundo.com>
73683
73684         * modules/sha1: Relicense to LGPL.
73685
73686 2005-10-24  Simon Josefsson  <jas@extundo.com>
73687
73688         * lib/md4.h: Shrink buffer size, now that we changed the type.
73689
73690 2005-10-23  Simon Josefsson  <jas@extundo.com>
73691
73692         * gnulib-tool (func_import): Fix --tests-base.
73693
73694 2005-10-22  Simon Josefsson  <jas@extundo.com>
73695
73696         * modules/arcfour (Depends-on): Need stdint.
73697
73698 2005-10-22  Simon Josefsson  <jas@extundo.com>
73699
73700         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73701         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73702
73703 2005-10-22  Simon Josefsson  <jas@extundo.com>
73704
73705         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73706         suggested by Bruno Haible <bruno@clisp.org>.
73707
73708 2005-10-22  Simon Josefsson  <jas@extundo.com>
73709
73710         * lib/crc.h: Include stddef.h, for size_t.
73711
73712 2005-10-22  Simon Josefsson  <jas@extundo.com>
73713
73714         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73715         arcfour_context struct (simplify test vector testing in GNU
73716         Shishi).
73717
73718 2005-10-21  Simon Josefsson  <jas@extundo.com>
73719
73720         * modules/des, modules/des-tests: New files.
73721
73722         * modules/gc-des, modules/gc-des-tests: New files.
73723
73724         * tests/test-des.c, tests/test-gc-des.c: New file.
73725
73726 2005-10-21  Simon Josefsson  <jas@extundo.com>
73727
73728         * modules/arctwo, modules/arctwo-tests: New files.
73729
73730         * tests/test-arctwo.c: New file.
73731
73732         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73733
73734         * tests/test-gc-arctwo.c: New file.
73735
73736 2005-10-21  Simon Josefsson  <jas@extundo.com>
73737
73738         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73739         Bruno Haible <bruno@clisp.org>.
73740
73741         * m4/gc-des.m4: New file.
73742
73743 2005-10-21  Simon Josefsson  <jas@extundo.com>
73744
73745         * m4/arctwo.m4: New file.
73746
73747         * m4/gc-arctwo.m4: New file.
73748
73749 2005-10-21  Simon Josefsson  <jas@extundo.com>
73750
73751         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73752         block.
73753
73754 2005-10-21  Simon Josefsson  <jas@extundo.com>
73755
73756         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73757         <bruno@clisp.org>.
73758
73759         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73760
73761         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73762         Bruno Haible <bruno@clisp.org>.
73763
73764         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73765         <bruno@clisp.org>.
73766
73767 2005-10-21  Simon Josefsson  <jas@extundo.com>
73768
73769         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73770
73771 2005-10-21  Simon Josefsson  <jas@extundo.com>
73772
73773         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73774
73775 2005-10-21  Simon Josefsson  <jas@extundo.com>
73776
73777         * lib/des.h, lib/des.c: New files.
73778
73779         * lib/gc-gnulib.c: Support DES.c
73780
73781 2005-10-21  Simon Josefsson  <jas@extundo.com>
73782
73783         * lib/arctwo.h, lib/arctwo.c: New files.
73784
73785         * lib/gc-gnulib.c: Support ARCTWO.
73786
73787 2005-10-21  Simon Josefsson  <jas@extundo.com>
73788
73789         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73790         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73791
73792 2005-10-21  Simon Josefsson  <jas@extundo.com>
73793
73794         * gnulib-tool (func_import, func_create_testdir): Define automake
73795         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73796         Makefile.am snippet),
73797         suggested by Bruno Haible <bruno@clisp.org>.
73798
73799         * modules/gc (Makefile.am): Use it.
73800
73801 2005-10-21  Bruno Haible  <bruno@clisp.org>
73802
73803         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73804         patch.
73805
73806 2005-10-19  Simon Josefsson  <jas@extundo.com>
73807
73808         * tests/test-gc-rijndael.c: New file.
73809
73810         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73811
73812 2005-10-19  Simon Josefsson  <jas@extundo.com>
73813
73814         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73815         interface too.
73816
73817 2005-10-19  Simon Josefsson  <jas@extundo.com>
73818
73819         * tests/test-gc-arcfour.c: New file.
73820
73821         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73822
73823 2005-10-19  Simon Josefsson  <jas@extundo.com>
73824
73825         * modules/gc-md4, modules/gc-md4-tests: New file.
73826
73827         * tests/test-gc-md4.c: New file.
73828
73829 2005-10-19  Simon Josefsson  <jas@extundo.com>
73830
73831         * m4/gc-md4.m4: New file.
73832
73833 2005-10-19  Simon Josefsson  <jas@extundo.com>
73834
73835         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73836         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73837         <kasal@ucw.cz>.
73838
73839 2005-10-19  Simon Josefsson  <jas@extundo.com>
73840
73841         * m4/gc-arcfour.m4: New file.
73842
73843         * m4/gc-rijndael.m4: New file.
73844
73845 2005-10-19  Simon Josefsson  <jas@extundo.com>
73846
73847         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73848
73849 2005-10-19  Simon Josefsson  <jas@extundo.com>
73850
73851         * lib/gc-gnulib.c: Support ARCFOUR.
73852
73853 2005-10-19  Simon Josefsson  <jas@extundo.com>
73854
73855         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73856         support.
73857
73858         * lib/gc.h: Add ECB enum type.
73859
73860         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73861
73862 2005-10-18  Simon Josefsson  <jas@extundo.com>
73863
73864         * tests/test-md5.c: New file.
73865
73866         * modules/md5-tests: New file.
73867
73868 2005-10-18  Simon Josefsson  <jas@extundo.com>
73869
73870         * tests/test-md4.c: New file.
73871
73872         * modules/md4, modules/md4-tests: New files.
73873
73874 2005-10-18  Simon Josefsson  <jas@extundo.com>
73875
73876         * m4/md4.m4: New file.
73877
73878 2005-10-18  Simon Josefsson  <jas@extundo.com>
73879
73880         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73881
73882 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73883
73884         * gnulib-tool (func_create_testdir): Omit the second check whether
73885         BUILT_SOURCES in nonempty.
73886
73887 2005-10-17  Simon Josefsson  <jas@extundo.com>
73888
73889         * tests/test-rijndael.c: New file.
73890
73891 2005-10-17  Simon Josefsson  <jas@extundo.com>
73892
73893         * modules/sha1: Depend on stdint instead of md5.
73894
73895         * modules/md5: Depend on stdint, remove uint32_t.
73896
73897 2005-10-17  Simon Josefsson  <jas@extundo.com>
73898
73899         * modules/gc-sha1-tests: New file.
73900
73901         * tests/test-gc-sha1.c: New file.
73902
73903 2005-10-17  Simon Josefsson  <jas@extundo.com>
73904
73905         * m4/md5.m4: Remove call to uint32_t.m4.
73906
73907 2005-10-17  Simon Josefsson  <jas@extundo.com>
73908
73909         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73910
73911         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73912         md5.h.
73913
73914         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73915
73916         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73917
73918 2005-10-17  Simon Josefsson  <jas@extundo.com>
73919
73920         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73921
73922 2005-10-17  Simon Josefsson  <jas@extundo.com>
73923
73924         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73925
73926 2005-10-17  Simon Josefsson  <jas@extundo.com>
73927
73928         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73929
73930         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73931
73932 2005-10-17  Bruno Haible  <bruno@clisp.org>
73933
73934         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73935         that it can also be used in a test.
73936
73937 2005-10-16  Bruno Haible  <bruno@clisp.org>
73938
73939         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73940         TESTS_ENVIRONMENT, so that individual tests can augment it.
73941
73942         * gnulib-tool (func_create_testdir): Use an intermediate target for
73943         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73944         macros, like $(ALLOCA_H), which cannot be passed through the command
73945         line.
73946
73947 2005-10-15  Simon Josefsson  <jas@extundo.com>
73948
73949         * modules/rijndael-tests: New file.
73950
73951         * modules/rijndael: New file.
73952
73953 2005-10-15  Simon Josefsson  <jas@extundo.com>
73954
73955         * m4/rijndael.m4: New file.
73956
73957 2005-10-15  Simon Josefsson  <jas@extundo.com>
73958
73959         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73960
73961         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73962
73963 2005-10-14  Simon Josefsson  <jas@extundo.com>
73964
73965         * tests/test-arcfour.c: New file.
73966
73967         * modules/arcfour, modules/arcfour-tests: New files.
73968
73969 2005-10-14  Simon Josefsson  <jas@extundo.com>
73970
73971         * m4/arcfour.m4: New file.
73972
73973 2005-10-14  Simon Josefsson  <jas@extundo.com>
73974
73975         * lib/arcfour.h, lib/arcfour.c: New files.
73976
73977 2005-10-14  Roland McGrath  <roland@redhat.com>
73978
73979         Import from libc.  [BZ #1331]
73980         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73981         macro argument.
73982         Reported by Matej Vela <vela@debian.org>.
73983
73984 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73987         include <wchar.h>; no longer needed.
73988
73989 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73992
73993 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73994         and  Ulrich Drepper  <drepper@redhat.com>
73995
73996         Import from libc.
73997         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73998         instead of inline stream orientation test and two separate
73999         function calls.  Pay no attention to USE_IN_LIBIO.
74000
74001 2005-10-13  Simon Josefsson  <jas@extundo.com>
74002
74003         * modules/gc-hmac-md5-tests: New file.
74004
74005         * tests/test-gc-hmac-sha1.c: New file.
74006
74007         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74008
74009         * modules/gc-hmac-md5-tests: New file.
74010
74011         * tests/test-gc-md5.c: New file.
74012
74013         * modules/gc-md5-tests: New file.
74014
74015 2005-10-13  Simon Josefsson  <jas@extundo.com>
74016
74017         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74018         Move memory allocation outside of loop.
74019
74020 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74023         intermediate directory is in a read-only file system.  Problem
74024         reported by Eric Blake.
74025
74026 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74027
74028         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74029
74030 2005-10-12  Simon Josefsson  <jas@extundo.com>
74031
74032         * tests/test-hmac-sha1.c: New file.
74033
74034         * modules/hmac-sha1-tests: New file.
74035
74036         * modules/hmac-sha1: New file.
74037
74038 2005-10-12  Simon Josefsson  <jas@extundo.com>
74039
74040         * modules/gc-sha1: New file.
74041
74042 2005-10-12  Simon Josefsson  <jas@extundo.com>
74043
74044         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74045
74046         * tests/test-gc-pbkdf2-sha1.c: New file.
74047
74048 2005-10-12  Simon Josefsson  <jas@extundo.com>
74049
74050         * modules/gc-md5, modules/gc-hmac-md5: New files.
74051
74052         * modules/gc (Files): Remove md5, memxor and hmac files.
74053
74054 2005-10-12  Simon Josefsson  <jas@extundo.com>
74055
74056         * m4/gc-pbkdf2-sha1.m4: New file.
74057
74058         * m4/gc-hmac-sha1.m4: New file.
74059
74060         * m4/gc-sha1: New file.
74061
74062         * m4/hmac-sha1.m4: New file.
74063
74064 2005-10-12  Simon Josefsson  <jas@extundo.com>
74065
74066         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74067
74068         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74069
74070 2005-10-12  Simon Josefsson  <jas@extundo.com>
74071
74072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74073         suggested by Bruno Haible <bruno@clisp.org>.
74074
74075 2005-10-12  Simon Josefsson  <jas@extundo.com>
74076
74077         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74078
74079 2005-10-12  Simon Josefsson  <jas@extundo.com>
74080
74081         * lib/gc-pbkdf2-sha1.c: New file.
74082
74083         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74084
74085 2005-10-12  Simon Josefsson  <jas@extundo.com>
74086
74087         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74088
74089         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74090
74091 2005-10-12  Simon Josefsson  <jas@extundo.com>
74092
74093         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74094         GC_USE_HMAC_MD5, respectively.
74095
74096         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74097         (gc_md5): Fix typo.
74098
74099         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74100
74101         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74102
74103         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74104
74105 2005-10-12  Bruno Haible  <bruno@clisp.org>
74106
74107         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74108         Reported by Stepan Kasal <kasal@ucw.cz>.
74109
74110 2005-10-11  Simon Josefsson  <jas@extundo.com>
74111
74112         * tests/test-crc.c: New file.
74113
74114         * modules/crc, modules/crc-tests: New files.
74115
74116 2005-10-11  Simon Josefsson  <jas@extundo.com>
74117
74118         * m4/crc.m4: New file.
74119
74120 2005-10-11  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74123
74124         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74125
74126         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74127
74128 2005-10-11  Simon Josefsson  <jas@extundo.com>
74129
74130         * lib/crc.h, lib/crc.c: New files.
74131
74132         * lib/gc.h (gc_hash_buffer): Add doc.
74133
74134 2005-10-11  Bruno Haible  <bruno@clisp.org>
74135
74136         * modules/c-strcasestr: New file.
74137         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74138
74139 2005-10-11  Bruno Haible  <bruno@clisp.org>
74140
74141         * modules/c-strcase: New file.
74142         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74143
74144 2005-10-11  Bruno Haible  <bruno@clisp.org>
74145
74146         * lib/strcasecmp.c: Include limits.h.
74147         (strcasecmp): Avoid integer overflow on exotic platforms.
74148         * lib/strncasecmp.c: Include limits.h.
74149         (strncasecmp): Avoid integer overflow on exotic platforms.
74150         Reported by Paul Eggert.
74151
74152 2005-10-11  Bruno Haible  <bruno@clisp.org>
74153
74154         * lib/c-strcasestr.h: New file, from GNU gettext.
74155         * lib/c-strcasestr.c: New file, from GNU gettext.
74156
74157 2005-10-11  Bruno Haible  <bruno@clisp.org>
74158
74159         * lib/c-strcase.h: New file, from GNU gettext.
74160         * lib/c-strcasecmp.c: New file, from GNU gettext.
74161         * lib/c-strncasecmp.c: New file, from GNU gettext.
74162
74163 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * modules/mempcpy (License): GPL -> LGPL.
74166         * modules/strchrnul (License): Likewise.
74167         * modules/sysexits (License): Likewise.
74168
74169 2005-10-08  Simon Josefsson  <jas@extundo.com>
74170
74171         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74172
74173 2005-10-07  Simon Josefsson  <jas@extundo.com>
74174
74175         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74176
74177 2005-10-06  Simon Josefsson  <jas@extundo.com>
74178
74179         * tests/test-hmac-md5.c: New file.
74180
74181         * modules/hmac-md5-tests: New file.
74182
74183         * modules/hmac-md5: New file.
74184
74185 2005-10-06  Simon Josefsson  <jas@extundo.com>
74186
74187         * m4/hmac-md5.m4: New file.
74188
74189         * m4/memxor.m4: Require gl_C_RESTRICT.
74190
74191 2005-10-06  Simon Josefsson  <jas@extundo.com>
74192
74193         * lib/memxor.c (memxor): Avoid casts and warnings.
74194
74195 2005-10-06  Simon Josefsson  <jas@extundo.com>
74196
74197         * lib/hmac-md5.c: New file.
74198
74199         * lib/hmac.h: New file.
74200
74201 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74204         promotes to int, not unsigned int, to catch the AIX 5.3
74205         compiler bug.
74206
74207 2005-10-05  Simon Josefsson  <jas@extundo.com>
74208
74209         * modules/memxor: New file.
74210
74211         * modules/iconv (Files): Move config.rpath to havelib, it is used
74212         there.
74213
74214         * modules/havelib (Files): Add config.rpath.
74215
74216 2005-10-05  Simon Josefsson  <jas@extundo.com>
74217
74218         * m4/memxor.m4: New file.
74219
74220 2005-10-05  Simon Josefsson  <jas@extundo.com>
74221
74222         * lib/memxor.c (memxor): Fix compiler error.
74223
74224         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74225         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74226
74227         * lib/memxor.h, lib/memxor.c: New files.
74228
74229         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74230         we assume all systems have it, suggested by Jim Meyering
74231         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74232         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74233         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74234         same reasons.
74235
74236 2005-10-05  Simon Josefsson  <jas@extundo.com>
74237
74238         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74239
74240 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74243         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74244         needed, since the source code now assumes these .h files.
74245
74246 2005-10-05  Derek Price  <derek@ximbiot.com>
74247
74248         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74249
74250 2005-10-05  Bruno Haible  <bruno@clisp.org>
74251
74252         * modules/stdint (License): Change to LGPL.
74253
74254 2005-10-04  Simon Josefsson  <jas@extundo.com>
74255
74256         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74257         D. Baushke" <mdb@gnu.org>.
74258
74259 2005-10-04  Bruno Haible  <bruno@clisp.org>
74260
74261         * lib/verify.h (verify_true): Provide alternative definition for C++.
74262
74263 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74264
74265         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74266         (SSIZE_MAX): New macro, if not already defined.
74267         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74268         than 2 GiB.
74269
74270 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         Sync from coreutils.
74273         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74274         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74275         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74276         ULLONG_MAX doesn't work with 2.7.2.1.
74277
74278 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74281         From Ben Pfaff.
74282
74283         * modules/exclude (Depends-on): Depend on verify.
74284         * modules/strtoimax (Depends-on): Likewise.
74285         * modules/utimecmp (Depends-on): Likewise.
74286
74287 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * lib/exclude.c: Include verify.h.
74290         (verify): Remove.  All callers changed to use verify.h's version.
74291         * lib/strtoimax.c: Likewise.
74292         * lib/utimecmp.c: Likewis.e
74293
74294         Sync from coreutils.
74295         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74296         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74297         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74298         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74299         bother returning ENOSYS if settimeofday or stime fails; just let
74300         them return whatever errno they want to return.
74301         * lib/utimens.c: Include unistd.h, for dup2.
74302         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74303         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74304
74305 2005-10-02  Jim Meyering  <jim@meyering.net>
74306
74307         Sync from coreutils.
74308         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74309         from glibc-2.2.5 that fails for read-only files.
74310
74311 2005-10-02  Jim Meyering  <jim@meyering.net>
74312
74313         Sync from coreutils.
74314         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74315         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74316         `#if HAVE_CONFIG_H'.
74317         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74318         Remove AT_FDCWD test.
74319         Do not consume the fd unless successful.
74320         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74321         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74322         block, so that we don't even try to compile it if settimeofday is
74323         available.  This works around a compilation failure on OSF1 V5.1,
74324         due to stime requiring a `long int*' while tv_sec is `int'.
74325
74326 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74327
74328         Sync from coreutils.
74329         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74330         against `yes', rather than just testing for nonempty.
74331
74332 2005-10-01  Simon Josefsson  <jas@extundo.com>
74333
74334         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74335         and Darwin.
74336
74337         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74338         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74339         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74340         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74341         Check if struct addrinfo is declared.
74342
74343 2005-10-01  Simon Josefsson  <jas@extundo.com>
74344
74345         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74346         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74347         AI_* and EAI_* definitions.  Protect function declarations.
74348
74349 2005-10-01  Jim Meyering  <jim@meyering.net>
74350
74351         Sync from coreutils.
74352
74353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74354         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74355         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74357         in the inet and nsl libraries.  Required on Solaris 5.7.
74358
74359 2005-10-01  Jim Meyering  <jim@meyering.net>
74360
74361         Sync from coreutils.
74362         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74363         in the inet and nsl libraries.  Required on Solaris 5.7.
74364
74365 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74366
74367         * lib/getdelim.c (getdelim): Remove unused variables.
74368
74369 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74370
74371         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74372         so that the code works even with ancient cpp.  Portability problem
74373         with GCC 2.7.2.1 reported by Thomas M.Ott.
74374
74375 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         * modules/regex (Depends-on): Add strcase.
74378
74379         * modules/gethostname (Licence): Change from GPL to LGPL, since
74380         gethostname.c is a trivial implementation of a standard library
74381         function.
74382         * modules/poll (License): Change from GPL to LGPL, since it's
74383         derived from LGPL code.
74384
74385 2005-09-27  Jim Meyering  <jim@meyering.net>
74386
74387         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74388         HAVE_CONFIG_H.
74389
74390         * lib/intprops.h (signed_type_or_expr__): Define.
74391         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74392         for unsigned types.
74393
74394 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * lib/verify.h (verify_expr): Remove, replacing with:
74397         (verify_true): New macro that returns true instead of void.
74398         (verify_type__): Remove.
74399         (verify): Use verify_true rather than verify_type__.
74400
74401 2005-09-26  Bruno Haible  <bruno@clisp.org>
74402
74403         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74404         is necessary.
74405         (lib_SOURCES): Remove mbchar.c.
74406         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74407         (Files): Add m4/mbrtowc.m4.
74408         * modules/mbiter: Likewise.
74409         * modules/mbuiter: Likewise.
74410
74411 2005-09-26  Bruno Haible  <bruno@clisp.org>
74412
74413         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74414         compile mbchar.c if they are not both present.
74415         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74416         * m4/mbiter.m4 (gl_MBITER): Likewise.
74417         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74418         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74419         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74420
74421 2005-09-25  Jim Meyering  <jim@meyering.net>
74422
74423         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74424         also uses socklen_t.
74425
74426 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74427
74428         * lib/utimens.c (ENOSYS): Define if not already defined.
74429         (futimens): Support having a null PATH if the file descriptor
74430         is nonnegative.
74431
74432         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74433         Remove.
74434         (__attribute): Define to empty unless GCC 3.1 or later.
74435         This works around a core dump on OpenBSD 3.4, which has GCC
74436         2.95.3, which dumps core when given __attribute__(()).  It also
74437         simplifies other tests, since we really don't want to bother with
74438         worrying about which ancient version of GCC supported what.
74439         Original problem reported by Yoann Vandoorselaere, with part of
74440         the fix suggested by Derek Price.
74441
74442 2005-09-24  Jim Meyering  <jim@meyering.net>
74443
74444         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74445         so we can once again use a positive bitfield width of 1 -- now we
74446         don't have to explain why we were using a bitfield width of 2.
74447
74448 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74451         and similarly for the other external symbols.  Problem reported
74452         by James Gallager.
74453
74454         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74455         bug reported by Jim Meyering.
74456
74457         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74459         not needed, since socklen is a prerequisite module.
74460
74461 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74464         Problem reported by Eric Blake.
74465         (getaddrinfo): Initialize se so that it's not garbage.
74466         Redo internal storage allocation so that it doesn't make unportable
74467         assumptions about alignment.
74468         Fix a memory leak.
74469
74470         * lib/utimens.c (futimens): Use futimesat if available.
74471         Prefer it to futimes since it doesn't have the futimes bug.
74472
74473         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74474         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74475         Instead, declare a function that returns a pointer to an array,
74476         and use verify_type__ to declare the size of the array.
74477         Problem and germ of a solution reported by Bruno Haible.
74478         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74479         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74480
74481 2005-09-23  Jim Meyering  <jim@meyering.net>
74482
74483         Sync from coreutils.
74484         Correct build failure (socklen_t not defined) on at least
74485         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74486         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74487
74488 2005-09-23  Jim Meyering  <jim@meyering.net>
74489
74490         * modules/getaddrinfo (Depends-on): Add socklen.
74491
74492 2005-09-23  Bruno Haible  <bruno@clisp.org>
74493
74494         * tests/test-verify.c: New file.
74495
74496 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         Sync from coreutils.
74499
74500         * modules/argmatch (Depends-on): Add verify.
74501         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74502         unistd-safer.
74503         * modules/save-cwd (Depends-on): Likewise.
74504
74505         * modules/openat (Files): Add lib/openat-die.c.
74506         (Depends-on): Remove error, exitfail.
74507         Add dirname.
74508
74509         * modules/verify: New file.
74510         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74511         with "verify" module.
74512
74513 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         Sync from coreutils.
74516
74517         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74518         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74519         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74520         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74521         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74522         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74523         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74524         Don't bother checking for string.h, stdlib.h, unistd.h.
74525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74526         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74527         module's job.
74528         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74529         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74530
74531         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74532         (gl_GETDATE): Use it.
74533
74534         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74535
74536 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         Sync from coreutils.
74539
74540         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74541         stat-time.h.
74542         * lib/argmatch.h: Include verify.h
74543         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74544         (ARGMATCH_ASSERT): Remove; unused.
74545         * lib/canonicalize.c: Assume STDC_HEADERS.
74546         * lib/exclude.c: Include "strcase.h".
74547         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74548         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74549         and stdio-safer.h.
74550         (getusershell): Call fopen, not fopen_safer.
74551         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74552         Do not include unistd-safer.h.
74553         (save_cwd): Don't call fd_safer; no longer needed
74554         now that we include fcntl--.h.
74555
74556         * lib/getdate.y (relative_time): New type.
74557         (RELATIVE_TIME_0): New constant.
74558         (parser_control): Use relative_time instead of doing it ourselves.
74559         (%union): Add new relative_time rel member.
74560         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74561         Now typeless.
74562         (relunit, relunit_snumber): Now of type rel.
74563         (zone, rel, relunit, get_date): Adjust to above changes.
74564
74565         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74566         Do not include unistd-safer.h.
74567         (getloadavg): Don't call fd_safer; no longer needed
74568         now that we include fcntl--.h.
74569
74570         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74571         (make_dir_parents): Treat ENOSYS like EEXIST.
74572
74573         Improve quality of diagnostics on restore_cwd failure.
74574         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74575         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74576         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74577         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74578         each time through the loop.  Do not diagnose restore_cwd failure;
74579         that is the caller's job (and perhaps the caller does not care).
74580
74581         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74582         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74583         If the file already exists but is not a directory, don't bother
74584         to try to make its parents.
74585         Close potential file descriptor leak if we can't chdir("/") (!).
74586         Don't always return true if chdir($PWD) fails; return true only
74587         if the requested action was done successfully (except for the
74588         chdir($PWD)).
74589         Don't log final directory unless we actually made it.
74590         Refactor to avoid duplicate code to fix up permissions.
74591         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74592
74593         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74594         to make it a bit faster and (I hope) clearer.
74595         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74596         Fix bug in formats like %2N.
74597
74598         * lib/verify.h: New file.
74599
74600 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         Sync from coreutils.
74603         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74604
74605 2005-09-22  Jim Meyering  <jim@meyering.net>
74606
74607         Sync from coreutils.
74608
74609         * m4/lstat.m4 (gl_FUNC_LSTAT):
74610         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74611         Remove obsolete comment.
74612         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74613         * m4/xstrtod.m4: Likewise.
74614
74615         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74616
74617 2005-09-22  Jim Meyering  <jim@meyering.net>
74618
74619         Sync from coreutils.
74620
74621         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74622
74623         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74624         the .tm_year member, since otherwise gcc-4.0 would now warn about
74625         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74626
74627         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74628         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74629
74630         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74631         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74632         when run in a time zone for which daylight savings time is in effect
74633         for the starting date.
74634
74635         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74636         stop us from restricting permissions of just-created absolute-named
74637         directories.
74638         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74639         to restore initial working directory.
74640         * lib/mkdir-p.c (make_dir_parents): New parameter:
74641         different_working_dir, to tell caller if/when we change the working
74642         directory and are unable to return to the initial one.
74643         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74644         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74645         `return false'.  This fixes a bug introduced on 2004-07-30.
74646
74647         * lib/openat.c (fdopendir): Be sure to close the supplied
74648         file descriptor before returning.  This makes our replacement
74649         implementation a little closer to Solaris's, where fdopendir
74650         ties the file descriptor to the returned DIR* pointer.
74651         * lib/openat.c (unlinkat): New function.
74652         * lib/openat.h (unlinkat): Add prototype.
74653         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74654         (openat_restore_fail): Rename from openat_restore_die.
74655         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74656
74657         Provide an alternative to exiting immediately upon save_cwd or
74658         restore_cwd failure.  Now, an application can arrange e.g.,
74659         to perform a longjump in that case.
74660         * lib/openat.c: Include dirname.h.
74661         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74662         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74663         and openat_restore_die rather than calling error directly.
74664         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74665
74666         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74667         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74668         define.
74669
74670         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74671         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74672                             int utc, int nanoseconds);
74673         Background:
74674         date should not have to allocate a megabyte of virtual memory to
74675         handle a format argument like +%1048575T.  When implemented with
74676         strftime, it must allocate such a buffer, use strftime to fill it
74677         in, print it, then free it.
74678         With fprintftime, it simply prints everything and exits.
74679         With no need for memory allocation, that's one fewer way to fail.
74680         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74681         optional field width, not before, so we accept %9:z, not %:9z.
74682         (my_strftime): Be sure to use L_('x') for literals.
74683
74684         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74685         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74686         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74687         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74688         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74689         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74690         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74691         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74692         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74693         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74694         * lib/xgethostname.c, lib/xreadlink.c:
74695         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74696
74697         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74698         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74699         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74700         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74701         and don't include <sys/file.h>).
74702
74703 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74704
74705         Sync from coreutils.
74706
74707         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74708         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74709         [!LDAV_DONE]: Avoid unused variable warning.
74710
74711 2005-09-21  Bruno Haible  <bruno@clisp.org>
74712
74713         * lib/unicodeio.h (unicode_to_mb): New declaration.
74714
74715 2005-09-20  Derek Price  <derek@ximbiot.com>
74716
74717         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74718         getaddrinfo.h.
74719
74720 2005-09-20  Bruno Haible  <bruno@clisp.org>
74721
74722         * gnulib-tool: Remove trailing slashes from the values specified for
74723         --source-base, --m4-base, --tests-base, --aux-dir.
74724         Suggested by Simon Josefsson <jas@extundo.com>.
74725
74726 2005-09-20  Bruno Haible  <bruno@clisp.org>
74727
74728         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74729         func_modules_to_filelist, func_import, func_create_testdir): Make all
74730         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74731         change when gnulib-tool is invoked in a different locale.
74732
74733 2005-09-19  Simon Josefsson  <jas@extundo.com>
74734
74735         * m4/socklen.m4: Fix typo.
74736
74737 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74738
74739         Use a consistent style for including <config.h>.
74740         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74741         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74742         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74743         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74744         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74745         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74746         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74747         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74748         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74749         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74750         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74751         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74752         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74753         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74754         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74755         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74756         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74757         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74758         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74759         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74760         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74761         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74762         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74763         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74764         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74765         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74766         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74767         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74768         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74769         lib/xstrtoumax.c, lib/yesno.c:
74770         Standardize inclusion of config.h.
74771         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74772         lib/inttostr.h:  Removed inclusion of config.h from header files.
74773         * lib/inttostr.c:  Adjusted in-tree users.
74774         * lib/timespec.h: Remove superfluous warning to include config.h.
74775         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74776         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74777         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74778         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74779         config.h with HAVE_CONFIG_H.
74780
74781 2005-09-19  Jim Meyering  <jim@meyering.net>
74782
74783         * modules/pathmax (License): Change to LGPL.
74784
74785 2005-09-19  Derek Price  <derek@ximbiot.com>
74786
74787         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74788
74789 2005-09-19  Bruno Haible  <bruno@clisp.org>
74790
74791         * gnulib-tool (import): Provide default for --tests-base.
74792
74793 2005-09-19  Bruno Haible  <bruno@clisp.org>
74794
74795         * doc/quote.texi: New file, extracted from gnulib.texi.
74796         * doc/ctime.texi: New file, extracted from gnulib.texi.
74797         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74798         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74799         * doc/gnulib.texi: Include them.
74800
74801 2005-09-18  Bruno Haible  <bruno@clisp.org>
74802
74803         Portability fix.
74804         * gnulib-tool (func_readlink): New function.
74805         (func_ln_if_changed): Use it.
74806
74807 2005-09-18  Bruno Haible  <bruno@clisp.org>
74808
74809         * gnulib-tool: Support --with-tests also with --import.
74810         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74811         (func_import): Use variables $testsbase and $inctests. Emit a
74812         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74813         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74814         SUBDIRS += $testsdir.
74815         (func_create_testdir): Update.
74816
74817 2005-09-18  Bruno Haible  <bruno@clisp.org>
74818
74819         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74820         instead of $dry_run.
74821         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74822         (func_ln_if_changed): Don't handle dry-run here.
74823         (func_import): In dry-run mode, detect more precisely which actions
74824         would be performed, and don't use "...ing" verbs.
74825
74826 2005-09-18  Bruno Haible  <bruno@clisp.org>
74827
74828         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74829         (func_import): Use join on two temporary files instead of three nested
74830         loops, in order to determine which files are new or old.
74831
74832 2005-09-18  Bruno Haible  <bruno@clisp.org>
74833
74834         * gnulib-tool (func_import): Comment out code that spits out the
74835         new files with --dry-run.
74836
74837 2005-09-18  Bruno Haible  <bruno@clisp.org>
74838
74839         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74840
74841 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         * lib/stat-time.h: New file.
74844         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74845         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74846         in a different way.
74847         (timespec_cmp): New function.
74848         * lib/utimecmp.c: Include stat-time.h.
74849         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74850         members exist, not on the obsolescent ST_MTIM_NSEC.
74851         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74852
74853 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74856
74857 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * MODULES.html.sh (File system functions): Add stat-time.
74860         * modules/stat-time: New file.
74861         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74862         is now done in a different way, by the stat-time module.
74863         * modules/utimecmp (Depends-on): Add stat-time.
74864
74865 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         * m4/st_mtim.m4: Remove.  Superseded by...
74868         * m4/stat-time.m4: New file.
74869         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74870         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74871
74872 2005-09-15  Derek Price  <derek@ximbiot.com>
74873
74874         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74875
74876 2005-09-15  Derek Price  <derek@ximbiot.com>
74877
74878         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74879         * lib/regex_internal.c: Ditto, using this...
74880         (__GNUC_PREREQ): ...new macro.
74881         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74882         using...
74883         (__GNUC_PREREQ): ...this new macro.
74884
74885         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74886
74887 2005-09-15  Derek Price  <derek@ximbiot.com>
74888             Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74891         changes, consolidating in...
74892         * lib/regex_internal.h: ...this file.
74893
74894 2005-09-13  Jim Meyering  <jim@meyering.net>
74895
74896         * lib/canon-host.c: Filter through gnu indent and reword comments
74897         slightly.
74898         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74899
74900 2005-09-13  Derek Price  <derek@ximbiot.com>
74901
74902         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74903         failure.
74904         Reported by Jim Meyering  <jim@meyering.net>.
74905
74906 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74907
74908         * lib/base64.c: Typo.
74909         (base64_encode): Put b64str in initialized data section.
74910
74911 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         Merge glibc and coreutils changes into gnulib, plus a few
74914         extra fixes.
74915         * lib/md5.c: Use #error rather than a string.
74916         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74917         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74918         (__attribute__): Define to empty for non recent-GCC.
74919         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74920         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74921         Renamed from their non-__ counterparts, with new macros replacing
74922         them if not _LIBC.  Add __THROW attribute.
74923         (rol): Remove.
74924         (struct md5_ctx): Align buffer if using GCC.
74925         * lib/sha1.h (struct sha1_ctx): Likewise.
74926         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74927         The old name was backwards.
74928         (NOTSWAP): Remove; not used.
74929         (rol): New macro, moved here from md5.h.
74930         (sha1_process_block): Remove a FIXME that doesn't make sense.
74931
74932 2005-09-12  Derek Price  <derek@ximbiot.com>
74933
74934         Return usable errors from canon-host.
74935         * lib/canon-host.h: New file.
74936         * lib/canon-host.c (canon_host): Wrap...
74937         (canon_host_r): ...this new function, which now relies exclusively on
74938         getaddrinfo.
74939         (ch_strerror): New function.
74940         (last_cherror): New global.
74941         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74942         interface.
74943         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74944         void *.
74945         (freeaddrinfo): Free ai->ai_canonname when set.
74946
74947 2005-09-12  Derek Price  <derek@ximbiot.com>
74948
74949         Make canon-host require getaddrinfo.
74950         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74951         AC_LIBSOURCE canon-host.h.  Call...
74952         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74953         gl_GETADDRINFO.
74954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74955
74956 2005-09-12  Derek Price  <derek@ximbiot.com>
74957
74958         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74959         LGPL.
74960         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74961
74962 2005-09-12  Derek Price  <derek@ximbiot.com>
74963
74964         * lib/gai_strerror.c: Include config.h when available.  Include
74965         getaddrinfo.h before other headers to test interface.
74966         Reported by Larry Jones <lawrence.jones@ugs.com>.
74967
74968 2005-09-12  Derek Price  <derek@ximbiot.com>
74969             Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * modules/glob (Files): Add glob-libc.h.
74972
74973 2005-09-12  Derek Price  <derek@ximbiot.com>
74974             Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74977         glob_.h, glob-libc.h.
74978         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74979
74980 2005-09-12  Derek Price  <derek@ximbiot.com>
74981             Paul Eggert  <eggert@cs.ucla.edu>
74982
74983         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74984         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74985         protecting things that should be done only in gnulib contexts.
74986         * lib/glob_.h: New file, containing only the glob things needed for
74987         gnulib.
74988         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74989         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74990         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74991         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74992         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74993         and to respect the namespace rules better.
74994
74995 2005-09-08  Simon Josefsson  <jas@extundo.com>
74996
74997         * modules/socklen: New file.
74998
74999 2005-09-08  Simon Josefsson  <jas@extundo.com>
75000
75001         * m4/socklen.m4: New file.
75002
75003 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * modules/utimens (Files): Add m4/utimbuf.m4, since
75006         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75007         Reported by Sergey Poznyakoff.
75008
75009 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75010
75011         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75012         definitions, since that's the preferred style in glibc.
75013         Fix a minor spacing issue, and update copyright notice to match
75014         glibc's.
75015
75016 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75019
75020 2005-09-06  Simon Josefsson  <jas@extundo.com>
75021
75022         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75023         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75024
75025 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75028         warning.
75029
75030 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75031
75032         * config/srclist.txt: Add glibc bug 1302.
75033
75034 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75035
75036         Change bitset word type from unsigned int to unsigned long int,
75037         as this has better performance on typical 64-bit hosts.
75038         Port bitset code to hosts with unusual word sizes.
75039         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75040         (build_collating_symbol):
75041         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75042         argument is a bitset.  This is merely a style issue, but it makes
75043         it clearer that an entire array is expected.
75044         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75045         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75046         Port to the case where bitset_word is not the same as unsigned int.
75047         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75048         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75049         Likewise.
75050         * lib/regexec.c (check_dst_limits_calc_pos_1,
75051         check_subexp_matching_top):
75052         (build_trtable, group_nodes_into_DFAstates):
75053         Likewise.
75054         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75055         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75056         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75057         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75058         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75059         * lib/regcomp.c (optimize_subexps, lower_subexp):
75060         Work even if bitset_word has holes in its bitwise representation.
75061         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75062         * lib/regexec.c (check_dst_limits_calc_pos_1,
75063         check_subexp_matching_top):
75064         Likewise.
75065         * lib/regex_internal.c (re_string_reconstruct):
75066         Don't assume UCHAR_MAX == 255.
75067         * lib/regex_internal.h (bitset_set_all): Likewise.
75068         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75069         All uses changed.
75070         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75071         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75072         All uses changed.
75073         (BITSET_WORD_MAX): New macro.
75074         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75075         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75076         (bitset_empty, bitset_copy):
75077         Prefer sizeof (bitset) to multiplying it out ourselves.
75078         (bitset_not_merge): Remove; unused.
75079         (bitset_contain): Return bool, not unsigned int with one bit on.
75080         All callers changed.
75081         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75082         alignment than re_node_set; do this by defining a new internal
75083         type struct dests_alloc and using it to allocate memory.
75084
75085 2005-09-05  Bruno Haible  <bruno@clisp.org>
75086
75087         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75088         links.
75089
75090 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75091
75092         * modules/size_max (Makefile.am): Add size_max.h
75093
75094 2005-09-04  Derek Price  <derek@ximbiot.com>
75095
75096         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75097
75098 2005-09-03  Simon Josefsson  <jas@extundo.com>
75099
75100         * gnulib-tool: Fix typo.
75101
75102 2005-09-03  Simon Josefsson  <jas@extundo.com>
75103
75104         * config/srclist.txt: Add glibc bug 1293.
75105
75106 2005-09-03  Derek Price  <derek@ximbiot.com>
75107
75108         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75109         From Larry Jones <lawrence.jones@ugs.com>.
75110
75111 2005-09-02  Simon Josefsson  <jas@extundo.com>
75112
75113         * modules/socklen: New file.
75114
75115 2005-09-02  Simon Josefsson  <jas@extundo.com>
75116
75117         * modules/havelib: New module.
75118
75119         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75120         Use havelib.
75121
75122 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         Check for arithmetic overflow when calculating sizes, to prevent
75125         some buffer-overflow issues.  These patches are conservative, in the
75126         sense that when I couldn't determine whether an overflow was possible,
75127         I inserted a run-time check.
75128         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75129         macros.
75130         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75131         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75132         (re_xnrealloc, re_x2nrealloc): New inline functions.
75133         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75134         parse_bracket_exp):
75135         (build_equiv_class, build_charclass): Check for arithmetic overflow
75136         in size expression calculations.
75137         * lib/regex_internal.c (re_string_realloc_buffers):
75138         (build_wcs_upper_buffer, re_node_set_add_intersect):
75139         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75140         (re_dfa_add_node, register_state): Likewise.
75141         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75142         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75143         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75144         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75145
75146 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75149         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75150
75151 2005-09-02  Bruno Haible  <bruno@clisp.org>
75152
75153         Support for lib vs. lib64 distinction on biarch platforms.
75154         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75155         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75156         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75157
75158 2005-09-02  Bruno Haible  <bruno@clisp.org>
75159
75160         * gnulib-tool (import): In the other first-use case, provide defaults
75161         as well.
75162
75163 2005-09-02  Bruno Haible  <bruno@clisp.org>
75164
75165         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75166         patches not yet found in the latest gettext release.
75167
75168 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75171         to avoid a collision with bits/local_lim.h in glibc.
75172         All uses changed.  Problem reported by Dmitry V. Levin in
75173         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75174
75175         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75176         bugs in int versus size_t comparisons.
75177         (re_string_context_at): Fix bug where the code assumed that
75178         Idx is signed.
75179
75180         Use bool where appropriate.
75181         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75182         All callers changed.
75183         (calc_eclosure_iter): Likewise, for ROOT arg.
75184         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75185         (build_charclass_op): Likewise, for NON_MATCH arg.
75186         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75187         (re_string_construct_common): Likewise, for ICASE arg.
75188         * lib/regexec.c (re_search_2_stub, re_search_stub):
75189         Likewise, for RET_LEN arg.
75190         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75191         (set_regs): Likewise, for FL_BACKTRACK arg.
75192         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75193         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75194         (calc_eclosure_iter, parse_bracket_exp):
75195         Use bool for internal variables that are booleans.
75196         * lib/regexec.c (re_search_internal, check_matching,
75197         proceed_next_node):
75198         (set_regs, build_sifted_states, sift_states_bkref):
75199         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75200         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75201         (find_collation_sequence_value):
75202         Likewise.
75203         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75204         (re_node_set_compare):
75205         Return bool, not int. All callers changed.
75206         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75207         (build_trtable, check_node_accept): Likewise.
75208         * lib/regex_internal.h: Include stdbool.h.
75209
75210         Fix bugs uncovered when converting to bool.
75211         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75212         failure instead of charging ahead blindly.
75213         * lib/regex_internal.c (register_state): Likewise.
75214         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75215         for freeing internal storage.
75216         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75217         bitset pieces used as boolean, to avoid undefined behavior
75218         on hosts that do int overflow checking.
75219
75220 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75221
75222         * config/srclist.txt: Add glibc bugs 1285-1287.
75223
75224 2005-09-01  Jim Meyering  <jim@meyering.net>
75225
75226         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75227         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75228         Require gl_STAT_MACROS, too.
75229
75230 2005-09-01  Bruno Haible  <bruno@clisp.org>
75231
75232         * gnulib-tool (import): In the first-use case, provide defaults.
75233
75234 2005-09-01  Bruno Haible  <bruno@clisp.org>
75235
75236         * gnulib-tool (func_import): Remove the .tmp files.
75237
75238 2005-09-01  Bruno Haible  <bruno@clisp.org>
75239
75240         * gnulib-tool (func_import): Fix handling of symbolic links.
75241
75242 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75245         old glibc regex code mishandles strings longer than 2**31 bytes.
75246         This patch fixes this when the regex code is used in gnulib
75247         (i.e., outside glibc).
75248
75249         This patch should not affect the use of the regex code inside
75250         glibc.  No doubt this problem also needs to be handled for glibc
75251         as well, but the result will be an incompatible change to the
75252         glibc ABI, and the old ABI will have to be supported too.  That
75253         can be the the subject for another patch.
75254
75255         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75256         governing whether the rest of this patch is active.  By default,
75257         the macro is disabled and the patch has no effect.
75258         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75259         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75260         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75261         (re_match_2, re_set_registers): Use the new types.
75262         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75263         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75264         New macros.
75265         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75266         (re_string_context_at, bin_tree_t, re_dfastate_t):
75267         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75268         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75269         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75270         (re_string_char_size_at, re_string_wchar_at):
75271         (re_string_elem_size_at):
75272         Use the new types and macros to port to 64-bit hosts.
75273         Use unsigned types for internal values, so that the code
75274         mostly works even for arrays larger than SSIZE_MAX.
75275         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75276         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75277         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75278         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75279         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75280         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75281         (calc_inveclosure, parse_dup_op, build_range_exp):
75282         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75283         (fetch_number, create_token_tree, mark_opt_subexp):
75284         Likewise.
75285         * lib/regex_internal.c (re_string_construct_common,
75286         create_ci_newstate):
75287         (create_cd_newstate, re_string_allocate, re_string_construct):
75288         (re_string_realloc_buffers, build_wcs_upper_buffer):
75289         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75290         (re_string_reconstruct, re_string_peek_byte_case):
75291         (re_string_fetch_byte_case, re_string_context_at):
75292         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75293         (re_node_set_init_copy, re_node_set_add_intersect):
75294         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75295         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75296         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75297         (re_acquire_state, re_acquire_state_context, register_state):
75298         Likewise.
75299         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75300         search_cur_bkref_entry):
75301         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75302         (re_search_internal, re_search_2_stub, re_search_stub)
75303         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75304         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75305         (update_cur_sifted_state, check_dst_limits):
75306         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75307         (check_subexp_limits, sift_states_bkref, merge_state_array):
75308         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75309         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75310         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75311         (expand_bkref_cache, check_node_accept_bytes):
75312         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75313         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75314         (acquire_init_state_context, check_halt_node_context):
75315         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75316         (sift_states_backward, clean_state_log_if_needed):
75317         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75318         (find_recover_state, transit_state_sb, transit_state_mb):
75319         (transit_state_bkref, build_trtable, match_ctx_clean):
75320         Likewise.
75321         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75322         to work around an assumption that REG_MISSING is negative.
75323
75324         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75325         (seek_collating_symbol_entry) [defined _LIBC]:
75326         (lookup_collation_sequence_value) [defined _LIBC]:
75327         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75328         Use prototypes rather than old-style function definitions.
75329         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75330         (transit_state_sb) [0]:
75331         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75332
75333         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75334         rm_eo.
75335
75336         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75337         (optimize_subexps, lower_subexp):
75338         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75339         since the signed shift might overflow.  Use 1u<<31 instead.
75340         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75341         Likewise.
75342         * lib/regexec.c (check_dst_limits_calc_pos_1,
75343         check_subexp_matching_top): Likewise.
75344
75345         * lib/regcomp.c (optimize_subexps, lower_subexp):
75346         Use CHAR_BIT rather than 8, for clarity.
75347         * lib/regexec.c (check_dst_limits_calc_pos_1):
75348         (check_subexp_matching_top): Likewise.
75349         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75350         have to worry about portability issues when shifting it left.
75351         Remove no-longer-needed test for table_size > 0.
75352         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75353         in a word, as the resulting behavior is undefined.
75354         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75355         in one case, a <= should have been an <, and in another case the
75356         whole test was missing.
75357         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75358         the standard name CHAR_BIT.
75359         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75360         this is not true on one's complement and signed-magnitude hosts.
75361
75362         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75363         next_last_offset.
75364         (struct re_dfa_t): Remove unused member states_alloc.
75365         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75366
75367 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75370         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75371         and large-file glibc and in 32-bit large-file Solaris.
75372
75373 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75376         lengths fit in regoff_t; this isn't true if regoff_t is the same
75377         width as size_t.
75378         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75379         (= START + RANGE) instead of RANGE.  This avoids overflow
75380         problems when regoff_t is the same width as size_t.
75381         All callers changed.
75382         (re_search_2_stub): Check for overflow when adding the
75383         sizes of the two strings.
75384         (re_search_stub): Check for overflow when adding START
75385         to RANGE; if it occurs, substitute the extreme value.
75386
75387 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75390
75391 2005-08-31  Jim Meyering  <jim@meyering.net>
75392
75393         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75394         a pointer-to-const.
75395         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75396         (register_state): Likewise.
75397         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75398         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75399         (group_nodes_into_DFAstates): Likewise.
75400
75401 2005-08-31  Jim Meyering  <jim@meyering.net>
75402
75403         * check-module: Add a FIXME comment.
75404
75405 2005-08-31  Eric Blake  <ebb9@byu.net>
75406
75407         * modules/unistd-safer (Files): Add unistd--.h.
75408         * modules/stdio-safer (Files): Add stdio--.h.
75409
75410 2005-08-31  Derek Price  <derek@ximbiot.com>
75411
75412         * lib/getdelim.c (getdelim): Return EOF on EOF.
75413         Reported by Larry Jones <lawrence.jones@ugs.com>.
75414
75415 2005-08-31  Bruno Haible  <bruno@clisp.org>
75416
75417         Avoid unnecessary diffs in the generated lib/Makefile.am.
75418         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75419         the generated files.
75420         (func_import): Don't set cmd.
75421
75422 2005-08-31  Bruno Haible  <bruno@clisp.org>
75423
75424         * lib/strstr.c: Include <stddef.h>, for NULL.
75425         * lib/strcasestr.c: Likewise.
75426         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75427
75428 2005-08-31  Bruno Haible  <bruno@clisp.org>
75429
75430         * gnulib-tool: New option --macro-prefix.
75431         (func_import): Use macro_prefix.
75432         (import): Handle option --macro-prefix.
75433
75434 2005-08-31  Bruno Haible  <bruno@clisp.org>
75435
75436         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75437         Also use new variables cached_lgpl, cached_libtool.
75438
75439 2005-08-31  Bruno Haible  <bruno@clisp.org>
75440
75441         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75442         always instantiating them.
75443
75444 2005-08-31  Bruno Haible  <bruno@clisp.org>
75445
75446         * gnulib-tool (func_import): Read the previous cached settings
75447         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75448         earlier added by gnulib but are now dropped. Warn when a gnulib file
75449         overwrites a non-gnulib file.
75450
75451 2005-08-31  Bruno Haible  <bruno@clisp.org>
75452
75453         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75454         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75455         projects that don't keep autogenerated files in CVS. Put into
75456         actioncmd only the specified modules, not the transitive closure.
75457
75458 2005-08-31  Bruno Haible  <bruno@clisp.org>
75459
75460         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75461         Create directories that shall be filled.
75462         (import): Don't look for gl_* macros in configure.ac. Recurse across
75463         all directories containing a gnulib-cache.m4 files, if meaningful.
75464
75465 2005-08-31  Bruno Haible  <bruno@clisp.org>
75466
75467         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75468         (import): Set seen_libtool when we see gl_LIBTOOL.
75469
75470 2005-08-31  Bruno Haible  <bruno@clisp.org>
75471
75472         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75473         declaration macro definitions from generated gnulib.m4.
75474
75475 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75476
75477         * lib/iconvme.h: Add prototype for iconv_alloc.
75478
75479 2005-08-29  Simon Josefsson  <jas@extundo.com>
75480
75481         * lib/iconvme.c: Fix errno.
75482
75483 2005-08-29  Bruno Haible  <bruno@clisp.org>
75484
75485         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75486         that it works when the directory contains spaces.
75487
75488 2005-08-29  Bruno Haible  <bruno@clisp.org>
75489
75490         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75491
75492 2005-08-29  Bruno Haible  <bruno@clisp.org>
75493
75494         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75495         Emit more advice.
75496
75497 2005-08-29  Bruno Haible  <bruno@clisp.org>
75498         and Stepan Kasal  <kasal@ucw.cz>
75499
75500         * check-module: If more parameters are given, check each of them
75501         separately; add more exceptions, as noted by Jim Meyering.
75502         (check_module): New procedure.
75503         (%exempt_header): Now contains all exceptions.
75504
75505 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75506
75507         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75508
75509 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75510
75511         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75512
75513 2005-08-28  Bruno Haible  <bruno@clisp.org>
75514
75515         * m4/gnulib-tool.m4: New file.
75516
75517 2005-08-27  Jim Meyering  <jim@meyering.net>
75518
75519         * modules/unistd-safer (Files): Add pipe-safer.c.
75520         * modules/fcntl-safer (Files): Add creat-safer.c.
75521
75522 2005-08-27  Jim Meyering  <jim@meyering.net>
75523
75524         * m4/stdlib-safer.m4: New file.  From coreutils.
75525         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75526         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75527         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75528         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75529         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75530
75531 2005-08-27  Jim Meyering  <jim@meyering.net>
75532
75533         * lib/fopen-safer.c: Merge minor changes from coreutils.
75534         * lib/dup-safer.c: Likewise.
75535         * lib/fd-safer.c: Likewise.
75536
75537         Merge from coreutils.
75538         * lib/stdio--.h: New file.
75539         * lib/stdlib--.h: New file.
75540         * lib/mkstemp-safer.c: New file.
75541
75542         GNU tar needs these.
75543         * lib/pipe-safer.c: New file.
75544         * lib/creat-safer.c: New file.
75545         * lib/fcntl--.h (creat): Define to creat_safer.
75546         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75547         * lib/unistd--.h (pipe): Define to pipe_safer.
75548         * lib/unistd-safer.h: Declare pipe_safer.
75549
75550 2005-08-26  Simon Josefsson  <jas@extundo.com>
75551
75552         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75553         Haible <bruno@clisp.org>.
75554
75555 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75556
75557         * lib/regex_internal.h: Remove all references to
75558         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75559         or better.
75560         (bitset_not, bitset_merge, bitset_not_merge):
75561         (bitset_mask, re_string_allocate, re_string_construct):
75562         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75563         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75564         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75565         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75566         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75567         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75568         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75569         (re_acquire_state_context):
75570         Remove unnecessary forward decls.
75571         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75572         Put __attribute at function definition,
75573         now that the function decl has been removed.
75574         * lib/regex_internal.c (re_string_peek_byte_case):
75575         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75576         Likewise.
75577
75578 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75579
75580         * m4/regex.m4: Add AC_PREREQ(2.50).
75581         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75582
75583 2005-08-25  Simon Josefsson  <jas@extundo.com>
75584
75585         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75586         __fsetlocking.
75587
75588 2005-08-25  Simon Josefsson  <jas@extundo.com>
75589
75590         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75591         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75592         GLIBC specific code.
75593
75594 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75595
75596         Make regex safe for g++.  This fixes one real bug (an "err"
75597         that should have been "*err").  g++ problem reported by
75598         Sam Steingold.
75599         * lib/regex_internal.h (re_calloc): New macro, consistent with
75600         re_malloc etc.  All callers of calloc changed to use re_calloc.
75601         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75602         not int.  All callers changed.
75603         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75604         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75605         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75606         (find_recover_state): Change "err" to "*err"; this fixes what
75607         appears to be a real bug.
75608         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75609         versus int.
75610
75611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         * modules/regex (Depends-on): Add malloc, since the code
75614         assumes that !malloc(0) means failure.
75615
75616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75619
75620         alloca modernization/simplification for regex.
75621         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75622         needs to be at the start of the file, and can be moved into
75623         regex_internal.h and simplified.
75624         * lib/regex_internal.h: Include <alloca.h>.
75625         (__libc_use_alloca) [!defined _LIBC]: New macro.
75626         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75627         now works outside glibc.
75628
75629 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         * config/srclist.txt: Add glibc bugs 1241, 1245.
75632
75633 2005-08-25  Jim Meyering  <jim@meyering.net>
75634
75635         * lib/open-safer.c: Include <config.h>.
75636         Otherwise, we'd lose LARGEFILE support in any file using
75637         e.g. "fcntl--.h"
75638
75639 2005-08-25  Bruno Haible  <bruno@clisp.org>
75640
75641         * m4/minmax.m4: Require autoconf 2.52.
75642         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75643         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75644         alternatives of translit over the alphabet.
75645         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75646
75647 2005-08-24  Simon Josefsson  <jas@extundo.com>
75648
75649         * tests/test-getpass.c: New file.
75650
75651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75654         for GNU regex features.
75655
75656 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75657
75658         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75659         * lib/regex.h (regerror): Likewise.
75660
75661         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75662         requires this.  (The code never needed it.)
75663
75664         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75665         All uses of recently-renamed identifiers changed to use the new,
75666         POSIX-compliant names.  The code will build and run just fine
75667         without these changes, but it's better to eat our own dog food
75668         and use the standard-conforming names.
75669
75670         * lib/regex.h: Fix a multitude of POSIX name space violations.
75671         These changes have an effect only for programs that define
75672         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75673         do not change anything for programs compiled in the normal way.
75674         Also, there is no effect on the ABI.
75675
75676         (_REGEX_SOURCE): New macro.
75677         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75678         defined and _GNU_SOURCE is not; this fixes a name space violation.
75679
75680         Rename the following macros to obey POSIX requirements.
75681         The old names are still visible as macros if _REGEX_SOURCE is defined.
75682         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75683         RE_BACKSLASH_ESCAPE_IN_LISTS.
75684         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75685         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75686         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75687         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75688         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75689         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75690         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75691         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75692         (REG_INTERVALS): renamed from RE_INTERVALS.
75693         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75694         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75695         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75696         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75697         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75698         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75699         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75700         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75701         RE_UNMATCHED_RIGHT_PAREN_ORD.
75702         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75703         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75704         (REG_DEBUG): renamed from RE_DEBUG.
75705         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75706         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75707         unusual, since we can't clash with the POSIX REG_ICASE.
75708         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75709         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75710         (REG_NO_SUB): renamed from RE_NO_SUB.
75711         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75712         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75713         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75714         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75715         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75716         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75717         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75718         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75719         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75720         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75721         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75722         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75723         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75724         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75725         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75726         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75727         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75728         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75729         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75730         (REG_FIXED): Renamed from REGS_FIXED.
75731         (REG_NREGS): Renamed from RE_NREGS.
75732
75733         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75734         of other REG_* macros, since POSIX says the user is allowed to
75735         #undef these macros selectively.
75736
75737         (reg_errcode_t): Update comment stating what other tables need
75738         to be consistent.
75739
75740         Rename the following enum values to obey POSIX requirements.
75741         The old names are still visible as macros.
75742         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75743         is not defined, since GNU is supposed to be a superset of POSIX as
75744         much as possible, and since we want reg_errcode_t to be a signed
75745         type for implementation consistency.
75746         (_REG_NOERROR): Renamed from REG_NOERROR.
75747         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75748         (_REG_BADPAT): Renamed from REG_BADPAT.
75749         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75750         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75751         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75752         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75753         (_REG_EBRACK): Renamed from REG_EBRACK.
75754         (_REG_EPAREN): Renamed from REG_EPAREN.
75755         (_REG_EBRACE): Renamed from REG_EBRACE.
75756         (_REG_BADBR): Renamed from REG_BADBR.
75757         (_REG_ERANGE): Renamed from REG_ERANGE.
75758         (_REG_ESPACE): Renamed from REG_ESPACE.
75759         (_REG_BADRPT): Renamed from REG_BADRPT.
75760         (_REG_EEND): Renamed from REG_EEND.
75761         (_REG_ESIZE): Renamed from REG_ESIZE.
75762         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75763         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75764         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75765         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75766         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75767
75768         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75769         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75770         changed.  But support the old name if the new one is not defined
75771         and if _REGEX_SOURCE.
75772
75773         Change the following member names in struct re_pattern_buffer.
75774         The old names are still supported if !_REGEX_SOURCE.
75775         The new names are always supported, regardless of _REGEX_SOURCE.
75776         (re_buffer): Renamed from buffer.
75777         (re_allocated): Renamed from allocated.
75778         (re_used): Renamed from used.
75779         (re_syntax): Renamed from syntax.
75780         (re_fastmap): Renamed from fastmap.
75781         (re_translate): Renamed from translate.
75782         (re_can_be_null): Renamed from can_be_null.
75783         (re_regs_allocated): Renamed from regs_allocated.
75784         (re_fastmap_accurate): Renamed from fastmap_accurate.
75785         (re_no_sub): Renamed from no_sub.
75786         (re_not_bol): Renamed from not_bol.
75787         (re_not_eol): Renamed from not_eol.
75788         (re_newline_anchor): Renamed from newline_anchor.
75789
75790         Change the following member names in struct re_registers.
75791         The old names are still supported if !_REGEX_SOURCE.
75792         The new names are always supported, regardless of _REGEX_SOURCE.
75793         (rm_num_regs): Renamed from num_regs.
75794         (rm_start): Renamed from start.
75795         (rm_end): Renamed from end.
75796
75797         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75798         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75799         Prepend __ to parameter names.
75800
75801         Undo yesterday's changes.
75802
75803 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75804
75805         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75806         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75807         lib/regex.c.
75808
75809 2005-08-24  Jim Meyering  <jim@meyering.net>
75810
75811         Sync from coreutils.
75812         * m4/fcntl-safer.m4: New file.
75813
75814         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75815         and object files for this module.
75816
75817 2005-08-24  Jim Meyering  <jim@meyering.net>
75818
75819         Sync from coreutils.
75820         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75821
75822 2005-08-24  Jim Meyering  <jim@meyering.net>
75823
75824         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75825         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75826
75827 2005-08-24  Jim Meyering  <jim@meyering.net>
75828
75829         * modules/fcntl-safer: New module.
75830         * modules/fts (Depends-on): Add fcntl-safer.
75831         * MODULES.html.sh (File descriptor based Input/Output):
75832         Add fcntl-safer.
75833
75834 2005-08-24  Bruno Haible  <bruno@clisp.org>
75835
75836         Support for unit test modules.
75837         * modules/README: Mention tests modules.
75838         * modules/TEMPLATE-TESTS: New file.
75839         * gnulib-tool: New options --extract-tests-module, --with-tests and
75840         --tests-base (unused for the moment).
75841         (testsbase, inctests): New variables.
75842         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75843         (func_verify_module): Exclude TEMPLATE-TESTS.
75844         (func_verify_nontests_module, func_verify_tests_module): New functions.
75845         (func_get_dependencies): Add implicit dependency for tests modules.
75846         (func_get_tests_module): New function.
75847         (func_modules_transitive_closure): When --with-tests was specified,
75848         include the unit tests as well, unless explicitly avoided.
75849         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75850         (func_emit_tests_Makefile_am): New function.
75851         (func_create_testdir): When --with-tests was specified, emit a
75852         tests/ directory.
75853         * MODULES.html.sh (Future developments): Update.
75854
75855 2005-08-24  Bruno Haible  <bruno@clisp.org>
75856
75857         * modules/tls-tests: New file.
75858         * tests/test-tls.c: New file, from GNU gettext.
75859
75860 2005-08-24  Bruno Haible  <bruno@clisp.org>
75861
75862         * modules/lock-tests: New file.
75863         * tests/test-lock.c: New file, from GNU gettext.
75864
75865 2005-08-24  Bruno Haible  <bruno@clisp.org>
75866
75867         * lib/lock.h: Add multiple inclusion guard.
75868         * lib/tls.h: Add multiple inclusion guard.
75869
75870 2005-08-24  Bruno Haible  <bruno@clisp.org>
75871
75872         * gnulib-tool: Add support for the --aux-dir option to
75873         --create-testdir, --create-megatestdir, --test, --megatest.
75874         (func_create_testdir, func_create_megatestdir): Optionally emit a
75875         AC_CONFIG_AUX_DIR directive.
75876         (create-testdir, create-megatestdir, test, megatest): Provide a
75877         default value for $auxdir.
75878
75879 2005-08-24  Bruno Haible  <bruno@clisp.org>
75880
75881         * gnulib-tool (import): Use compound statement instead of subshell
75882         where possible.
75883
75884 2005-08-24  Bruno Haible  <bruno@clisp.org>
75885
75886         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75887
75888 2005-08-24  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool (func_version): Update.
75891
75892 2005-08-24  Bruno Haible  <bruno@clisp.org>
75893
75894         * gnulib-tool (func_import, func_create_testdir,
75895         func_create_megatestdir): Quote all autoconf macro arguments.
75896
75897 2005-08-24  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75900         option --force, because --force causes the aclocal.m4 of each
75901         subdirectory to be newer than the corresponding config.h.in.
75902
75903 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75904
75905         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75906         All contents moved to gl_REGEX.
75907         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75908         assume that it does.
75909
75910 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * lib/regex.h (REG_NOSYS)
75913         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75914         Define, since POSIX requires it as of 2001.
75915         (_REG_ENOSYS)
75916         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75917         New private symbol, used to keep the enum signed in all cases.
75918         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75919         Youngman in
75920         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75921
75922         * lib/regex_internal.c (re_string_skip_chars, register_state):
75923         (calc_state_hash):
75924         Remove forward decls; no longer needed now that we use prototypes.
75925         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75926         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75927         (clean_state_log_if_needed): Likewise.
75928
75929 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * config/srclist.txt: Add glibc bugs 1231-1233.
75932
75933 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         Fix problems reported by Sam Steingold in
75936         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75937         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75938         assumed that reg_errcode_t is a signed type, which is not
75939         necessarily true if _XOPEN_SOURCE is not defined.
75940         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75941         since some compilers warn about it otherwise.
75942
75943 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75946         (init_word_char, create_initial_state, duplicate_node_closure):
75947         (fetch_token, peek_token_bracket, build_range_exp):
75948         (build_collating_symbol): Remove forward decls; no longer needed
75949         now that we use prototypes.
75950
75951         * lib/regcomp.c:
75952         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75953         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75954         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75955         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75956         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75957         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75958         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75959         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75960         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75961         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75962         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75963         (build_charclass, build_charclass_op, fetch_number, create_tree):
75964         (create_token_tree, mark_opt_subexp, duplicate_tree):
75965         Use prototypes rather than old-style definitions.
75966
75967         * lib/regex_internal.c:
75968         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75969         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75970         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75971         (re_string_reconstruct, re_string_peek_byte_case):
75972         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75973         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75974         (re_node_set_init_copy, re_node_set_add_intersect):
75975         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75976         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75977         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75978         (re_acquire_state, re_acquire_state_context, register_state):
75979         (create_ci_newstate, create_cd_newstate, free_state):
75980         Likewise.
75981         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75982         re_search_2):
75983         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75984         (re_search_internal, prune_impossible_nodes):
75985         (acquire_init_state_context, check_matching, static):
75986         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75987         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75988         (update_regs, sift_states_backward, build_sifted_states):
75989         (clean_state_log_if_needed, merge_state_array):
75990         (update_cur_sifted_state, add_epsilon_src_nodes):
75991         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75992         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75993         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75994         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75995         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75996         (check_arrival, check_arrival_add_next_nodes):
75997         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75998         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75999         (check_node_accept_bytes, check_node_accept, extend_buffers):
76000         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76001         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76002         (sift_ctx_init):
76003         Likewise.
76004
76005         * lib/regex_internal.h:
76006         (re_string_allocate, re_string_construct, re_string_reconstruct):
76007         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76008         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76009         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76010         (re_string_context_at, re_string_peek_byte_case):
76011         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76012         is defined, since we now use prototypes always.
76013
76014         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76015         C89 or better.  All uses removed.
76016
76017 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76018
76019         * config/srclist.txt: Add glibc bugs 1220-1227.
76020
76021 2005-08-20  Jim Meyering  <jim@meyering.net>
76022
76023         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76024         of unused local, dfa.
76025
76026 2005-08-20  Bruno Haible  <bruno@clisp.org>
76027
76028         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76029
76030 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76033         (re_node_set_insert_last, re_dfa_add_node):
76034         Rename local variables to avoid GCC shadowing warnings.
76035
76036 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76039         [defined lint]: Suppress bogus uninitialized-variable warnings.
76040
76041         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76042         and let the caller return REG_ESPACE if out of space.  This
76043         removes an uninitialied-variable warning with GCC 4.0.1, and also
76044         avoids taking the address of a local variable.  All callers
76045         changed.
76046
76047 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76050         $LIBCSRC/posix/regexec.c.
76051         Add glibc bug 1217 for regcomp.c.
76052
76053 2005-08-19  Jim Meyering  <jim@meyering.net>
76054
76055         * lib/regexec.c (proceed_next_node): Redo local variables to
76056         avoid GCC shadowing warnings.
76057
76058 2005-08-18  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/strstr.c (strstr): Fix return value in multibyte case.
76061         * lib/strcasestr.c (strcasestr): Likewise.
76062
76063 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76066
76067 2005-08-17  Jim Meyering  <jim@meyering.net>
76068
76069         Make the %s format (seconds since the epoch) work for a negative
76070         number and when used with a zero-padded field width, e.g. %015s.
76071
76072         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76073         label so that it precedes the code to set `digits'.  Otherwise,
76074         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76075         print `00-22'.  Now, it prints `-0022', as it should.
76076
76077 2005-08-17  Bruno Haible  <bruno@clisp.org>
76078
76079         * modules/strstr (Files): Add m4/mbrtowc.m4.
76080         (Depends-on): Add mbuiter.
76081
76082 2005-08-17  Bruno Haible  <bruno@clisp.org>
76083
76084         * modules/strcasestr: New file.
76085         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76086         strcasestr.
76087
76088 2005-08-17  Bruno Haible  <bruno@clisp.org>
76089
76090         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76091
76092 2005-08-17  Bruno Haible  <bruno@clisp.org>
76093
76094         * modules/mbuiter: New file.
76095         * MODULES.html.sh (Extended multibyte and wide character utilities):
76096         Add mbuiter.
76097
76098 2005-08-17  Bruno Haible  <bruno@clisp.org>
76099
76100         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76101         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76102
76103 2005-08-17  Bruno Haible  <bruno@clisp.org>
76104
76105         * m4/strcasestr.m4: New file.
76106
76107 2005-08-17  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76110         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76111
76112 2005-08-17  Bruno Haible  <bruno@clisp.org>
76113
76114         * lib/strcasestr.h: New file.
76115         * lib/strcasestr.c: New file.
76116
76117 2005-08-17  Bruno Haible  <bruno@clisp.org>
76118
76119         * lib/strcasecmp.c: Use mbuiter.h.
76120
76121 2005-08-17  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/mbuiter.h: New file.
76124
76125 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76128         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76129         and gl_GETOPT are both invoked via different paths (as happens
76130         with GNU tar CVS because it uses both argp and getopt), the former
76131         wins.
76132
76133 2005-08-16  Bruno Haible  <bruno@clisp.org>
76134
76135         * modules/tls: New file.
76136         * MODULES.html.sh (Multithreading): Add tls.
76137
76138 2005-08-16  Bruno Haible  <bruno@clisp.org>
76139
76140         * modules/strnlen1: New file.
76141         * MODULES.html.sh (String handling): Add strnlen1.
76142
76143 2005-08-16  Bruno Haible  <bruno@clisp.org>
76144
76145         * modules/strcase (Files): Add m4/mbrtowc.m4.
76146         (Depends-on): Add strnlen1, mbchar.
76147
76148 2005-08-16  Bruno Haible  <bruno@clisp.org>
76149
76150         * modules/mbiter: New file.
76151         * MODULES.html.sh (Extended multibyte and wide character utilities):
76152         Add mbiter.
76153
76154 2005-08-16  Bruno Haible  <bruno@clisp.org>
76155
76156         * modules/mbfile: New file.
76157         * MODULES.html.sh (Extended multibyte and wide character utilities):
76158         Add mbfile.
76159
76160 2005-08-16  Bruno Haible  <bruno@clisp.org>
76161
76162         * modules/mbchar: New file.
76163         * MODULES.html.sh (Extended multibyte and wide character utilities):
76164         New section.
76165
76166 2005-08-16  Bruno Haible  <bruno@clisp.org>
76167
76168         * m4/tls.m4: New file, from GNU gettext.
76169
76170 2005-08-16  Bruno Haible  <bruno@clisp.org>
76171
76172         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76173         always.
76174         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76175
76176 2005-08-16  Bruno Haible  <bruno@clisp.org>
76177
76178         * m4/mbiter.m4: New file.
76179
76180 2005-08-16  Bruno Haible  <bruno@clisp.org>
76181
76182         * m4/mbfile.m4: New file.
76183
76184 2005-08-16  Bruno Haible  <bruno@clisp.org>
76185
76186         * m4/mbchar.m4: New file.
76187
76188 2005-08-16  Bruno Haible  <bruno@clisp.org>
76189
76190         * lib/tls.h: New file, from GNU gettext.
76191         * lib/tls.c: New file, from GNU gettext.
76192
76193 2005-08-16  Bruno Haible  <bruno@clisp.org>
76194
76195         * lib/strnlen1.h: New file.
76196         * lib/strnlen1.c: New file.
76197
76198 2005-08-16  Bruno Haible  <bruno@clisp.org>
76199
76200         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76201         (mbi_init): Update.
76202         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76203         NUL byte, not after it.
76204
76205 2005-08-16  Bruno Haible  <bruno@clisp.org>
76206
76207         * lib/strcase.h (strcasecmp): Add note in comments.
76208         * lib/strncasecmp.c: Use code from strcasecmp.c.
76209         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76210         (strcasecmp): Work correctly in multibyte locales.
76211
76212 2005-08-16  Bruno Haible  <bruno@clisp.org>
76213
76214         * lib/mbiter.h: New file.
76215
76216 2005-08-16  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/mbfile.h: New file.
76219
76220 2005-08-16  Bruno Haible  <bruno@clisp.org>
76221
76222         * lib/mbchar.h: New file.
76223         * lib/mbchar.c: New file.
76224
76225 2005-08-16  Bruno Haible  <bruno@clisp.org>
76226
76227         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76228         the valid ones. Makes the comparison operations transitive:
76229         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76230         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76231
76232 2005-08-15  Simon Josefsson  <jas@extundo.com>
76233
76234         * modules/ssize_t (License): Change to 'unlimited'.
76235
76236         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76237
76238 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76239
76240         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76241         Add comments for each pending glibc patch.
76242
76243 2005-08-15  Bruno Haible  <bruno@clisp.org>
76244
76245         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76246         __cplusplus is defined.
76247
76248 2005-08-14  Jim Meyering  <jim@meyering.net>
76249
76250         Sync from coreutils.
76251
76252         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76253         Use the hash-table-based cycle-detection code not just when
76254         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76255         Reported by James Youngman in
76256         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76257         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76258         FTS_TIGHT_CYCLE_CHECK.
76259         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76260         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76261         once again.
76262         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76263         * lib/fts.c (fd_safer): Remove decl.
76264         Include fcntl--.h rather than unistd-safer.h
76265         (fts_safe_changedir): Don't call fd_safer; no longer needed
76266         now that we include fcntl--.h.
76267
76268 2005-08-12  Simon Josefsson  <jas@extundo.com>
76269
76270         * modules/getndelim2: Use ssize_t module.
76271         * modules/getnline: Likewise.
76272         * modules/safe-read: Likewise.
76273         * modules/xreadlink: Likewise.
76274
76275         * modules/ssize_t: New file.
76276
76277 2005-08-12  Simon Josefsson  <jas@extundo.com>
76278
76279         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76280
76281 2005-08-12  Simon Josefsson  <jas@extundo.com>
76282
76283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76284         ssize_t.
76285
76286 2005-08-12  Simon Josefsson  <jas@extundo.com>
76287
76288         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76289         readline, getdelim and check_version.
76290         (Support for systems lacking ISO C 99: Sizes of integer types):
76291         Add size_max.
76292
76293 2005-08-12  Bruno Haible  <bruno@clisp.org>
76294
76295         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76296
76297 2005-08-11  Simon Josefsson  <jas@extundo.com>
76298
76299         * modules/readline: New file.
76300
76301         * modules/strnlen (Files): Add strnlen.h.
76302
76303 2005-08-11  Simon Josefsson  <jas@extundo.com>
76304
76305         * m4/readline.m4: New file.
76306
76307 2005-08-11  Simon Josefsson  <jas@extundo.com>
76308
76309         * lib/readline.h, readline.c: New file.
76310
76311 2005-08-11  Simon Josefsson  <jas@extundo.com>
76312
76313         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76314         gl_AVOID.
76315
76316 2005-08-11  Bruno Haible  <bruno@clisp.org>
76317
76318         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76319
76320 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76321
76322         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76323
76324 2005-08-10  Simon Josefsson  <jas@extundo.com>
76325
76326         * tests/test-iconvme.c: New file.
76327
76328 2005-08-10  Simon Josefsson  <jas@extundo.com>
76329
76330         * m4/strnlen.m4: New file.
76331
76332         * m4/strndup.m4: Don't check for strnlen declaration, done in
76333         strnlen.m4.
76334
76335 2005-08-10  Simon Josefsson  <jas@extundo.com>
76336
76337         * lib/strndup.c: Use strnlen.h.
76338
76339         * lib/strnlen.h: New file.
76340
76341 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76342
76343         * README: Typos.
76344
76345 2005-08-02  Simon Josefsson  <jas@extundo.com>
76346
76347         * modules/readline: New file.
76348
76349 2005-08-02  Simon Josefsson  <jas@extundo.com>
76350
76351         * modules/getdelim: New file.
76352
76353         * modules/getline: Rewrite, don't use getndelim2.
76354
76355 2005-08-02  Simon Josefsson  <jas@extundo.com>
76356
76357         * m4/getline.m4: Separate out getdelim stuff into separate module.
76358
76359         * m4/getdelim.m4: New file.
76360
76361 2005-08-02  Simon Josefsson  <jas@extundo.com>
76362
76363         * lib/getline.h, getline.c: Rewrite.
76364
76365         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76366
76367 2005-07-31  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/lock.h (gl_lock_initializer): New macro.
76370         (gl_lock_define_initialized): Use it.
76371         (gl_rwlock_initializer): New macro.
76372         (gl_rwlock_define_initialized): Use it.
76373         (gl_recursive_lock_initializer): New macro.
76374         (gl_recursive_lock_define_initialized): Use it.
76375
76376 2005-07-30  Karl Berry  <karl@gnu.org>
76377
76378         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76379         Report from Ben Pfaff, regarding getopt.
76380
76381 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76384         normal way.
76385         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76386         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76387         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76388         (gl_GETOPT): Use the new macros.  Most of the implementation
76389         is moved to the new macros.  This is for programs like Emacs
76390         that don't want all the functionality of gl_GETOPT.
76391
76392 2005-07-26  Bruno Haible  <bruno@clisp.org>
76393
76394         * m4/lock.m4: Update from GNU gettext.
76395
76396 2005-07-26  Bruno Haible  <bruno@clisp.org>
76397
76398         * lib/lock.h: Update from GNU gettext.
76399         * lib/lock.c: Update from GNU gettext.
76400
76401 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76402
76403         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76404         obsolescent AC_TRY_RUN.  Include the default includes files, for
76405         'exit'.
76406
76407 2005-07-24  Bruno Haible  <bruno@clisp.org>
76408
76409         * modules/visibility: New file.
76410         * MODULES.html.sh (Misc): Add visibility.
76411
76412 2005-07-24  Bruno Haible  <bruno@clisp.org>
76413
76414         * m4/visibility.m4: New file.
76415
76416 2005-07-24  Bruno Haible  <bruno@clisp.org>
76417
76418         * doc/visibility.texi: New file.
76419
76420 2005-07-22  Bruno Haible  <bruno@clisp.org>
76421
76422         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76423         $(ALLOCA_H), redundant through BUILT_SOURCES.
76424         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76425         redundant through BUILT_SOURCES.
76426         * modules/byteswap (Makefile.am): Remove explicit dependency on
76427         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76428         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76429         $(FNMATCH_H), redundant through BUILT_SOURCES.
76430         * modules/getopt (Makefile.am): Remove explicit dependency on
76431         $(GETOPT_H), redundant through BUILT_SOURCES.
76432         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76433         redundant through BUILT_SOURCES.
76434         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76435         redundant through BUILT_SOURCES.
76436         * modules/stdbool (Makefile.am): Remove explicit dependency on
76437         $(STDBOOL_H), redundant through BUILT_SOURCES.
76438         * modules/stdint (Makefile.am): Remove explicit dependency on
76439         $(STDINT_H), redundant through BUILT_SOURCES.
76440         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76441         Remove explicit dependency on $(SYSEXITS_H).
76442         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76443
76444 2005-07-18  Simon Josefsson  <jas@extundo.com>
76445
76446         * lib/check-version.c (check_version): Accept identical versions too.
76447
76448 2005-07-18  Bruno Haible  <bruno@clisp.org>
76449
76450         * modules/lock: New file.
76451         * MODULES.html.sh (Multithreading): New section.
76452
76453 2005-07-18  Bruno Haible  <bruno@clisp.org>
76454
76455         * m4/lock.m4: New file, from GNU gettext.
76456
76457 2005-07-18  Bruno Haible  <bruno@clisp.org>
76458
76459         * lib/lock.h: New file, from GNU gettext.
76460         * lib/lock.c: New file, from GNU gettext.
76461
76462 2005-07-18  Bruno Haible  <bruno@clisp.org>
76463
76464         * lib/lock.h (gl_once_t): New type.
76465         (gl_once_define, gl_once): New macros.
76466         * lib/lock.c (fresh_once): New variable.
76467         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76468         functions.
76469
76470 2005-07-16  Simon Josefsson  <jas@extundo.com>
76471
76472         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76473         workaround, suggested by Bruno.
76474
76475 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76476
76477         * modules/xalloc (Depends-on): Add xalloc-die.
76478         * modules/xvasprintf (Depends-on): Add xalloc-die.
76479
76480 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76483         with a minor change.
76484
76485 2005-07-15  Bruno Haible  <bruno@clisp.org>
76486
76487         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76488         When using lib/poll.c, define poll as rpl_poll.
76489
76490 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * modules/argp (Depends-on): Remove unlocked-io.
76493
76494 2005-07-14  Derek Price  <derek@ximbiot.com>
76495
76496         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76497         for glob symlink bug.
76498
76499 2005-07-14  Bruno Haible  <bruno@clisp.org>
76500
76501         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76502         Instead, test for *_unlocked function declarations directly.
76503
76504 2005-07-11  Simon Josefsson  <jas@extundo.com>
76505
76506         * modules/size_max: New file.
76507
76508         * modules/xsize: Depend on size_max module for size_max.m4.
76509
76510 2005-07-11  Simon Josefsson  <jas@extundo.com>
76511
76512         * lib/size_max.h: New file.
76513
76514 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76517         copyright symbol and the year.
76518         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76519         (version_etc_va): Use parameterized copyright notice.
76520         Reword to conform to the current GNU coding standards.
76521
76522 2005-07-11  Karl Berry  <karl@gnu.org>
76523
76524         * doc/gnulib.texi (Quoting): new node.
76525         (Initial import): more info, from Patrice.
76526
76527 2005-07-11  Bruno Haible  <bruno@clisp.org>
76528
76529         * gnulib-tool (func_usage): Document option --avoid.
76530         (Command line options): Handle --avoid.
76531         (func_acceptable): New function.
76532         (func_modules_transitive_closure): Use it.
76533
76534 2005-07-11  Bruno Haible  <bruno@clisp.org>
76535
76536         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76537         Reported by Jim Meyering.
76538
76539 2005-07-10  Bruno Haible  <bruno@clisp.org>
76540
76541         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76542         Needed when size_t is smaller than 'unsigned int'.
76543         Reported by Paul Eggert.
76544
76545 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76546
76547         * modules/argp (Depends-on): Add unlocked-io
76548
76549 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76550
76551         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76552         block of defines.
76553
76554 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76557         fix now.
76558
76559 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76560         and Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76563         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76564
76565 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * modules/regex (Files): Add lib/regex_internal.c,
76568         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76569         (Depends-on): Add extensions.
76570         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76571
76572 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76575         pathconf.
76576         * m4/same.m4 (gl_SAME): Likewise.
76577         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76578
76579         * m4/regex.m4: Adjust to new libc regex implementation.
76580         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76581         all the .c and .h parts of (the new) regex.
76582         Quote the m4 stuff better.
76583         Check for RE_ICASE bug of old gnulib.
76584         Check for REG_STARTEND of recent libc.
76585         Rename local variables from jm_* to gl_*.
76586         Quote operand of "test -f".
76587         Say "recent enough" version of libc, not "version 2".
76588         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76589         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76590         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76591         Remove check for btowc, isascii.
76592         Require AM_LANGINFO_CODESET.
76593
76594 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         * lib/regex.c, regex.h: Sync from libc.
76597         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76598         * lib/regexec.c:
76599         New files, synced from libc, except that regex_internal.h
76600         currently has a small porting fix.
76601
76602 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76605         regex_internal.c, regexec.c.
76606         Add regex_internal.h too, but as a comment, since the libc version
76607         is currently broken in gnulib mode.
76608
76609 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         Support programs like Emacs that use gnulib but not gettext.
76612         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76613         * modules/gettext-h: New file.
76614         * modules/gettext (Files): Remove lib/gettext.h.
76615         (Depends-on): Add gettext-h.
76616         (Makefile.am): Remove lib_SOURCES.
76617         * modules/argmatch, modules/c-stack, modules/closeout:
76618         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76619         * modules/execute, modules/file-type, modules/getaddrinfo:
76620         * modules/getopt, modules/human, modules/javacomp:
76621         * modules/javaexec, modules/mkdir-p, modules/obstack:
76622         * modules/openat, modules/pagealign_alloc, modules/pipe:
76623         * modules/quotearg, modules/regex, modules/rpmatch:
76624         * modules/unicodeio, modules/userspec, modules/version-etc:
76625         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76626         * modules/xsetenv:
76627         Depend on gettext-h, not gettext.
76628
76629 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * gnulib-tool (func_import): Add support for 'public domain' license.
76632         * modules/alloca, modules/atexit, modules/memmove:
76633         Now public domain, not GPL.
76634         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76635         * modules/realloc, modules/strerror, modules/strtod:
76636         Now LGPL, not GPL.
76637
76638 2005-07-05  Bruno Haible  <bruno@clisp.org>
76639
76640         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76641         autoconf CVS. Needed for mingw.
76642
76643 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         Remove the dependency of the strftime module on the tzset module.
76646         * modules/strftime (Depends-on): Remove dependency on tzset.
76647
76648 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         Remove the dependency of the strftime module on the tzset module.
76651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76652         gl_FUNC_TZSET_CLOBBER.
76653
76654 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         Remove the dependency of the strftime module on the tzset module.
76657         * lib/strftime.c (my_strftime)
76658         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76659         Copy the input structure, to work around some of the bug with
76660         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76661         Solaris releases, you should also use the tzset module, but we won't
76662         require it as a dependency any more since we don't want LGPLed code
76663         to depend on GPLed code.
76664
76665 2005-07-02  Jim Meyering  <jim@meyering.net>
76666
76667         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76668         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76669         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76670         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76671
76672 2005-07-02  Jim Meyering  <jim@meyering.net>
76673
76674         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76675
76676 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76679         declares only 'struct timespec;' (!).
76680
76681 2005-07-01  Jim Meyering  <jim@meyering.net>
76682
76683         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76684         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76685         * lib/save-cwd.c, tempname.c:
76686         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76687         and don't include <sys/file.h>).
76688
76689 2005-06-29  Jim Meyering  <jim@meyering.net>
76690
76691         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76692         type name.  Use the variable name instead.
76693         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76694         Likewise.
76695
76696 2005-06-28  Simon Josefsson  <jas@extundo.com>
76697
76698         * modules/check-version (Files): Add check-version.m4.
76699
76700 2005-06-28  Simon Josefsson  <jas@extundo.com>
76701
76702         * m4/check-version.m4: New file, suggested by Jim Meyering
76703         <jim@meyering.net>.
76704
76705 2005-06-28  Simon Josefsson  <jas@extundo.com>
76706
76707         * lib/check-version.h, lib/check-version.c: New files.
76708
76709 2005-06-28  Simon Josefsson  <jas@extundo.com>
76710
76711         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76712         collision with global variable.  Better indentation.  Don't
76713         increment buffer pointer beyond buffer end.  Based on comments
76714         from Paul Eggert <eggert@cs.ucla.edu>.
76715
76716         * lib/base64.h: Indent.
76717
76718 2005-06-28  Simon Josefsson  <jas@extundo.com>
76719
76720         * doc/gnulib.texi (Library version handling): New section.
76721
76722 2005-06-28  Jim Meyering  <jim@meyering.net>
76723
76724         * check-module (find_included_lib_files): Hard-code another
76725         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76726         but modules/fts-lgpl (correctly) does not list those files.
76727
76728         * modules/canonicalize (Files): Add lib/pathmax.h.
76729
76730 2005-06-25  Simon Josefsson  <jas@extundo.com>
76731
76732         * modules/check-version: New file.
76733
76734 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76737         initializer of struct addrinfo, as an indication that we don't
76738         care how many members the structure has.
76739
76740 2005-06-24  Derek Price  <derek@ximbiot.com>
76741         and Bruno Haible  <bruno@clisp.org>
76742
76743         Remove stat module & update lstat.
76744         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76746         * m4/stat.m4: Remove this file.
76747
76748 2005-06-24  Derek Price  <derek@ximbiot.com>
76749         and Bruno Haible  <bruno@clisp.org>
76750
76751         Remove stat module & update lstat.
76752         * lib/stat.c: Remove this file...
76753         (slash_aware_lstat): ...moving this content and its support...
76754         * lib/lstat.c (rpl_lstat): ...into here.
76755         * lib/lstat.h: New file.
76756
76757 2005-06-24  Derek Price  <derek@ximbiot.com>
76758         and Bruno Haible  <bruno@clisp.org>
76759
76760         Remove stat module & update lstat.
76761         * config/srclist.txt (libc sources): Remove stat.
76762
76763 2005-06-24  Derek Price  <derek@ximbiot.com>
76764         and Bruno Haible  <bruno@clisp.org>
76765
76766         Remove stat module & update lstat.
76767         * MODULES.html.sh (stat): Remove.
76768         * MODULES.html: Regenerated.
76769         * modules/lstat (Description): Correct function name.
76770         (Files): Add "lstat.h".
76771         (Depends-on): Remove stat, add xalloc, stat-macros.
76772         * modules/stat: Remove this file.
76773         (Include): Add "lstat.h", remove <sys/stat.h>.
76774
76775 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76778         (ranged_convert): Don't save conversion in a temporary struct.
76779         This causes a warning with GCC 4.0.0, and anyway in the typical
76780         case it's not worth the extra 100 bytes or so of code.
76781         (ranged_convert, __mktime_internal): When calling a function via a
76782         pointer P, use P () rather than (*P) (), as we now assume C89 or
76783         better.
76784
76785 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76786
76787         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76788         "who -r" failed to give output.  Problem reported by Tim Waugh.
76789
76790         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76791         (xcalloc): Use it to avoid needless tests.
76792         Problem reported by Jim Meyering.
76793
76794 2005-06-20  Derek Price  <derek@ximbiot.com>
76795
76796         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76797         unnecessary for Autoconfs > 2.59c.
76798
76799 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76800
76801         * lib/argp.h (__option_is_short): Check upper limit of
76802         __key. Isprint() requires its argument to have the value
76803         of an unsigned char or EOF.
76804
76805 2005-06-16  Jim Meyering  <jim@meyering.net>
76806
76807         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76808         when either N or S is zero.
76809
76810 2005-06-16  Derek Price  <derek@ximbiot.com>
76811
76812         * m4/bison.m4: Declare YACC & YFLAGS precious.
76813
76814 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76817         multibyte string or pattern, fall back on unibyte matching.
76818         Problem reported by James Youngman.
76819
76820 2005-06-08  Bruno Haible  <bruno@clisp.org>
76821
76822         * modules/csharpcomp: New file.
76823         * MODULES.html.sh (C#): Add csharpcomp.
76824
76825 2005-06-08  Bruno Haible  <bruno@clisp.org>
76826
76827         * m4/csharpcomp.m4: New file, from GNU gettext.
76828
76829 2005-06-08  Bruno Haible  <bruno@clisp.org>
76830
76831         * lib/csharpcomp.h: New file, from GNU gettext.
76832         * lib/csharpcomp.c: New file, from GNU gettext.
76833         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76834
76835 2005-06-08  Bruno Haible  <bruno@clisp.org>
76836
76837         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76838         warning on mingw.
76839
76840 2005-06-07  Derek Price  <derek@ximbiot.com>
76841
76842         Sync from CVS.
76843         * lib/glob_.h: Indent nested #ifdef.
76844
76845 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76846
76847         Sync from coreutils.
76848         Use "file name" when talking about file names, instead of "filename"
76849         or "path", as per the GNU coding standards.
76850         * lib/mkdir-p.c: Renamed from makepath.c.
76851         (make_dir_parents): Renamed from make_path.  All callers changed.
76852         * lib/mkdir-p.h: Likewise.  All includers changed.
76853         * lib/filenamecat.c: Renamed from path-concat.c.
76854         (file_name_concat): Renamed from path_concat.  All callers changed.
76855         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76856         * lib/filenamecat.h: Likewise.  All includers changed.
76857         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76858         in comments or local variable names.
76859         * lib/basename.c: Likewise.
76860         * lib/canonicalize.c, canonicalize.h: Likewise.
76861         * lib/dirname.c, dirname.h: Likewise.
76862         * lib/euidaccess.c: Likewise.
76863         * lib/exclude.c: Likewise
76864         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76865         * lib/fsusage.c, fsuage.h: Likewise.
76866         * lib/fts.c, fts_.h: Likewise.
76867         * lib/getcwd.c: Likewise.
76868         * lib/getloadavg.c: Likewise.
76869         * lib/mkstemp.c: Likewise.
76870         * lib/mountlist.c, mountlist.h: Likewise.
76871         * lib/openat.c, openat.h: Likewise.
76872         * lib/readlink-stub.c: Likewise.
76873         * lib/readutmp.c, readutmp.h: Likewise.
76874         * lib/rename.c: Likewise.
76875         * lib/rmdir.c: Likewise.
76876         * lib/same.c: Likewise.
76877         * lib/savedir.c: Likewise.
76878         * lib/stripslash.c: Likewise.
76879         * lib/tempname.c: Likewise.
76880         * lib/xreadlink.c: Likewise.
76881         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76882         All uses changed.
76883         * lib/exclude.h: Likewise.
76884
76885         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76886         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76887         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76888         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76889         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76890         files have been getting away with it for years (MORE/BSD 4.3
76891         is extinct now).
76892         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76893         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76894
76895         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76896         Define to 256, not 255, as per modern POSIX.
76897
76898 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         Sync from coreutils.
76901         Use "file name" when talking about file names, instead of "filename"
76902         or "path", as per the GNU coding standards.
76903         * MODULES.html.sh: mkdir-p renamed from makepath.
76904         filenamecat renamed from path-concat.
76905         * modules/filenamecat: Renamed from modules/path-concat.
76906         (Files): filenamecat.h and filenamecat.c renamed from
76907         path-concat.h and path-concat.c.
76908         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76909         (Include): filenamecat.h, not path-concat.h.
76910         * modules/mkdir-p: Renamed from modules/makepath.
76911         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76912         makepath.c.
76913         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76914         (Include): mkdir-p.h, not makepath.h.
76915
76916 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         Sync from coreutils.
76919         * m4/mkdir-p.m4: Renamed from makepath.m4.
76920         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76921         Rename files from makepath.c to mkdir-p.c, and from
76922         makepath.h to mkdir-p.h.
76923         * m4/filenamecat.m4: Renamed from path-concat.m4.
76924         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76925         Rename files from path-concat.c to filenamecat.c,
76926         and from path-concat.h to filenamecat.h.
76927         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76928         "file name" in local variables or comments.
76929         * m4/rename.m4: Likewise.
76930
76931 2005-06-01  Bruno Haible  <bruno@clisp.org>
76932
76933         * modules/csharpexec: New file.
76934         * MODULES.html.sh (C#): New section.
76935
76936 2005-06-01  Bruno Haible  <bruno@clisp.org>
76937
76938         * m4/csharp.m4: New file, from GNU gettext.
76939         * m4/csharpexec.m4: New file, from GNU gettext.
76940
76941 2005-06-01  Bruno Haible  <bruno@clisp.org>
76942
76943         * lib/csharpexec.h: New file, from GNU gettext.
76944         * lib/csharpexec.c: New file, from GNU gettext.
76945         * lib/csharpexec.sh.in: New file, from GNU gettext.
76946
76947 2005-05-31  Derek Price  <derek@ximbiot.com>
76948             Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         Sync from cvs.
76951         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76952
76953 2005-05-31  Derek Price  <derek@ximbiot.com>
76954             Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         Sync from cvs.
76957         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76958
76959 2005-05-29  Derek Price  <derek@ximbiot.com>
76960
76961         * config/srclist.txt (glob_.h, glob.c): Add these files.
76962
76963 2005-05-29  Derek Price  <derek@ximbiot.com>
76964
76965         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76966         * modules/glob: New file.
76967         * modules/getlogin_r: Add link to POSIX spec in description.
76968
76969 2005-05-29  Derek Price  <derek@ximbiot.com>
76970             Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * m4/glob.m4: New file.
76973
76974 2005-05-29  Derek Price  <derek@ximbiot.com>
76975             Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * lib/glob_.h, lib/glob.c: New files.
76978
76979 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76982         * modules/fts-lgpl (Depends-on): Remove gettext.
76983
76984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76987         and don't require gt_INTTYPES_PRI.
76988
76989 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76992
76993         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76994         the configuration hassle isn't worth it.
76995         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76996         (LONGEST_MODIFIER, PRIuMAX): Remove.
76997
76998 2005-05-27  Bruno Haible  <bruno@clisp.org>
76999
77000         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77001
77002 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77005         _POSIX_PTHREAD_SEMANTICS for Solaris.
77006
77007 2005-05-25  Derek Price  <derek@ximbiot.com>
77008
77009         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77010
77011 2005-05-25  Derek Price  <derek@ximbiot.com>
77012             Paul Eggert  <eggert@cs.ucla.edu>
77013
77014         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77015         * lib/getlogin_r.c, getlogin_r.h: New files.
77016
77017 2005-05-25  Bruno Haible  <bruno@clisp.org>
77018             Derek Price  <derek@ximbiot.com>
77019
77020         * lib/getlogin_r.h: Simplify API documentation.
77021
77022 2005-05-23  Derek Price  <derek@ximbiot.com>
77023
77024         * modules/minmax (Files): Add m4/minmax.m4.
77025         (configure.ac): Add gl_MINMAX.
77026
77027 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77030         so that unistd-safer.h (GPL'ed code) need not be included.
77031
77032 2005-05-22  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/minmax.m4: New file.
77035         Based on a patch by Derek Price <derek@ximbiot.com>.
77036
77037 2005-05-22  Bruno Haible  <bruno@clisp.org>
77038
77039         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77040         (INT64_MIN): Fix definition.
77041         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77042
77043         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77044         NEED_SIGNED_INT_TYPES.
77045
77046         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77047         HAVE_SYSTEM_INTTYPES.
77048
77049 2005-05-22  Bruno Haible  <bruno@clisp.org>
77050
77051         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77052         Also include <sys/param.h> if it defines MIN, MAX.
77053         Based on a patch by Derek Price <derek@ximbiot.com>.
77054
77055 2005-05-21  Jim Meyering  <jim@meyering.net>
77056
77057         * modules/fts (Files): Add m4/inttypes-pri.m4.
77058         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77059
77060 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         New fts module.
77063         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77064         (setup_dir, free_dir): New functions.
77065         (enter_dir, leave_dir): Define trivial
77066         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77067         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77068         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77069         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77070         Move to fts-cycle.c.
77071         (fts_open): Use setup_dir.
77072         (fts_close): Use free_dir.
77073         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77074         This adds a label and some gotos, but the alternatives were messier.
77075         Check for memory allocation failure when entering a dir.
77076         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77077         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77078         (FTS): New member fts_cycle, that is a union that contains the
77079         old active_dir_ht and cycle_state.  All uses changed to mention
77080         fts_cycle.ht and fts_cycle.state.
77081         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77082         fts.c, with the following changes:
77083         (setup_dir, free_dir): New functions.
77084         (enter_dir): Now returns bool.  Return true if successful, false
77085         if memory exhausted.  All callers changed.
77086         Do not bother partly cleaning up on
77087         memory allocation failure; that is free_dir's job.
77088         However, free ad if hash_insert fails, to avoid memory leak.
77089         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77090         fts->fts_options to see which union member to use.
77091
77092 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77095         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77096
77097 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77100
77101 2005-05-20  Jim Meyering  <jim@meyering.net>
77102
77103         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77104         Now a macro, to pacify GCC.
77105
77106 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77107
77108         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77109         of -1.
77110
77111 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77112
77113         * lib/chown.c (rpl_chown): Return -1 on failure.
77114
77115 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77116
77117         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77118         Don't check for stddef.h.
77119         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77120         don't use its results.
77121         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77122         since we include them unconditionally.  Don't require
77123         AM_STDBOOL_H, since stdbool is a prerequisite.
77124         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77125         since we assume C89 or better.
77126         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77127         as we don't use their results.
77128         Don't check for fchdir, memmove, memset, strrchr, as we use
77129         them unconditionally.
77130         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77131         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77132
77133 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77136         Include <stddef.h> unconditionally, since we assume C89 now.
77137         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77138         * lib/fts.c: Include fts_.h first, to check interface.
77139         Do not include intprops.h; no longer needed.
77140         Include cycle-check.h and hash.h, since fts_.h no longer does.
77141         Remove unnecessary casts of closedir to void.
77142         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77143         decide whether to decrement nlinks.
77144         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77145         (FTS): Use struct hash_table * instead of Hash_table, so that
77146         we no longer need to include hash.h here.
77147
77148 2005-05-18  Jim Meyering  <jim@meyering.net>
77149
77150         * modules/dirfd (License): Change to LGPL.  Most of the code
77151         is already in the public domain.
77152
77153 2005-05-18  Jim Meyering  <jim@meyering.net>
77154
77155         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77156         Reported by Yoann Vandoorselaere.
77157
77158 2005-05-17  Jim Meyering  <jim@meyering.net>
77159
77160         * m4/fts.m4: New file, from coreutils.
77161
77162 2005-05-17  Jim Meyering  <jim@meyering.net>
77163
77164         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77165
77166 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         Sync from coreutils.
77169         * m4/unlinkdir.m4: New file.
77170
77171 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         Sync from coreutils.
77174         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77175         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77176         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77177         White space changes only.
77178         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77179         special.
77180         * lib/yesno.c: Include getline.h, not ctype.h.
77181         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77182         Use getline to remove arbitrary restriction on response length.
77183
77184 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * config/srclist-update: Spell out "Street" in FSF postal
77187         mail address; this is the style the FSF seems to prefer.
77188
77189         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77190         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77191         this updates FSF postal mail address.
77192
77193         Sync from coreutils.
77194         * modules/unlinkdir: New file.
77195         * modules/yesno (Depends-on): Add getline.
77196         * MODULES.html.sh (File system functions): Add unlinkdir.
77197
77198 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77201         lib/strsep.h:
77202         Change the initial comment to refer to GPL, not LGPL.
77203         gnulib-tool will change it to LGPL as needed.
77204
77205         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77206         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77207         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77208         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77209         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77210         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77211         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77212         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77213         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77214         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77215         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77216         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77217         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77218         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77219         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77220         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77221         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77222         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77223         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77224         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77225         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77226         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77227         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77228         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77229         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77230         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77231         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77232         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77233         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77234         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77235         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77236         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77237         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77238         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77239         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77240         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77241         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77242         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77243         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77244         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77245         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77246         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77247         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77248         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77249         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77250         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77251         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77252         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77253         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77254         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77255         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77256         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77257         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77258         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77259         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77260         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77261         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77262         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77263         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77264         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77265         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77266         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77267         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77268         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77269         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77270         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77271         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77272         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77273         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77274         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77275         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77276         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77277         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77278         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77279         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77280         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77281         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77282         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77283         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77284         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77285         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77286         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77287         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77288         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77289         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77290         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77291         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77292         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77293         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77294         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77295         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77296         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77297         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77298         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77299         lib/yesno.c, lib/yesno.h:
77300         Update FSF postal mail address.
77301
77302 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77303
77304         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77305         tests/test-memmem.c, tests/test-stpncpy.c:
77306         Update FSF postal mail address.
77307
77308 2005-05-13  Bruno Haible  <bruno@clisp.org>
77309
77310         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77311         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77312         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77313         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77314         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77315         Add support for 64-bit integers in the MSVC compiler.
77316
77317 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77318
77319         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77320
77321 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77322
77323         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77324
77325 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * doc/getdate.texi (General date syntax): Don't say that date
77328         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77329         Problem reported by Nic Ferrier.
77330
77331 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77332
77333         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77334         specified in ai_socktype. Fix invalid ai_protocol
77335         check. ai_protocol is usually set to 0 or depending on
77336         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77337         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77338         ai_socktype / ai_protocol in the returned addrinfo structure.
77339
77340 2005-05-10  Simon Josefsson  <jas@extundo.com>
77341
77342         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77343         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77344
77345 2005-05-10  Karl Berry  <karl@gnu.org>
77346
77347         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77348         (from http://www.gnu.org/licenses).
77349         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77350         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77351         fdl.texi suffices.
77352
77353 2005-05-10  Karl Berry  <karl@gnu.org>
77354
77355         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77356         (COPYING.DOC): remove.
77357
77358         * config/srclist-update: new FSF address.
77359
77360 2005-05-10  Derek Price  <derek@ximbiot.com>
77361
77362         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77363         possible.
77364
77365 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77366             Bruno Haible  <bruno@clisp.org>
77367
77368         * modules/inet_ntop: New file.
77369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77370         inet_ntop.
77371
77372 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77373             Bruno Haible  <bruno@clisp.org>
77374
77375         * m4/inet_ntop.m4: New file.
77376
77377 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77378             Bruno Haible  <bruno@clisp.org>
77379
77380         * lib/inet_ntop.h: New file.
77381         * lib/inet_ntop.c: New file, from glibc with modifications.
77382
77383 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * modules/time_r (License): Change to LGPL.
77386         * modules/extensions (License): Change to LGPL.  Actually,
77387         the license is more permissive than that, but currently gnulib-tool
77388         doesn't know how to handle more-permissive licenses.
77389
77390         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77391         Problem reported by Dave Love.
77392
77393 2005-05-08  Jim Meyering  <jim@meyering.net>
77394
77395         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77396         blank.
77397
77398 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77399
77400         * modules/argmatch (Depends-on): Add stdbool.
77401         * modules/backupfile (Depends-on): Likewise.
77402         * modules/chdir-long (Depends-on): Likewise.
77403         * modules/closeout (Depends-on): Likewise.
77404         * modules/cycle-check (Depends-on): Likewise.
77405         * modules/dirname (Depends-on): Likewise.
77406         * modules/fnmatch (Depends-on): Likewise.
77407         * modules/fsusage (Depends-on): Likewise.
77408         * modules/fwriteerror (Depends-on): Likewise.
77409         * modules/getcwd (Depends-on): Likewise.
77410         * modules/getloadavg (Depends-on): Likewise.
77411         * modules/hard-locale (Depends-on): Likewise.
77412         * modules/makepath (Depends-on): Likewise.
77413         * modules/mountlist (Depends-on): Likewise.
77414         * modules/nanosleep (Depends-on): Likewise.
77415         * modules/posixtm (Depends-on): Likewise.
77416         * modules/quotearg (Depends-on): Likewise.
77417         * modules/readtokens (Depends-on): Likewise.
77418         * modules/readtokens0 (Depends-on): Likewise.
77419         * modules/readutmp (Depends-on): Likewise.
77420         * modules/save-cwd (Depends-on): Likewise.
77421         * modules/strftime (Depends-on): Likewise.
77422         * modules/userspec (Depends-on): Likewise.
77423         * modules/utimecmp (Depends-on): Likewise.
77424         * modules/xgetcwd (Depends-on): Likewise.
77425         * modules/xnanosleep (Depends-on): Likewise.
77426         * modules/xstrtod (Depends-on): Likewise.
77427         * modules/yesno (Depends-on): Likewise.
77428
77429 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77432         needless checks.
77433
77434 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         Merge from coreutils.  Among other things,
77437         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77438         * lib/fd-safer.c: New file.
77439         * lib/fcntl-safer.h, open-safer.c: Remove.
77440         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77441         * lib/dup-safer.c: Include unistd-safer.h first.
77442         Don't include errno.h.
77443         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77444         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77445         * lib/file-type.c: Rely on file-type.h change.
77446         * lib/getloadavg.c: Include unistd-safer.h.
77447         (getloadavg): Use safer open.
77448         * lib/getusershell.c: Include "stdio-safer.h".
77449         (getusershell): Use safer fopen.
77450         * lib/long-options.c (long_options): Use NULL rather than 0.
77451         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77452         'free'.
77453         * lib/modechange.c: Likewise.
77454         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77455         (MODE_DONE): New constant.
77456         (struct mode_change): Remove 'next' member.
77457         (make_node_op_equals): New function; like the old one of the
77458         same name, except it allocates an array.
77459         (mode_compile, mode_create_from_ref): Use it.
77460         (mode_compile): Allocate result as an array, not a linked list.
77461         Parse octal string ourself, so that we catch mistakes like "+0".
77462         (mode_adjust): Arg is an array, not a linked list.
77463         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77464         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77465         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77466         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77467         Remove.  This is now stat-macros.h's job.
77468         (talloc): Remove.  All callers replaced by xalloc, so that
77469         our invokers don't have to worry about reporting memory failures.
77470         (make_node_op_equals): Remove.
77471         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77472         New constants.
77473         (struct mode_change): Moved here from modechange.h.
77474         (mode_append_entry): Remove.
77475         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77476         apps to have incorrect behavior.  Use simpler algorithm for head
77477         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77478         Detect more invalid usages rather than having somewhat-random behavior.
77479         Don't insert an "a=" action, as that leads to incorrect behavior.
77480         (mode_compile, mode_create_from_ref): Return NULL on error instead
77481         of an enum, since now there's only one way to have an error.  All
77482         callers changed.
77483         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77484         at the correct time.  Simplify calculation of "+u" and its ilk.
77485         Don't mishandle "+X".
77486         (mode_free): Remove "register" and localize decls.
77487         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77488         (struct mode_change): Move to modechange.c; callers don't
77489         need to see this stuff.
77490         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77491         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77492         (mode_change, mode_adjust): Reflect the new signatures noted above.
77493         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77494         that might redefine system include files.
77495         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77496         (my_usleep): Use NULL rather than (void *) 0.
77497         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77498         Use siginterrupt to specify that system calls should be interrupted.
77499         (rpl_nanosleep): Move initialization of suspended closer to call of
77500         my_usleep.
77501         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77502         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77503         (desirable_utmp_entry): New function.
77504         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77505         using x2nrealloc, to simplify logic.
77506         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77507         size calculation.  Do not assume utmp file is a regular file.
77508         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77509         (READ_UTMP_CHECK_PIDS): New constant.
77510         * lib/save-cwd.c: Include unistd-safer.h.
77511         (save_cwd): Use fd_safer.
77512         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77513         [!_LIBC] Include "stat-macros.h" instead.
77514         * lib/unistd-safer.h (fd_safer): New decl.
77515
77516 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * modules/getloadavg (Depends-on): Add unistd-safer.
77519         * modules/getusershell (Depends-on): Add stdio-safer.
77520         * modules/lstat (Depends-on): Remove xalloc.
77521         * modules/mkstemp (Depends-on): Add stat-macros.
77522         * modules/modechange (Depends-on): Remove xstrtol.
77523         Add stat-macros, xalloc.
77524         * modules/save-cwd (Depends-on): Add unistd-safer.
77525         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77526         * modules/unistd-safer (Files): Add lib/fd-safer.c
77527         (Makefile.am): Remove lib_SOURCES.
77528
77529         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77530         Remove fcntl-safer; unistd-safer supersedes it.
77531
77532 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77535         AC_HEADER_STAT.
77536         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77537         (gl_PREREQ_CHOWN): Remove.
77538         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77539         it.  Don't require AC_HEADER_STAT.
77540         (gl_PREREQ_LSTAT): Remove.
77541         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77542         Don't require AC_HEADER_STAT.
77543         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77544         (gl_PREREQ_RMDIR): Remove.
77545         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77546         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77547         the stat-macros module a prerequisite.
77548         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77549         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77550         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77551         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77552         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77553         variable names.
77554         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77555         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77556         variable prefixes.
77557         * m4/fcntl-safer.m4: Remove.
77558         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77559         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77560         Invoke gl_PREREQ_FD_SAFER.
77561         (gl_PREREQ_FD_SAFER): New macro.
77562         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77563         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77564         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77565         Remove duplicate call to AC_LIBOBJ(readutmp).
77566         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77567
77568         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77569         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77570
77571 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77572
77573         * MODULES.html.sh (Misc): Add byteswap.
77574
77575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77576
77577         * modules/getcwd (Depends-on): Add extensions.
77578         * modules/openat (Depends-on): Likewise.
77579
77580 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77581
77582         * modules/byteswap: New file.
77583
77584 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77585
77586         * m4/byteswap.m4: New file.
77587
77588 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77589
77590         * lib/byteswap_.h: New file.
77591
77592 2005-04-25  Karl Berry  <karl@gnu.org>
77593
77594         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77595
77596 2005-04-25  Albert Chin  <china@thewrittenword.com>
77597
77598         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77599         Toolkit C bug.
77600
77601 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77602
77603         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77604         (func_ln_if_changed): Remove forcibly for no error message
77605         in case file does not exist.
77606
77607 2005-04-19  Simon Josefsson  <jas@extundo.com>
77608
77609         * gnulib-tool (Options): Make --symlink mean --symbolic.
77610
77611 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77612
77613         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77614
77615 2005-04-16  Simon Josefsson  <jas@extundo.com>
77616
77617         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77618
77619 2005-04-15  Simon Josefsson  <jas@extundo.com>
77620
77621         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77622
77623 2005-04-15  Simon Josefsson  <jas@extundo.com>
77624
77625         * gnulib-tool: Rename --symlink to --symbolic.
77626
77627 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77628
77629         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77630         symbolic links to files instead of copying/moving.  Add --aux-dir,
77631         specifying directory relative --dir where auxiliary build tools
77632         are placed.
77633
77634 2005-04-14  Bruno Haible  <bruno@clisp.org>
77635
77636         * modules/allocsa (License): Change to LGPL.
77637         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77638
77639 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77642         that "UTC +1 second" continues to work.  Problem reported
77643         by Dmitry V. Levin.
77644         (relunit_snumber): New rule.
77645         (relunit): Use it.
77646
77647 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * lib/getdate.y (universal_time_zone_table): New constant.
77650         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77651         universal_time_zone_table.
77652         (lookup_zone): Prefer universal_time_zone_table to
77653         local_time_zone_table, so that "GMT" time stamps are allowed in
77654         London during the summer.  Problem reported by Ian Abbott.
77655
77656 2005-04-12  Jim Meyering  <jim@meyering.net>
77657
77658         * lib/human.c (humblock): Set *options even when returning due to
77659         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77660         warning from gcc-4.
77661
77662 2005-04-09  Jim Meyering  <jim@meyering.net>
77663
77664         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77665         -Wuninitialized: initialize tm0.tm_year.
77666
77667 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77670         count, since there's no maximum.  All uses changed.
77671         Add member dsts_seen.
77672         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77673         not being INT_MAX.
77674         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77675         Use pc_rels_seen to decide whther a date is absolute.
77676
77677         * lib/getdate.y (number): Don't overwrite year.
77678         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77679         check.
77680
77681 2005-04-02  Simon Josefsson  <jas@extundo.com>
77682
77683         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77684         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77685
77686 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77687
77688         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77689         where no absolute path name can be longer than PATH_MAX.
77690
77691 2005-03-27  Jim Meyering  <jim@meyering.net>
77692
77693         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77694
77695 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77698         "one's complement" -> "ones' complement" in comment, as per Knuth.
77699         "value of type" -> "type or expression" in comment.
77700         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77701
77702 2005-03-26  Jim Meyering  <jim@meyering.net>
77703
77704         Comment nits.
77705         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77706         Correct typos: s/or/of/.
77707
77708 2005-03-26  Jim Meyering  <jim@meyering.net>
77709
77710         * modules/check-include-files: Move to ../ and rename to...
77711         * check-module: ...this.
77712
77713 2005-03-25  Jim Meyering  <jim@meyering.net>
77714
77715         * modules/xvasprintf (Files): Add xalloc.h.
77716
77717 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * modules/gettext (Files): config/config.rpath ->
77720         build-aux/config.rpath
77721         * modules/iconv (Files): Likewise.
77722         Problem reported by Oskar Liljeblad.
77723
77724 2005-03-23  Jim Meyering  <jim@meyering.net>
77725
77726         * modules/check-include-files: New script to check for
77727         missing dependencies, multiple includes, etc.
77728
77729         * modules/c-strtold (Depends-on): Add xalloc.
77730         * modules/c-strtod (Depends-on): Add xalloc.
77731         * modules/hash (Depends-on): Add xalloc.
77732         (Files): Remove lib/xalloc.h.
77733
77734         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77735         * modules/userspec (Files): Add lib/inttostr.h.
77736
77737 2005-03-23  Jim Meyering  <jim@meyering.net>
77738
77739         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77740
77741 2005-03-22  Jim Meyering  <jim@meyering.net>
77742
77743         * modules/stat-macros: New module.
77744         * modules/canonicalize, modules/euidaccess, modules/file-type,
77745         * modules/filemode, modules/lchown, modules/makepath,
77746         * modules/rmdir, modules/stat: Depend on new stat-macros module
77747         rather than listing lib/stat-macros.h manually.
77748         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77749
77750 2005-03-22  Jim Meyering  <jim@meyering.net>
77751
77752         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77753
77754 2005-03-22  Bruno Haible  <bruno@clisp.org>
77755
77756         * config/srclist.txt: Replace target directory 'config' with
77757         'build-aux'.
77758         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77759         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77760         ../build-aux/.
77761
77762 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * modules/chdir-long (Depends-on): Add mempcpy.
77765
77766         * modules/acl, modules/backupfile, modules/c-strtod,
77767         modules/c-strtold, modules/canon-host, modules/canonicalize,
77768         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77769         modules/exclude, modules/exitfail, modules/file-type,
77770         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77771         modules/getdate, modules/getline, modules/getpagesize,
77772         modules/getpass, modules/getugroups, modules/group-member,
77773         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77774         modules/inttostr, modules/long-options, modules/makepath,
77775         modules/md5, modules/memcasecmp, modules/memcoll,
77776         modules/modechange, modules/mountlist, modules/path-concat,
77777         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77778         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77779         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77780         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77781         modules/strftime, modules/strndup, modules/strverscmp,
77782         modules/timespec, modules/unlocked-io, modules/userspec,
77783         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77784         modules/yesno:
77785         Remove lib_SOURCES line from Makefile.am section, as this is now
77786         done automatically by the corresponding Autoconf macro.
77787
77788 2005-03-21  Jim Meyering  <jim@meyering.net>
77789
77790         Changes imported from coreutils.
77791
77792         * lib/cycle-check.c: Don't include xalloc.h.
77793
77794         * lib/path-concat.c: Don't include assert.h.
77795         (path_concat): Remove assertion that would have triggered
77796         for ABASE starting with more than one slash.
77797         Reported by Andreas Schwab.
77798
77799         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77800         properly when ABASE is an absolute file name.
77801         Correct the description of this function.
77802         Include <assert.h>.
77803         Add an assertion and a test driver.
77804         This fixes a bug introduced on 2004-07-02.
77805         Andreas Schwab reported the resulting failure of cp --parents:
77806         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77807
77808 2005-03-21  Jim Meyering  <jim@meyering.net>
77809
77810         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77812
77813 2005-03-21  Jim Meyering  <jim@meyering.net>
77814         and  Paul Eggert  <eggert@cs.ucla.edu>
77815
77816         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77817         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77818         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77819         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77820         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77821         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77822         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77823         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77824         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77825         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77826         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77827         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77828         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77829         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77830         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77831         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77832         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77833         for these modules.
77834
77835 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77838         (which shouldn't happen), generate nothing instead of returning 0
77839         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77840
77841 2005-03-16  Bruno Haible  <bruno@clisp.org>
77842
77843         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77844         HAVE_LONGLONG_64BIT.
77845
77846 2005-03-16  Bruno Haible  <bruno@clisp.org>
77847
77848         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77849         HAVE_LONGLONG_64BIT.
77850
77851 2005-03-16  Bruno Haible  <bruno@clisp.org>
77852
77853         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77854         HAVE_LONGLONG_64BIT.
77855
77856 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77857
77858         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77859         reliably distinguish strftime failure from empty output on POSIX
77860         hosts.
77861
77862 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77865         (iconv_string): Don't guess a size-zero buffer, as that might cause
77866         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77867         result would be 'too large', where 'too large' is (heuristically)
77868         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77869         overflow concerns.  This will prevent some unwanted malloc failures
77870         when the inputs are very large.
77871
77872 2005-03-15  Karl Berry  <karl@gnu.org>
77873
77874         * config/srclist.txt (config.rpath): from gettext.
77875         * config/config.rpath: update.
77876
77877 2005-03-15  Bruno Haible  <bruno@clisp.org>
77878
77879         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77880         to 'negate'.
77881
77882         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77883         variable.
77884
77885         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77886         results.
77887
77888 2005-03-14  Simon Josefsson  <jas@extundo.com>
77889
77890         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77891         <fx@gnu.org>.
77892
77893 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77894
77895         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77896         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77897         intprops.h.
77898         * lib/strtol.c: Likewise.
77899
77900 2005-03-14  Jim Meyering  <jim@meyering.net>
77901
77902         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77903         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77904         to be nonzero so that we (and caller) can detect the difference
77905         between a valid zero-length expansion and an error return, even
77906         when the underlying strftime fails before writing anything into
77907         that location.
77908
77909 2005-03-14  Bruno Haible  <bruno@clisp.org>
77910
77911         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77912         Update from GNU gettext 0.14.3.
77913
77914 2005-03-10  Jim Meyering  <jim@meyering.net>
77915
77916         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77917
77918 2005-03-10  Jim Meyering  <jim@meyering.net>
77919
77920         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77921         so that this module works on systems without fchdir.
77922
77923 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77924
77925         Factor int-properties macros into a single file, except for
77926         glibc-related files.
77927         * lib/intprops.h: New file.
77928         * lib/getloadavg.c: Include it instead of limits.h.
77929         (INT_STRLEN_BOUND): Remove.
77930         * lib/human.c: Include intprops.h.
77931         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77932         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77933         302/1000.
77934         * lib/inttostr.h: Include intprops.h instead of limits.h.
77935         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77936         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77937         for consistency with intprops.h.
77938         (time_t_is_integer, twos_complement_arithmetic): Use them.
77939         * lib/sig2str.h: Include <signal.h>, intprops.h.
77940         (INT_STRLEN_BOUND): Remove.
77941         * lib/strftime.c (TYPE_SIGNED): Remove.
77942         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77943         * lib/strtol.c: Adjust comments to match intprops.h.
77944         * lib/userspec.c: Include intprops.h.
77945         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77946         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77947         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77948         instead of rolling our own expressions.
77949         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77950
77951         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77952         instead of int.
77953         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77954         the right thing even if adding 1900 would overflow.  Similarly
77955         for tm_mon + 1 and tm_yday + 1.
77956         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77957         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77958         (DO_SIGNED_NUMBER): New macro.
77959         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77960
77961 2005-03-07  Bruno Haible  <bruno@clisp.org>
77962
77963         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77964
77965 2005-03-07  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77968
77969 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77970
77971         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77972         (func_import): Only replace files via --import when they have actually
77973         changed.
77974
77975 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77976
77977         * m4/mmap-anon.m4: New file.
77978         * m4/pagealign_alloc.m4: New file.
77979
77980 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77981             Bruno Haible  <bruno@clisp.org>
77982
77983         * modules/pagealign_alloc: New file.
77984         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77985
77986 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77987             Bruno Haible  <bruno@clisp.org>
77988
77989         * lib/pagealign_alloc.h: New file.
77990         * lib/pagealign_alloc.c: New file.
77991
77992 2005-03-03  Bruno Haible  <bruno@clisp.org>
77993
77994         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77995         Use an all-permissive copyright notice, recommended by RMS.
77996
77997 2005-03-02  Bruno Haible  <bruno@clisp.org>
77998
77999         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78000         of AIX, the replacement has to be done only after <string.h> is
78001         included, therefore not in config.h. stpncpy.h does the replacement,
78002         and stpncpy.c uses it.
78003
78004 2005-03-02  Bruno Haible  <bruno@clisp.org>
78005
78006         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78007         stpncpy.c uses it.
78008
78009 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78012         The workaround isn't strictly needed for POSIX conformance, and
78013         it's too much of a pain to configure and maintain.  We'll ask
78014         people to fix their kernels instead.
78015         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78016         (NANOSLEEP_BUG_WORKAROUND): Remove.
78017         (xnanosleep): Remove the workaround.
78018
78019 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78022         Reported by Derek Price.
78023         (Include): Add "timespec.h".
78024
78025         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78026
78027 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78030         to detect nanosleep bug.
78031
78032 2005-03-01  Bruno Haible  <bruno@clisp.org>
78033
78034         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78035
78036 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * modules/gethrxtime: New file.
78039         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78040         (Depends-on): Add gethrxtime.
78041         (configure.ac): Add gl_XNANOSLEEP.
78042         (Makefile.am): Remove lib_SOURCES line.
78043
78044 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78047         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78048
78049 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78052         * lib/timespec.h (gettime): Return void, since it always
78053         succeeds now.  All uses changed.
78054         * lib/gettime.c (gettime): Likewise.
78055         [HAVE_NANOTIME]: Prefer nanotime.
78056         Assume gettimeofday succeeds, as POSIX requires.
78057         Assime time () succeeds, since other code already does.
78058         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78059         (timespec_subtract): Remove.
78060         (NANOSLEEP_BUG_WORKAROUND): New constant.
78061         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78062         things considerably.  Use it only on GNU/Linux hosts, since the
78063         workaround shouldn't be needed elsewhere.
78064
78065 2005-02-24  Bruno Haible  <bruno@clisp.org>
78066
78067         * modules/gettext (Files): Add m4/glibc2.m4.
78068
78069 2005-02-24  Bruno Haible  <bruno@clisp.org>
78070
78071         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78072         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78073         * m4/progtest.m4:
78074         Update from GNU gettext 0.14.2.
78075         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78076
78077 2005-02-24  Bruno Haible  <bruno@clisp.org>
78078
78079         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78080         * lib/config.charset: Update from GNU gettext 0.14.2.
78081
78082 2005-02-24  Bruno Haible  <bruno@clisp.org>
78083
78084         * lib/gettext.h: Update from GNU gettext 0.14.2.
78085
78086 2005-02-23  Simon Josefsson  <jas@extundo.com>
78087
78088         * m4/iconvme.m4: New file.
78089
78090 2005-02-23  Jim Meyering  <jim@meyering.net>
78091
78092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78093         change.
78094         Thanks to Bruno Haible for catching it.
78095
78096 2005-02-22  Simon Josefsson  <jas@extundo.com>
78097
78098         * modules/iconvme: New file.
78099
78100         * MODULES.html.sh: Add iconvme.
78101
78102 2005-02-22  Simon Josefsson  <jas@extundo.com>
78103
78104         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78105
78106 2005-02-22  Simon Josefsson  <jas@extundo.com>
78107
78108         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78109
78110 2005-02-22  Jim Meyering  <jim@meyering.net>
78111
78112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78113         s/ifndef/ifdef/.
78114
78115 2005-02-20  Neil Conway  <neilc@samurai.com>
78116
78117         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78118         returned by OSX/Darwin if the specified buffer is not large
78119         enough for the hostname.
78120
78121 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78122
78123         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78124         pass it to _help, otherwise the latter coredumps trying to
78125         dereference state.root_argp.
78126
78127 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78128
78129         * modules/chdir-long (Depends-on): Add memrchr.
78130         * modules/memrchr (Files): Add lib/memrchr.h.
78131         (Include): "memrchr.h".
78132
78133 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78136
78137 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * lib/memrchr.h: New file.
78140         * lib/chdir-long.c: Include it.
78141         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78142         Don't bother including stddef.h.
78143
78144 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78145
78146         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78147         inclusion.
78148         Include <sys/types.h>, for dev_t.
78149         (ME_DUMMY, ME_REMOTE): Move from here....
78150         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78151         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78152         Dmitry V. Levin.
78153         Include mountlist.h first, to test the interface.
78154
78155 2005-01-29  Bruno Haible  <bruno@clisp.org>
78156
78157         * lib/progname.c (program_name): Initialize.
78158         Needed when linking statically on MacOS X.
78159
78160 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         Sync from coreutils.
78163         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78164         (Depends-on): Add c-strtod.
78165         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78166
78167 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         Sync from coreutils.
78170         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78171
78172         Remove files that are specific to coreutils.
78173         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78174
78175 2005-01-28  Bruno Haible  <bruno@clisp.org>
78176
78177         * modules/javacomp: New file.
78178         * MODULES.html.sh (Java): Add javacomp.
78179
78180 2005-01-28  Bruno Haible  <bruno@clisp.org>
78181
78182         * m4/javacomp.m4: New file, from GNU gettext.
78183
78184 2005-01-28  Bruno Haible  <bruno@clisp.org>
78185
78186         * lib/javacomp.sh.in: New file, from GNU gettext.
78187         * lib/javacomp.h: New file, from GNU gettext.
78188         * lib/javacomp.c: New file, from GNU gettext.
78189
78190 2005-01-26  Simon Josefsson  <jas@extundo.com>
78191
78192         * lib/gai_strerror.c: Use GPL in header.
78193
78194 2005-01-26  Bruno Haible  <bruno@clisp.org>
78195
78196         * modules/javaexec: New file.
78197         * MODULES.html.sh (Java): Add javaexec.
78198
78199 2005-01-26  Bruno Haible  <bruno@clisp.org>
78200
78201         * m4/javaexec.m4: New file, from GNU gettext.
78202
78203 2005-01-26  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/javaexec.sh.in: New file, from GNU gettext.
78206         * lib/javaexec.h: New file, from GNU gettext.
78207         * lib/javaexec.c: New file, from GNU gettext.
78208
78209 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78210
78211         * modules/lchown (Depends-on): Remove lchown.h
78212
78213 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78214
78215         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78216         must be defined if the header file was not found, in order
78217         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78218
78219 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78220
78221         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78222         initializers for struct pentry_state.
78223         (__argp_error): Check return value of __asprintf
78224         (__argp_failure): Translate error message
78225
78226         * lib/argp-parse.c: Removed braces around the expansion of N_()
78227
78228 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78231         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78232         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78233         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78234         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78235         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78236         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78237         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78238         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78239         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78240         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78241         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78242         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78243         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78244         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78245         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78246         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78247         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78248         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78249         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78250         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78251         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78252         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78253         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78254         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78255         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78256         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78257         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78258         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78259         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78260         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78261         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78262         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78263         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78264         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78265         Use an all-permissive copyright notice, recommended by RMS.
78266
78267 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * modules/chdir-long (Depends-on): Remove mempcpy.
78270
78271 2005-01-21  Jim Meyering  <jim@meyering.net>
78272
78273         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78274         same value as for Solaris 9.
78275
78276         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78277         component length.  This included changing the parameter to be
78278         of type `char *' rather than `char const *'.
78279         * lib/chdir-long.h (chdir_long): Update prototype.
78280
78281         * lib/openat.c (fdopendir, fstatat): New functions.
78282         * lib/openat.h: Include headers required for use of DIR and struct
78283         stat.
78284         [AT_SYMLINK_NOFOLLOW]: Define.
78285         (fdopendir, fstatat): Add prototypes.
78286
78287 2005-01-21  Bruno Haible  <bruno@clisp.org>
78288
78289         * modules/classpath: New file.
78290         * MODULES.html.sh (Java): Add classpath.
78291
78292 2005-01-21  Bruno Haible  <bruno@clisp.org>
78293
78294         * lib/classpath.h: New file, from GNU gettext.
78295         * lib/classpath.c: New file, from GNU gettext.
78296
78297 2005-01-20  Simon Josefsson  <jas@extundo.com>
78298
78299         * modules/version-etc-fsf: New file.
78300
78301 2005-01-20  Simon Josefsson  <jas@extundo.com>
78302
78303         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78304         * lib/version-etc.c: Remove version_etc_copyright.
78305         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78306         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78307
78308 2005-01-20  Simon Josefsson  <jas@extundo.com>
78309
78310         * lib/base64.h (isbase64): Add.
78311
78312         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78313         using a unsigned prototype, don't inline.
78314         (base64_decode): Use it.
78315
78316 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78319         it.
78320
78321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * lib/save-cwd.c (save_cwd): Remove code to support the case
78324         where fchdir is missing or flaky.
78325
78326 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78327
78328         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78329
78330 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78333         AC_LIBSOURCES now does this.
78334         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78335         with new ullong_max module.
78336
78337 2005-01-19  Bruno Haible  <bruno@clisp.org>
78338
78339         * modules/sh-quote: New file.
78340         * MODULES.html.sh (Executing programs): Add sh-quote.
78341
78342 2005-01-19  Bruno Haible  <bruno@clisp.org>
78343
78344         * lib/sh-quote.h: New file, from GNU gettext.
78345         * lib/sh-quote.c: New file, from GNU gettext.
78346
78347 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         Merge from coreutils.
78350         * m4/ullong_max.m4: New file.
78351         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78352         (gl_MACROS): Assume localeconv exists.
78353
78354 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         Merge changes from coreutils, as described below in several
78357         changelogs dated today.
78358
78359         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78360         (O_DIRECTORY): Remove; not needed here, since "." must be
78361         a directory.  All uses removed.
78362         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78363         universal on Suns, and we also need to test for IRIX.
78364         Revamp code to use 'if' rather than '#if'.
78365         Avoid unnecessary comparison of cwd->desc to 0.
78366
78367         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78368         for known valid error numbers rather than observed invalid ones.
78369
78370 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * modules/ullong_max: New file.
78373
78374         * modules/chdir-long, modules/openat: New files.
78375         * modules/save-cwd (Depends-on): Depend on chdir-long.
78376         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78377
78378 2005-01-18  Jim Meyering  <jim@meyering.net>
78379
78380         Merge from coreutils.
78381         * m4/chdir-long.m4, m4/openat.m4: New files.
78382         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78383         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78384         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78385         is sane and DOES follow symlinks.  Besides, testing 20 different
78386         systems found no broken chown implementations.
78387         Prompted by a change in rsync's copy of this macro.
78388         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78389
78390         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78391
78392         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78393         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78394         NULL-means-set-to-current-time semantics.
78395         Remove temporary file immediately, rather than waiting
78396         for configure's at-exit trap code to do it.
78397
78398 2005-01-18  Jim Meyering  <jim@meyering.net>
78399
78400         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78401
78402         * lib/utimens.c (futimens): Account for the fact that futimes
78403         can also fail with errno == ENOSYS or errno == ENOENT.
78404         Patch from Dmitry V. Levin.
78405
78406         Change the name of the robust chdir function from chdir to chdir_long.
78407         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78408         (restore_cwd): Use chdir_long, not chdir.
78409         * lib/chdir-long.c: Renamed from chdir.c.
78410         * lib/chdir-long.h: Renamed from chdir.h.
78411         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78412         Hurd.
78413
78414 2005-01-18  Bruno Haible  <bruno@clisp.org>
78415
78416         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78417         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78418         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78419         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78420         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78421         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78422         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78423         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78424         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78425         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78426         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78427         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78428         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78429         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78430         Use an all-permissive copyright notice, recommended by RMS.
78431
78432 2005-01-18  Bob Proulx  <bob@proulx.com>
78433
78434         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78435         simplify offsetof() macro construct to avoid compile failure with
78436         native HP-UX 11.0 ANSI C compiler.
78437
78438 2005-01-17  Bruno Haible  <bruno@clisp.org>
78439
78440         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78441         redundant because stpncpy.m4 takes care of it.
78442
78443 2005-01-17  Bruno Haible  <bruno@clisp.org>
78444
78445         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78446
78447 2005-01-17  Bruno Haible  <bruno@clisp.org>
78448
78449         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78450         used.
78451
78452 2005-01-17  Bruno Haible  <bruno@clisp.org>
78453
78454         * lib/fwriteerror.h (fwriteerror): Change specification to include
78455         fclose.
78456         * lib/fwriteerror.c: Include <stdbool.h>.
78457         (fwriteerror): At the end, close the file stream. Record whether
78458         stdout was already closed.
78459
78460 2005-01-17  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/execute.c (environ): Declare if needed.
78463         * lib/pipe.c (environ): Likewise.
78464         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78465
78466 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78467
78468         * modules/argp: Depend on vsnprintf
78469
78470 2005-01-10  Jim Meyering  <jim@meyering.net>
78471
78472         * modules/closeout (Depends-on): Add atexit.
78473
78474 2005-01-06  Bruno Haible  <bruno@clisp.org>
78475
78476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78477
78478 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78481         definitions to be after all include files, to avoid collisions.
78482         Problem reported by Bob Proulx.
78483
78484 2005-01-04  Jim Meyering  <jim@meyering.net>
78485
78486         Changes imported from coreutils.
78487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78488         as the mkstemp template, use a temporary directory and an
78489         8.3-friendly template to avoid trouble on systems like DJGPP.
78490         Reported by Juan M. Guerrero via Stepan Kasal.
78491         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78492         close. Remove the temporary directory right away, rather than waiting
78493         for configure's at-exit trap code to do it.
78494         Suggestion from Stepan Kasal.
78495
78496 2005-01-01  Simon Josefsson  <jas@extundo.com>
78497
78498         * gnulib-tool: Print #include directives when --import'ing.
78499
78500 2004-12-28  Simon Josefsson  <jas@extundo.com>
78501
78502         * tests/test-base64.c: Include required header files.  Remove
78503         unused variables.
78504
78505 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * modules/error (Depends-on): Remove gettext.
78508
78509 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78512         not needed.  This removes a dependency on the gettext module.
78513         [defined _LIBC]: Do not include <libintl.h>; not needed.
78514
78515 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78516
78517         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78518         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78519
78520 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78521
78522         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78523         HAVE_DECL_STRTOLD.
78524
78525 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * modules/getdate (Depends-on): Remove alloca-opt.
78528
78529 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78532
78533 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * lib/argp-parse.c: Include <stddef.h>.
78536         (alignof, alignto): New macros.
78537         (parser_init): Don't assume that void * is aligned sufficiently
78538         for struct option.
78539
78540         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78541         need to extend the stack.
78542         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78543         large.
78544
78545 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78546
78547         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78548
78549 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78550
78551         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78552         (2004-10-24) change.  Apparently this was a false alarm.
78553
78554         * modules/getdate: Depend on alloca-opt, not alloca.
78555
78556 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78557
78558         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78559         Remove now-obsolete comment about AIX.
78560         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78561         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78562         (YYMAXDEPTH): New macro.
78563
78564 2004-12-18  Simon Josefsson  <jas@extundo.com>
78565
78566         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78567
78568 2004-12-18  Bruno Haible  <bruno@clisp.org>
78569
78570         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78571
78572 2004-12-18  Bruno Haible  <bruno@clisp.org>
78573
78574         * lib/fatal-signal.c (fatal_signals): Make non-const.
78575         (init_fatal_signals): New function.
78576         (uninstall_handlers, install_handlers): Ignore signals that were set to
78577         SIG_IGN.
78578         (at_fatal_signal): Call init_fatal_signals.
78579         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78580         SIG_IGN.
78581         Reported by Paul Eggert.
78582
78583 2004-12-18  Bruno Haible  <bruno@clisp.org>
78584
78585         * doc/alloca.texi: New file.
78586         * doc/alloca-opt.texi: New file.
78587
78588 2004-12-17  Jim Meyering  <jim@meyering.net>
78589
78590         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78591         Otherwise, install-sh could exit with improper exit status when
78592         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78593
78594 2004-12-16  Simon Josefsson  <jas@extundo.com>
78595
78596         * tests/test-base64.c: Add license.
78597
78598 2004-12-15  Stepan Kasal  <address@hidden>
78599
78600         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78601
78602 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78603
78604         * modules/getcwd (Files): Add m4/d-ino.m4.
78605         Suggested by Mark D. Baushke.
78606
78607 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         * lib/getdate.y (textint): New member "negative".
78610         (time_zone_hhmm): New function.
78611         Expect 14 shift-reduce conflicts, not 13.
78612         (o_colon_minutes): New rule.
78613         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78614         (yylex): Set the "negative" member of signed numbers.
78615
78616 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * doc/getdate.texi (Time of day items, Time zone items):
78619         Describe new formats +00:00, UTC+00:00.
78620
78621 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78624         spurious "-l"s.  Problem reported by Stepan Kasal.
78625
78626 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78627
78628         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78629         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78630
78631 2004-12-04  Simon Josefsson  <jas@extundo.com>
78632
78633         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78634         Vandoorselaere <yoann@prelude-ids.org>.
78635
78636 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         Changes imported from coreutils.
78639         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78640         exist.
78641         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78642
78643 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         Changes imported from coreutils.
78646         * lib/hard-locale.c: Assume <locale.h> exists.
78647         Include "strdup.h".
78648         (GLIBC_VERSION): New macro.
78649         (hard_locale): Assume setlocale exists.
78650         Rewrite to avoid #ifdef.
78651         Use strdup rather than malloc + strcpy.
78652         * lib/human.c: Assume <locale.h> exists.
78653         (human_readable): Assume localeconv exists.
78654
78655 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * modules/hard-locale (Depends-on): Add strdup.
78658
78659 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78660
78661         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78662         convert T2, not T.  (Imported from libc.)
78663
78664 2004-11-30  Simon Josefsson  <jas@extundo.com>
78665
78666         * modules/restrict (License): Change to LGPL.
78667
78668 2004-11-30  Simon Josefsson  <jas@extundo.com>
78669
78670         * m4/restrict.m4: Add copyright and copying conditions.
78671
78672 2004-11-30  Simon Josefsson  <jas@extundo.com>
78673
78674         * m4/base64.m4: New file.
78675
78676 2004-11-30  Simon Josefsson  <jas@extundo.com>
78677
78678         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78679         base64.
78680
78681         * tests/test-base64.c: New file.
78682
78683         * modules/base64: New file.
78684
78685 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78688         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78689
78690         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78691
78692 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78695         (__getcwd.c): Don't restore errno; glibc doesn't.
78696         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78697         first, falling back to our code only if its results look suspicious.
78698         Ensure that the resulting buffer is only as large as necessary.
78699
78700         * lib/readutmp.c: Include readutmp.h first.
78701         Include <errno.h>, since readutmp.h no longer does that.
78702         * lib/readutmp.h: Don't include <errno.h>,
78703         <sys/param.h>, <time.h>; not needed to establish interface.
78704         (errno): Remove decl.
78705         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78706         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78707         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78708
78709 2004-11-28  Simon Josefsson  <jas@extundo.com>
78710
78711         * lib/base64.h, base64.c: New file.
78712
78713 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78714
78715         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78716
78717 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78720         (Depends-on): Remove pathmax, same.  Add mempcpy.
78721         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78722         (Makefile.am): Append getcwd.h to lib_SOURCES.
78723         (Include): Add getcwd.h.
78724         (Maintainer): Change from Jim Meyering to "all, glibc",
78725         since getdate now uses intended-for-glibc code.
78726         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78727         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78728
78729 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78730
78731         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78732         HP's ANSI C compiler.
78733         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78734         Declaring int functions causes warnings on some modern systems and
78735         shouldn't be needed to compile on ancient ones.
78736         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78737         defined.
78738
78739         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78740         with the following changes.
78741         (__set_errno): Parenthesize properly.
78742         Include <stdbool.h>.
78743         (MIN, MAX, MATCHING_INO): New macros.
78744         (__getcwd): Define with prototype, not K&R form.
78745         Use heuristics to allocate default buffer on stack if possible.
78746         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78747         behavior, and to avoid the PATH_MAX limit when computing
78748         ../../../../...
78749         Use MATCHING_INO to compare inode number to file.
78750         Check for arithmetic overflow in size calculations.
78751         Fix bug in reallocation of dot array that caused getcwd to fail
78752         on directories nested deeper than 75.
78753         Be more careful about saving errno on error.
78754         Do not use realloc; use only free+malloc, as this is a bit
78755         more flexible and avoids a needless copy operation.
78756         Do not inspect st_dev and st_ino for symbolic links; POSIX
78757         doesn't specify the latter.
78758         Check for closedir errors.
78759         Avoid needless casts.
78760         Use "#ifdef weak_alias" around weak_alias, to be like other
78761         glibc code.
78762         The following changes to getcwd.c have effect only when used in
78763         gnulib; they have no effect inside glibc proper.
78764         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78765         as alloca isn't used.
78766         (alloca, __alloca): Likewise.
78767         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78768         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78769         unconditionally, as gnulib assumes C89 or better.
78770         Do not include <sys/param.h>.
78771         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78772         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78773         better.
78774         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78775         Include <dirent.h> in a way that is compatible with modern Autoconf.
78776         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78777         New macros, if not already defined.
78778         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78779         Use "_LIBC", not "defined _LIBC", for consistency.
78780         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78781         a mempcpy module.
78782         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78783         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78784         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78785         credit only to Jim Meyering and adjust the copyright dates.
78786         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78787         <stdlib.h>, <unistd.h>, "pathmax.h".
78788         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78789         (INITIAL_BUFFER_SIZE): Remove.
78790         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78791
78792 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78795         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78796         Use the _ONCE methods, for efficiency.
78797         Check for fcntl.h.  In test program, include <errno.h>
78798         and <fcntl.h> if available.  Remove old K&R cruft from
78799         test program.  Check for common errors in GNU/Linux,
78800         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78801         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78802         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78803         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78804         name accordingly.
78805         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78806         accommodate new getcwd.c.
78807         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78808         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78809         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78810         that's all we need now.
78811
78812 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78813
78814         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78815         argp-parse.c depends on getopt internals, that means we should
78816         always use our getopt, to be on the safe side.
78817         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78818         order not to spoil the result of an eventual previous invocation
78819         of gl_GETOPT_SUBSTITUTE.
78820
78821 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78822
78823         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78824         redefinition warnings. To avoid them, include the defines
78825         in `#if !defined __need_getopt ... #endif'. The only place
78826         where __getopt_argv_const is used is in definitions
78827         of getopt_long and getopt_long_only below, which are as well
78828         protected by `#ifndef __need_getopt'.
78829         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78830         __need_getopt after including <stdio.h> and <unistd.h> These
78831         headers might have defined it.
78832
78833 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78834
78835         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78836
78837 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78838
78839         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78840         (futimens): New function, which uses futimes if available.
78841         (futimens, utimens): Support timespec==NULL, with same semantics
78842         as utime and utimens.
78843         * lib/utimens.h (futimens): New decl.
78844
78845 2004-11-23  Jim Meyering  <jim@meyering.net>
78846
78847         * lib/getopt_.h: Remove trailing blanks.
78848
78849 2004-11-23  Jim Meyering  <jim@meyering.net>
78850
78851         * lib/__fpending.c: Add comment.
78852
78853 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * modules/canonicalize (Depends-on): Add xreadlink.
78856         Problem reported by James Youngman.
78857
78858 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78861         New macros.
78862         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78863         optopt): Use them instead of invoking ## directly; otherwise, the
78864         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78865
78866 2004-11-19  Bruno Haible  <bruno@clisp.org>
78867
78868         * lib/strtok_r.c: Move comments from here...
78869         * lib/strtok_r.h: ... to here.
78870
78871 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78874         implementations that mishandle size_t overflow.
78875
78876 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78877
78878         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78879         might fail.  Problem reported by Yoann Vandoorselaere.
78880         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78881         implementations that mishandle size_t overflow.
78882
78883 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * modules/canon-host (Depends-on): Add strdup.
78886
78887 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78890
78891 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * lib/canon-host.c: Include "strdup.h".
78894         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78895         Use strdup instead of malloc/strcpy to duplicate strings.
78896
78897         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78898         (human_space_before_unit): New constant.
78899         * lib/human.c (human_readable): Support it.
78900
78901         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78902         (xgetcwd): Set errno correctly when failing.
78903         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78904         the failure is actually due to a PATH_MAX problem.
78905
78906         Further getopt changes to make it more likely that glibc will
78907         buy the changes back.
78908         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78909         (getopt): Use it, so to preserve glibc semantic
78910         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78911         when compiling for libc.
78912         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78913         (getopt_long, getopt_long_only): Use it.
78914
78915         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78916         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78917         (getopt): Argv is now char * const *, as per standard.
78918         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78919         not char *__getopt_argv_const *.
78920         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78921         _getopt_long_only_r): Likewise.
78922         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78923         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78924         _getopt_long_r, _getopt_long_only_r): Likewise.
78925         * lib/getopt_.h (__getopt_argv_const): Remove.
78926         (getopt): Argv is now char * const *, as per standard.
78927
78928         * lib/getdate.y (tORDINAL): New token.
78929         (day, relunit): Allow it for relative times.
78930         (relative_time_table): Use tORDINAL for ordinals.
78931
78932 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78935         Document that "second" isn't allowed as an ordinal number.
78936
78937 2004-11-16  Jim Meyering  <jim@meyering.net>
78938
78939         * modules/closeout (Depends-on): Add fpending.
78940
78941 2004-11-15  Jim Meyering  <jim@meyering.net>
78942
78943         * lib/closeout.c: Include "__fpending.h" once again.
78944         Include <stdbool.h>.
78945         (close_stdout): Don't fail just because stdout was closed initially,
78946         since some programs don't write to stdout in the normal course of
78947         operation (other than --version and --help), and we don't want this
78948         function to make e.g. `touch file >&-' fail.
78949         But do fail if it was closed and someone has tried to write to it.
78950         E.g., `printf foo >&-' must fail.
78951
78952 2004-11-13  Jim Meyering  <jim@meyering.net>
78953
78954         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78955
78956 2004-11-12  Simon Josefsson  <jas@extundo.com>
78957
78958         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78959         small doc fix is still pending.
78960
78961 2004-11-11  Simon Josefsson  <jas@extundo.com>
78962
78963         * modules/strtok_r: New file.
78964
78965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78966         strtok_r.
78967
78968 2004-11-11  Simon Josefsson  <jas@extundo.com>
78969
78970         * m4/strtok_r.m4: New file.
78971
78972         * m4/getopt.m4: Replace opterr.
78973
78974 2004-11-11  Simon Josefsson  <jas@extundo.com>
78975
78976         * lib/strtok_r.h, strtok_r.c: New file.
78977
78978 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78981         of replacing opterr, getopt, etc.  This should handle the
78982         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78983
78984 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78987         we can stop lying to compilers about the constness of argv when we
78988         are compiled outside glibc.
78989         (getopt, getopt_long, getopt_long_only): Use it.
78990         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78991         _getopt_internal, getopt): Likewise.
78992         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78993         _getopt_long_only_r): Likewise.
78994         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78995         _getopt_long_r, _getopt_long_only_r): Likewise.
78996
78997         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78998         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78999         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79000         the other external symbols.
79001         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79002         declaration, since the above renaming now works around collisions.
79003
79004 2004-11-11  Jim Meyering  <jim@meyering.net>
79005
79006         * lib/linebreak.c: Remove trailing blanks.
79007         * lib/alloca_.h: Likewise.
79008         * lib/acosl.c: Likewise.
79009         * lib/euidaccess.c: Likewise.
79010         * lib/allocsa.h: Likewise.
79011
79012 2004-11-10  Simon Josefsson  <jas@extundo.com>
79013
79014         * m4/getaddrinfo.m4: New file.
79015
79016 2004-11-10  Simon Josefsson  <jas@extundo.com>
79017
79018         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79019
79020 2004-11-10  Simon Josefsson  <jas@extundo.com>
79021
79022         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79023         getaddrinfo.
79024
79025         * modules/getaddrinfo: New file.
79026
79027 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79028
79029         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79030
79031 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * lib/mktime.c (SHR): New macro, which is a portable
79034         substitute for >> that should work even on Crays.
79035         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79036         Problem reported by Mark D. Baushke in
79037         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79038         * lib/getdate.y (SHR): Likewise.
79039         (tm_diff): Use it.
79040         * lib/strftime.c (SHR): Likewise.
79041         (tm_diff): Use it.
79042         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79043         quote_these_too, so that right shifts are well defined.  All uses
79044         changed.
79045
79046 2004-11-10  Jim Meyering  <jim@meyering.net>
79047
79048         Ensure that no close failure goes unreported.
79049         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79050         return early when it seems there's nothing to flush.
79051         Don't include __fpending.h.
79052
79053 2004-11-10  Jim Meyering  <jim@meyering.net>
79054
79055         * modules/closeout (Depends-on): Remove fpending.
79056
79057 2004-11-10  Jim Meyering  <jim@meyering.net>
79058
79059         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79060
79061 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79064         gl_FUNC_STRFTIME.
79065         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79066         and AC_REQUIRE when possible, to avoid duplicate checks.
79067         Check for <wchar.h>.
79068
79069 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79070
79071         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79072
79073 2004-11-09  Bruno Haible  <bruno@clisp.org>
79074
79075         * m4/sockpfaf.m4: New file.
79076
79077 2004-11-05  Bruno Haible  <bruno@clisp.org>
79078
79079         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79080         Reported by Mark D. Baushke <mdb@cvshome.org>.
79081
79082 2004-11-04  Bruno Haible  <bruno@clisp.org>
79083
79084         2004-09-11  Bruno Haible  <bruno@clisp.org>
79085                 * allocsa.valgrind: New file.
79086         2004-02-06  Bruno Haible  <bruno@clisp.org>
79087                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79088                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79089                 Reported by Christopher Seip <chris.seip@hp.com>.
79090
79091 2004-11-04  Bruno Haible  <bruno@clisp.org>
79092
79093         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79094         (Makefile.am): Distribute it.
79095
79096 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79099         with errno == ERANGE if the buffer is too small.
79100         Problem reported by Mark D. Baushke.
79101
79102 2004-11-03  Albert Chin  <china@thewrittenword.com>
79103             Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79106         equivalent, substitute $ac_type for equivalent type rather than
79107         blindly using uint32_t *always* which won't work if uint32_t is not
79108         available.  Define _UINT32_T to work around typedef of uint32_t if
79109         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79110         2.5.1.
79111
79112 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         * m4/jm-macros.m4: Sync from coreutils.
79115         (gl_MACROS): Check for mbrlen, for pathchk.
79116         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79117
79118 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * lib/xreadlink.c (MAXSIZE): New macro.
79121         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79122         size does not exceed MAXSIZE.  Avoid cast.
79123         As suggested by Mark D. Baushke in
79124         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79125         if readlink fails with buffer size just under MAXSIZE, try again
79126         with MAXSIZE.
79127
79128 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79131
79132 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79133         and  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79136         (get_date): Overparenthesize to avoid GCC warning.
79137
79138 2004-11-02  Bruno Haible  <bruno@clisp.org>
79139
79140         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79141         returns void.
79142
79143 2004-11-02  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79146         function returns void.
79147
79148 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79149
79150         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79151         fflush_unlocked, flockfile, funlockfile, funlockfile,
79152         fputs_unlocked, putc_unlocked.
79153
79154 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79157         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79158         already declared.
79159
79160 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         * modules/getdate (Files): Add doc/getdate.texi.
79163         (Depends-on): Add setenv, xalloc.
79164
79165 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         * lib/getdate.y: Add support for TZ="foo" within a date string.
79168         Fix some bugs near time_t boundaries.  Reject dates with
79169         out-of-range components, e.g., "Sept 31".
79170         Include <stdlib.h>, "setenv.h", "xalloc.h".
79171         (ISDIGIT_LOCALE): Remove; unused.
79172         Note that the TZ and time functions used here are not reentrant.
79173         (mktime_ok, get_tz): New functions.
79174         (TZBUFSIZE): New constant.
79175         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79176         This requires that we sometimes generate our own TZ="XXX..." setting.
79177
79178 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         * doc/getdate.texi: New file, from coreutils with modifications for
79181         the new TZ parsing.
79182
79183 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79184
79185         * lib/mktime.c (not_equal_tm): Remove redundant check.
79186
79187 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * modules/regex (lib_SOURCES): Add regex.c.
79190         Reported by James Youngman in
79191         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79192
79193 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79194
79195         * lib/getdate.y: Use Bison 1.875 features, and some minor
79196         code cleanups.  This change does not affect semantics.
79197         Don't include <stdlib.h>; no longer needed.
79198         Don't include unlocked-io.h; only the "#if TEST" code uses
79199         stdio, and performance isn't crucial there.
79200         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79201         Bison 1.875 features as described below.
79202         All uses of "PC." replaced by "pc->".
79203         (YYSTYPE): Add a forward declaration.
79204         (yylex, yyerror): Use full prototypes in forward decls.
79205         Use "%pure-parser" rather than obsolescent "%pure_parser".
79206         Use %parse-param and %lex-param instead of obsolescent
79207         YYPARSE_PARAM and YYLEX_PARAM.
79208         (meridian_table, month_and_day_table, time_units_table,
79209         relative_time_table, time_zone_table, military_table,
79210         lookup_zone, lookup_word, get_date):
79211         Use NULL instead of 0 where appropriate.
79212         (to_hour): Avoid abort (), to avoid a dependency on
79213         stdlib.h.
79214         (yyerror, yylex): Now accepts parser_control * arg.
79215         (main) [TEST]: Use '\0' rather than 0 for char.
79216
79217 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79220
79221 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79224         It's now the caller's responsibility to handle the case where
79225         !HAVE_GETPAGESIZE && !defined getpagesize.
79226
79227         * lib/mktime.c (leapyear): Arg is long int, not int.
79228
79229 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79232
79233 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79236         missing.  Problem reported by James Youngman.
79237
79238 2004-10-16  Simon Josefsson  <jas@extundo.com>
79239
79240         * gnulib-tool: Fix comments.  Fix parse problem.
79241         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79242
79243 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79244
79245         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79246         implementation of getopt_long.  Problem reported by Alexander Taler in:
79247         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79248
79249 2004-10-15  Bruno Haible  <bruno@clisp.org>
79250
79251         * gnulib-tool: Untabify. Initialize supplied_libname.
79252         (func_usage): More homogenous output.
79253         (func_modules_transitive_closure, func_modules_to_filelist,
79254         func_emit_lib_Makefile_am): New functions.
79255         (func_import): New function, extracted from big case statement. Use
79256         func_get_license, func_modules_transitive_closure,
79257         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79258         opt_lgpl. Don't use test -a, as it's not portable.
79259         (func_create_testdir): Use func_modules_transitive_closure,
79260         func_modules_to_filelist, func_emit_lib_Makefile_am.
79261
79262 2004-10-15  Bruno Haible  <bruno@clisp.org>
79263
79264         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79265
79266 2004-10-15  Bruno Haible  <bruno@clisp.org>
79267
79268         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79269         the portions belonging to each module.
79270         Suggested by Derek Robert Price <derek@ximbiot.com>.
79271
79272 2004-10-12  Simon Josefsson  <jas@extundo.com>
79273
79274         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79275         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79276         to real functions.
79277
79278 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79279
79280         * modules/vsnprintf: New file.
79281
79282 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79283
79284         * m4/vsnprintf.m4: New file.
79285
79286 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79287
79288         * lib/vsnprintf.h: New file.
79289         * lib/vsnprintf.c: New file.
79290
79291 2004-10-11  Bruno Haible  <bruno@clisp.org>
79292
79293         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79294         vsnprintf.
79295
79296 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79299
79300 2004-10-07  Bruno Haible  <bruno@clisp.org>
79301
79302         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79303         fits into the provided buffer.
79304
79305 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * lib/diacrit.c, diacrit.h: Add GPL notice.
79308
79309         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79310         notice.
79311         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79312         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79313         This avoids a potential constant-folding bug.
79314
79315 2004-10-05  Bruno Haible  <bruno@clisp.org>
79316
79317         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79318         for the declaration of strsep.
79319
79320 2004-10-05  Bruno Haible  <bruno@clisp.org>
79321
79322         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79323
79324 2004-10-04  Simon Josefsson  <jas@extundo.com>
79325
79326         * modules/memmem: New file.
79327         * tests/test-memmem.c: New file.
79328         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79329
79330 2004-10-04  Simon Josefsson  <jas@extundo.com>
79331
79332         * m4/memmem.m4: New file.
79333
79334 2004-10-04  Simon Josefsson  <jas@extundo.com>
79335
79336         * lib/memmem.h: New file.
79337         * lib/memmem.c: New file, taken from glibc.
79338
79339 2004-10-04  Simon Josefsson  <jas@extundo.com>
79340
79341         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79342         '#ifdef USE_UNLOCKED_IO'.
79343
79344 2004-10-04  Simon Josefsson  <jas@extundo.com>
79345
79346         * config/srclist.txt: Add memmem from glibc.
79347
79348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79351
79352         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79353         modules/exclude, modules/getdate, modules/getline,
79354         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79355         modules/getusershell, modules/linebuffer, modules/md5,
79356         modules/mountlist, modules/posixtm, modules/readtokens,
79357         modules/readutmp, modules/regex, modules/sha1,
79358         modules/version-etc, modules/yesno:
79359         Remove dependency on unlocked-io.
79360
79361 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79364
79365         * m4/unlocked-io.m4: Add copyright notice.
79366         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79367
79368 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79371         * lib/xmalloc.c (xmemdup): Likewise.
79372         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79373         XFREE): Remove these long-obsolescent macros.
79374         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79375         * lib/xstrdup.c: Remove.
79376
79377         * lib/regex.c (re_comp): Cast gettext return value to char *,
79378         Problem reported by Martin Neitzel via Mark D. Baushke.
79379
79380 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79383         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79384         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79385         regex.c, sha1.c, version-etc.c, yesno.c:
79386         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79387         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79388         the includer's responsibility.
79389
79390         Sync from coreutils.
79391
79392         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79393         points to the start of a string, as the C Standard says the
79394         resulting behavior is undefined.
79395
79396         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79397         simple -> simple_backups, numbered_existing ->
79398         numbered_existing_backups, numbered -> numbered_backups
79399         to avoid shadowing problems.  All uses changed.
79400         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79401         * lib/backupfile.c (check_extension, numbered_backup):
79402         Rename locals to avoid shadowing 'basename'.
79403         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79404         once.
79405
79406         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79407         * lib/.cvsignore: Add getopt.h.
79408
79409 2004-10-04  Bruno Haible  <bruno@clisp.org>
79410
79411         * modules/README: New file.
79412         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79413         not a module.
79414
79415 2004-10-02  Jim Meyering  <jim@meyering.net>
79416
79417         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79418
79419 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79420
79421         * modules/strsep: New file.
79422
79423 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79424
79425         * m4/strsep.m4: New file.
79426
79427 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79428
79429         * lib/strsep.h: New file.
79430         * lib/strsep.c: New file.
79431
79432 2004-10-01  Simon Josefsson  <jas@extundo.com>
79433
79434         * lib/snprintf.c (snprintf): Handle size==0.
79435
79436 2004-10-01  Simon Josefsson  <jas@extundo.com>
79437             Bruno Haible  <bruno@clisp.org>
79438
79439         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79440         (snprintf): Declare 'args'.
79441
79442 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79443
79444         * lib/snprintf.c: Remove comments as to why each header is needed.
79445
79446 2004-10-01  Bruno Haible  <bruno@clisp.org>
79447
79448         * MODULES.html.sh: Add strsep.
79449
79450 2004-09-30  Simon Josefsson  <jas@extundo.com>
79451
79452         * modules/snprintf: New file.
79453
79454 2004-09-30  Simon Josefsson  <jas@extundo.com>
79455
79456         * m4/snprintf.m4: New file.
79457
79458 2004-09-30  Simon Josefsson  <jas@extundo.com>
79459
79460         * lib/snprintf.h, lib/snprintf.c: New files.
79461
79462 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79463
79464         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79465         (hol_entry_help): Never translate an empty string.
79466         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79467         * lib/argp.h (OPTION_NO_TRANS): New option.
79468
79469 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * modules/argp (Maintainer): Replace Simon Josefsson
79472         by Sergey Poznyakoff.
79473
79474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79477         changes merged back into glibc.
79478
79479 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79482
79483 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79484
79485         * lib/xvasprintf.c: Include xalloc.h.
79486         (xvasprintf): Use xalloc_die, not xmalloc_die.
79487
79488 2004-09-29  Bruno Haible  <bruno@clisp.org>
79489
79490         * modules/alloca-opt: New file, derived from modules/alloca.
79491         * modules/allocsa: Depend on alloca-opt instead of alloca.
79492         * modules/setenv: Likewise.
79493         * modules/vasnprintf: Likewise.
79494         * MODULES.html.sh: Add alloca-opt.
79495
79496 2004-09-28  Simon Josefsson  <jas@extundo.com>
79497
79498         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79499         LGPL, and to replace license template from GPL to LGPL.
79500
79501 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79502
79503         * modules/dummy: Change license to LGPL.
79504
79505 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79508
79509 2004-09-24  Simon Josefsson  <jas@extundo.com>
79510
79511         * modules/minmax (License): Change from GPL to LGPL.
79512
79513 2004-09-23  Simon Josefsson  <jas@extundo.com>
79514
79515         * gnulib-tool (--import): Typo.
79516
79517 2004-09-23  Simon Josefsson  <jas@extundo.com>
79518
79519         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79520
79521 2004-09-22  Bruno Haible  <bruno@clisp.org>
79522
79523         * modules/*: Add 'License' field.
79524         * gnulib-tool: Accept --extract-license option.
79525         (func_get_license): New function.
79526
79527 2004-09-21  Bruno Haible  <bruno@clisp.org>
79528
79529         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79530         Reported by Simon Josefsson.
79531
79532 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79535         gl_AC_TYPE_LONG_LONG.
79536
79537 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79540
79541 2004-09-18  Simon Josefsson  <jas@extundo.com>
79542         and  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79545         calls with autoreconf.  Define GL_LIB.
79546
79547 2004-09-14  Karl Berry  <karl@gnu.org>
79548
79549         * config/srclist.txt: unsync setenv.c, sigh.
79550
79551 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79554         Problem reported by Bruno Haible in:
79555         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79556
79557 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * config/srclist.txt: Comment out argp-pvh.c.
79560
79561 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79562
79563         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79564         in case some system header has #define'd it.  Problem reported by
79565         Soeren D. Schulze in
79566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79567
79568 2004-09-09  Karl Berry  <karl@gnu.org>
79569
79570         * regex.[ch]: delete from the root.  These were supposed to be
79571                 synced with emacs cvs, but this has not happened for about
79572                 a year, and anyway nothing else uses emacs regex.[ch].
79573                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79574                 lib/regex[.ch] is untouched.
79575
79576 2004-09-09  Bruno Haible  <bruno@clisp.org>
79577
79578         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79579
79580 2004-09-09  Bruno Haible  <bruno@clisp.org>
79581
79582         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79583         modifications.
79584         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79585
79586 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79587
79588         * modules/xvasprintf: New file.
79589         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79590
79591 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79592
79593         * lib/xvasprintf.h: New file.
79594         * lib/xvasprintf.c: New file.
79595         * lib/xasprintf.c: New file.
79596
79597 2004-09-08  Bruno Haible  <bruno@clisp.org>
79598
79599         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79600
79601 2004-09-08  Bruno Haible  <bruno@clisp.org>
79602
79603         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79604         length is > INT_MAX.
79605         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79606         more.
79607
79608 2004-09-08  Bruno Haible  <bruno@clisp.org>
79609
79610         * lib/stdint_.h: New file, taken from GNU clisp.
79611
79612 2004-09-08  Bruno Haible  <bruno@clisp.org>
79613             Oskar Liljeblad  <oskar@osk.mine.nu>
79614
79615         * modules/stdint: New file.
79616         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79617
79618 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         Import from coreutils.
79621         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79622         strings on unbounded length.  alloca's performance benefits aren't
79623         that important here.
79624         (V_STRDUP): Remove.
79625         (parse_with_separator): New function, with most of the internals
79626         of the old parse_user_spec.  Allow user to omit both user and group,
79627         for compatibility with FreeBSD.
79628         Clone only the user name, not the entire spec.
79629         Do not set *uid, *gid unless entirely successful.
79630         Avoid memory leak in some failing cases.
79631         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79632         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79633         (parse_user_spec): Rewrite to use parse_with_separator.
79634
79635 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * modules/userspec: Don't depend on alloca.
79638
79639 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79642
79643 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79646         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79647         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79648
79649 2004-08-16  Simon Josefsson  <jas@extundo.com>
79650
79651         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79652         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79653         Add --dry-run for --import.
79654         Let user provided command line parameters override configure.ac
79655         settings.
79656
79657 2004-08-12  Simon Josefsson  <jas@extundo.com>
79658
79659         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79660         as discussed with Paul Eggert in threads rooted at
79661         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79662         and
79663         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79664         Before, the test was empty, and relied on ELIDE_CODE in source
79665         code.)
79666         (gl_PREREQ_GETOPT): New macro.
79667         (gl_GETOPT): Use them.
79668
79669 2004-08-12  Simon Josefsson  <jas@extundo.com>
79670
79671         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79672         * lib/getopt_.h: Renamed from getopt.h.
79673
79674 2004-08-12  Simon Josefsson  <jas@extundo.com>
79675
79676         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79677         Change default library name from libfoo to libgnu.
79678         Now, if you have a configure.ac that says:
79679                 gl_SOURCE_BASE(gl)
79680                 gl_M4_BASE(gl/m4)
79681                 gl_MODULES(error getopt etcetera)
79682                 gl_INIT
79683         you can import all you need by running:
79684                 ../gnulib/gnulib-tool --import
79685
79686         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79687         (Makefile.am): Rewrite, use logic from argz.
79688         (Include): Use <getopt.h> instead of "getopt.h".
79689
79690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * modules/argp (Files): Add m4/unlocked-io.m4.
79693         (Depends-on): Add extensions.
79694
79695 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79698         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79699         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79700         Check for program_invocation_name, program_invocation_short_name,
79701         flockfile, funlockfile, features.h, _getopt_long_only_r.
79702
79703 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79706         its complicated substitute.
79707         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79708         and program_invocation_name.
79709         (__argp_basename) [!_LIBC]: Remove; the only use was
79710         replaced by its body.
79711         (__argp_short_program_name): Change condition from
79712         !defined __argp_short_program_name to
79713         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79714         to match argp-namefrob.h.
79715         (__argp_failure): Don't assume strerror_r returns char *.
79716         * lib/argp-parse.c (N_): Define unconditionally.
79717         (argp_default_options): Fill out initializers with 0 to avoid
79718         gcc warnings.
79719
79720 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79723         getopt1.c.
79724
79725 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         Merge from coreutils.
79728
79729         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79730
79731         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79732         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79733
79734 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79735
79736         Merge from coreutils.
79737
79738         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79739         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79740         for Reliant Unix 5.43.
79741
79742         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79743         (union fooround): Use uintmax_t, not long int.
79744         The rest is a merge from libc:
79745         [defined _LIBC]: Include <shlib-compat.h>.
79746         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79747
79748         * lib/settime.c (settime): Recode to avoid warning with
79749         Sun Forte C 6U2.
79750
79751         * lib/strverscmp.c: Convert to UTF-8.
79752
79753 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79756         m4/uintmax_t.m4.
79757
79758 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79759
79760         * modules/xalloc-die: New file.
79761         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79762
79763         * modules/md5 (Files): Add m4/uint32_t.m4.
79764         * modules/sha1: Renamed from modules/sha.
79765         (Files):
79766         Rename lib/sha.h to lib/sha1.h.
79767         Rename lib/sha.c to lib/sha1.c.
79768         Rename m4/sha.m4 to m4/sha1.m4.
79769         (lib_SOURCES): Likewise.
79770         (configure.ac): Rename gl_SHA to gl_SHA1.
79771         (Include): sha.h -> sha1.h.
79772
79773 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79776         * m4/sha1.m4: Renamed from sha.m4.
79777         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79778
79779 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * lib/obstack.h (obstack_empty_p):
79782         Don't assume that chunk->contents is suitably aligned.
79783         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79784         Likewise. Problem reported by Benno in
79785         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79786
79787         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79788         readable.  This could be improved further but it'd take some work.
79789
79790 2004-08-08  Simon Josefsson  <jas@extundo.com>
79791
79792         * modules/xgethostname (Depends-on): Remove exit and error (not
79793         used).
79794
79795         * modules/getpass-gnu: Add getpass.h.
79796         (Depends-on): Add stdbool.
79797         * modules/getpass: Add getpass.h.
79798
79799 2004-08-08  Simon Josefsson  <jas@extundo.com>
79800
79801         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79802         Check getpass declaration.
79803
79804 2004-08-08  Simon Josefsson  <jas@extundo.com>
79805
79806         * lib/xgethostname.c: Don't include error.h (not used).
79807
79808         * lib/getpass.h: Add.
79809         * lib/getpass.c: Include getpass.h first.
79810
79811 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * lib/xalloc-die.c: New file.
79814         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79815         All uses removed.
79816         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79817         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79818         xalloc-die.c.
79819         (_, N_, xalloc_die): Move to xalloc-die.c.
79820         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79821         so that we needn't mess with xalloc_msg_memory_exhausted.
79822
79823         * lib/sha1.h: Renamed from sha.h.
79824         (SHA1_H): Renamed from _SHA_H.
79825         (sha1_ctx): Renamed from sha_ctx.
79826         (sha1_init_ctx): Renamed from sha_init_ctx.
79827         (sha1_process_block): Renamed from sha_process_block.
79828         (sha1_process_bytes): Renamed from sha_process_bytes.
79829         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79830         (sha1_read_ctx): Renamed from sha_read_ctx.
79831         (sha1_stream): Renamed from sha_stream.
79832         (sha1_buffer): Renamed from sha_buffer.
79833         * lib/sha1.c: Likewise; renamed from sha.c.
79834         Do not include <sys/types.h>.
79835         Include <stddef.h> rather than <stdlib.h>.
79836
79837 2004-08-08  Bruno Haible  <bruno@clisp.org>
79838
79839         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79840         FILESYSTEM_PREFIX_LEN.
79841         * lib/progreloc.c: Likewise.
79842         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79843
79844 2004-08-06  Simon Josefsson  <jas@extundo.com>
79845
79846         * modules/progname (Depends-on): Don't depend on stdbool.
79847
79848 2004-08-06  Simon Josefsson  <jas@extundo.com>
79849
79850         * modules/getsubopt: New file.
79851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79852         getsubopt.
79853
79854 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         More merge from coreutils.
79857
79858         * m4/utimens.m4, m4/utimecmp.m4: New files.
79859         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79860         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79861         prereq.m4, sha.m4: Import changes from coreutils.
79862
79863 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         More merge from coreutils.
79866         * modules/raise, modules/readtokens0, modules/utimens:
79867         * modules/utimecmp, module/xnanosleep: New files.
79868         * modules/strftime: Add lib/strftime.h.
79869         Change include from <time.h> to "strftime.h".
79870         * modules/yesno: Add lib/yesno.h.
79871         * modules/backupfile: Remove lib/addext.c.
79872         * modules/euidaccess: Add stat-macros.h.
79873         * modules/canonicalize, modules/euidaccess,
79874         modules/filemode, modules/lchown, modules/makepath,
79875         modules/rmdir, modules/stat: Likewise.
79876
79877 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         Merge from tar.
79880         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79881         SIZE_MAX is a valid preprocessor constant.
79882         (__argp_basename): Change from "#ifndef _LIBC"
79883         to "#ifndef __argp_short_program_name", so that
79884         we don't compile these functions for tar.
79885
79886         More merges from coreutils.
79887         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79888         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79889         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79890         * lib/addext.c: Remove; no longer needed.
79891         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79892         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79893         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79894         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79895         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79896         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79897         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79898         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79899         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79900         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79901         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79902         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79903         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79904         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79905         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79906         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79907         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79908         Import changes from coreutils.
79909
79910 2004-08-05  Simon Josefsson  <jas@extundo.com>
79911
79912         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79913
79914 2004-08-05  Simon Josefsson  <jas@extundo.com>
79915
79916         * m4/getsubopt.m4: New file.
79917
79918 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79919
79920         Merge from coreutils.
79921
79922         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79923         * m4/getcwd-path-max.m4: New files.
79924
79925         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79926         FILESYSTEM_PREFIX_LEN ->
79927         FILE_SYSTEM_PREFIX_LEN.
79928         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79929         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79930         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79931         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79932
79933         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79934         prerequisite modules now handle the DOS stuff.
79935         Don't check for unistd.h.
79936
79937 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         Merge from coreutils.
79940
79941         * lib/.gdb-history: Remove; this doesn't belong here.
79942
79943         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79944         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79945         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79946         * lib/getcwd.c: New files.
79947
79948         * lib/dirname.h: Include <stdbool.h>.
79949         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79950         for consistency with POSIX terminology.  All uses changed.
79951         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79952         (strip_trailing_slashes): Use bool for booleans.
79953         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79954
79955         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79956         sometimes returns a positive errno value even when it succeeds.
79957         (print_errno_message) [!LIBC]: Fall back on strerror if
79958         __strerror_r fails.
79959
79960         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79961         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79962         (longest_relative_suffix): New function.
79963         (path_concat): Use it.  Assume first argument is not NULL.
79964         Port to DOS.  Omit redundant separators.
79965         Report an error instead of returning NULL.
79966         Use mempcpy instead of memcpy.
79967         (xpath_concat): Remove: not declared or used.
79968
79969         * lib/same.h: Include <stdbool.h>
79970         (same_name): Return bool, not int.
79971         * lib/same.c (same_name): Likewise.
79972         (errno): Don't declare; we assume C89 or better now.
79973
79974         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79975         if not already defined.
79976
79977         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79978         * lib/dup-safer.c (errno): Likewise.
79979
79980 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         Merge from coreutils.
79983         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79984         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79985         * modules/path-concat: Don't depend on strdup.
79986
79987 2004-08-03  Simon Josefsson  <jas@extundo.com>
79988
79989         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79990         * lib/progname.h: Don't include stdbool.h.
79991
79992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79995         * MODULES.html.sh (func_all_modules): Remove fatal.
79996
79997 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79998
79999         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80000
80001 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80004         working.
80005
80006 2004-08-02  Simon Josefsson  <jas@extundo.com>
80007
80008         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80009         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80010         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80011
80012 2004-08-01  Simon Josefsson  <jas@extundo.com>
80013
80014         * lib/xgetdomainname.c: Include stdlib.h, for free().
80015
80016 2004-07-19  Bruno Haible  <bruno@clisp.org>
80017
80018         * MODULES.html.sh (func_all_modules): Add dummy.
80019
80020 2004-07-16  Simon Josefsson  <jas@extundo.com>
80021
80022         * modules/dummy: New file.
80023
80024 2004-07-16  Simon Josefsson  <jas@extundo.com>
80025
80026         * lib/dummy.c: New file.
80027
80028 2004-07-16  Bruno Haible  <bruno@clisp.org>
80029
80030         * lib/backupfile.h: Add extern "C" for C++.
80031         * lib/closeout.h: Likewise.
80032         * lib/copy-file.h: Likewise.
80033         * lib/findprog.h: Likewise.
80034         * lib/full-write.h: Likewise.
80035         * lib/pathname.h: Likewise.
80036         * lib/progname.h: Likewise.
80037         * lib/stpcpy.h: Likewise.
80038         * lib/stpncpy.h: Likewise.
80039         * lib/strcase.h: Likewise.
80040         * lib/strstr.h: Likewise.
80041         * lib/xalloc.h: Likewise.
80042
80043         * lib/mbswidth.h: Add extern "C" for C++.
80044         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80045
80046 2004-07-13  Robert Millan  <robertmh@gnu.org>
80047
80048         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80049
80050 2004-07-09  Simon Josefsson  <jas@extundo.com>
80051
80052         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80053         failed without this.)
80054
80055 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * modules/chown (Files): Add lib/fchown-stub.c, since
80058         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80059
80060 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         * lib/fchown-stub.c: New file.
80063
80064 2004-06-24  Jim Meyering  <jim@meyering.net>
80065
80066         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80067
80068 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * modules/argz: Omit "#include".
80071
80072         * MODULES.html.sh (func_all_modules): Add calloc, to match
80073         2004-06-01 addition of calloc module.
80074
80075 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * m4/argz.m4: New file, which is autoupdated from libtool.
80078
80079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80082         libtool.
80083
80084 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         * config/srclist-update: Don't insist on "USA." before the
80087         close-comment, as libtool omits the period and puts the */ on a
80088         separate line.
80089         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80090         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80091
80092 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80093
80094         * modules/argz: New file.
80095         * MODULES.html.sh (func_all_modules): Add argz.
80096
80097 2004-06-12  Jim Meyering  <jim@meyering.net>
80098         and  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * modules/hash (Files): Add lib/xalloc.h.
80101         * modules/pipe (Depends-on): Add wait-process.
80102         * modules/stat (Depends-on): Add xalloc.
80103         * modules/userspec (Files): Add lib/userspec.h.
80104         * modules/xstrto
80105
80106         Upgrade from gettext-0.13.
80107         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80108         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80109         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80110
80111 2004-06-10  Jim Meyering  <jim@meyering.net>
80112
80113         * lib/calloc.c: New file.
80114
80115 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * lib/getdate.y (yylex): Allow space between sign and number.
80118         Problem reported by Dan Jacobson.
80119
80120 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80121
80122         Merge from coreutils CVS.
80123
80124         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80125         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80126         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80127         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80128         xstrtol.m4: Fix copyright date and/or serial number.
80129
80130         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80131         See if we need an fchown replacement.
80132         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80133         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80134         and use the replacement function if we detect either defect.
80135
80136         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80137         gl_UTIMECMP.
80138
80139 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80140         and  Jim Meyering  <jim@meyering.net>
80141
80142         Merge from coreutils CVS.
80143
80144         * lib/stat-macros.h: New file, with contents from file-type.h
80145         and coreutils' system.h.
80146         * lib/file-type.c: Include "stat-macros.h".
80147         * lib/file-type.h (file_type): Move all macro definitions to new file,
80148         stat-macros.h.
80149
80150         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80151         Wrap old code with this conditional.
80152         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80153         function that does not dereference symlinks.
80154         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80155
80156         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80157         dependency problems.
80158         (xreadlink): Accept new arg SIZE, for efficiency.
80159         All decls and uses changed.
80160         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80161
80162         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80163         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80164
80165         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80166         sysexits.h.
80167
80168 2004-06-01  Jim Meyering  <jim@meyering.net>
80169
80170         * m4/calloc.m4: New file.
80171
80172 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80175         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80176         Also, fix a typo in a diagnostic.
80177
80178 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80181         or AC_FUNC_REALLOC.
80182
80183 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80186         macros to be defined.
80187         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80188         the allocator returns NULL because the requested size is zero.
80189
80190 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80193         var.  Add comment explaining why libc still defines it.  This
80194         merges the following patch from glibc:
80195         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80196
80197 2004-05-20  Andreas Schwab  <schwab@suse.de>
80198
80199         * m4/free.m4: Replace free if it not known to work, not the other
80200         way round.
80201
80202 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80205         present in glibc since revision 1.1 of this file.
80206         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80207         obstack_alignment_mask, obstack_alloc, obstack_base,
80208         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80209         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80210         obstack_grow0, obstack_init, obstack_int_grow,
80211         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80212         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80213         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80214         nonexistent functions.
80215
80216 2004-05-18  Karl Berry  <karl@gnu.org>
80217
80218         * config/srclist.txt: break link for vasnprintf.c.
80219
80220 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         Port obstack to the AS/400, where pointers are 16 bytes wide and
80223         you cannot cast an integer to a valid pointer.  This patch is
80224         currently waiting to be integrated into glibc; see
80225         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80226
80227         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80228         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80229         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80230         (struct obstack): temp member is now a union of a pointer and
80231         an integer, instead of an integer.  All integer uses changed.
80232         This does not affect the physical layout of struct obstack,
80233         except on hosts (like the AS/400) where the size or alignment of
80234         void * is greater than that of ptrdiff_t.
80235         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80236         __STDC__)]: Store temporary in pointer member of union, not
80237         integer member.
80238         * lib/obstack.c: Include <stddef.h>, for offsetof.
80239         (struct fooalign): Remove; it doesn't need a name.
80240         (union fooround): Change double to long double, and add void *.
80241         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80242         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80243         not a macro.  Hence the values are always int; so remove all
80244         casts-to-int in uses.
80245
80246 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80249         we can get this patch merged into glibc.
80250
80251 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80252             Paul Eggert  <eggert@cs.ucla.edu>
80253
80254         * m4/argp: Depend on alloca.
80255
80256 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80257             Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80260         freecoding.
80261
80262 2004-05-17  Bruno Haible  <bruno@clisp.org>
80263
80264         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80265         precision that consists of a '.' followed by an empty digit string.
80266         Patch by Tor Lillqvist <tml@iki.fi>.
80267
80268 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80269
80270         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80271         for backward compatibility with older code.  We need our own
80272         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80273         it under some other name, and our alloca.h will define it.
80274
80275 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80276             Derek Price  <derek@ximbiot.com>
80277
80278         * lib/alloca.c: Include <alloca.h>, to get our interface.
80279         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80280         include <alloca.h> first.  Use C89 prototype for alloca; this
80281         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80282         Use #elif for simplicity, since we can assume C89 now.
80283         Don't try to source the system alloca.h since it will not be found
80284         and to prevent recursively including its replacement.
80285         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80286         * lib/regex.c: Likewise.
80287
80288 2004-05-16  Derek Price  <derek@ximbiot.com>
80289             Paul Eggert  <eggert@cs.ucla.edu>
80290
80291         getline cleanup.  This changes the getndelim2 API: both order of
80292         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80293         no delimiter).
80294
80295         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80296         interface does that.
80297         (getline): Always use getdelim, so that we don't have two
80298         copies of this code.
80299         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80300         if available.
80301         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80302         (GETNDELIM2_MAXIMUM): New macro.
80303         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80304         instead of the old practice of delim2==0.  All callers changed.
80305         Return -1 on overflow, instead of returning junk.
80306         Do not set *linesize unless allocation succeeds.
80307         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80308         that we include sys/types.h.
80309         * lib/getnline.h: Likewise.
80310         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80311         (getndelim2): Reorder arguments.
80312         * lib/getnline.c (getnline, getndelim):
80313         Don't discard the NMAX argument.
80314         (getnline): Invoke getndelim, to avoid code duplication.
80315         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80316         of (size_t) -1 by callers of the getnline family.
80317
80318 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80321         Check for gettimeofday.
80322         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80323         Check for settimeofday, stime.
80324
80325 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * lib/nanosleep.c (suspended): Change its type from int to
80328         sig_atomic_t volatile.
80329         (first_call): Make it private to rpl_nanosleep, and have it
80330         be zero initially as that's a bit faster.
80331         (my_usleep): Round up fractional times instead of truncating them,
80332         as this is the usual meaning for 'sleep'.
80333
80334         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80335         doesn't work.
80336         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80337         (ENOSYS): Define if not defined.
80338         (settime): Fall back on stime if it exists and settimeofday fails.
80339         But don't bother with fallbacks if a method fails with errno == EPERM.
80340
80341 2004-05-11  Jim Meyering  <jim@meyering.net>
80342
80343         Prior to this change, the save_cwd caller required read access to the
80344         current directory on most systems (ones with the fchdir function).
80345
80346         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80347         fails, try write-only, and finally, resort to using xgetcwd.
80348
80349 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80350
80351         * lib/obstack.c, obstack.h: Import changes from libc.
80352
80353 2004-04-28  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80356         also implicitly appends .exe to executables.
80357         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80358         accepts Windows pathnames.
80359         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80360         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80361         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80362         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80363         Reported by Derek Robert Price <derek@ximbiot.com>.
80364
80365 2004-04-21  Karl Berry  <karl@gnu.org>
80366
80367         * config/srclist.txt (localcharset.c): break sync.
80368
80369 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80370
80371         * m4/host-os.m4: Add a copyright notice.
80372
80373 2004-04-20  Jim Meyering  <jim@meyering.net>
80374
80375         Change UTILS_ to gl_ in AC_DEFINE'd names.
80376         Change utils_- and jm_-prefixed variables, too.
80377         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80378         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80380
80381         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80382         Don't emit trailing blanks.
80383         Also rename jm_-prefixed variables to have gl_ prefix.
80384
80385         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80386         Also rename jm_-prefixed variables to have gl_ prefix.
80387
80388         * m4/jm-macros.m4: Reflect the renamings.
80389         * m4/prereq.m4: Likewise.
80390
80391 2004-04-20  Jim Meyering  <jim@meyering.net>
80392
80393         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80394         memory.
80395
80396 2004-04-20  Jim Meyering  <jim@meyering.net>
80397             Bruno Haible  <bruno@clisp.org>
80398
80399         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80400         memory when realloc fails.
80401
80402 2004-04-19  Jim Meyering  <jim@meyering.net>
80403
80404         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80405         now that readutmp.c may call `free (0)'.
80406
80407 2004-04-19  Bruno Haible  <bruno@clisp.org>
80408
80409         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80410         * m4/inttypes_h.m4: Likewise.
80411         * m4/stdint_h.m4: Likewise.
80412         * m4/intmax_t.m4: Likewise.
80413         * m4/uintmax_t.m4: Likewise.
80414
80415 2004-04-18  Jim Meyering  <jim@meyering.net>
80416
80417         * m4/prereq.m4: Don't forbid jm_ prefix.
80418
80419         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80420         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80421         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80422         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80423         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80424         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80425         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80426         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80427         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80428         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80429         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80430         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80431         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80432         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80433         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80434         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80435         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80436         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80437         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80438
80439 2004-04-18  Jim Meyering  <jim@meyering.net>
80440
80441         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80442         failure, don't leak memory and do call END_UTMP_ENT.
80443
80444 2004-04-16  Jim Meyering  <jim@meyering.net>
80445
80446         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80447         coreutils' stat program.
80448         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80449
80450 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80451
80452         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80453         C89.
80454         (CHAR_BIT): Remove, since we assume C89.
80455         Include <stdint.h> if available, as per current Autoconf CVS advice.
80456
80457 2004-03-31  Jim Meyering  <jim@meyering.net>
80458
80459         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80460         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80461         * m4/xalloc.m4: Likewise.
80462
80463 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80464
80465         Merge from coreutils.
80466
80467         * m4/inttostr.m4: New file.
80468         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80469         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80470         Require gl_CLOCK_TIME.
80471         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80472
80473 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80474
80475         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80476         not bool, to be more consistent with Unix conventions.
80477         Suggested by Bruno Haible.
80478
80479         Merge from coreutils.
80480
80481         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80482         * lib/umaxtostr.c: New files.
80483
80484         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80485         the usual <time.h> dance.
80486         (get_date): Change signature to support fractional time stamps.
80487         All callers changed.
80488         * lib/getdate.y: Include "getdate.h" first, as we can now
80489         assume C89 and don't need to worry about 'const'.
80490         Similarly, include "unlocked-io.h" near start, not in middle.
80491         Include <limits.h>.
80492         (textint.value): Use long int rather than int.
80493         (textint.digits): Use size_t rather than int.
80494         (BILLION, LOG10_BILLION): New constants.
80495         (parser_control): New member rel_ns.  Members day_ordinal,
80496         time_zone, month, day, hour, minutes, rel_year, rel_month,
80497         rel_day, rel_hour, rel_minutes, rel_seconds
80498         are now long int, not int.  Member seconds is now struct timespec,
80499         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80500         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80501         not int.
80502         (%union.intval): Now long int, not int.
80503         New member timespec.
80504         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80505         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80506         (spec): Now is a timespec or an item list.
80507         (timespec, items): New nonterminals.
80508         (time, rel, relunit, number, get_date):
80509         Add support for fractional seconds.
80510         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80511         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80512         (to_hour): First arg is now long int, not int.
80513         (to_year): Returns long int, not int.
80514         Don't treat year -70 like 70.
80515         (tm_diff): Returns long int, not int.
80516         (lookup_word): Use bool instead of int when appropriate.
80517         (yylex): Use size_t for count, not int.
80518         Detect overflow when parsing large integer constants.
80519         Add support for fractions.
80520         (get_date): Make pointers 'const' if possible.
80521         Use more-portable code to detect integer overflow.
80522         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80523         Don't use ctime; it's not reliable if the year has >4 digits.
80524
80525         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80526         This is for compatibility with BSD.
80527
80528         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80529         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80530         From coreutils' system.h.
80531
80532         * lib/userspec.c: Don't include "posixver.h".
80533         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80534         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80535         compatible extension.  Simplify code by removing a boolean int
80536         that was always nonzero if a string was nonnull.
80537
80538 2004-03-30  Jim Meyering  <jim@meyering.net>
80539
80540         Merge from coreutils.
80541
80542         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80543         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80544         on some systems one must include <grp.h> before it.
80545         Reported by Christian Krackowizer.
80546
80547 2004-03-30  Jim Meyering  <jim@meyering.net>
80548
80549         Merge from coreutils.
80550
80551         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80552
80553         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80554         an empty input stream.
80555
80556         * lib/readtokens.c: Include <stdbool.h>.
80557         (readtoken): Use `size_t' rather than int/long.
80558         All callers adjusted.
80559         Use `bool' rather than `int' where appropriate.
80560         Use memset rather than an explicit loop.
80561         Use x2nrealloc rather than xrealloc.
80562         Allow the use of `\0' as a delimiter.
80563         (readtokens): Likewise.
80564         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80565
80566 2004-03-30  Jim Meyering  <jim@meyering.net>
80567
80568         * m4/realloc.m4: Remove file, since now it does no more than
80569         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80570         the `configure.ac' section of module/realloc.
80571         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80572
80573 2004-03-30  Bruno Haible  <bruno@clisp.org>
80574
80575         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80576         nonnull.
80577
80578 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80579
80580         Merge changes to getloadavg.c from coreutils and Emacs.
80581
80582         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80583         Define to an expression, not to the empty string.
80584         Include cloexec.h and xalloc.h.
80585         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80586         Use set_cloexec_flag rather than rolling our own.
80587         * lib/cloexec.c, lib/cloexec.h: New files.
80588
80589 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80590
80591         * m4/cloexec.m4: New file.
80592
80593 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80594
80595         * lib/getopt.h: Sync with libc CVS.
80596
80597 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80598             Bruno Haible  <bruno@clisp.org>
80599
80600         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80601         mbswidth.
80602
80603 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80604             Bruno Haible  <bruno@clisp.org>
80605
80606         * lib/mbswidth.h: Include <wchar.h> only if
80607         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80608         <wchar.h>.
80609         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80610
80611 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80612
80613         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80614         Sync with libc CVS.
80615         * lib/getopt_int.h: New file, also synced from libc.
80616
80617 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80618
80619         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80620         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80621         Bring back getopt.c, getopt.h, getopt1.c.
80622
80623 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80624
80625         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80626         All uses changed.  Check for sa_sigaction member; this fixes
80627         a bug first reported by Jason Andrade in
80628         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80629
80630 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80631
80632         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80633         '#if' expressions.  Unlike the code it replaces, it does not
80634         depend on (defined _SC_PAGESIZE).  However, it does depend on
80635         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80636         first reported by Jason Andrade in
80637         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80638
80639 2004-02-25  Simon Josefsson  <jas@extundo.com>
80640
80641         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80642
80643 2004-02-25  Simon Josefsson  <jas@extundo.com>
80644
80645         * lib/strdup.h: New file.
80646         * lib/strdup.c: Include it.
80647         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80648         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80649
80650 2004-02-23  Karl Berry  <karl@gnu.org>
80651
80652         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80653         (from fencepost.gnu.org:/gd/gnuorg).
80654
80655 2004-02-23  Karl Berry  <karl@gnu.org>
80656
80657         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80658         * config/srclist.txt: add maintain/standards documents.
80659
80660 2004-02-18  Bruno Haible  <bruno@clisp.org>
80661
80662         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80663         Reported by Derek Robert Price <derek@ximbiot.com>.
80664
80665 2004-02-16  Karl Berry  <karl@gnu.org>
80666
80667         * config/mkinstalldirs, install-sh: update from automake.
80668
80669 2004-02-06  Karl Berry  <karl@gnu.org>
80670
80671         * m4/po.m4: update from gettext 0.14.1.
80672
80673 2004-02-06  Karl Berry  <karl@gnu.org>
80674
80675         * lib/config.charset: update from gettext 0.14.1.
80676
80677 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80678
80679         Add comments and code, prompted by suggestions from Bruno Haible
80680         for sh-quote.
80681         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80682         describing the enum quoting_style values.
80683         * lib/quotearg.c (quotearg_alloc): New function.
80684         (quotearg_buffer_restyled): Treat lone { and } as special.
80685         Treat = as special.  Work around bug with older shells
80686         that "see" a '\' that is really the 2nd byte of a multibyte char.
80687         Quote empty string with shell_quoting_style.
80688
80689 2004-02-03  Bruno Haible  <bruno@clisp.org>
80690
80691         * m4/pipe.m4: New file, from GNU gettext.
80692
80693 2004-02-03  Bruno Haible  <bruno@clisp.org>
80694
80695         * lib/pipe.h: New file, from GNU gettext.
80696         * lib/pipe.c: New file, from GNU gettext.
80697
80698 2004-01-27  Bruno Haible  <bruno@clisp.org>
80699
80700         * m4/execute.m4: New file, from GNU gettext.
80701
80702 2004-01-27  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/execute.h: New file, from GNU gettext.
80705         * lib/execute.c: New file, from GNU gettext.
80706         * lib/w32spawn.h: New file, from GNU gettext.
80707
80708 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80709
80710         Merge from diffutils.
80711
80712         * lib/file-type.c (file_type): Add typed memory objects.
80713         * lib/file-type.h (S_TYPEISTMO): New macro.
80714
80715         * lib/c-stack.h (c_stack_action): Remove argv argument.
80716         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80717         (die): Don't calculate message unless segv_action returns.
80718         (get_stack_location, min_address_from_argv, max_address_from_argv,
80719         volatile stack_base, volatile_stack_size): Remove.
80720         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80721         that every segmentation violation is a stack overflow.  (Ouch!)
80722         See Debian bug 136249 (still outstanding) for more info about why
80723         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80724
80725 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80726
80727         Exit-status fix from coreutils.
80728
80729         Use exit_failure consistently in place of EXIT_FAILURE,
80730         so that program exit statuses are consistent on failure.
80731
80732         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80733         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80734         * lib/argmatch.h: Comment fix to match the above.
80735         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80736         Now a macro referring to exit_failure, instead of a separate
80737         variable.  Include "exitfail.h" to get it.
80738         * lib/xstrtol.h: Include "exitfail.h".
80739         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80740
80741         * lib/long-options.c (parse_long_options): Use prototype
80742         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80743         for clarity.
80744
80745 2004-01-21  Jim Meyering  <jim@meyering.net>
80746
80747         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80748         so as not to conflict with a different-sized __mktime_internal
80749         function in GNU libc.
80750         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80751         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80752
80753 2004-01-20  Karl Berry  <karl@gnu.org>
80754
80755         * config/config.guess: update from config.
80756
80757         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80758
80759 2004-01-20  Bruno Haible  <bruno@clisp.org>
80760
80761         Safer stack allocation.
80762         * lib/setenv.c: Include allocsa.h.
80763         (alloca): Remove fallback definition.
80764         (freea): Remove macro.
80765         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80766         instead of freea.
80767
80768 2004-01-20  Bruno Haible  <bruno@clisp.org>
80769
80770         * m4/eealloc.m4: New file, from GNU gettext.
80771
80772 2004-01-20  Bruno Haible  <bruno@clisp.org>
80773
80774         * m4/allocsa.m4: New file, from GNU gettext.
80775
80776 2004-01-20  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/xallocsa.h: New file, from GNU gettext.
80779         * lib/xallocsa.c: New file, from GNU gettext.
80780
80781 2004-01-20  Bruno Haible  <bruno@clisp.org>
80782
80783         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80784
80785 2004-01-20  Bruno Haible  <bruno@clisp.org>
80786
80787         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80788         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80789         specially.
80790
80791 2004-01-20  Bruno Haible  <bruno@clisp.org>
80792
80793         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80794         patch.
80795
80796 2004-01-20  Bruno Haible  <bruno@clisp.org>
80797
80798         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80799
80800 2004-01-20  Bruno Haible  <bruno@clisp.org>
80801
80802         * lib/eealloc.h: New file.
80803
80804 2004-01-20  Bruno Haible  <bruno@clisp.org>
80805
80806         * lib/binary-io.h: Avoid warnings on Cygwin.
80807
80808 2004-01-20  Bruno Haible  <bruno@clisp.org>
80809
80810         * lib/allocsa.h: New file, from GNU gettext.
80811         * lib/allocsa.c: New file, from GNU gettext.
80812
80813 2004-01-18  Karl Berry  <karl@gnu.org>
80814
80815         * doc/gpl.texi, doc/lgpl.texi: new files.
80816
80817 2004-01-18  Karl Berry  <karl@gnu.org>
80818
80819         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80820         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80821
80822 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80823
80824         Merge from coreutils.
80825
80826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80827         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80828         (gl_DEFAULT_POSIX2_VERSION): Move
80829         the documentation from 'configure' into 'config.hin',
80830         so that 'configure --help' isn't burdened by it and
80831         we don't have to worry about its formatting there.
80832         Reword the documentation so that it's more succinct
80833         and can be run together into a single paragraph.
80834         * m4/same.m4 (gl_SAME): Check for pathconf.
80835
80836 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80837
80838         Merge from coreutils.
80839
80840         * lib/posixver.c: Include posixver.h.
80841
80842         * lib/same.c: Include <stdbool.h>, <limits.h>.
80843         (_POSIX_NAME_MAX): Define if not defined.
80844         (MIN): New macro.
80845         (same_name): If file names are silently truncated, report
80846         that the file names are the same if they are the same after
80847         the silent truncation.
80848
80849         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80850         conversion function.
80851         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80852         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80853         longer needed.
80854
80855 2004-01-15  Jim Meyering  <jim@meyering.net>
80856
80857         Merge from coreutils.
80858
80859         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80860         if no library is required.
80861         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80862         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80863         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80864         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80865         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80866         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80867         value, $ac_cv_search_crypt, if it's "none required".
80868         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80869         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80870         not gl_FUNC_GETLOADAVG.
80871         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80872         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80873
80874 2004-01-15  Jim Meyering  <jim@meyering.net>
80875
80876         Merge from coreutils.
80877
80878         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80879         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80880         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80881
80882         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80883         optional configure-time default.
80884
80885         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80886
80887         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80888
80889 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80890
80891         Merge from coreutils.
80892
80893         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80894         value, $ac_cv_search_nanosleep, if it's "none required".
80895
80896 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80897
80898         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80899         with like-named macro in fnmatch.c.
80900         (EXT): Use an internal constant instead.
80901
80902         Merge fnmatch patches from glibc.
80903         * lib/fnmatch.c (mbsinit): Remove define.
80904         Add libc_hidden_ver (__fnmatch, fnmatch).
80905         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80906         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80907
80908 2004-01-14  Karl Berry  <karl@gnu.org>
80909
80910         * config/install-sh: update from automake.
80911
80912 2004-01-13  Karl Berry  <karl@gnu.org>
80913
80914         * config/install-sh: update from automake.
80915
80916 2004-01-09  Karl Berry  <karl@gnu.org>
80917
80918         * config/install-sh: update from automake.
80919
80920 2004-01-05  Karl Berry  <karl@gnu.org>
80921
80922         * config/config.{sub,guess}: update from config.
80923
80924 2003-12-31  Karl Berry  <karl@gnu.org>
80925
80926         * config/depcomp: update from automake.
80927
80928 2003-12-14  Karl Berry  <karl@gnu.org>
80929
80930         * lib/config.charset: update from gettext-runtime.
80931
80932 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80933
80934         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80935         Bug reported by Alfred M. Szmidt.
80936
80937 2003-12-03  Bruno Haible  <bruno@clisp.org>
80938
80939         * m4/gettext.m4: Upgrade from gettext-0.13.
80940         * m4/po.m4: Upgrade from gettext-0.13.
80941         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80942         * m4/intmax.m4: New file, from gettext-0.13.
80943         * m4/printf-posix.m4: New file, from gettext-0.13.
80944
80945 2003-11-29  Karl Berry  <karl@gnu.org>
80946
80947         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80948
80949 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80950             Bruno Haible  <bruno@clisp.org>
80951
80952         * lib/printf-parse.h: Don't include sys/types.h.
80953         (ARG_NONE): New macro.
80954         (char_directive): Change type of *arg_index fields to size_t.
80955         * lib/printf-parse.c: Don't include sys/types.h.
80956         (SSIZE_MAX): Remove macro.
80957         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80958         Remove unnecessary overflow check.
80959         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80960         fields.
80961
80962 2003-11-25  Bruno Haible  <bruno@clisp.org>
80963
80964         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80965
80966 2003-11-25  Bruno Haible  <bruno@clisp.org>
80967
80968         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80969         gt_TYPE_SSIZE_T.
80970
80971 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80972
80973         * modules/alloca: Remove dependency on xalloc.
80974
80975 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80976
80977         * lib/alloca.c: Remove dependency on xalloc module.
80978         (xalloc_die): Remove.
80979         (memory_full) [!defined emacs]: New macro.
80980         [!defined emacs]: Don't include xalloc.h.
80981         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80982         address arithmetic overflows.  Change datatypes a bit to avoid
80983         unnecessary casts.
80984
80985 2003-11-22  Jim Meyering  <jim@meyering.net>
80986
80987         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80988         s/size/size_t/.
80989
80990 2003-11-21  Karl Berry  <karl@gnu.org>
80991
80992         * config/config.{sub,guess}: update from config.
80993
80994 2003-11-18  Karl Berry  <karl@gnu.org>
80995
80996         * config/config.{sub,guess}: update from config.
80997
80998         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80999
81000 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81001
81002         * README: Mention that S+T cannot overflow if S is the size of
81003         an existing object and T is sufficiently small.
81004
81005 2003-11-17  Jim Meyering  <jim@meyering.net>
81006
81007         On systems without utime and without a utimes function capable of
81008         dealing with a NULL struct utimbuf* argument, this utime replacement
81009         could -- in unusual circumstances -- leak a file descriptor.
81010         * lib/utime.c: Include <unistd.h> and <errno.h>.
81011         (utime_null): Be sure to close `fd' and to preserve errno.
81012         Reported by Geoff Collyer via Arnold Robbins.
81013
81014 2003-11-17  Bruno Haible  <bruno@clisp.org>
81015
81016         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81017         (Depends-on): Add xsize.
81018
81019 2003-11-17  Bruno Haible  <bruno@clisp.org>
81020
81021         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81022
81023 2003-11-17  Bruno Haible  <bruno@clisp.org>
81024
81025         * lib/vasnprintf.c (alloca): Remove fallback definition.
81026         (freea): Remove definition.
81027         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81028         Reported by Paul Eggert.
81029
81030 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81031             Bruno Haible  <bruno@clisp.org>
81032
81033         Protect against address arithmetic overflow.
81034         * lib/printf-args.h: Include stddef.h.
81035         (arguments): Change type of field 'count' to size_t.
81036         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81037         'unsigned int' where appropriate.
81038         * lib/printf-parse.h: Include sys/types.h.
81039         (char_directive): Change type of *arg_index fields to ssize_t.
81040         (char_directives): Change type of fields 'count', max_*_length to
81041         size_t.
81042         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81043         (SSIZE_MAX): Define fallback value.
81044         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81045         instead of 'int' where appropriate. Check a_allocated, d_allocated
81046         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81047         * lib/vasnprintf.c: Include xsize.h.
81048         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81049         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81050         overflow. Avoid wraparound when converting a width or precision from
81051         decimal to binary.
81052
81053 2003-11-16  Bruno Haible  <bruno@clisp.org>
81054
81055         Update from GNU gettext.
81056         * lib/printf-parse.c: Generalize to it can be compiled for wide
81057         strings.
81058         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81059         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81060         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81061         SNPRINTF): New macros.
81062         Don't include <alloca.h> if the file is used inside libintl.
81063         (local_wcslen): New function, for Solaris 2.5.1.
81064         (VASNPRINTF): Use it instead of wcslen.
81065
81066 2003-11-16  Bruno Haible  <bruno@clisp.org>
81067
81068         * lib/xsize.h (xmax): New function.
81069         (xsum, xsum3, xsum4): Declare as "pure" functions.
81070
81071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81072
81073         * modules/xalloc (Files): Undo latest change, since xalloc.h
81074         no longer needs SIZE_MAX or PTRDIFF_MAX.
81075
81076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81077
81078         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81079         gl_PTRDIFF_MAX.
81080
81081 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81082
81083         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81084         "return", to pacify some unknown compiler.  Problem reported
81085         by Joerg Schilling.
81086
81087 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81088
81089         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81090         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81091         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81092         heuristic is just as accurate as far as we know, and it removes a
81093         dependency on size_max.m4 and ptrdiff_max.m4.
81094
81095 2003-11-11  Bruno Haible  <bruno@clisp.org>
81096
81097         * modules/xsize (Files): Add m4/size_max.m4.
81098         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81099
81100 2003-11-11  Bruno Haible  <bruno@clisp.org>
81101
81102         * m4/size_max.m4: New file.
81103         * m4/ptrdiff_max.m4: New file.
81104         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81105         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81106         (gl_XALLOC): Invoke it.
81107
81108 2003-11-11  Bruno Haible  <bruno@clisp.org>
81109
81110         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81111         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81112         defined.
81113
81114 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81115
81116         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81117         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81118         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81119         From Bruno Haible.
81120         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81121         not (size_t) -1, since it's defined here.
81122
81123 2003-11-09  Karl Berry  <karl@gnu.org>
81124
81125         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81126
81127 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81128
81129         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81130         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81131         Reject sizes of exactly SIZE_MAX bytes.
81132         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81133         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81134
81135 2003-11-05  Bruno Haible  <bruno@clisp.org>
81136
81137         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81138         SIZE_MAX defined in <limits.h> on Solaris.
81139
81140 2003-11-04  Jim Meyering  <jim@meyering.net>
81141
81142         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81143         variable names, rather than @VAR@.
81144         * modules/poll: Likewise.
81145
81146 2003-11-04  Bruno Haible  <bruno@clisp.org>
81147
81148         * modules/xsize: New file.
81149         * modules/linebreak: Depend on xsize.
81150         * MODULES.html.sh (func_all_modules): Add xsize.
81151
81152 2003-11-04  Bruno Haible  <bruno@clisp.org>
81153
81154         * m4/xsize.m4: New file.
81155
81156 2003-11-04  Bruno Haible  <bruno@clisp.org>
81157
81158         * lib/xsize.h: New file.
81159         * lib/linebreak.c: Include xsize.h.
81160         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81161         argument for overflow.
81162         Suggested by Paul Eggert.
81163
81164 2003-11-03  Karl Berry  <karl@gnu.org>
81165
81166         * config/config.{guess,sub}: update from config.
81167
81168 2003-11-03  Jim Meyering  <jim@meyering.net>
81169
81170         * modules/userspec (lib_SOURCES): Add userspec.h.
81171         (Include): Add "userspec.h".
81172         Improve description.
81173
81174 2003-11-03  Jim Meyering  <jim@meyering.net>
81175
81176         * lib/userspec.c: Include "userspec.h".
81177         * lib/userspec.h: New file.
81178
81179 2003-11-03  Bruno Haible  <bruno@clisp.org>
81180
81181         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81182
81183 2003-11-03  Bruno Haible  <bruno@clisp.org>
81184
81185         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81186         available, to avoid (extremely rare) race condition.
81187         Suggested by Paul Eggert.
81188
81189 2003-11-02  Karl Berry  <karl@gnu.org>
81190
81191         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81192
81193 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81194
81195         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81196         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81197         (read_filesystem_list): Set and use me_type_malloced.
81198         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81199         whatever the type happens to be), for brevity and consistency.
81200         Check for size calculation overflow on Alphas running OSF/1.
81201
81202 2003-10-31  Jim Meyering  <jim@meyering.net>
81203
81204         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81205
81206         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81207
81208 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81209             Bruno Haible  <bruno@clisp.org>
81210
81211         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81212         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81213
81214 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81217         netbsd*-gnu*.  Suggested by Robert Millan.
81218
81219 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81220
81221         * modules/group-member: Depend on stdbool.
81222
81223 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81224
81225         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81226
81227 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81228
81229         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81230         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81231         after the 'gnu' in these cases.  This fixes some bugs in the
81232         previous change, and is based on suggestions by Robert Millan.
81233
81234 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81235
81236         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81237         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81238         no longer needed.
81239         * lib/quotearg.c (quotearg_n_options): Use it.
81240         * lib/group-member.c: Include <stdbool.h>.
81241         (free_group_info): Arg is now const *; don't free arg.
81242         (get_group_info): Now returns bool and accepts struct group_info *,
81243         rather than returning a malloc'ed struct group_info *.
81244         All uses changed.  Check for overflow in internal size calculation.
81245
81246         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81247         rather than xmalloc/xrealloc.
81248         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81249         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81250         conformance bug: the old code used a pointer after freeing the
81251         storage that it addressed.
81252         * lib/hash.c (hash_initialize): Simplify the code by using
81253         xalloc_oversized rather than doing it by hand.
81254         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81255         the buffer preserved.  Use free and xmalloc instead.
81256         * lib/quotearg.c (quotearg_n_options): Likewise.
81257         Use a simpler test for size overflow.  Don't use xalloc_oversized
81258         because unsigned int might be wider than size_t (!); this suggests
81259         that we should switch from unsigned int to size_t for slot numbers.
81260
81261 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81262
81263         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81264         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81265         NetBSD kernels.  Requested by Richard Stallman.
81266
81267 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81268
81269         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81270         to allocate the returned structure.  Do not allocate a subarray,
81271         as x2nrealloc will do that.
81272         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81273         instead of xnrealloc.
81274         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81275
81276 2003-10-27  Bruno Haible  <bruno@clisp.org>
81277
81278         * lib/stdbool_.h: Better support for BeOS.
81279
81280 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81281
81282         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81283         now uses inline.
81284
81285 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81286
81287         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81288         callers that want to do their own size-overflow checking.  Include
81289         <stdbool.h>, since xalloc_oversized returns bool.
81290         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81291         to use xalloc_oversized.
81292
81293         Add two functions x2realloc, x2nrealloc, for programs that grow
81294         arrays dynamically by doubling their sizes.
81295         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81296         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81297         New functions.
81298
81299         Port to C99 semantics for 'inline' of external functions.
81300         Bug reported by Bruno Haible.
81301         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81302         with the old contents of xnmalloc.
81303         (xnmalloc, xmalloc): Use it.
81304         (xnrealloc_inline): New static inline function,
81305         with the old contents of xnrealloc.
81306         (xnrealloc, xrealloc): Use it.
81307
81308         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81309         that.
81310
81311 2003-10-26  Karl Berry  <karl@gnu.org>
81312
81313         * config/srclist.txt (COPYING.DOC): no longer available from
81314         /gd/gnuorg; don't know where the ultimate source is.
81315
81316 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81317
81318         Fix several address-calculation bugs in the hash modules,
81319         plus some minor code cleanup.
81320
81321         * lib/hash.h: Include <stdbool.h>, for bool.
81322         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81323         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81324         hash_get_n_entries, hash_get_max_bucket_length,
81325         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81326         hash_rehash): Use size_t rather than unsigned.
81327         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81328         hash_get_n_buckets_used, hash_get_n_entries,
81329         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81330         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81331         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81332         Likewise.
81333         (SIZE_MAX): Define if not defined.
81334         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81335         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81336         hash_print):
81337         Use const * when possible.
81338         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81339         (check_tuning): Fix bug: if tuning parameters were very close to
81340         0 or 1, rounding errors could have caused subscript violations.
81341         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81342         (hash_initialize): Add 'fail:' label
81343         to free table and return NULL, and use it to simplify code.
81344         Use calloc rather than clearing the storage ourself.
81345         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81346         buffer size calculations.
81347         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81348         Include <stddef.h>, for size_t.
81349         * lib/hash-pjw.c (hash_pjw): Likewise.
81350         Switch to method described by Bruno Haible.
81351         Include <limits.h>, for CHAR_BIT.
81352         (SIZE_BITS): New macro.
81353
81354 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81355
81356         * m4/getline.m4 (AM_FUNC_GETLINE):
81357         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81358         hosts.  Problem reported by Derek Robert Price in
81359         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81360         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81361         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81362
81363 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81364
81365         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81366         ceiling the allocation at NMAX bytes rather than silently
81367         discarding input bytes before NMAX is reached.  This makes
81368         a difference only if NMAX exceeds SIZE_MAX / 2.
81369
81370         * lib/obstack.c: Merge from glibc.
81371         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81372         Add libc_hidden_def (_obstack_newchunk).
81373         (_obstack_free) [! defined _LIBC]: Remove.
81374         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81375         a clone of the function body.
81376         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81377         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81378
81379         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81380         glibc.
81381         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81382         arg to memcpy.
81383
81384         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81385         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81386         Don't use lvalue casts, as GCC plans to remove support for them
81387         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81388         was also present in the non-GCC version, indicating that this
81389         code had always been buggy and had never been widely used.
81390         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81391         Use the fast variant of each macro, rather than copying the
81392         definiens of the fast variant; that way, we'll be more likely to
81393         catch future bugs in the fast variants.
81394
81395 2003-10-20  Bruno Haible  <bruno@clisp.org>
81396
81397         * modules/wait-process: New file.
81398         * MODULES.html.sh (func_all_modules): Add wait-process.
81399
81400 2003-10-20  Bruno Haible  <bruno@clisp.org>
81401
81402         * m4/wait-process.m4: New file.
81403
81404 2003-10-20  Bruno Haible  <bruno@clisp.org>
81405
81406         * lib/wait-process.h: New file, from GNU gettext.
81407         * lib/wait-process.c: New file, from GNU gettext.
81408
81409 2003-10-19  Jim Meyering  <jim@meyering.net>
81410
81411         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81412         HPUX 10.20.
81413
81414 2003-10-18  Karl Berry  <karl@gnu.org>
81415
81416         * config/config.guess: update from config.
81417
81418 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81419
81420         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81421         (getgroups): First arg is int, not size_t.
81422         Don't let 'free' mangle errno.
81423
81424 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81425
81426         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81427
81428 2003-10-16  Karl Berry  <karl@gnu.org>
81429
81430         * config/config.{guess,sub}: update from config.
81431
81432 2003-10-16  Jim Meyering  <jim@meyering.net>
81433
81434         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81435         memcpy.
81436
81437 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81438
81439         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81440         (SIZE_MAX): Remove.
81441         (new_exclude, add_exclude_file): Initial size no longer needs to
81442         be a power of 2.
81443         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81444         our own address arithmetic overflow checking.
81445
81446         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81447         (fnmatch): Do not alloca more than 2000 wide characters;
81448         instead, use malloc for large buffers.
81449         Check for address arithmetic overflow, and return -1
81450         with errno set to ENOMEM in that case.
81451         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81452         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81453         instead, return -1.  Check for address arithmetic overflow.
81454
81455 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81456
81457         Handle invalid suffixes and overflow independently, so that
81458         callers can treat them independently as needed.  Fix some bugs in
81459         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81460         suffix for a human-readable blocksize.  The major caller-visible
81461         change is the addition of a new
81462         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81463         that both overflow and suffix chars were found.
81464
81465         * lib/human.c (humblock): Don't check separately for invalid suffix
81466         char; that is xstrtoumax's job (now that its bug is fixed).
81467         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81468         INTMAX_MAX]: New macros.
81469         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81470         TYPE_MAXIMUM): New macros.
81471         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81472         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81473         if overflow occurs, as it's what __strtol does and it's more useful
81474         in practice.
81475         (__xstrtol): If __strtol reports some error other than ERANGE,
81476         reflect it to the caller as LONGINT_INVALID.  If it reports
81477         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81478         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81479         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81480         value.
81481         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81482         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81483         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81484         [defined UINTMAX_MAX]: New macros.
81485
81486 2003-10-14  Bruno Haible  <bruno@clisp.org>
81487
81488         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81489
81490 2003-10-14  Bruno Haible  <bruno@clisp.org>
81491
81492         * m4/sig_atomic_t: New file, from GNU gettext.
81493         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81494
81495 2003-10-14  Bruno Haible  <bruno@clisp.org>
81496
81497         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81498         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81499         Also use volatile where needed.
81500
81501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81502
81503         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81504         Change maintainer from Bruno Haible to 'all'.
81505
81506 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81507
81508         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81509
81510 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81511
81512         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81513         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81514         and define in terms of the other primitives.
81515         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81516         (SIZE_MAX): Define if not already defined.
81517         (array_size_overflow): New function.
81518         (xalloc_die): Abort instead of exiting if 'error' returns.
81519         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81520         (xmalloc, xrealloc): Use them.
81521         (xcalloc): Check for address arithmetic overflow.
81522         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81523         a bit faster than strcpy.
81524
81525 2003-10-10  Simon Josefsson  <jas@extundo.com>
81526
81527         * modules/argp (Depends-on): Add restrict and strcase.
81528
81529 2003-10-10  Simon Josefsson  <jas@extundo.com>
81530
81531         * m4/argp.m4: Add AC_C_INLINE.
81532
81533 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81534
81535         Merge getpass from libc, plus a few fixes.
81536
81537         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81538         Include <stdbool.h>.
81539         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81540         __fsetlocking to empty.
81541         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81542         do include <bits/libc-lock.h>.
81543         Do not include <fcntl.h>; not needed.
81544         [_LIBC]: Include <wchar.h>.
81545         (NOTCANCEL_MODE): New macro.
81546         (flockfile, funlockfile) [_LIBC]: New macros.
81547         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81548         [!_LIBC]: New macros.
81549         (call_fclose): New function.
81550         (getpass): Use it.  Save tty stream separately; this simplifies the
81551         code and makes it more reliable if stdin happens to equal stdout.
81552         Invoke __fsetlocking on tty.
81553         Handle thread cancellation if needed.
81554         Namespace cleanup (use __tcgetattr, __getline).
81555         Use bool for Booleans.
81556         [USE_IN_LIBIO]: Handle wide streams.
81557         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81558         stream might go where.
81559
81560         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81561         doesn't have to include <stdio.h> before us.
81562         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81563         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81564         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81565         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81566         if not declared, so that we can use getpass.c code from libc without
81567         rewriting it.
81568         (flockfile, ftrylockfile, funlockfile): New macros.
81569
81570 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81571
81572         * modules/getpass: Depend on stdbool.
81573
81574 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81575
81576         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81577
81578 2003-10-07  Karl Berry  <karl@gnu.org>
81579
81580         * config/config.{guess,sub}: update from config.
81581
81582 2003-10-06  Jim Meyering  <jim@meyering.net>
81583             Bruno Haible  <bruno@clisp.org>
81584
81585         This lets translators provide better translations for the
81586         "Written by ..." part of --version output.
81587         * lib/version-etc.h: Include stdarg.h.
81588         (version_etc_copyright): Declare as readonly.
81589         (version_etc): Make this function variadic with a NULL-terminated list
81590         of author name strings.
81591         (version_etc_va): New declaration.
81592         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81593         (version_etc_copyright): Declare as readonly.
81594         (version_etc_va): New function. Provide a different translatable string
81595         for each possible number of authors < 10. Abbreviate when there are 10
81596         authors or more.
81597         (version_etc): Make this function variadic. Call version_etc_va.
81598         Suggestion from Gary V. Vaughan.
81599
81600         * lib/long-options.h (parse_long_options): Change prototype: the
81601         authors string is moved to the end and becomes variadic.
81602         * lib/long-options.c: Include stdarg.h.
81603         (parse_long_options): Make this function variadic, too.
81604         Call version_etc_va, not version_etc.
81605
81606 2003-10-06  Bruno Haible  <bruno@clisp.org>
81607
81608         * modules/version-etc-2: Remove file.
81609         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81610
81611 2003-10-06  Bruno Haible  <bruno@clisp.org>
81612
81613         * modules/fatal-signal: New file.
81614         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81615
81616 2003-10-06  Bruno Haible  <bruno@clisp.org>
81617
81618         * m4/fatal-signal.m4: New file.
81619         * m4/signalblocking.m4: New file, from GNU gettext.
81620
81621 2003-10-06  Bruno Haible  <bruno@clisp.org>
81622
81623         * lib/version-etc-2.h: Remove file.
81624         * lib/version-etc-2.c: Remove file.
81625
81626 2003-10-06  Bruno Haible  <bruno@clisp.org>
81627
81628         * lib/fatal-signal.h: New file, from GNU gettext.
81629         * lib/fatal-signal.c: New file, from GNU gettext.
81630
81631 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81632
81633         * README: Rework advice for preventing empty .o files.
81634         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81635         not <sys/types.h>.
81636
81637 2003-10-04  Karl Berry  <karl@gnu.org>
81638
81639         * lib/argp*: update from libc.
81640
81641 2003-10-04  Karl Berry  <karl@gnu.org>
81642
81643         * config/config.{guess,sub}: update from config.
81644
81645 2003-10-02  Bruno Haible  <bruno@clisp.org>
81646
81647         * modules/lchown (Include): Add lchown.h.
81648         * modules/time_r (Include): Use "..." syntax.
81649         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81650
81651 2003-10-01  Simon Josefsson  <jas@extundo.com>
81652
81653         * MODULES.html.sh (func_all_modules): Move gethostname from section
81654         'based on' to section 'lacking' POSIX:2001.
81655
81656 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81657
81658         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81659         to output mode on the same stream.
81660
81661 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81662
81663         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81664         Fix arg typo in previous patch.
81665
81666 2003-09-28  Jim Meyering  <jim@meyering.net>
81667
81668         * lib/error.c: Correct cpp indentation.
81669
81670 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81671
81672         * modules/free: New file.
81673
81674 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81675
81676         * m4/free.m4: New file.
81677
81678 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81679
81680         * lib/minmax.h (MIN, MAX)
81681         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81682         Omit the special code that used __typeof__, since we worry that
81683         it could be more trouble than it's worth.  See:
81684         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81685         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81686
81687         * lib/free.c: New file.
81688
81689 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81690
81691         Trivial fixes to Makefile.am parts of module listings.
81692         * modules/strstr: Append strstr.h to lib_SOURCES.
81693         * modules/strcase: Likewise, for strcase.h.
81694
81695 2003-09-27  Karl Berry  <karl@gnu.org>
81696
81697         * config/mkinstalldirs: update from automake.
81698
81699 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81700
81701         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81702         (error_tail): Do not loop, reallocating temporary buffer, since
81703         the output cannot contain more wide characters than the input
81704         contains bytes, the size must be big enough already.  This avoids
81705         one potential size overflow calculation.  Check for size overflow
81706         when calculating temporary buffer size.  Free temporary buffer
81707         when done, if it was allocated with malloc; this plugs a memory
81708         leak.  Remove casts from void * to pointers, that are no longer
81709         needed now that we're assuming C89 or better.
81710
81711         Merge error changes from glibc.
81712
81713         * lib/error.c, error.h: Update copyright notice header to match glibc.
81714         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81715         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81716         Disable cancellation while printing error.
81717         * lib/error.h: Prepend __ to parameter names.
81718
81719 2003-09-26  Jim Meyering  <jim@meyering.net>
81720
81721         * lib/error.c (error_tail): Move some declarations
81722         into inner scope where the local variables are used.
81723
81724 2003-09-26  Bruno Haible  <bruno@clisp.org>
81725
81726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81727         stpncpy().
81728         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81729
81730 2003-09-26  Bruno Haible  <bruno@clisp.org>
81731
81732         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81733         (stpncpy): Define as alias for gnu_stpncpy.
81734         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81735
81736 2003-09-25  Simon Josefsson  <jas@extundo.com>
81737
81738         * lib/xgetdomainname.h: New file.
81739         * lib/xgetdomainname.c: New file.
81740
81741 2003-09-25  Simon Josefsson  <jas@extundo.com>
81742             Bruno Haible  <bruno@clisp.org>
81743
81744         * modules/getdomainname: New file.
81745         * modules/xgetdomainname: New file.
81746         * MODULES.html.sh (func_all_modules): Add getdomainname,
81747         xgetdomainname.
81748
81749 2003-09-25  Simon Josefsson  <jas@extundo.com>
81750             Bruno Haible  <bruno@clisp.org>
81751
81752         * m4/getdomainname.m4: New file.
81753
81754 2003-09-25  Simon Josefsson  <jas@extundo.com>
81755             Bruno Haible  <bruno@clisp.org>
81756
81757         * lib/getdomainname.h: New file.
81758         * lib/getdomainname.c: New file.
81759
81760 2003-09-25  Karl Berry  <karl@gnu.org>
81761
81762         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81763
81764 2003-09-25  Karl Berry  <karl@gnu.org>
81765
81766         * config/install-sh: update from automake.
81767
81768 2003-09-25  Bruno Haible  <bruno@clisp.org>
81769
81770         * modules/version-etc-2: New file, from modules/version-etc with
81771         modifications.
81772         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81773
81774 2003-09-25  Bruno Haible  <bruno@clisp.org>
81775
81776         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81777         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81778
81779 2003-09-24  Simon Josefsson  <jas@extundo.com>
81780
81781         * modules/xgethostname: Add xgethostname.h.
81782
81783 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81784
81785         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81786         the buffer associated with the argument.  Bug reported by
81787         Simon Josefsson.
81788
81789 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81790
81791         * README: Document assumptions that 'int' is at least 32 bits
81792         wide, that integer arithmetic is 2's complement without overflow,
81793         that there are no holes in integer values, that adding sizes of
81794         two nonoverlapping objects can't overflow, and that all-bits-zero
81795         yields scalar zero.  Fix spelling and capitalization typos.
81796
81797 2003-09-19  Karl Berry  <karl@gnu.org>
81798
81799         * lib/argp.h: update from libc.
81800
81801 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81802
81803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81804         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81805         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81806
81807 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81808
81809         * gnulib-tool: Use "test -h", not "test -L", for portability
81810         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81811         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81812         (sed_extract_prog): Issue s commands one-by-one, rather than
81813         using \| in one s command.
81814
81815 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81816
81817         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81818         input error, instead of returning NULL the next time we are called
81819         (and therefore losing track of errno).
81820
81821 2003-09-16  Bruno Haible  <bruno@clisp.org>
81822
81823         * gnulib-tool (func_create_testdir): Warn about duplicated
81824         dependencies.
81825
81826 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81827
81828         * modules/argmatch, modules/fatal, modules/obstack,
81829         modules/xalloc, modules/xgethostname: Sort dependencies by
81830         importance, not alphabetically.
81831
81832 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81833
81834         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81835         fails, so that the caller gets the proper errno.
81836
81837         * lib/readutmp.c (read_utmp): Likewise.
81838         Check for fstat error.  Close stream and free storage
81839         when failing.
81840
81841 2003-09-14  Karl Berry  <karl@gnu.org>
81842
81843         * config/srclist.txt (strdup.c): disable for c89 changes.
81844
81845 2003-09-14  Jim Meyering  <jim@meyering.net>
81846
81847         * lib/getloadavg.c: Correct cpp indentation.
81848         * lib/strdup.c: Likewise.
81849         * lib/vasnprintf.c: Likewise.
81850
81851 2003-09-14  Bruno Haible  <bruno@clisp.org>
81852
81853         * modules/fwriteerror: New file.
81854         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81855
81856 2003-09-14  Bruno Haible  <bruno@clisp.org>
81857
81858         * lib/fwriteerror.h: New file.
81859         * lib/fwriteerror.c: New file.
81860
81861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81862
81863         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81864         modules/xgethostname, modules/xalloc: Depend on exit.
81865
81866 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81867
81868         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81869
81870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81871         and AC_MINIX, too, so that their extensions are available.
81872
81873         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81874         This macro has been superseded by gl_BACKUPFILE.
81875
81876         More patches to assume C89 or better.
81877
81878         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81879
81880         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81881         unconditionally.
81882         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81883         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81884         Include <string.h>, <stdlib.h> unconditionally.
81885         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81886         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81887         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81888         headers or for string.h.
81889         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81890         or strtoul.
81891
81892         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81893         headers.
81894         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81895         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81896         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81897         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81898         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81899         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81900         memcpy, memset.
81901         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81902         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81903         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81904         strtol.
81905         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81906         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81907         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81908         strtoul.
81909
81910 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81911
81912         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81913         * lib/obstack.c [!defined _LIBC]: Likewise.
81914         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81915         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81916         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81917
81918         More changes to assume C89 or better.
81919
81920         * lib/error.c (error_tail): Assume vprintf.
81921
81922         * lib/argmatch.c (getenv): Remove decl.
81923         * lib/progreloc.c (get_full_program_name): Define via prototype.
81924         * lib/setenv.c (clearenv): Likewise.
81925         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81926         needed.
81927         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81928         (malloc, memcpy): Remove decls.
81929         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81930         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81931         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81932         (memcpy): Remove macro.
81933         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81934         (__P): Remove.  All uses removed.
81935         (PTR): Remove.  All uses changed to void *.
81936         (CHAR_BIT, NULL): Remove.
81937         (spaces, zeros, memset_space, memset_zero)
81938         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81939         Remove.
81940         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81941         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81942         Define with prototype.
81943         Remove now-unnecessary prototype decl.
81944         (extra_args_spec): Assume ANSI C.  All uses changed.
81945         (extra_args_spec_iso): Remove.
81946         (my_strftime, emacs_strftimeu): Define via prototype.
81947         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81948         unconditionally.
81949         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81950         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81951         (strtoul, strtol): Remove decls.
81952         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81953         LONG_MAX): Remove.
81954         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81955         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81956         (LOCALE_PARAM_PROTO): New macro.
81957         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81958         (INTERNAL (strtol), strtol): Define with a prototype.
81959         (PARAMS): Remove.  All uses removed.
81960         * lib/tempname.c: Include <string.h> unconditionally.
81961         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81962         * lib/xgethostname.c (main): Define with a prototype.
81963         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81964         Include <stdlib.h> unconditionally.
81965         (calloc, malloc, realloc, free): Remove decls.
81966         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81967         Include <stdlib.h> unconditionally.  Sort include file names.
81968         (strtod): Remove.
81969         (xstrtod): Define with a prototype.
81970         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81971         (strtol, strtoul): Remove decls.
81972
81973 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81974
81975         More patches to assume C89 or better.
81976         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81977         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81978         string.h, memchr, STDC_HEADERS.
81979
81980 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81981
81982         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81983         Include <stdlib.h>, <string.h> unconditionally.
81984         Remove now-unnecessary cast to char *.
81985         * lib/strnlen.c: Include <string.h> unconditionally.
81986         * lib/yesno.c (yesno): Define with a prototype.
81987
81988 2003-09-11  Bruno Haible  <bruno@clisp.org>
81989
81990         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81991
81992 2003-09-10  Jim Meyering  <jim@meyering.net>
81993
81994         * lib/error.c: Correct indentation of cpp directives.
81995
81996 2003-09-10  Bruno Haible  <bruno@clisp.org>
81997
81998         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81999         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82000         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82001         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82002         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82003         <stdlib.h> and <string.h> checks.
82004         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82005         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82006
82007 2003-09-10  Bruno Haible  <bruno@clisp.org>
82008
82009         * lib/strcspn.c: Include <string.h> unconditionally.
82010         * lib/strpbrk.c: Include <string.h> unconditionally.
82011         * lib/strstr.c: Include <string.h> unconditionally.
82012         * lib/unicodeio.c: Include <string.h> unconditionally.
82013         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82014         * lib/unsetenv.c: Likewise.
82015         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82016         * lib/yesno.c: Include <stdlib.h> unconditionally.
82017         (rpmatch): Add prototype.
82018
82019 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82020
82021         More patches to assume C89 or better.
82022         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82023         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82024         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82025         or for string.h.
82026         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82027         stdlib.h.
82028         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82029         C headers.
82030         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82031         string.h.
82032         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82033         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82034         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82035         or for string.h.
82036         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82037         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82038         C headers.
82039         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82040         memcpy.
82041         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82042         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82043         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82044         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82045         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82046         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82047         string.h, free.
82048         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82049         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82050         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82051         C headers, or for string.h.
82052         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82053         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82054         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82055         headers, memory.h, stdlib.h, string.h, strings.h.
82056         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82057         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82058         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82059         strchr.
82060         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82061         headers, memory.h, string.h.
82062         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82063         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82064         free.
82065         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82066         headers.
82067         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82068         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82069         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82070         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82071         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82072
82073 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82074
82075         More K&R removal.
82076
82077         * lib/acosl.c (main): Use a prototype.
82078         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82079         tanl.c: Likewise.
82080
82081         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82082
82083         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82084         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82085         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82086         with a prototype.
82087         * lib/getopt.c (const): Remove macro.
82088         Include <string.h> unconditionally.
82089         (my_index): Remove; all uses changed to strchr.
82090         (strlen): Remove decl.
82091         (exchange): Remove forward decl; no longer needed.
82092         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82093         Define with prototype.
82094         * lib/getopt1.c (const): Remove macro.
82095         (getopt_long, getopt_long_only, main): Define with prototype.
82096
82097         * lib/getugroups.c: Include <string.h> unconditionally.
82098
82099         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82100         (getusershell, setusershell, endusershell, readname, main):
82101         Define with prototypes.
82102
82103         * lib/group-member.c: Include group-member.h first.
82104         Include <stdlib.h> unconditionally.
82105
82106         * lib/hard-locale.c: Include hard-locale.h first.
82107         Include <stdlib.h>, <string.h> unconditionally.
82108
82109         * lib/hash.c (free, malloc): Remove decls.
82110         Include <stdlib.h> unconditionally.
82111
82112         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82113         (getenv): Do not declare.
82114
82115         * lib/idcache.c: Include <string.h> unconditionally.
82116
82117         * lib/long-options.c: Include long-options.h first, to test interface.
82118         Include <stdlib.h> unconditionally.
82119
82120         * lib/makepath.c: Include makepath.h first, to test interface.
82121         Include <stdlib.h> and <string.h> unconditionally.
82122
82123         * lib/linebuffer.c: Include <stdlib.h>.
82124         (free): Remove decl.
82125
82126         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82127         stddef.h. rpl_malloc returns void *, not char *.
82128         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82129         prototype.
82130
82131         * lib/md5.h: Include <limits.h> unconditionally.
82132         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82133         (__P): Remove; all uses removed.
82134         * lib/md5.c: Include "md5.h" first.
82135         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82136         md5_buffer, md5_process_bytes, md5_process_block):
82137         Define with prototypes.
82138         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82139         * lib/sha.c: Include "sha.h" first.
82140         Include <stdlib.h>, <string.h> unconditionally.
82141
82142         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82143         * lib/memcmp.c (__ptr_t): Likewise.
82144         * lib/memrchr.c (__ptr_t): Likewise.
82145         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82146         Include <string.h> unconditionally.
82147         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82148         * lib/memchr.c: Include <stdlib.h> unconditionally.
82149         * lib/memchr.c (LONG_MAX): Remove.
82150         * lib/memrchr.c (LONG_MAX): Likewise.
82151         * lib/memchr.c (__memchr): Define via a prototype.
82152         * lib/memrchr.c (__memrchr): Likewise.
82153         * lib/memcmp.c (__P): Remove, and remove all uses.
82154         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82155         Remove forward decls; no longer needed.
82156         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82157         Use types required by C89 in prototype.
82158
82159         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82160         * lib/savedir.c: Likewise.
82161         * lib/mkdir.c (free): Remove decl.
82162         * lib/rmdir.c (rmdir): Define with a prototype.
82163         * lib/savedir.c: Include savedir.h first, to test interface.
82164
82165         * lib/mktime.c (STDC_HEADERS): Remove.
82166         Include <stdlib.h>, <string.h> unconditionally.
82167
82168         * lib/modechange.c: Include <stdlib.h> unconditionally.
82169         (malloc): Remove decl.
82170
82171         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82172         (free): Remove decl.
82173
82174         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82175         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82176         (This type really should be intptr_t, but that's a C99ism.)
82177         (_obstack_memcpy): Remove: all uses changed to memcpy.
82178         Include <string.h> unconditionally.
82179         (struct obstack): Assume __STDC__ for types of members
82180         chunkfun, freefun, extra_arg.
82181         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82182         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82183         obstack_begin, obstack_specify_allocation,
82184         obstack_specify_allocation_with_arg, obstack_chunkfun,
82185         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82186         Remove unprototyped decls and the macros that use them.
82187         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82188         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82189         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82190         (defined __STDC__ && __STDC__)]:
82191         Remove nonprototyped code.
82192         Include <stdlib.h> unconditionally.
82193         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82194         _obstack_allocated_p, _obstack_free, obstack_free,
82195         _obstack_memory_used, print_and_abort):
82196         Define using prototypes.
82197         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82198         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82199         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82200         obstack_next_free, obstack_object_size, obstack_room) [0]:
82201         Remove unused, unprototyped code.
82202
82203         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82204
82205         * lib/physmem.c (physmem_total, physmem_available, main): Define
82206         with prototypes.
82207
82208         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82209         (main): Define with a prototype.
82210
82211         * lib/posixver.c (getenv): Remove decl.
82212
82213         * lib/putenv.c (malloc): Returns void *, not char *.
82214         Include <string.h> unconditionally.
82215         (strchr, memcpy, NULL): Do not define.
82216
82217         * lib/readtokens.c: Include readtokens.h first, to test interface.
82218         Include <stdlib.h>, <string.h> unconditionally.
82219         (init_tokenbuffer): Define with a prototype.
82220
82221         * lib/regex.c (PARAMS): Remove.  All uses removed.
82222         All uses of _RE_ARGS removed, too.
82223         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82224         unconditionally.
82225         (bzero): Assume memset exists.
82226         (memcmp, memcpy, NULL): Remove.
82227         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82228         char, or assignments to local vars of type signed char.
82229         (init_syntax_once, PREFIX(extract_number_and_incr),
82230         PREFIX(print_partial_compiled_pattern),
82231         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82232         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82233         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82234         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82235         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82236         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82237         wcs_compile_range, byte_compile_range, truncate_wchar,
82238         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82239         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82240         count_mbs_length, wcs_re_match_2_internal,
82241         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82242         PREFIX(alt_match_null_string_p),
82243         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82244         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82245         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82246         now-unnecessary declaration, if any.
82247         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82248         regcomp, regexec):
82249         Remove now-unnecessary casts among pointer types.
82250         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82251
82252         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82253         (free): Remove decl.
82254
82255         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82256
82257         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82258         (free): Remove decl.
82259
82260         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82261         * lib/xgetcwd.c: Likewise.
82262
82263         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82264         (free): Remove decl.
82265
82266         * lib/strchrnul.c (strchrnul): Define with a prototype.
82267         Fix bug: c_in was not converted to char before searching.
82268
82269         The following changes are not K&R related:
82270
82271         * lib/group-member.h: Include <sys/types.h>, so that this file is
82272         self-contained.
82273         * lib/makepath.h: Likewise.
82274
82275         * lib/getusershell.c (readname, default_index, line_size, readname):
82276         Use size_t, not int, for sizes.
82277         (readname): If the size overflows, report an error instead of
82278         looping forever.
82279
82280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82281
82282         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82283         libc.
82284
82285 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82286
82287         * README: New section: portability guidelines.
82288
82289 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82290
82291         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82292         C89 spec.
82293
82294 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82295
82296         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82297
82298 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82299
82300         Assume C89 or better; remove K&R cruft.
82301         A few of these changes were first proposed by Derek Robert Price
82302         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82303
82304         * lib/addext.c: Include <string.h> unconditionally.
82305         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82306         Don't declare getenv or malloc.
82307
82308         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82309         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82310         (NULL): Remove.
82311         (find_stack_direction, alloca): Use prototypes.
82312
82313         * lib/atexit.c (atexit): Define using a prototype.
82314
82315         * lib/basename.c, dirname.c, stripslash.c:
82316         Include <string.h> unconditionally.
82317
82318         * lib/bcopy.c: Include <stddef.h>.
82319         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82320
82321         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82322
82323         * lib/error.h (error, error_at_line, error_print_progname)
82324         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82325         * lib/error.c: Include error.h first, to check interface.
82326         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82327         (VA_START): Remove; all uses changeed to va_start.
82328         (exit, strerror): Remove decls.
82329         (error_print_progname): Prototype uncondionally.
82330         Don't include <errno.h>; no longer needed.
82331         (private_strerror): Remove.
82332         (error_tail): Always define.
82333         (error, error_at_line): Assume C89 or better; always use prototypes.
82334         * lib/fatal.c: Include "fatal.h" first, to test interface.
82335         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82336         (VA_START): Remove; all uses changed to va_start.
82337         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82338         this case.
82339         (exit): Remove decl.
82340         (fatal): Prototype unconditionally.  Assume va_start works.
82341         Abort at end, to pacify gcc.
82342
82343         * lib/euidaccess.c (main): Define with a prototype.
82344
82345         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82346
82347         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82348
82349         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82350         prototypes.
82351         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82352         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82353         (getenv): Remove decl.
82354         (fnmatch): Define using a prototype.
82355         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82356         (FCT): Define using a prototype.
82357
82358         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82359
82360         * lib/gethostname.c: Include <stddef.h>.
82361         (gethostname): Define with prototype.  Length is size_t, not int.
82362
82363 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82364
82365         Assume C89 or better; remove K&R cruft.
82366         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82367         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82368         string.h, getenv, malloc.
82369         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82370         headers.
82371         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82372         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82373         do not check for strerror.
82374         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82375         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82376         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82377         do not check for doprnt or vprintf.
82378         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82379         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82380
82381 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82382
82383         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82384         getversion.c should have been removed then, but was accidentally
82385         preserved.
82386
82387         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82388         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82389
82390 2003-09-08  Karl Berry  <karl@gnu.org>
82391
82392         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82393                 config, forget about prep.
82394
82395         * config/depcomp, missing: update from automake.
82396
82397 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82398
82399         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82400         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82401
82402 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82403
82404         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82405         copy_tm_result.  Bug reported by Simon Josefsson in
82406         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82407
82408 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82409
82410         * m4/time_r.m4: New file.
82411         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82412         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82413         is. Check for timegm declaration.
82414         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82415         Do not check for gmtime_r.
82416         Replace mktime if __mktime_internal does not exist and if mktime
82417         hasn't been replaced already.
82418
82419 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82420
82421         * lib/time_r.c, lib/time_r.h: New files.
82422
82423         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82424         __localtime_r.
82425         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82426         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82427
82428         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82429         __gmtime_r.
82430         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82431         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82432         Include <time_r.h>.
82433
82434         * lib/timegm.c: Switch to glibc implementation, with the following
82435         changes:
82436         [defined HAVE_CONFIG_H]: Include <config.h>.
82437         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82438         (__mktime_internal) [!defined _LIBC]: New decl.
82439         (__gmtime_r) [!defined _LIBC]: New macro and function.
82440         (timegm): Use a prototype, since gnulib assumes C89.
82441         Do not bother declaring tmp to be const, as it's not really usefu.
82442         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82443         (timegm): Declare only if HAVE_DECL_TIMEGM.
82444
82445 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82446
82447         * MODULES.html.sh (func_all_modules): Add time_r.
82448         * modules/time_r: New file.
82449         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82450         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82451
82452 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82453
82454         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82455         Bug reported by Lute Kamstra in
82456         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82457
82458         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82459         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82460         course with correspondingly smaller numbers for tomorrow and
82461         yesterday.  From Tadayoshi Funaba.  Originally installed into
82462         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82463         coreutils merge?).
82464
82465 2003-08-31  Simon Josefsson  <jas@extundo.com>
82466
82467         * modules/timegm: New file.
82468         * MODULES.html.sh (func_all_modules): Add timegm.
82469
82470 2003-08-31  Simon Josefsson  <jas@extundo.com>
82471
82472         * m4/timegm.m4: New file.
82473
82474 2003-08-31  Simon Josefsson  <jas@extundo.com>
82475
82476         * lib/timegm.h: New file.
82477         * lib/timegm.c: New file.  Based on
82478         wget-1.8.2/src/http.c:mktime_from_utc.
82479
82480 2003-08-31  Karl Berry  <karl@gnu.org>
82481
82482         * lib/argp.h: update from libc.
82483
82484 2003-08-28  Bruno Haible  <bruno@clisp.org>
82485
82486         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82487         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82488         followed by '#define fnmatch fnmatch_posix' gives an error.
82489
82490 2003-08-28  Bruno Haible  <bruno@clisp.org>
82491
82492         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82493         warning on QNX, which defines O_BINARY to 000000.
82494
82495 2003-08-27  Jim Meyering  <jim@meyering.net>
82496
82497         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82498         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82499         would fail after 32.  Reported by Danny Levinson.  Details here:
82500         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82501
82502 2003-08-24  Bruno Haible  <bruno@clisp.org>
82503
82504         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82505         MSVC7 <stdio.h> is included later.
82506
82507 2003-08-22  Simon Josefsson  <jas@extundo.com>
82508
82509         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82510
82511 2003-08-20  Karl Berry  <karl@gnu.org>
82512
82513         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82514
82515 2003-08-20  Bruno Haible  <bruno@clisp.org>
82516
82517         * modules/progname: New file.
82518         * MODULES.html.sh (func_all_modules): Add progname.
82519
82520 2003-08-20  Bruno Haible  <bruno@clisp.org>
82521
82522         * lib/progname.h: New file, from GNU gettext.
82523         * lib/progname.c: New file, from GNU gettext.
82524         * lib/progreloc.c: New file, from GNU gettext.
82525
82526 2003-08-19  Jim Meyering  <jim@meyering.net>
82527
82528         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82529         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82530
82531 2003-08-19  Bruno Haible  <bruno@clisp.org>
82532
82533         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82534         more.
82535
82536 2003-08-19  Bruno Haible  <bruno@clisp.org>
82537
82538         * lib/xstrdup.c: Assume <string.h> exists.
82539
82540 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82541
82542         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82543         in makefile rules.
82544
82545 2003-08-18  Jim Meyering  <jim@meyering.net>
82546
82547         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82548         * m4/lib-ld.m4: Likewise.
82549
82550 2003-08-18  Jim Meyering  <jim@meyering.net>
82551
82552         * lib/setenv.h: Indent nested cpp directive.
82553         * lib/vasnprintf.c: Remove trailing blanks.
82554
82555 2003-08-17  Simon Josefsson  <jas@extundo.com>
82556
82557         * modules/xstrndup: New file.
82558         * MODULES.html.sh (func_all_modules): Add xstrndup.
82559
82560 2003-08-17  Simon Josefsson  <jas@extundo.com>
82561
82562         * modules/argp: Fix autoconf macro name. Add more dependencies.
82563
82564 2003-08-17  Simon Josefsson  <jas@extundo.com>
82565
82566         * m4/xstrndup.m4: New file.
82567
82568 2003-08-17  Simon Josefsson  <jas@extundo.com>
82569
82570         * m4/argp.m4: New file.
82571
82572 2003-08-17  Simon Josefsson  <jas@extundo.com>
82573             Bruno Haible  <bruno@clisp.org>
82574
82575         * lib/xstrndup.h: New file.
82576         * lib/xstrndup.c: New file.
82577
82578 2003-08-17  Bruno Haible  <bruno@clisp.org>
82579
82580         * modules/strndup (Files, Include): Add lib/strndup.h.
82581
82582 2003-08-17  Bruno Haible  <bruno@clisp.org>
82583
82584         * modules/euidaccess (Files): Add lib/euidaccess.h.
82585
82586 2003-08-17  Bruno Haible  <bruno@clisp.org>
82587
82588         * lib/strndup.h: New file.
82589
82590 2003-08-17  Bruno Haible  <bruno@clisp.org>
82591
82592         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82593         like AC_GNU_SOURCE.
82594         * modules/extensions (configure.ac): Comment out the invocation of
82595         gl_USE_SYSTEM_EXTENSIONS.
82596
82597 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82598
82599         Merges from coreutils, etc.
82600         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82601         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82602         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82603         fixing a typo.
82604         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82605         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82606
82607 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82608
82609         Document merge from coreutils.
82610         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82611         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82612         * modules/utime: Add m4/utimes-null.m4.
82613
82614 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82615
82616         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82617         space, undoing this 2003-08-12 change:
82618         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82619
82620 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82621
82622         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82623         strtoul.c from libc, undoing this 2003-08-12 change:
82624         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82625
82626 2003-08-16  Jim Meyering  <jim@meyering.net>
82627
82628         Merges from coreutils.
82629         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82630         prefix.  Adjust cache variables similarly.  Create 500 rather than
82631         just 300 files, to exercise bug on Darwin6.5, too.
82632         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82633         $missing_dir.
82634         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82635         AM_SYS_POSIX_TERMIOS.
82636         Reported by mkc@mathdogs.com.
82637         Also change use of $am_cv_sys_posix_termios
82638         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82639         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82640         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82641         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82642         in /proc/mounts until it finds one with matching device number.  This
82643         is unnecessary when the FILE argument *is* a mount point.  No stat call
82644         is necessary in that case.  So, disable the statvfs-testing code on
82645         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82646         as RedHat bug# 84846.
82647         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82648         to 1MB, so as not to render systems with no stack size limit (e.g.,
82649         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82650         Include <unistd.h>.  On some systems,
82651         it is required for the definition of _SC_PAGESIZE.
82652
82653 2003-08-16  Jim Meyering  <jim@meyering.net>
82654
82655         Merge from coreutils.
82656         * lib/xstrtoimax.c: #else #if -> #elif.
82657         * lib/xstrtoumax.c: Likewise.
82658
82659 2003-08-16  Jim Meyering  <jim@meyering.net>
82660
82661         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82662         * m4/utimes.m4: Removed.
82663         * m4/utimes-null.m4: Renamed from utimes.m4.
82664
82665         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82666         to 1MB, so as not to render systems with no stack size limit (e.g.,
82667         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82668         Include <unistd.h>.  On some systems,
82669         it is required for the definition of _SC_PAGESIZE.
82670
82671 2003-08-16  Jim Meyering  <jim@meyering.net>
82672         and Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         Merges from coreutils, etc.
82675
82676         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82677         using the latest version from cvs.  This avoids problems with #line
82678         directives using a vendor (Sun) compiler.
82679         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82680         Don't set GETGROUPS_LIB here; now it's
82681         done via getgroups.m4's wrapper function.
82682         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82683         rather than just in sh-util/configure.in, so that the
82684         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82685         same.
82686         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82687         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82688         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82689         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82690         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82691         Remove code that is now done by the newly-required macros.
82692         Append $(EXEEXT) to DF_PROG.
82693         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82694         Do not invoke or require the following here,
82695         since prereq.m4 or some gnulib .m4 now does this for us:
82696         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82697         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82698         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82699         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82700         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82701         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82702         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82703         AC_FUNC_OBSTACK.
82704         Do not replace the following functions, as this is now the job
82705         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82706         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82707         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82708         atexit getpass, strdup, getpagesize.
82709         Replace 'raise'.
82710         Do not check for the following functions, as this is now the job
82711         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82712         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82713         setregid.
82714         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82715         Check for sys/sysctl.h.
82716         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82717         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82718         of checking for ssize_t ourselves.
82719
82720         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82721         Require every macro that gnulib/modules/* suggests for us.
82722         (jm_PREREQ_ADDEXT): New macro.
82723         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82724         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82725
82726         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82727         (gl_PHYSMEM): Use it.
82728         Also check for `table' function.
82729         Check for new headers and functions.
82730         Add check for sys/sysmp.h.
82731         With suggestions from Kaveh Ghazi.
82732         Ignore headers that are present but cannot be compiled.  This
82733         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82734         C 5.4.
82735
82736 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82737
82738         Document merge from coreutils.
82739         * modules/userspec: Depend on posixver.
82740         * modules/strftime: Depend on tzset.
82741
82742 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82743
82744         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82745         rather than tab, after '#' in shell-script copyright notices.
82746         Suggested by Bruno Haible.
82747
82748 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82749
82750         * config/srclist-update: Use three spaces, rather than tab, after '#'
82751         in shell-script copyright notices.  Suggested by Bruno Haible.
82752         Remove unnecessary parenthesization in regular expression.
82753
82754 2003-08-15  Jim Meyering  <jim@meyering.net>
82755
82756         Merge from coreutils.
82757         * lib/xgethostname.c: Include <stdlib.h>.
82758         (xghostname): Don't exit for anything other than memory-related
82759         failure; just return NULL.
82760         * lib/userspec.c: Include "posixver.h".
82761         (parse_user_spec): Accept `.' as a separator only
82762         in pre-POSIX-200112 mode.
82763         * lib/strtoimax.c: Use #elif rather than #else #if.
82764         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82765         Remove function, now that we can rely on a working tzset function.
82766         [!_LIBC]: Ensure that the required autoconf test has been run.
82767         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82768         Use underlying_strftime for %r.
82769         * lib/sha.c: Merge in some clean-up and optimization changes from
82770         glibc.
82771         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82772         Ensure that it is a multiple of 64.
82773         Rearrange loop exit tests so as to avoid performing an
82774         additional fread after encountering an error or EOF.
82775         * lib/realloc.c: Update copyright date.
82776
82777 2003-08-15  Jim Meyering  <jim@meyering.net>
82778         and Paul Eggert  <eggert@twinsun.com>
82779
82780         Merge from coreutils.
82781         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82782         member but strut utmpx does not.  Needed for AIX 4.3.3.
82783         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82784
82785 2003-08-15  Jim Meyering  <jim@meyering.net>
82786         and Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         Merges from coreutils, etc.
82789         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82790         Require gl_FUNC_TZSET_CLOBBER.
82791         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82792         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82793         members.
82794
82795 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82796
82797         Help the merge from coreutils.
82798         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82799         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82800         * m4/tzset.m4: Use it too.
82801
82802 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82803
82804         * modules/tzset: New file.
82805
82806 2003-08-14  Jim Meyering  <jim@meyering.net>
82807
82808         Merges from coreutils.
82809         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82810         variable names, rather than @FNMATCH_H@.
82811         * modules/alloca: Likewise for $(ALLOCA_H).
82812
82813         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82814         the three copies of the literal target, `fnmatch.h'.
82815         * modules/alloca (alloca.h): Likewise.
82816
82817 2003-08-14  Jim Meyering  <jim@meyering.net>
82818
82819         Merge from coreutils.
82820         * m4/tzset.m4: New file.
82821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82822         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82823         otherwise, AIX 5.1 systems would end up using the latter.
82824         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82825         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82826         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82827         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82828
82829 2003-08-14  Jim Meyering  <jim@meyering.net>
82830
82831         Merge from coreutils.
82832         * lib/obstack.h: Whitespace changes.
82833         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82834         and xcalloc return values.
82835         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82836         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82837         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82838         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82839         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82840         error from mntctl.
82841         Use mntctl's return value to drive the entry-processing loop, since
82842         we can't rely on the value of the vmt_length member in the last
82843         entry.  On some systems doing so could result in exhausting
82844         virtual memory.  Based in part on a patch from Mike Jetzer.
82845
82846 2003-08-14  Jim Meyering  <jim@meyering.net>
82847         and Paul Eggert  <eggert@twinsun.com>
82848
82849         Merges from coreutils, plus other fixes.
82850         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82851         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82852         for credits and details.  Thanks to Kaveh Ghazi for helping
82853         to keep these files in sync.
82854         (ARRAY_SIZE): Define it.
82855         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82856         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82857         (memcasecmp): Don't assume size_t fits in unsigned int.
82858         Remove casts and duplicate code.
82859         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82860         (memcpy): Remove definition.
82861         Merge in some clean-up and optimization changes from glibc.
82862         [BLOCKSIZE]: Move definition to top of file.
82863         Ensure that it is a multiple of 64.
82864         Rearrange loop exit tests so as to avoid performing an
82865         additional fread after encountering an error or EOF.
82866         * lib/md5.h (md5_uintptr): Define.
82867         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82868         return to the initial working directory.  Preserve errno
82869         for caller.
82870         * lib/idcache.c: Include "xalloc.h".
82871         (xmalloc, xrealloc): Remove decls.
82872         (getuser): Remove casts no longer required in C89.
82873         * lib/human.c: Include stdio.h, for sprintf.
82874         * lib/group-member.c: Include "xalloc.h".
82875         (xmalloc, xrealloc): Remove decls.
82876         (get_group_info): Remove casts no longer required in C89.
82877         * lib/getusershell.c (readname): Remove casts no longer required in
82878         C89.
82879         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82880         * lib/getline.c: Whitespace fix, from coreutils.
82881
82882 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82883
82884         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82885         Check for isascii.
82886
82887         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82888         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82889         Undo previous (whitespace-only) change.
82890
82891 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82892
82893         * lib/exclude.c: Include <ctype.h>
82894         (IN_CTYPE_DOMAIN): New macro.
82895         (is_space): New fn.
82896         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82897         and empty lines.
82898
82899         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82900         Undo previous (whitespace-only) change.
82901
82902 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82903
82904         * config/srclist-update: Change update back to the old behavior,
82905         leaving whitespace alone.  Use one 'sed' command rather than a
82906         pipeline.
82907         (fixlicense): Now a variable, not a function.
82908         (remove_trailing_blanks): Remove.
82909         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82910         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82911         Undo previous (whitespace-only) change.
82912
82913 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82914
82915         Merge from coreutils.
82916         * modules/euidaccess: Add lib_SOURCES, include for new
82917         file euidaccess.h
82918
82919 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82920
82921         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82922         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82923         Normalize leading white space and remove trailing white space.
82924
82925         Merge from coreutils
82926         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82927
82928         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82929         0.12.1.  These files are now being upgraded automatically by
82930         ../config/srclist-update.
82931
82932 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82933
82934         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82935         Normalize leading white space and remove trailing white space.
82936         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82937         notice, as per ../config/srclist-update.
82938
82939         Merge from coreutils.
82940         * lib/euidaccess.h: New file.
82941         * lib/euidaccess.c: Include it.
82942         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82943         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82944         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82945
82946 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82947
82948         * config/srclist-update: Add copyright notice.
82949         (remove_id_lines, remove_trailing_blanks): New constants.
82950         (fixfile): Use them to normalize spacing a bit in copied files.
82951         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82952         Normalize leading white space and remove trailing white space.
82953
82954         * config/texinfo.tex: Sync with texinfo.
82955
82956         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82957         strtoul.c from libc, to merge coreutils whitespace changes.
82958
82959         * config/srclist.txt: Get the following m4 files from gettext:
82960         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82961         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82962         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82963         wint_t.m4.
82964
82965 2003-08-12  Karl Berry  <karl@gnu.org>
82966
82967         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82968         been made.
82969
82970 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82971
82972         * modules/gnu-source, m4/gnu-source.m4:
82973         Remove; we're assuming Autoconf 2.54 or later now.
82974         Suggested by Bruno Haible.
82975         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82976
82977 2003-08-11  Bruno Haible  <bruno@clisp.org>
82978
82979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82980
82981 2003-08-11  Bruno Haible  <bruno@clisp.org>
82982
82983         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82984         (vasnprintf): Use it instead of wcslen.
82985
82986 2003-08-11  Bruno Haible  <bruno@clisp.org>
82987
82988         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82989         value to ensure that _Bool promotes to int. Use #define for _Bool when
82990         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82991
82992 2003-08-10  Karl Berry  <karl@gnu.org>
82993
82994         * lib/regex.h: update from libc (whitespace fix).
82995
82996 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82997
82998         Merge some files from coreutils.  These changes were
82999         originally made by Jim Meyering.
83000         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83001         many older Unixes require this.
83002         * lib/alloca.c (alloca): Remove cast to argument of free;
83003         no longer needed in C89.
83004         * lib/alloca_.h, regex.h: Fix white space to match
83005         what GNU indent does.
83006
83007 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83008
83009         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83010         apparently Emacs's Unicode mode got confused before my 2003-08-05
83011         checkin.
83012
83013 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83014
83015         * m4/extensions.m4: New file.
83016         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83017         Require gl_USE_SYSTEM_EXTENSIONS.
83018         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83019         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83020
83021 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83022
83023         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83024         * modules/extensions, modules/gnu-source: New files.
83025         * modules/timespec, modules/unlocked-io: Depend on extensions.
83026
83027 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83028
83029         * modules/restrict: New file.
83030         * MODULES.html.sh (func_all_modules): Add restrict.
83031         * modules/regex: Depend on restrict.
83032
83033 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83034
83035         * m4/restrict.m4: New file.
83036         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83037
83038 2003-08-07  Bruno Haible  <bruno@clisp.org>
83039
83040         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83041         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83042
83043 2003-08-07  Bruno Haible  <bruno@clisp.org>
83044
83045         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83046         makes the module 'getndelim2' compatible with the module 'getline'.
83047
83048 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83049
83050         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83051         byte with "\201" to avoid glitches when editing that source file
83052         with multi-gnome-terminal.
83053
83054 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83055
83056         * lib/bumpalloc.h: Remove.
83057
83058 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83059
83060         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83061         * modules/bumpalloc: Remove.
83062
83063 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83064
83065         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83066         GNU coding style.
83067
83068         Merge from coreutils.
83069         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83070         1. From glibc.
83071         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83072         from Karl Berry, implemented by Jim Meyering.
83073         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83074         from Dmitry V. Levin.
83075         Remove anachronistic cast of xrealloc.
83076         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83077         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83078         type. Otherwise, it wouldn't compile with at least /bin/cc on
83079         ymp-cray-unicos9.0.2.X.
83080         Combine two mostly-identical uses of alloca into one.
83081         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83082
83083 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83084
83085         [From Emacs.]
83086
83087         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83088         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83089         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83090         obsolete NLIST_NAME_UNION.
83091         [__GNU__]: Undef BSD and FSCALE.
83092         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83093
83094 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83095
83096         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83097         an enum type, so that it's guaranteed to promote to int.  See:
83098         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83099
83100 2003-08-03  Karl Berry  <karl@gnu.org>
83101
83102         * config/depcomp: update from automake.
83103
83104 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83107         (strerror): Don't assume that a printable int fits in 14 bytes.
83108
83109 2003-07-31  Bruno Haible  <bruno@clisp.org>
83110
83111         * modules/getpass-gnu: New file.
83112         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83113
83114 2003-07-31  Bruno Haible  <bruno@clisp.org>
83115
83116         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83117
83118 2003-07-24  Karl Berry  <karl@gnu.org>
83119
83120         * config/missing: update from automake.
83121
83122 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83123             Bruno Haible  <bruno@clisp.org>
83124
83125         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83126         * lib/getline.c (getline, getdelim): Likewise.
83127         Remove _GNU_SOURCE define; now it's defined in config.h through
83128         m4/getline.m4.
83129
83130 2003-07-23  Karl Berry  <karl@gnu.org>
83131
83132         * config/config.sub: update from prep.
83133
83134 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83135
83136         * modules/xalloc (Depends-on): Add exitfail.
83137         * modules/xmemcoll: Likewise.
83138
83139 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83140
83141         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83142         over-parenthesization in macros.
83143
83144         Sync with coreutils.
83145
83146         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83147         required by C99.
83148
83149         Use `exit_failure' for xalloc and xmemcoll instead of their own
83150         private exit-failure variables.
83151         * lib/xalloc.h (xalloc_exit_failure): Remove.
83152         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83153         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83154         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83155         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83156         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83157
83158 2003-07-20  Jim Meyering  <jim@meyering.net>
83159
83160         * modules/closeout (Depends-on): Add exitfail.
83161         Suggestion from Bruno Haible.
83162
83163 2003-07-19  Karl Berry  <karl@gnu.org>
83164
83165         * config/config.sub: update from prep.
83166
83167 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83168
83169         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83170         Remove.
83171         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83172         to test that it can stand by itself.  Include "exitfail.h".
83173         Clients should set exit_failure instead.
83174         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83175
83176 2003-07-18  Bruno Haible  <bruno@clisp.org>
83177
83178         * modules/getndelim2: New file.
83179         * modules/getline: Share files with module getndelim2.
83180         * modules/getnline: Depend on getndelim2 instead of sharing files with
83181         it. Add getnline.c to lib_SOURCES.
83182         * MODULES.html.sh (func_all_modules): Add getndelim2.
83183
83184 2003-07-18  Bruno Haible  <bruno@clisp.org>
83185
83186         * m4/getndelim2.m4: New file.
83187         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83188         invoke gl_PREREQ_GETNDELIM2.
83189         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83190         gl_PREREQ_GETNDELIM2.
83191         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83192         gl_GETNDELIM2.
83193
83194 2003-07-18  Bruno Haible  <bruno@clisp.org>
83195
83196         * lib/getndelim2.h: New file.
83197         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83198         getndelim2.h.
83199         (getndelim2): Make non-static. Change return type to ssize_t.
83200         * lib/getline.h: Change argument names.
83201         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83202         * lib/getnline.c: Include getndelim2.h.
83203
83204 2003-07-18  Andreas Schwab  <schwab@suse.de>
83205
83206         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83207
83208 2003-07-17  Karl Berry  <karl@gnu.org>
83209
83210         * config/config.sub: update from prep.
83211
83212 2003-07-17  Bruno Haible  <bruno@clisp.org>
83213
83214         * modules/getnline: New file.
83215         * modules/getline: Add lib/getndelim2.c to source file list.
83216         * MODULES.html.sh (func_all_modules): Add getnline.
83217
83218 2003-07-17  Bruno Haible  <bruno@clisp.org>
83219
83220         * m4/getnline.m4: New file.
83221
83222 2003-07-17  Bruno Haible  <bruno@clisp.org>
83223
83224         * m4/Makefile.am.in: Remove file.
83225         * m4/Makefile.am: Remove file.
83226         * m4/Makefile.in: Remove file.
83227
83228 2003-07-17  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/getnline.h: New file.
83231         * lib/getnline.c: New file.
83232         * lib/getndelim2.c: New file, extracted from getline.c.
83233         (getndelim2): Renamed from getdelim2, with added nmax argument.
83234         * lib/getline.c: Include getndelim2.c.
83235         (getdelim2): Moved out to getndelim2.c.
83236         (getline, getdelim): Update.
83237
83238 2003-07-17  Bruno Haible  <bruno@clisp.org>
83239
83240         * lib/Makefile.am: Remove file.
83241         * lib/Makefile.in: Remove file.
83242
83243 2003-07-17  Bruno Haible  <bruno@clisp.org>
83244
83245         * configure.in: Remove file.
83246         * Makefile.in: Remove file.
83247
83248 2003-07-17  Bruno Haible  <bruno@clisp.org>
83249
83250         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83251
83252 2003-07-16  Karl Berry  <karl@gnu.org>
83253
83254         * config/srclist-update: was running fixlicense twice, which caused
83255                 texinfo.tex to be nullified for some reason.  Simplify,
83256                 $gplsrc is no longer needed as far as I can see?
83257
83258 2003-07-16  Jim Meyering  <jim@meyering.net>
83259
83260         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83261
83262 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83263
83264         * config/srclist.txt: Get the following files from gettext-runtime/intl
83265         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83266         ref-del.sin.  From Bruno Haible.
83267         * config/srclist-update (fixfile): Change grep pattern again, since the
83268         previous fix didn't work (there was another trailing $).  Use
83269         '[$]' to escape the $s.
83270
83271 2003-07-15  Karl Berry  <karl@gnu.org>
83272
83273         * lib/vasnprintf.c: update from gettext.
83274
83275 2003-07-15  Karl Berry  <karl@gnu.org>
83276
83277         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83278         gets expanded when surrounded by '$'.
83279
83280 2003-07-15  Jim Meyering  <jim@meyering.net>
83281
83282         * modules/save-cwd: Don't depend on error.  From Derek Price.
83283
83284 2003-07-15  Jim Meyering  <jim@meyering.net>
83285
83286         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83287
83288 2003-07-14  Simon Josefsson  <jas@extundo.com>
83289
83290         * modules/mempcpy: New file.
83291         * MODULES.html.sh (func_all_modules): Add mempcpy.
83292
83293 2003-07-14  Simon Josefsson  <jas@extundo.com>
83294
83295         * m4/mempcpy.m4: New file.
83296
83297 2003-07-14  Simon Josefsson  <jas@extundo.com>
83298
83299         * lib/mempcpy.h: New file.
83300         * lib/mempcpy.c: New file.
83301
83302 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83303
83304         * modules/getdate, modules/posixtm: Depend on mktime.
83305
83306 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83307
83308         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83309         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83310         unicodeio.c, unicodeio.h, unlocked-io.h:
83311         Switch from LGPL to GPL.
83312
83313 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83314
83315         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83316         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83317         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83318         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83319         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83320         updated automatically by ../config/srclist-update.  This changes
83321         their license from LPGL to GPL.
83322
83323 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83324
83325         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83326         assumed to refer to the root of the most recent stable gettext version.
83327         * config/srclistvars.sh: Add defaults for eggert.
83328         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83329         Match "This program" as well as "The program".  This is needed
83330         for gettext.
83331
83332 2003-07-14  Jim Meyering  <jim@meyering.net>
83333
83334         Don't emit diagnostics.  Let callers do that.
83335         * lib/save-cwd.c: Don't include "error.h".
83336         (save_cwd): Don't call error.  Ensure that errno is valid
83337         when returning nonzero.
83338
83339         * lib/save-cwd.h (restore_cwd): Update prototype.
83340         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83341         Simplify.  Don't call error upon failure.  Let callers do that.
83342         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83343         when auditing is enabled.  But don't bother updating the #if.
83344
83345 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83346
83347         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83348         it breaks C++ compilation.
83349         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83350
83351 2003-07-10  Simon Josefsson  <jas@extundo.com>
83352
83353         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83354
83355 2003-07-10  Jim Meyering  <jim@meyering.net>
83356
83357         * m4/clock_time.m4: Remove trailing blank.
83358         * m4/intmax_t.m4: Likewise.
83359
83360 2003-07-10  Jim Meyering  <jim@meyering.net>
83361
83362         * lib/vasnprintf.c: Remove trailing blanks.
83363         Make cpp indentation consistent.
83364
83365 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83366
83367         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83368         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83369         Switch from LGPL to GPL.
83370
83371 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83372
83373         * config/srclist.txt: Sort sublists.  Add
83374         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83375         that differ from gnulib for one reason or another; we'd like this list
83376         to be smaller but for now let's document what we have.
83377
83378 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83379
83380         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83381         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83382         and sweeter "eval x=$x".
83383         * config/srclist.txt: Get lib/argp* from glibc.
83384
83385 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83386
83387         * lib/mktime.c: Fix some boundary cases and remove need for floating
83388         point.
83389
83390         Issue a compile-time diagnostic if time_t is floating point, or if
83391         two's complement arithmetic is not in effect, or if arithmetic
83392         right shift does not propagate the sign.  These assumptions were
83393         all in the original code but they weren't checked.
83394
83395         (TIME_T_MIDPOINT, verify): New macros.
83396         (__isleap): Remove; it has integer overflow problems.
83397         (leapyear): New function, without those problems.
83398         (ydhms_tm_diff): Remove; splitting into two parts.
83399         (ydhms_diff): New function, containing the arithmetic part of
83400         the old ydhms_tm_diff function.  Issue a compile-time
83401         diagnostic if we are not using C99 integer division.
83402         Avoid casts when possible.
83403         (guess_time_tm): New function, containing the checking part of
83404         the old ydhms_tm_diff function.  Return the new value, rather than
83405         the difference between it and the old.  Accept a new argument T
83406         so that *T specifies the old value.  Check for overflow in the result.
83407
83408         (__mktime_internal): Use a time_t offset, not a long int offset.
83409         This undoes the 2003-06-04 change, which is no longer needed now
83410         that we have better overflow checking.
83411         (localtime_offset): Likewise.
83412
83413         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83414         and long are 64-bit but int is only 32-bit.
83415         (ydhms_diff): Use long int to store year1 and yday1.
83416         Issue a compile-time diagnostic if long int is not wide enough.
83417
83418         (__mktime_internal): Use long int to store adjusted year and yday.
83419         Use plain C rather than preprocessor commands, if that doesn't
83420         affect efficiency.
83421         Check for overflow (and try to repair) after each probe
83422         rather than checking only at the very end.  This avoids some bugs
83423         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83424         does not equal GMT offset at maximum time).
83425         Use integer to check for overflow rather than floating point; this
83426         is more portable to non-IEEE hosts, and is a tad faster.
83427         When we detect that we are oscillating between two values,
83428         don't check whether tm_isdst has the requested value, since
83429         we already know the answer.  When tm_isdst has the wrong value,
83430         use a different heuristic to find the right one, based on the
83431         extreme values actually observed in practice in tz2003a,
83432         rather than the (overly optimistic) "previous 3 calendar quarters".
83433
83434         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83435         "T const" to accommodate glibc style.
83436         (check_result): Use less-confusing report format.  "long" -> "long int.
83437         (main): Likewise.
83438         Don't loop if the iteration overflows time_t.
83439         Allow a negative step in the iteration.
83440
83441 2003-07-06  Karl Berry  <karl@gnu.org>
83442
83443         * config/depcomp: update from automake.
83444         * config/config.sub: update from prep.
83445
83446 2003-07-03  Karl Berry  <karl@gnu.org>
83447
83448         * config/config.guess: update from prep.
83449
83450 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83451
83452         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83453         xreadlink.c now includes it unconditionally.
83454
83455 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83456
83457         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83458         having it depend on HAVE_SYS_TYPES_H.
83459
83460 2003-07-01  Bruno Haible  <bruno@clisp.org>
83461
83462         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83463         <sys/types.h> should be sufficient.
83464         Reported by Paul Eggert.
83465
83466 2003-06-26  Karl Berry  <karl@gnu.org>
83467
83468         * config/depcomp: update from automake.
83469
83470 2003-06-26  Bruno Haible  <bruno@clisp.org>
83471
83472         * modules/human: Depend on module stdbool.
83473
83474 2003-06-25  Bruno Haible  <bruno@clisp.org>
83475
83476         * modules/readlink: New file.
83477         * modules/xreadlink: Depend on it.
83478         * MODULES.html.sh (func_all_modules): Add readlink.
83479
83480 2003-06-25  Bruno Haible  <bruno@clisp.org>
83481
83482         * m4/readlink.m4: New file.
83483
83484 2003-06-25  Bruno Haible  <bruno@clisp.org>
83485
83486         * lib/readlink.c: New file.
83487
83488 2003-06-22  Karl Berry  <karl@gnu.org>
83489
83490         * config/srclist.txt: update mkinstalldirs from automake.
83491         * config/mkinstalldirs: update.
83492
83493 2003-06-22  Bruno Haible  <bruno@clisp.org>
83494
83495         Portability to mingw32.
83496         * m4/ssize_t.m4: New file, from GNU gettext.
83497         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83498         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83499
83500 2003-06-22  Bruno Haible  <bruno@clisp.org>
83501
83502         * modules/safe-read: Add m4/ssize_t.m4.
83503         * modules/xreadlink: Add m4/ssize_t.m4.
83504
83505 2003-06-20  Bruno Haible  <bruno@clisp.org>
83506
83507         Assume C89, so PARAMS isn't needed.
83508         * lib/unicodeio.h (PARAMS): Remove.
83509         * lib/unicodeio.c: Don't use PARAMS.
83510
83511 2003-06-18  Karl Berry  <karl@gnu.org>
83512
83513         * config/config.{guess,sub}: update from prep.
83514
83515 2003-06-18  Jim Meyering  <jim@meyering.net>
83516
83517         Merge changes from coreutils.
83518         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83519         Remove explicit declarations of xmalloc and realloc.
83520         Include xalloc.h.
83521         (read_utmp): Remove anachronistic cast of xmalloc.
83522
83523 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83524
83525         Assume C89, so PARAMS isn't needed.
83526         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83527         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83528         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83529         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83530         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83531         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83532         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83533         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83534         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83535         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83536         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83537         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83538         no longer needed. Anyway, config.h should always be included before any
83539         other file.
83540
83541 2003-06-11  Simon Josefsson  <jas@extundo.com>
83542
83543         * modules/sysexits: New file.
83544         * MODULES.html.sh (func_all_modules): Add sysexits.
83545
83546 2003-06-11  Simon Josefsson  <jas@extundo.com>
83547
83548         * lib/sysexit_.h: New file.
83549
83550 2003-06-11  Derek Price  <derek@ximbiot.com>
83551
83552         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83553         necessary.
83554
83555 2003-06-11  Bruno Haible  <bruno@clisp.org>
83556
83557         * m4/sysexits.m4: New file.
83558
83559 2003-06-10  Simon Josefsson  <jas@extundo.com>
83560
83561         * lib/argp.h: New file, from glibc.
83562         * lib/argp-ba.c: New file, from glibc.
83563         * lib/argp-eexst.c: New file, from glibc.
83564         * lib/argp-fmtstream.c: New file, from glibc.
83565         * lib/argp-fmtstream.h: New file, from glibc.
83566         * lib/argp-fs-xinl.c: New file, from glibc.
83567         * lib/argp-help.c: New file, from glibc.
83568         * lib/argp-namefrob.h: New file, from glibc.
83569         * lib/argp-parse.c: New file, from glibc.
83570         * lib/argp-pv.c: New file, from glibc.
83571         * lib/argp-pvh.c: New file, from glibc.
83572         * lib/argp-xinl.c: New file, from glibc.
83573
83574 2003-06-10  Simon Josefsson  <jas@extundo.com>
83575
83576         * modules/strchrnul: New file.
83577
83578 2003-06-10  Simon Josefsson  <jas@extundo.com>
83579
83580         * modules/argp: New file.
83581
83582 2003-06-10  Simon Josefsson  <jas@extundo.com>
83583
83584         * m4/strchrnul.m4: New file.
83585
83586 2003-06-10  Simon Josefsson  <jas@extundo.com>
83587
83588         * lib/strchrnul.h: New file.
83589         * lib/strchrnul.c: New file.
83590
83591 2003-06-10  Bruno Haible  <bruno@clisp.org>
83592
83593         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83594
83595 2003-06-07  Karl Berry  <karl@gnu.org>
83596
83597         * config/config.{guess,sub}: update from prep.
83598
83599 2003-06-07  Jim Meyering  <jim@meyering.net>
83600
83601         * modules/strtod: Use $(...) notation, not @...@ for
83602         AC_REPLACE'd variables.
83603         * modules/localcharset: Likewise.
83604
83605 2003-06-07  Jim Meyering  <jim@meyering.net>
83606
83607         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83608         in place of my name in the copyright comment.
83609         Remove definition and uses of __P.
83610
83611         From coreutils.
83612         * lib/stat.c: Don't declare xmalloc explicitly.
83613         Instead, include "xalloc.h".
83614         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83615         xrealloc, and xcalloc return values.
83616         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83617         Improve comment.
83618         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83619
83620 2003-06-07  Bruno Haible  <bruno@clisp.org>
83621
83622         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83623         avoid AC_CONFIG_LINKS.
83624         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83625         fnmatch.h, to avoid AC_CONFIG_LINKS.
83626         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83627
83628 2003-06-07  Bruno Haible  <bruno@clisp.org>
83629
83630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83631         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83632         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83633         directory.
83634         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83635         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83636         directory.
83637
83638 2003-06-06  Jim Meyering  <jim@meyering.net>
83639
83640         Merge from coreutils.
83641         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83642         Consolidate declarations and initializations of *_base* locals.
83643
83644         Merge from coreutils.
83645         This avoids a core dump on systems without GNU putenv,
83646         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83647         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83648         (unsetenv): New static function, from GNU libc.
83649         (rpl_putenv): Use it.
83650
83651         * lib/modechange.c: Remove trailing blanks.
83652
83653         Merge from coreutils.
83654         * lib/fsusage.c: Remove declaration of statfs.
83655         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83656
83657         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83658
83659 2003-06-06  Jim Meyering  <jim@meyering.net>
83660
83661         * lib/stdbool_.h: Renamed from stdbool.h.in.
83662
83663 2003-06-06  Jim Meyering  <jim@meyering.net>
83664             Bruno Haible  <bruno@clisp.org>
83665
83666         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83667         Adjust Makefile.am snippet not to redirect directly to target.
83668         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83669
83670 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83671
83672         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83673         mismatch, look in future quarters as well as past.  This fixes a
83674         bug when processing fall-backwards gaps immediately after a long
83675         period of daylight-saving time.
83676
83677         * lib/mktime.c: Assume freestanding C89 or better.
83678         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83679         (__P): Remove; not used.
83680         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83681         (mktime, not_equal_tm, print_tm, check_result,
83682         main): Use prototypes.  Use const * where appropriate.
83683         (main): Fix typo in testing code that uncovered by above changes.
83684         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83685
83686 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83687
83688         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83689         locale.h, localeconv.  This merges changes from coreutils.
83690
83691         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83692         It can be removed after the next Autoconf is released.
83693         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83694         needed.
83695
83696 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83697
83698         * lib/mktime.c: Fix Debian bug 177940
83699         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83700         (localtime_offset): Now long int, not time_t, because we want it
83701         to be guaranteed to be signed.  All uses changed.
83702         (__mktime_internal): If overflow would occur when adding offset,
83703         don't add it.
83704
83705         Merge 'human' changes from coreutils.  Rewrite to support
83706         locale-specific notations like thousands separators.
83707         * lib/human.c: Simplify authorship notice.
83708         Include human.h immediately after config.h.
83709         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83710         <limits.h>: Do not include, since human.h does.
83711         (SIZE_MAX, UINTMAX_MAX): New macros.
83712         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83713         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83714         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83715         (power_letter): Renamed from suffixes.
83716         (generate_suffix_backwards): Remove.
83717         (adjust_value): Now takes int style (because of human.h changes)
83718         and long double value (for greater precision on some platforms).
83719         (group_number): New function.
83720         (human_readable): Use it.  Use integer options, not enum.
83721         Put the options before the sizes in the arg list.
83722         Support all the new options.
83723         The old human_readable function has been removed;
83724         use inttostr.h instead.
83725         (human_readable, default_block_size, humblock):
83726         Use uintmax_t, not int, for block sizes.
83727         (human_readable_inexact, block_size_types): Remove.
83728         (block_size_opts): New constant.
83729         (human_options): Renamed from human_block_size, with new signature
83730         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83731         * lib/human.h: Add copyright and authorship notice.
83732         Include <limits.h> and <stdbool.h> unconditionally.
83733         (PARAMS): Remove.  All uses removed.
83734         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83735         (enum human_inexact_style): Remove tag; now a nameless enum.
83736         (human_floor, human_ceiling, human_round_to_even): Now have
83737         values 2, 0, 1 rather than -1, 1, 0.
83738         (human_group_digits, human_suppress_point_zero, human_autoscale,
83739         human_base_1024, human_SI, human_B): New constants.
83740         (human_readable_inexact, human_block_size): Remove.
83741         (human_readable): Size args are now uintmax_t, not int.
83742         (human_options): New decl.
83743
83744         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83745         unnecessary now that we assume C89 or better.  This change
83746         imported from coreutils.
83747
83748         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83749         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83750         in the 2003-05-30 sync from glibc.
83751
83752         .h files should stand alone, but we shouldn't include <sys/types.h>
83753         if we can get away with just <stddef.h>.
83754
83755         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83756         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83757         rather than <sys/types.h>, as we merely need size_t.
83758         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83759         to get size_t.
83760         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83761         Include <stdio.h>, to get FILE.
83762         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83763         memcasecmp.h has included <stddef.h> and all we need is size_t.
83764         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83765         our interface, instead of including <sys/types.h>
83766
83767 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83768
83769         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83770         now, as glibc mktime is buggy on non-glibc systems.
83771
83772 2003-06-03  Karl Berry  <karl@gnu.org>
83773
83774         * config/config.sub: update from prep.
83775
83776 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83777
83778         [from coreutils]
83779         Fix some minor time-related bugs with POSIX time arguments.
83780         Some valid time stamps were being rejected (notably -1, and
83781         time stamps before 1900 on 64-bit hosts).  And some invalid
83782         time stamps were being accepted, e.g. September 31.
83783
83784         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83785         that we can return (time_t) -1 successfully.
83786         * lib/posixtm.c: Likewise.
83787         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83788         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83789         (t): Remove static var.
83790         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83791         of static var.  All uses changed.
83792         (year): Do not reject years before 1900; they can occur with
83793         64-bit time_t.
83794         (posix_time_parse): Do not check for out-of-range components;
83795         that is now the caller's responsibility, since our checks were
83796         only approximations.
83797         (posixtime): Use mktime to check for out-of-range components,
83798         since it knows them exactly.
83799         If mktime returns (time_t) -1, check whether an error actually occurred
83800         by invoking localtime on -1.
83801         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83802         posixtime failures better.
83803         Improve the test data (in comments only).
83804
83805 2003-06-02  Karl Berry  <karl@gnu.org>
83806
83807         * config/mkinstalldirs (version): new variable.
83808         (--version): new option.
83809         (usage): improve message.
83810
83811 2003-05-30  Karl Berry  <karl@gnu.org>
83812
83813         * lib/mktime.c: update from libc.
83814
83815 2003-05-30  Bruno Haible  <bruno@clisp.org>
83816
83817         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83818         * config/config.rpath: Upgrade to gettext-0.12.1.
83819
83820 2003-05-30  Bruno Haible  <bruno@clisp.org>
83821
83822         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83823         * m4/nls.m4: New file, from gettext-0.12.1.
83824         * m4/po.m4: New file, from gettext-0.12.1.
83825         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83826
83827 2003-05-30  Bruno Haible  <bruno@clisp.org>
83828
83829         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83830         * lib/localcharset.h: Likewise.
83831         * lib/localcharset.c: Likewise.
83832
83833 2003-05-29  Karl Berry  <karl@gnu.org>
83834
83835         * config/config.rpath: update from gettext.
83836
83837 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83838
83839         Assume the headers required for C89 freestanding compilers.
83840         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83841         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83842         * m4/human.m4 (gl_HUMAN): Likewise.
83843         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83844         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83845         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83846         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83847         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83848         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83849
83850 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83851
83852         Assume the headers required for C89 freestanding compilers.
83853         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83854         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83855         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83856         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83857         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83858         define, since <limits.h> is guaranteed to do that.
83859         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83860         * lib/exclude.c: Include <stdbool.h> unconditionally.
83861         * lib/tempname.c: Include <stddef.h> unconditionally.
83862         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83863         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83864         <stddef.h> does that.
83865         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83866         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83867         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83868         needed.
83869         * lib/xstrtol.c: Likewise.
83870         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83871         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83872
83873         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83874         warnings on some platforms.
83875
83876         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83877         arbitrarily.
83878
83879 2003-05-26  Jim Meyering  <jim@meyering.net>
83880
83881         Merge in a change from coreutils:
83882         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83883         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83884         that condition, rather than `-1' which is slightly misleading.
83885         Change the name of the cache variable to have the gl_ prefix.
83886         Prompted by a patch from Richard Dawe for DJGPP.
83887
83888 2003-05-24  Karl Berry  <karl@gnu.org>
83889
83890         * config/config.guess: update from prep.
83891
83892 2003-05-22  Karl Berry  <karl@gnu.org>
83893
83894         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83895
83896 2003-05-20  Karl Berry  <karl@gnu.org>
83897
83898         * config/config.guess: update from prep.
83899
83900 2003-05-18  Karl Berry  <karl@gnu.org>
83901
83902         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83903         might actually be set by the user.
83904
83905         * config/depcomp, install-sh, mdate-sh: update from automake.
83906
83907 2003-05-17  Bruno Haible  <bruno@clisp.org>
83908
83909         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83910         invalid expansion for AC_EGREP_CPP.
83911         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83912         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83913         Suggested by Akim Demaille <akim@epita.fr> in
83914         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83915
83916 2003-05-12  Jim Meyering  <jim@meyering.net>
83917
83918         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83919         the space-padded-by-default conversion specifiers, %e, %k, %l.
83920
83921 2003-05-12  Bruno Haible  <bruno@clisp.org>
83922
83923         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83924         the string is longer than 4 KB.
83925
83926 2003-05-11  Karl Berry  <karl@gnu.org>
83927
83928         * config/config.{guess,sub}: update from prep.
83929
83930 2003-05-09  Bruno Haible  <bruno@clisp.org>
83931
83932         * modules/error: Add m4/strerror_r.m4 to file list.
83933
83934 2003-05-03  Bruno Haible  <bruno@clisp.org>
83935
83936         Upgrade to Unicode-4.0.
83937         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83938         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83939         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83940         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83941         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83942         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83943         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83944         Change width of U+E0100..U+E01EF from 1 to 0.
83945
83946 2003-04-25  Jim Meyering  <jim@meyering.net>
83947
83948         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83949         of type size_t, not int.
83950
83951 2003-04-25  Bruno Haible  <bruno@clisp.org>
83952
83953         * lib/copy-file.c: Include <stddef.h>, for size_t.
83954
83955 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83956
83957         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83958         code which expansion is under static control.  Patch imported from
83959         Akim Demaille's patch to Bison; see
83960         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83961
83962 2003-04-14  Bruno Haible  <bruno@clisp.org>
83963
83964         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83965
83966 2003-04-11  Jim Meyering  <jim@meyering.net>
83967
83968         Merge changes from Coreutils.
83969
83970         2003-03-22  Jim Meyering  <jim@meyering.net>
83971
83972         * lib/strftime.c (widen): Cast alloca return value to proper type.
83973
83974         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83975
83976         From GNU libc.
83977         * lib/strftime.c (my_strftime): Handle very large width
83978         specifications for numeric values correctly.  Improve checks for
83979         overflow.
83980
83981         2003-01-19  Jim Meyering  <jim@meyering.net>
83982
83983         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83984         definitions.
83985         (nl_get_alt_digit) [! defined my_strftime]: Define.
83986         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83987         _nl_get_alt_digit and _nl_get_walt_digit.
83988
83989         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83990         libc. These changes have no effect outside of _LIBC.
83991
83992 2003-04-10  Bruno Haible  <bruno@clisp.org>
83993
83994         * modules/findprog: New file.
83995         * MODULES.html.sh (func_all_modules): Add it.
83996
83997 2003-04-10  Bruno Haible  <bruno@clisp.org>
83998
83999         * m4/findprog.m4: New file.
84000         * m4/eaccess.m4: New file.
84001
84002 2003-04-10  Bruno Haible  <bruno@clisp.org>
84003
84004         * lib/findprog.h: New file, from GNU gettext.
84005         * lib/findprog.c: New file, from GNU gettext.
84006
84007 2003-04-05  Jim Meyering  <jim@meyering.net>
84008
84009         Merge changes from Coreutils.
84010
84011         * lib/exclude.h (PARAMS): Remove definition and uses.
84012         * lib/exclude.c: Remove uses of `PARAMS'.
84013
84014         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84015         Add test-cases for DOS filenames. Declare program_name.
84016         (main): Set up program_name.  Patch by Rich Dawe.
84017
84018         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84019         error from mntctl.
84020         Use mntctl's return value to drive the entry-processing loop, since
84021         we can't rely on the value of the vmt_length member in the last
84022         entry.  On some systems doing so could result in exhausting
84023         virtual memory.  Based in part on a patch from Mike Jetzer.
84024
84025 2003-04-04  Bruno Haible  <bruno@clisp.org>
84026
84027         * modules/linebreak: New file.
84028         * MODULES.html.sh (func_all_modules): Add it.
84029
84030 2003-04-04  Bruno Haible  <bruno@clisp.org>
84031
84032         * m4/linebreak.m4: New file.
84033
84034 2003-04-04  Bruno Haible  <bruno@clisp.org>
84035
84036         * lib/linebreak.h: New file, from GNU gettext.
84037         * lib/linebreak.c: New file, from GNU gettext with slight
84038         modifications.
84039         * lib/lbrkprop.h: New file, from GNU gettext.
84040
84041 2003-04-03  Bruno Haible  <bruno@clisp.org>
84042
84043         * modules/utf8-ucs4: New file.
84044         * modules/utf16-ucs4: New file.
84045         * modules/ucs4-utf8: New file.
84046         * modules/ucs4-utf16: New file.
84047         * MODULES.html.sh (func_all_modules): Add them.
84048
84049 2003-04-03  Bruno Haible  <bruno@clisp.org>
84050
84051         * m4/utf-ucs4.m4: New file.
84052         * m4/ucs4-utf.m4: New file.
84053
84054 2003-04-03  Bruno Haible  <bruno@clisp.org>
84055
84056         * lib/utf8-ucs4.h: New file, from GNU gettext.
84057         * lib/utf16-ucs4.h: New file, from GNU gettext.
84058         * lib/ucs4-utf8.h: New file, from GNU gettext.
84059         * lib/ucs4-utf16.h: New file, from GNU gettext.
84060
84061 2003-04-02  Bruno Haible  <bruno@clisp.org>
84062
84063         * modules/binary-io: New file.
84064         * MODULES.html.sh (func_all_modules): Add it.
84065
84066 2003-04-02  Bruno Haible  <bruno@clisp.org>
84067
84068         * lib/binary-io.h: New file, from GNU gettext.
84069
84070 2003-04-01  Bruno Haible  <bruno@clisp.org>
84071
84072         * modules/pathname: New file.
84073         * MODULES.html.sh (func_all_modules): Add it.
84074
84075 2003-04-01  Bruno Haible  <bruno@clisp.org>
84076
84077         * lib/pathname.h: New file, from GNU gettext.
84078         * lib/concatpath.c: New file, from GNU gettext.
84079
84080 2003-03-30  Bruno Haible  <bruno@clisp.org>
84081
84082         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84083
84084 2003-03-30  Bruno Haible  <bruno@clisp.org>
84085
84086         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84087         function chown() doesn't exist.
84088
84089 2003-03-28  Bruno Haible  <bruno@clisp.org>
84090
84091         * modules/copy-file: New file.
84092         * MODULES.html.sh (func_all_modules): Add it.
84093
84094 2003-03-28  Bruno Haible  <bruno@clisp.org>
84095
84096         * m4/copy-file.m4: New file.
84097
84098 2003-03-28  Bruno Haible  <bruno@clisp.org>
84099
84100         * lib/copy-file.h: New file, from GNU gettext.
84101         * lib/copy-file.c: New file, from GNU gettext.
84102
84103 2003-03-18  Jim Meyering  <jim@meyering.net>
84104
84105         * lib/quote.c (quote_n): Fix typo in comment.
84106
84107 2003-03-18  Bruno Haible  <bruno@clisp.org>
84108
84109         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84110         checking.
84111         * m4/onceonly_2_57.m4: Likewise.
84112
84113 2003-03-17  Bruno Haible  <bruno@clisp.org>
84114
84115         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84116         (m4_quote): Remove macro.
84117         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84118
84119 2003-03-14  Jim Meyering  <jim@meyering.net>
84120
84121         Merge changes from Coreutils.
84122         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84123         to be const, in order to avoid warnings.
84124         (obstack_room): Likewise.
84125         (obstack_empty_p): Likewise.
84126
84127 2003-03-14  Bruno Haible  <bruno@clisp.org>
84128
84129         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84130         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84131
84132 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84133
84134         Merge changes from Bison.
84135         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84136         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84137         when compiling Bison 1.875's `bitset bset = obstack_alloc
84138         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84139         * lib/hash.c: Include <stdbool.h> unconditionally.
84140
84141 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84142
84143         * m4/onceonly.m4 (m4_quote): New macro.
84144         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84145         Quote AC_FOREACH variable-expansions properly.
84146
84147 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84148
84149         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84150
84151 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84152
84153         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84154         Reported by Bruce Becker; see:
84155         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84156
84157 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84158             Bruno Haible  <bruno@clisp.org>
84159
84160         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84161         Reported by John Hughes, see
84162         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84163
84164 2003-02-20  Bruno Haible  <bruno@clisp.org>
84165
84166         * MODULES.html.sh (func_all_modules): Add poll.
84167
84168 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84169
84170         * modules/poll: New file.
84171
84172 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84173
84174         * lib/poll_.h: New file.
84175         * lib/poll.c: New file.
84176
84177 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84178
84179         * m4/poll.m4: New file.
84180
84181 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84182
84183         * modules/mathl: New file.
84184
84185 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84186
84187         * lib/mathl.h: New file.
84188         * lib/acosl.c: New file.
84189         * lib/asinl.c: New file.
84190         * lib/atanl.c: New file.
84191         * lib/ceill.c: New file.
84192         * lib/cosl.c: New file.
84193         * lib/expl.c: New file.
84194         * lib/floorl.c: New file.
84195         * lib/frexpl.c: New file.
84196         * lib/ldexpl.c: New file.
84197         * lib/logl.c: New file.
84198         * lib/sincosl.c: New file.
84199         * lib/sinl.c: New file.
84200         * lib/sqrtl.c: New file.
84201         * lib/tanl.c: New file.
84202         * lib/trigl.c: New file.
84203         * lib/trigl.h: New file.
84204
84205 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84206
84207         * m4/mathl.m4: New file.
84208
84209 2003-02-18  Bruno Haible  <bruno@clisp.org>
84210
84211         * MODULES.html.sh (func_all_modules): Add mathl.
84212
84213 2003-02-17  Bruno Haible  <bruno@clisp.org>
84214
84215         * modules/mkdtemp: New module.
84216         * MODULES.html.sh (func_all_modules): Add it.
84217
84218 2003-02-17  Bruno Haible  <bruno@clisp.org>
84219
84220         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84221
84222 2003-02-17  Bruno Haible  <bruno@clisp.org>
84223
84224         * lib/mkdtemp.h: New file, from GNU gettext.
84225         * lib/mkdtemp.c: New file, from GNU gettext.
84226
84227 2003-02-02  Jim Meyering  <jim@meyering.net>
84228
84229         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84230         e.g. glibc-2.2.93.
84231
84232 2003-01-31  Bruno Haible  <bruno@clisp.org>
84233
84234         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84235         'rpl_rename'.
84236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84237         'rpl_strnlen'.
84238         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84239         'rpl_strtod'.
84240         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84241         'rpl_utime'.
84242
84243 2003-01-31  Bruno Haible  <bruno@clisp.org>
84244
84245         * lib/rename.c: #undef rename before defining rpl_rename.
84246         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84247
84248 2003-01-30  Bruno Haible  <bruno@clisp.org>
84249
84250         * modules/vasnprintf, modules/vasprintf: New modules.
84251         * MODULES.html.sh (func_all_modules): Add them.
84252
84253 2003-01-30  Bruno Haible  <bruno@clisp.org>
84254
84255         * m4/signed.m4: New file, from GNU gettext.
84256         * m4/longdouble.m4: New file, from GNU gettext.
84257         * m4/wchar_t.m4: New file, from GNU gettext.
84258         * m4/wint_t.m4: New file, from GNU gettext.
84259         * m4/vasnprintf.m4: New file.
84260         * m4/vasprintf.m4: New file.
84261
84262 2003-01-30  Bruno Haible  <bruno@clisp.org>
84263
84264         * lib/printf-args.h: New file, from GNU gettext.
84265         * lib/printf-args.c: New file, from GNU gettext.
84266         * lib/printf-parse.h: New file, from GNU gettext.
84267         * lib/printf-parse.c: New file, from GNU gettext.
84268         * lib/vasnprintf.h: New file, from GNU gettext.
84269         * lib/vasnprintf.c: New file, from GNU gettext.
84270         * lib/asnprintf.c: New file, from GNU gettext.
84271         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84272         * lib/vasprintf.c: New file, from GNU gettext.
84273         * lib/asprintf.c: New file, from GNU gettext.
84274
84275 2003-01-29  Bruno Haible  <bruno@clisp.org>
84276
84277         * modules/stpncpy: New module.
84278         * MODULES.html.sh (func_all_modules): Add it.
84279
84280 2003-01-29  Bruno Haible  <bruno@clisp.org>
84281
84282         * m4/stpncpy.m4: New file.
84283
84284 2003-01-29  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84287         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84288
84289 2003-01-28  Bruno Haible  <bruno@clisp.org>
84290
84291         * modules/c-ctype: New module.
84292         * MODULES.html.sh (func_all_modules): Add it.
84293
84294 2003-01-28  Bruno Haible  <bruno@clisp.org>
84295
84296         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84297         Paul Eggert.
84298         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84299         Paul Eggert.
84300
84301 2003-01-27  Bruno Haible  <bruno@clisp.org>
84302
84303         * modules/xsetenv: New module.
84304         * MODULES.html.sh (func_all_modules): Add it.
84305
84306 2003-01-27  Bruno Haible  <bruno@clisp.org>
84307
84308         * lib/xsetenv.h: New file, from GNU gettext.
84309         * lib/xsetenv.c: New file, from GNU gettext.
84310
84311 2003-01-23  Jim Meyering  <jim@meyering.net>
84312
84313         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84314         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84315
84316 2003-01-23  Bruno Haible  <bruno@clisp.org>
84317
84318         * modules/minmax: New module.
84319         * MODULES.html.sh (func_all_modules): Add it.
84320
84321 2003-01-23  Bruno Haible  <bruno@clisp.org>
84322
84323         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84324         Eggert.
84325
84326 2003-01-22  Bruno Haible  <bruno@clisp.org>
84327
84328         * modules/exit: New module.
84329         * MODULES.html.sh (func_all_modules): Add it.
84330
84331 2003-01-22  Bruno Haible  <bruno@clisp.org>
84332
84333         * lib/exit.h: New file, from GNU gettext.
84334
84335 2003-01-19  Bruno Haible  <bruno@clisp.org>
84336
84337         * gnulib-tool: Recognize option --extract-maintainer.
84338         (func_get_maintainer): New function.
84339         * modules/*: Add Maintainer entry.
84340
84341 2003-01-16  Jim Meyering  <jim@meyering.net>
84342
84343         * m4/regex.m4: The `regex' struct is both input and output.
84344         Initialize it before each use.  Patch by Tim Waugh.
84345
84346 2003-01-16  Bruno Haible  <bruno@clisp.org>
84347
84348         * MODULES.html.sh: Add a table of contents. Add the module name as
84349         leftmost column. Add hyperlinks.
84350
84351 2003-01-15  Bruno Haible  <bruno@clisp.org>
84352
84353         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84354
84355 2003-01-15  Bruno Haible  <bruno@clisp.org>
84356
84357         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84358         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84359         suffix.
84360
84361 2003-01-15  Bruno Haible  <bruno@clisp.org>
84362
84363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84364
84365 2003-01-15  Bruno Haible  <bruno@clisp.org>
84366
84367         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84368         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84369
84370 2003-01-14  Jim Meyering  <jim@meyering.net>
84371
84372         * lib/same.c (same_name): Tweak a comment.
84373
84374 2003-01-14  Bruno Haible  <bruno@clisp.org>
84375
84376         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84377         when a string comparison is sufficient.
84378
84379 2003-01-14  Bruno Haible  <bruno@clisp.org>
84380
84381         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84382         'unsigned int'.
84383
84384 2003-01-14  Bruno Haible  <bruno@clisp.org>
84385
84386         * lib/hash-pjw.c: Add comment about low quality of this function.
84387
84388 2003-01-13  Bruno Haible  <bruno@clisp.org>
84389
84390         * modules/stpcpy: Distribute lib/stpcpy.h.
84391         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84392
84393 2003-01-13  Bruno Haible  <bruno@clisp.org>
84394
84395         * modules/*: Add a description.
84396         * modules/strpbrk: Fix Makefile.am snippet.
84397         * modules/strtoimax: Fix dependencies.
84398         * modules/strtoumax: Likewise.
84399
84400 2003-01-13  Bruno Haible  <bruno@clisp.org>
84401
84402         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84403         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84404         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84405
84406 2003-01-13  Bruno Haible  <bruno@clisp.org>
84407
84408         * gnulib-tool (func_create_testdir): Store config/* files in the main
84409         directory.
84410         * config.rpath: Move to ...
84411         * config/config.rpath: ... here.
84412         * modules/gettext: Contains config/config.rpath, not config.rpath.
84413         * modules/iconv: Likewise.
84414
84415 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84416
84417         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84418         to avoid collisions with libcurses and libreadline.
84419
84420         * m4/getstr.m4: Remove.
84421         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84422
84423 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84424
84425         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84426         to avoid collisions with libcurses and libreadline.
84427
84428         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84429         * lib/getstr.h, getstr.c: Remove.
84430         * lib/getline.c: Include "getline.h", to check interface.
84431         Move body of old getstr.c here: this defines MIN_CHUNK and
84432         declares getdelim2, which is renamed from getstr.
84433         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84434
84435         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84436         All uses changed.
84437         * lib/linebuffer.h: Likewise.
84438         (readline): Remove backward-compatibility macro.
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         * getstr: Remove.
84445         * MODULES.html.sh: Remove getstr.
84446         * modules/getline: Depend on unlocked-io, not getstr.
84447
84448 2003-01-12  Jim Meyering  <jim@meyering.net>
84449
84450         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84451
84452 2003-01-10  Bruno Haible  <bruno@clisp.org>
84453
84454         * modules/alloca: Change Makefile.am requirements. Simplify Include
84455         requirements. Add lib/alloca_.h to file list.
84456
84457 2003-01-10  Bruno Haible  <bruno@clisp.org>
84458
84459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84460
84461 2003-01-10  Bruno Haible  <bruno@clisp.org>
84462
84463         * lib/alloca_.h: New file.
84464         * lib/getdate.y: Unconditionally include alloca.h.
84465         * lib/makepath.c: Likewise.
84466         * lib/setenv.c: Likewise.
84467         * lib/userspec.c: Likewise.
84468
84469 2003-01-09  Karl Berry  <karl@gnu.org>
84470
84471         * MODULES.html.sh: include `dirname $0` in PATH, to find
84472         gnulib-tool.
84473
84474 2003-01-09  Bruno Haible  <bruno@clisp.org>
84475
84476         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84477         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84478
84479 2003-01-09  Bruno Haible  <bruno@clisp.org>
84480
84481         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84482
84483 2003-01-09  Bruno Haible  <bruno@clisp.org>
84484
84485         * lib/stdbool.h.in: New file.
84486
84487 2003-01-09  Bruno Haible  <bruno@clisp.org>
84488
84489         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84490         * MODULES.html.sh: Likewise.
84491
84492 2003-01-08  Jim Meyering  <jim@meyering.net>
84493
84494         * lib/full-write.c: Undefine and define-away `const' after inclusion
84495         of errno.h, not before.  Suggestion from Bruno Haible.
84496
84497 2003-01-08  Bruno Haible  <bruno@clisp.org>
84498
84499         * modules/full-read: Depend on full-write.
84500
84501 2003-01-08  Bruno Haible  <bruno@clisp.org>
84502
84503         * lib/safe-read.c: Include specification header first, to ensure its
84504         selfcontainedness.
84505         * lib/full-write.c: Likewise.
84506
84507 2003-01-07  Jim Meyering  <jim@meyering.net>
84508
84509         * lib/full-write.c: Rework so that it may serve to define full_read,
84510         too.
84511         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84512
84513 2003-01-07  Bruno Haible  <bruno@clisp.org>
84514
84515         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84516         <inttypes.h>.
84517         * lib/xstrtol.h: Likewise.
84518         * lib/xstrtoimax.c: Likewise.
84519         * lib/xstrtoumax.c: Likewise.
84520         * lib/human.h: Likewise.
84521
84522         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84523         on systems that have <inttypes.h> but not <stdint.h>.
84524
84525 2003-01-07  Bruno Haible  <bruno@clisp.org>
84526
84527         * MODULES.html.sh: Add copyright notice.
84528         (missed_files): Omit CVS directory entries.
84529         (func_module): Make it work with sed-3.02.
84530         * MODULES.txt: Remove file.
84531
84532 2003-01-06  Jim Meyering  <jim@meyering.net>
84533
84534         * lib/version-etc.c: Update year in translatable copyright string.
84535
84536 2003-01-03  Karl Berry  <karl@gnu.org>
84537
84538         * config/config.{guess,sub}: update from prep.
84539
84540 2003-01-02  Karl Berry  <karl@gnu.org>
84541
84542         * doc/COPYING.DOC: belatedly updated to 1.2.
84543
84544 2003-01-01  Karl Berry  <karl@gnu.org>
84545
84546         * gnulib-tool (func_verify_module): report module name $module in
84547         error message, not $1.
84548         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84549         be created, only if it doesn't exist.
84550         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84551
84552 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84553
84554         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84555
84556 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84557
84558         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84559         memcmp if strcoll doesn't work.
84560
84561 2002-12-31  Bruno Haible  <bruno@clisp.org>
84562
84563         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84564         nonempty.
84565
84566 2002-12-31  Bruno Haible  <bruno@clisp.org>
84567
84568         * lib/memcoll.c (STRCOLL): New macro.
84569         (memcoll): Use it.
84570
84571 2002-12-31  Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/localcharset.h: New file.
84574         * lib/localcharset.c: Include it.
84575         * lib/unicodeio.c: Likewise.
84576
84577 2002-12-31  Bruno Haible  <bruno@clisp.org>
84578
84579         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84580         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84581
84582 2002-12-31  Bruno Haible  <bruno@clisp.org>
84583
84584         * lib/getline.h: Include <stddef.h>, for size_t.
84585
84586         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84587         * lib/unicodeio.c: Don't include <stddef.h>.
84588
84589 2002-12-31  Bruno Haible  <bruno@clisp.org>
84590
84591         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84592         HAVE_TM_ZONE.
84593
84594 2002-12-24  Karl Berry  <karl@gnu.org>
84595
84596         * config/config.guess: update from prep.
84597
84598 2002-12-24  Bruno Haible  <bruno@clisp.org>
84599
84600         General infrasructure.
84601         * m4/README: Rewritten.
84602         * m4/onceonly.m4: New file.
84603         * m4/onceonly_2_57.m4: New file.
84604
84605         Module atexit.
84606         * m4/atexit.m4: New file.
84607
84608         Module strtod.
84609         * m4/strtod.m4: New file.
84610
84611         Module strtol.
84612         * m4/strtol.m4: New file.
84613
84614         Module strtoul.
84615         * m4/strtoul.m4: New file.
84616
84617         Module memchr.
84618         * m4/memchr.m4: New file.
84619
84620         Module memcmp.
84621         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84622         (jm_FUNC_MEMCMP): Invoke it.
84623
84624         Module memcpy.
84625         * m4/memcpy.m4: New file.
84626
84627         Module memmove.
84628         * m4/memmove.m4: New file.
84629
84630         Module memset.
84631         * m4/memset.m4: New file.
84632
84633         Module strcspn.
84634         * m4/strcspn.m4: New file.
84635
84636         Module strpbrk.
84637         * m4/strpbrk.m4: New file.
84638
84639         Module strstr.
84640         * m4/strstr.m4: New file.
84641
84642         Module strerror.
84643         * m4/strerror.m4: New file.
84644
84645         Module mktime.
84646         * m4/mktime.m4: Renamed from jm-mktime.m4.
84647         (gl_PREREQ_MKTIME): New macro.
84648         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84649
84650         Module malloc.
84651         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84652         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84653         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84654
84655         Module realloc.
84656         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84657         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84658         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84659
84660         Module strftime.
84661         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84663         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84664         gl_TM_GMTOFF.
84665         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84666
84667         Module xalloc.
84668         * m4/xalloc.m4: New file.
84669
84670         Module alloca.
84671         * m4/alloca.m4: New file.
84672
84673         Module putenv.
84674         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84675         (jm_FUNC_PUTENV): Invoke it.
84676
84677         Module setenv.
84678         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84679         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84680         when invoked twice.
84681         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84682         gt_FUNC_SETENV.
84683
84684         Module memrchr.
84685         * m4/memrchr.m4: New file.
84686
84687         Module stpcpy.
84688         * m4/stpcpy.m4: New file.
84689
84690         Module strcase.
84691         * m4/strcase.m4: New file.
84692
84693         Module strdup.
84694         * m4/strdup.m4: New file.
84695
84696         Module strnlen.
84697         * m4/strnlen.m4: New file.
84698
84699         Module strndup.
84700         * m4/strndup.m4: New file.
84701
84702         Module xstrtod.
84703         * m4/xstrtod.m4: New file.
84704
84705         Module xstrtol.
84706         * m4/xstrtol.m4: New file.
84707
84708         Module getdate.
84709         * m4/getdate.m4: New file.
84710
84711         Module unlocked-io.
84712         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84713         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84714         * m4/jm-glibc-io.m4n: Remove file.
84715
84716         Module long-options.
84717         * m4/long-options.m4: New file.
84718
84719         Module md5.
84720         * m4/md5.m4: New file.
84721
84722         Module sha.
84723         * m4/sha.m4: New file.
84724
84725         Module getstr.
84726         * m4/getstr.m4: New file.
84727
84728         Module getline.
84729         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84730         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84731         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84732         simply getline. Infoke gl_PREREQ_GETLINE.
84733
84734         Module obstack.
84735         * m4/obstack.m4: New file.
84736
84737         Module hash.
84738         * m4/hash.m4: New file.
84739
84740         Module readtokens.
84741         * m4/readtokens.m4: New file.
84742
84743         Module strverscmp.
84744         * m4/strverscmp.m4: New file.
84745
84746         Module stdbool.
84747         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84748         OSF/1.
84749
84750         Module strtoll.
84751         * m4/strtoll.m4: New file.
84752
84753         Module strtoull.
84754         * m4/strtoull.m4: New file.
84755
84756         Module strtoimax.
84757         * m4/strtoimax.m4: New file.
84758
84759         Module strtoumax.
84760         * m4/strtoumax.m4: New file.
84761
84762         Module xstrtoimax.
84763         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84764         jm_AC_PREREQ_XSTRTOIMAX.
84765         Moved the strtol prerequisites to strtol.m4.
84766         Moved the strtoll prerequisites to strtoll.m4.
84767         Moved the strtoimax prerequisites to strtoimax.m4.
84768
84769         Module xstrtoumax.
84770         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84771         jm_AC_PREREQ_XSTRTOUMAX.
84772         Moved the strtoul prerequisites to strtoul.m4.
84773         Moved the strtoull prerequisites to strtoull.m4.
84774         Moved the strtoumax prerequisites to strtoumax.m4.
84775
84776         Module chown.
84777         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84778         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84779
84780         Module dup2.
84781         * m4/dup2.m4: New file.
84782
84783         Module ftruncate.
84784         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84785         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84786
84787         Module getgroups.
84788         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84789         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84790
84791         Module gettimeofday.
84792         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84793         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84794         gl_PREREQ_GETTIMEOFDAY.
84795
84796         Module mkdir.
84797         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84798         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84799
84800         Module mkstemp.
84801         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84802         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84803         jm_AC_TYPE_UINTMAX_T.
84804         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84805
84806         Module stat.
84807         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84808         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84809
84810         Module lstat.
84811         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84812         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84813
84814         Module timespec.
84815         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84816         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84817         * m4/st_mtim.m4: Indentation.
84818
84819         Module nanosleep.
84820         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84821         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84822         gl_PREREQ_NANOSLEEP.
84823
84824         Module regex.
84825         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84826         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84827         (gl_REGEX): New macro.
84828
84829         Module rename.
84830         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84831         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84832
84833         Module rmdir.
84834         * m4/rmdir.m4: New file.
84835
84836         Module utime.
84837         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84838         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84839         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84840
84841         Module dirname.
84842         * m4/dirname.m4: New file.
84843
84844         Module getopt.
84845         * m4/getopt.m4: New file.
84846
84847         Module unistd-safer.
84848         * m4/unistd-safer.m4: New file.
84849
84850         Module fnmatch.
84851         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84852         declaration.
84853         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84854         (gl_FUNC_FNMATCH_POSIX): New macro.
84855         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84856         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84857         simply fnmatch.
84858
84859         Module exclude.
84860         * m4/exclude.m4: New file.
84861
84862         Module human.
84863         * m4/human.m4: New file.
84864
84865         Module acl.
84866         * m4/acl.m4: Nop.
84867
84868         Module backupfile.
84869         * m4/backupfile.m4: New file.
84870         * m4/d-ino.m4: Indentation.
84871
84872         Module fsusage.
84873         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84874         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84875         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84876
84877         Module dirfd.
84878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84879         requirements.
84880
84881         Module euidaccess.
84882         * m4/euidaccess.m4: New file.
84883
84884         Module file-type.
84885         * m4/file-type.m4: New file.
84886
84887         Module fileblocks.
84888         * m4/fileblocks.m4: New file.
84889
84890         Module filemode.
84891         * m4/filemode.m4: New file.
84892
84893         Module isdir.
84894         * m4/isdir.m4: New file.
84895
84896         Module lchown.
84897         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84898         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84899
84900         Module makepath.
84901         * m4/makepath.m4: New file.
84902
84903         Module modechange.
84904         * m4/modechange.m4: New file.
84905
84906         Module mountlist.
84907         * m4/mountlist.m4: New file.
84908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84909         Indentation.
84910
84911         Module path-concat.
84912         * m4/path-concat.m4: New file.
84913
84914         Module pathmax.
84915         * m4/pathmax.m4: New file.
84916
84917         Module same.
84918         * m4/same.m4: New file.
84919
84920         Module save-cwd.
84921         * m4/save-cwd.m4: New file.
84922
84923         Module savedir.
84924         * m4/savedir.m4: New file.
84925
84926         Module xgetcwd.
84927         * m4/xgetcwd.m4: New file.
84928         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84929
84930         Module xreadlink.
84931         * m4/xreadlink.m4: New file.
84932
84933         Module safe-read.
84934         * m4/safe-read.m4: New file.
84935
84936         Module safe-write.
84937         * m4/safe-write.m4: New file.
84938
84939         Module closeout.
84940         * m4/closeout.m4: New file.
84941
84942         Module stdio-safer.
84943         * m4/stdio-safer.m4: New file.
84944
84945         Module getpass.
84946         * m4/getpass.m4: New file.
84947
84948         Module getugroups.
84949         * m4/getugroups.m4: New file.
84950
84951         Module group-member.
84952         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84953         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84954
84955         Module idcache.
84956         * m4/idcache.m4: New file.
84957
84958         Module userspec.
84959         * m4/userspec.m4: New file.
84960
84961         Module gettime.
84962         * m4/clock_time.m4: New file.
84963         * m4/gettime.m4: New file.
84964
84965         Module settime.
84966         * m4/settime.m4: New file.
84967
84968         Module posixtm.
84969         * m4/posixtm.m4: New file.
84970
84971         Module gethostname.
84972         * m4/gethostname.m4: New file.
84973
84974         Module canon-host.
84975         * m4/canon-host.m4: New file.
84976
84977         Module gettext.
84978         * m4/codeset.m4: New file, from gettext-0.11.5.
84979         * m4/gettext.m4: New file, from gettext-0.11.5.
84980         * m4/glibc21.m4: New file, from gettext-0.11.5.
84981         * m4/iconv.m4: New file, from gettext-0.11.5.
84982         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84983         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84984         * m4/inttypes.m4: New file, from gettext-0.11.5.
84985         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84986         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84987         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84988         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84989         * m4/lib-link.m4: New file, from gettext-0.11.5.
84990         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84991         * m4/progtest.m4: New file, from gettext-0.11.5.
84992         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84993         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84994         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84995
84996         Module localcharset.
84997         * m4/localcharset.m4: New file.
84998
84999         Module hard-locale.
85000         * m4/hard-locale.m4: New file.
85001
85002         Module mbswidth.
85003         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85004         onceonly macros.
85005         * m4/mbrtowc.m4: Add comment.
85006
85007         Module memcasecmp.
85008         * m4/memcasecmp.m4: New file.
85009
85010         Module memcoll.
85011         * m4/memcoll.m4: New file.
85012
85013         Module unicodeio.
85014         * m4/unicodeio.m4: New file.
85015
85016         Module rpmatch.
85017         * m4/rpmatch.m4: New file.
85018
85019         Module yesno.
85020         * m4/yesno.m4: New file.
85021
85022         Module exitfail.
85023         * m4/exitfail.m4: New file.
85024
85025         Module c-stack.
85026         * m4/c-stack.m4 (gl_C_STACK): New macro.
85027         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85028
85029         Module error.
85030         * m4/error.m4 (gl_ERROR): New macro.
85031         (jm_PREREQ_ERROR): Use onceonly macros.
85032
85033         Module fatal.
85034         * m4/fatal.m4: New file.
85035
85036         Module getloadavg.
85037         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85038         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85039
85040         Module getpagesize.
85041         * m4/getpagesize.m4: New file.
85042
85043         Module getusershell.
85044         * m4/getusershell.m4: New file.
85045
85046         Module physmem.
85047         * m4/physmem.m4: New file.
85048
85049         Module posixver.
85050         * m4/posixver.m4: New file.
85051
85052         Module quotearg.
85053         * m4/quotearg.m4: New file.
85054
85055         Module quote.
85056         * m4/quote.m4: New file.
85057
85058         Module readutmp.
85059         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85060
85061         Module sig2str.
85062         * m4/sig2str.m4: New file.
85063
85064         Other.
85065         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85066         ulonglong.m4.
85067         * m4/intmax_t.m4: New file.
85068         * m4/d-type.m4: Indentation.
85069         * m4/jm-macros.m4: Update.
85070         * m4/prereq.m4 (jm_PREREQ): Update.
85071         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85072         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85073         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85074         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85075         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85076         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85077         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85078         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85079         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85080         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85081         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85082         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85083         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85084         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85085         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85086         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85087         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85088         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85089         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85090
85091 2002-12-24  Bruno Haible  <bruno@clisp.org>
85092
85093         * MODULES.txt: Update according to m4/ changes.
85094
85095         Module gettext.
85096         * config.rpath: New file, from gettext-0.11.5.
85097
85098         * modules/*: New module descriptions.
85099         * gnulib-tool: New file.
85100         * MODULES.html.sh: New file.
85101
85102 2002-12-21  Karl Berry  <karl@gnu.org>
85103
85104         * doc/fdl.texi: update to version 1.2.
85105
85106 2002-12-19  Karl Berry  <karl@gnu.org>
85107
85108         * config/config.guess: update from prep.
85109
85110 2002-12-18  Bruno Haible  <bruno@clisp.org>
85111
85112         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85113         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85114
85115 2002-12-17  Bruno Haible  <bruno@clisp.org>
85116
85117         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85118         stdlib.h, string.h.
85119
85120 2002-12-17  Bruno Haible  <bruno@clisp.org>
85121
85122         * lib/canon-host.c (strdup): Remove unused declaration.
85123
85124         * lib/fsusage.c: Include full_read.h.
85125         (get_fs_usage): Use full_read instead of safe_read.
85126
85127         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85128
85129 2002-12-12  Karl Berry  <karl@gnu.org>
85130
85131         * config/config.guess: update from prep.
85132
85133 2002-12-11  Bruno Haible  <bruno@clisp.org>
85134
85135         * m4/setenv.m4: New file, from gettext-0.11.5.
85136
85137 2002-12-11  Bruno Haible  <bruno@clisp.org>
85138
85139         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85140         not unsetenv().
85141         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85142         modifications:
85143
85144         2002-12-11  Bruno Haible  <bruno@clisp.org>
85145
85146                 * setenv.c (alloca): Fall back to malloc.
85147                 (freea): New macro.
85148                 (setenv): Use freea() to free memory allocated with alloca().
85149
85150         2002-11-13  Bruno Haible  <bruno@clisp.org>
85151
85152                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85153                 function declarations.
85154                 * unsetenv.c (unsetenv): Likewise.
85155
85156         2002-03-04  Bruno Haible  <bruno@clisp.org>
85157
85158                 Portability to AIX 4.3.3.
85159                 * unsetenv.c: New file, extracted from setenv.c.
85160                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85161
85162         2001-12-20  Bruno Haible  <bruno@clisp.org>
85163
85164                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85165                 use malloc instead. For SunOS 4.
85166
85167         2001-12-11  Bruno Haible  <bruno@clisp.org>
85168
85169                 * setenv.c: Declare alloca.
85170                 (compar_fn_t): New typedef.
85171                 (KNOWN_VALUE, STORE_VALUE): Use it.
85172
85173         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85174         setenv.h.
85175
85176 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85177
85178         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85179         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85180         Choose values that are less likely to collide with system fnmatch
85181         options.
85182         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85183         defined (e.g., a pure POSIX system).
85184         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85185         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85186
85187 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85188
85189         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85190         a pain in practice to deal with generated m4 files.  This change
85191         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85192
85193         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85194         and jm-glibc-io.m4, as they are no longer a special case.
85195         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85196         kludge and the auto-generation stuff.  Check only whether the
85197         functions are declared, not whether they exist, since older hosts
85198         that don't declare the functions can't use the optimization anyway.
85199
85200 2002-12-06  Jim Meyering  <jim@meyering.net>
85201
85202         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85203
85204         Merge in changes from libc's misc/error.c, in preparation
85205         for the merge of gnulib's changes back into libc.
85206
85207         * lib/error.c (_): Define only if not already defined.
85208         Move definition to follow all #include directives.
85209         Include unlocked-io.h only if !_LIBC.
85210         [_LIBC]: Include <libio/libioP.h>.
85211         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85212         (fflush): Tweak definition to use INTUSE.
85213         (putc): Define.
85214
85215 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85216
85217         * lib/alloca.c [defined emacs]: Include "lisp.h".
85218         (xalloc_die) [defined emacs]: New macro.
85219         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85220         [! defined emacs]: Include <xalloc.h>.
85221         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85222         (pointer): Typedef to POINTER_TYPE *.
85223         (malloc): Remove decl; we now always use xmalloc.
85224         (alloca): Use old-style definition, since Emacs needs this.
85225         Check for arithmetic overflow when computing combined size.
85226
85227 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85228
85229         Do not generate unlocked-io.h automatically, since it's easier to
85230         maintain it by hand.
85231
85232         * lib/unlocked-io.h: New file, from GNU diffutils,
85233         but with proper copyright notice and attribution.
85234         * lib/gen-uio: Remove.
85235         * lib/Makefile.am: Add copyright notice.
85236         (libfetish_a_SOURCES): Add unlocked-io.h.
85237         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85238         (DISTCLEANFILES, io_functions): Remove macros.
85239         (EXTRA_DIST): Remove gen_uio.
85240         (unlocked-io.h): Remove rule.
85241
85242 2002-12-04  Jim Meyering  <jim@meyering.net>
85243
85244         Reflect the fact that stat.c and lstat.c are no longer generated.
85245         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85246         (DISTCLEANFILES): Likewise.
85247         (EXTRA_DIST): Likewise.
85248         (all_local): Don't depend on stat.c or lstat.c.
85249         (stat.c, lstat.c): Remove rules.
85250         (EXTRA_DIST): Remove xstat.in.
85251
85252         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85253         * lib/stat.c: New file.  Contents mostly from xstat.in.
85254         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85255         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85256
85257         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85258         too.
85259         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85260
85261 2002-12-03  Jim Meyering  <jim@meyering.net>
85262
85263         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85264         but not semantics, to minimize the differences between these two files.
85265         (safe_read): Change comment to mention SAFE_READ_ERROR.
85266
85267         * lib/safe-read.c (IS_EINTR): Define.
85268         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85269
85270 2002-12-02  Jim Meyering  <jim@meyering.net>
85271
85272         * lib/safe-read.c (EINTR): Define.
85273         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85274         (INT_MAX): Provide fallback.
85275         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85276
85277         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85278
85279 2002-12-02  Bruno Haible  <bruno@clisp.org>
85280
85281         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85282         Define, taken from safe-read.c.
85283         (INT_MAX): Provide fallback.
85284         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85285         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85286
85287         * lib/safe-read.c (EINTR): Remove definition.
85288         (safe_read): Don't use EINTR if it is absent.
85289
85290 2002-12-01  Jim Meyering  <jim@meyering.net>
85291
85292         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85293         zero.
85294         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85295
85296 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85297
85298         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85299         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85300         with `if (! (value < limit)) abort ();', for readability.
85301
85302 2002-11-26  Karl Berry  <karl@gnu.org>
85303
85304         * lib/strdup.c: copy from libc again, with jim's ok.
85305         * lib/.cppi-disable: re-add strdup.c
85306
85307 2002-11-25  Karl Berry  <karl@gnu.org>
85308
85309         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85310         instead of "strtol.c".
85311
85312 2002-11-25  Karl Berry  <karl@gnu.org>
85313
85314         * config/install-sh: update from automake for variable quoting, $0 in
85315         error msgs, etc.
85316
85317         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85318         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85319         entry.
85320
85321 2002-11-25  Jim Meyering  <jim@meyering.net>
85322
85323         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85324
85325 2002-11-24  Karl Berry  <karl@gnu.org>
85326
85327         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85328         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85329
85330 2002-11-24  Jim Meyering  <jim@meyering.net>
85331
85332         Update from coreutils:
85333
85334         * lib/mktime.c: Merge in changes from libc.
85335
85336         Avoid a link-time failure on some Linux systems.
85337         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85338         (otherwise).
85339         (__mon_yday): Declare with the STATIC attribute.
85340         (__mktime_internal): Likewise.
85341         Based on a report from Greg Schafer.
85342
85343 2002-11-23  Jim Meyering  <jim@meyering.net>
85344
85345         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85346         Use `unsigned', not `int', as type of index.
85347
85348         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85349
85350         * lib/fsusage.c: Remove unneeded parentheses around operands of
85351         `defined'.
85352
85353 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85354
85355         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85356         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85357         so that we can be included first.
85358         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85359         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85360         No need to include stddef.h or sys/types.h any more.
85361         Surround local include files with "", not "<>".
85362         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85363         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85364         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85365         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85366         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85367         (ISPRINT): Remove; no longer needed now that we assume C89.
85368
85369         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85370         Preserve errno.
85371
85372         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85373         quotearg_char): Use SIZE_MAX rather than
85374         (size_t) -1 when we are talking about "infinity".
85375
85376         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85377
85378 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85379
85380         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85381         hint that one should use `if (! x) abort ();' rather than `assert
85382         (x);', and anyway it's one less thing to worry about configuring.
85383         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85384         hash_rehash, hash_insert): Use abort rather than assert.
85385
85386 2002-11-22  Bruno Haible  <bruno@clisp.org>
85387
85388         * lib/safe-read.h: Assume C89. Add comments.
85389         (safe_read): Change return type to size_t.
85390         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85391         byte counts > SSIZE_MAX correctly.
85392         * lib/safe-write.h: New file.
85393         * lib/safe-write.c: New file.
85394         * lib/full-read.h: New file.
85395         * lib/full-read.c: New file.
85396         * lib/full-write.h: Assume C89. Add comments.
85397         * lib/full-write.c: Include safe-write.h.
85398         (full_write): Rewritten to use safe_write.
85399         Suggested by Jim Meyering and Paul Eggert.
85400
85401 2002-11-21  Jim Meyering  <jim@meyering.net>
85402
85403         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85404
85405         Merge in changes from the coreutils.
85406
85407         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85408         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85409         <stdint.h>.
85410         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85411         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85412         int.  Work more efficiently if X is the same width as uintmax_t.
85413         Do not compare X to -1, to avoid bogus compiler warning.
85414         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85415         Don't assume that f_frsize and f_bsize are the same type.
85416
85417         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85418         warning on FreeBSD.
85419
85420         * lib/makepath.c (make_path): Restore umask *before* creating the final
85421         component.
85422         (make_path): Minor reformatting.
85423
85424         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85425         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85426         HAVE_MALLOC/HAVE_REALLOC.
85427
85428         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85429         dummy ones.  At least on GNU/Linux systems, `auto' means something
85430         else.
85431         From Michael Stone.
85432
85433 2002-11-21  Bruno Haible  <bruno@clisp.org>
85434
85435         Remove case insensitive option matching.
85436         * lib/argmatch.h (argcasematch): Remove declaration.
85437         (ARGCASEMATCH): Remove macro.
85438         (__xargmatch_internal): Remove case_sensitive argument.
85439         (XARGMATCH): Update.
85440         (XARGCASEMATCH): Remove macro.
85441         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85442         case_sensitive argument.
85443         (argcasematch): Remove function.
85444         (__xargmatch_internal): Remove case_sensitive argument.
85445         (main): Use XARGMATCH instead of XARGCASEMATCH.
85446
85447         * lib/xmalloc.c: Change compile-time error message. Add comment about
85448         required autoconf version.
85449
85450 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85451
85452         Merge argmatch cleanups from Bison.  Assume C89.
85453
85454         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85455         Include stdlib.h, for EXIT_FAILURE.
85456         Always include <string.h>, since we assume C89.
85457         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85458         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85459         Include <stddef.h> instead, since it's all we need for size_t.
85460         (PARAMS): Remove.  All uses removed.
85461         (ARRAY_CARDINALITY): Do not bother to #undef.
85462         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85463         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85464         Remove unnecessary parentheses.
85465         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85466         Insert necessary parentheses.
85467         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85468         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85469
85470 2002-11-19  Bruno Haible  <bruno@clisp.org>
85471
85472         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85473         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85474
85475         * lib/mbswidth.h (PARAMS): Remove macro.
85476         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85477         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85478
85479         * lib/gcd.h (PARAMS): Remove macro.
85480         (gcd): Use ANSI C function declarations.
85481         * lib/gcd.c (gcd): Likewise.
85482
85483 2002-11-15  Bruno Haible  <bruno@clisp.org>
85484
85485         * lib/strcspn.c: Include <stddef.h>.
85486         (strcspn): Use ANSI C function declaration. Change return type to
85487         size_t. Use NULL.
85488         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85489         (strpbrk): Use NULL.
85490         * lib/strpbrk.h (PARAMS): Remove macro.
85491         (strpbrk): Use ANSI C function declaration.
85492         * lib/strstr.c: Don't include <sys/types.h>.
85493         * lib/strstr.h (PARAMS): Remove macro.
85494         (strstr): Use ANSI C function declarations.
85495
85496 2002-11-14  Karl Berry  <karl@gnu.org>
85497
85498         * config/mkinstalldirs: `do' on separate line, instead of
85499         `for var; do'.
85500
85501 2002-11-06  Bruno Haible  <bruno@clisp.org>
85502
85503         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85504         * lib/gcd.c (gcd): Likewise.
85505
85506 2002-11-05  Bruno Haible  <bruno@clisp.org>
85507
85508         * lib/gcd.h: New file, from gettext-0.11.5.
85509         * lib/gcd.c: New file, from gettext-0.11.5.
85510
85511 2002-11-05  Bruno Haible  <bruno@clisp.org>
85512
85513         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85514         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85515         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85516         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85517
85518         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85519         <libintl.h>.
85520         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85521         <libintl.h>.
85522
85523         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85524         * lib/human.c: Include gettext.h instead of <libintl.h>.
85525         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85526         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85527         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85528         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85529         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85530         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85531         (textdomain): Remove definition.
85532         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85533
85534         * lib/long-options.c: Remove include of <libintl.h> and definition of
85535         _.
85536         * lib/same.c: Remove include of <libintl.h> and definition of _.
85537
85538 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85539
85540         * lib/config.charset: A few additions for Solaris.
85541
85542 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85543
85544         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85545         * lib/localcharset.c (locale_charset): Declare as extern "C".
85546
85547 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85548
85549         * lib/config.charset: msdos in uk_UA uses CP1125.
85550
85551 2002-11-04  Bruno Haible  <bruno@clisp.org>
85552
85553         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85554         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85555         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85556         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85557         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85558
85559 2002-11-04  Bruno Haible  <bruno@clisp.org>
85560
85561         * lib/localcharset.c (locale_charset): Don't return an empty string.
85562
85563 2002-11-04  Bruno Haible  <bruno@clisp.org>
85564
85565         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85566         aliases.
85567
85568 2002-11-04  Bruno Haible  <bruno@clisp.org>
85569
85570         * lib/config.charset: Update for newest glibc. Add canonical names
85571         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85572
85573 2002-11-04  Bruno Haible  <bruno@clisp.org>
85574
85575         * lib/config.charset: Add support for NetBSD.
85576
85577 2002-11-04  Bruno Haible  <bruno@clisp.org>
85578
85579         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85580
85581 2002-11-01  Bruno Haible  <bruno@clisp.org>
85582
85583         * configure.in: Add AC_CONFIG_AUX_DIR call.
85584         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85585         test/Makefile.
85586         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85587
85588 2002-09-28  Karl Berry  <karl@gnu.org>
85589
85590         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85591         installed automake until the next release, since changes have been
85592         made.
85593
85594 2002-09-25  Karl Berry  <karl@gnu.org>
85595
85596         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85597         * lib/getopt*: copy from libc/posix.
85598         * lib/gettext.h: copy from gettext.
85599         * lib/.cppi-disable: add strdup.c, gettext.h.
85600
85601 2002-09-25  Karl Berry  <karl@gnu.org>
85602
85603         * config/srclist.txt: enable gettext.h check.
85604         * config/config.{guess,sub}: update from prep.
85605         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85606                 from automake 1.6.3.
85607         See srclist*.
85608
85609 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85610
85611         * regex.c (PATFETCH): Remove the translating fetch.
85612         (PATFETCH_RAW): Rename to PATFETCH.
85613         (set_image_of_range): New fun.
85614         (SET_RANGE_TABLE_WORK_AREA): Use it.
85615         (regex_compile): Don't translate the pattern chars so eagerly.
85616         Only do it when inserting an `exactn' bytecode or when handling
85617         a char-range.
85618         (mutually_exclusive_p): Avoid empty statement.
85619
85620 2002-07-06  Jim Meyering  <meyering@lucent.com>
85621
85622         * m4/README: Don't mention Makefile.am.in.
85623         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85624
85625 2002-07-01  Jim Meyering  <meyering@lucent.com>
85626
85627         * lib/c-stack.c: Include sys/time.h.
85628         From Volker Borchert.
85629
85630 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85631
85632         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85633
85634 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85635
85636         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85637         New macro.  Use it uniformly instead of
85638         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85639         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85640         reported by Vin Shelton.
85641
85642 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85643
85644         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85645         Do not assume SA_SIGINFO behavior.
85646         Bug reported by Jim Meyering on NetBSD 1.5.2.
85647
85648 2002-06-22  Jim Meyering  <meyering@lucent.com>
85649
85650         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85651         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85652
85653         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85654         now that configure.ac uses AC_GNU_SOURCE.
85655         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85656         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85657
85658         Update to latest tools.  Suggestions from Paul Eggert.
85659         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85660         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85661         * m4/fnmatch.m4: Likewise.
85662         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85663         to AC_HEADER_STDBOOL
85664
85665 2002-06-22  Jim Meyering  <meyering@lucent.com>
85666
85667         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85668         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85669
85670 2002-06-22  Jim Meyering  <meyering@lucent.com>
85671
85672         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85673
85674         * lib/exitfail.c, exitfail.h: Likewise.
85675         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85676
85677         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85678         of fnmatch.h.
85679         (EXTRA_DIST): Add fnmatch_loop.c.
85680         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85681
85682         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85683         * lib/fnmatch.c: Update from diffutils-2.8.2.
85684         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85685         * lib/fnmatch.h: Remove file.
85686
85687 2002-06-21  Jim Meyering  <meyering@lucent.com>
85688
85689         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85690         * m4/mbrtowc.m4: Likewise.
85691
85692         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85693         * m4/mbswidth.m4: Reflect name change:
85694         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85696
85697         * m4/lib-link.m4: Update from gettext-0.11.2.
85698         * m4/gettext.m4: Likewise.
85699
85700         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85701         From Alfred M. Szmidt.
85702
85703 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85704
85705         * lib/file-type.h: Report an error if neither S_ISREG nor
85706         S_IFREG is defined, instead of using a test specific to glibc
85707         2.2.  This should be safe, since POSIX requires S_ISREG and
85708         Unix Version 7 had S_IFREG.  We don't need to check for
85709         <sys/types.h> since we don't use any symbols that it defines.
85710
85711 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85712
85713         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85714         $@-t, so that each temporary file name is unique and valid in the first
85715         8 characters, for operation under DOS.
85716
85717 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85718
85719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85720
85721 2002-06-15  Jim Meyering  <meyering@lucent.com>
85722
85723         Work even with DJGPP 2.03, which lacks support for symlinks.
85724         From Richard Dawe.
85725         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85726         is defined.
85727         * lib/lchown.c (S_ISLNK): Likewise.
85728
85729 2002-06-15  Jim Meyering  <meyering@lucent.com>
85730
85731         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85732         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85733         have been included before this file.
85734
85735 2002-06-14  Jim Meyering  <meyering@lucent.com>
85736
85737         * lib/file-type.h: Use the version from diffutils-2.8.2.
85738         * lib/file-type.c: Likewise.
85739
85740 2002-06-07  Jim Meyering  <meyering@lucent.com>
85741
85742         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85743         They're needed at least for NetBSD 1.5.2.
85744         ($statxfs_includes): Include those same headers.
85745         ($statxfs_includes): Include sys/vfs.h if available.
85746         ($statxfs_includes): Likewise for sys/statvfs.h.
85747         Check for the following members in both structs statfs and statvfs:
85748         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85749
85750 2002-06-01  Jim Meyering  <meyering@lucent.com>
85751
85752         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85753         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85754
85755 2002-05-28  Jim Meyering  <meyering@lucent.com>
85756
85757         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85758         Reported by Volker Borchert.
85759
85760 2002-05-27  Jim Meyering  <meyering@lucent.com>
85761
85762         Fix a problem seen only on nonconforming systems whereby ls.c's
85763         use of localtime, and then of gettimeofday would cause trouble:
85764         the localtime call used to initialize rpl_gettimeofday's save
85765         mechanism would clobber ls's current local time information so
85766         that in any long listing the first file would always be listed
85767         with date 1970-01-01.  Analysis by Volker Borchert.
85768
85769         * lib/gettimeofday.c (localtime): Undefine.
85770         (rpl_localtime): New function.
85771
85772 2002-05-27  Jim Meyering  <meyering@lucent.com>
85773
85774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85775         localtime.
85776
85777         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85778         use the replacement function; it wouldn't resolve at link time.
85779         Reported by Volker Borchert.
85780
85781 2002-05-22  Jim Meyering  <meyering@lucent.com>
85782
85783         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85784         file-type.h.
85785         * lib/file-type.h: New file.
85786         * lib/file-type.c (file_type): New file/function.  Extracted from
85787         diffutils.
85788
85789 2002-04-30  Jim Meyering  <meyering@lucent.com>
85790
85791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85792
85793 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85794
85795         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85796
85797 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85798
85799         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85800         Do not check for alloca.h (no longer used) or stdbool.h (was never
85801         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85802
85803 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85804
85805         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85806
85807 2002-04-29  Jim Meyering  <meyering@lucent.com>
85808
85809         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85810         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85811         Use AC_FUNC_STRNLEN here instead.
85812
85813         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85814         With autoconf-2.53a, it's part of AC_PROG_CC.
85815
85816 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85817
85818         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85819         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85820
85821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85822
85823         * lib/sig2str.h, lib/sig2str.c: New files.
85824         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85825
85826 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85827
85828         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85829         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85830         of 127, since 64 is the largest conceivable number for ancient
85831         nonstandard hosts.
85832         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85833
85834 2002-04-28  Jim Meyering  <meyering@lucent.com>
85835
85836         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85837
85838 2002-04-24  Jim Meyering  <meyering@lucent.com>
85839
85840         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85841         (jm_PREREQ): Use it.
85842
85843         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85844         mach/mach.h fcntl.h.
85845         Check for this function: setlocale.
85846
85847 2002-04-24  Jim Meyering  <meyering@lucent.com>
85848
85849         * lib/gettext.h: New file, from Gettext.
85850         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85851         (libfetish_a_SOURCES): Add gettext.h.
85852
85853 2002-04-16  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85856         ut_pid, ut_id, ut_exit.
85857
85858 2002-04-16  Jim Meyering  <meyering@lucent.com>
85859
85860         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85861         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85862         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85863
85864 2002-04-12  Jim Meyering  <meyering@lucent.com>
85865
85866         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85867         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85868         existence of the getmntinfo function.  Needed for Darwin 5.3.
85869
85870         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85871         This is necessary at least on Darwin 5.3.
85872
85873         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85874         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85875         strnlen.o in the library, and that makes some versions of ranlib
85876         object.
85877
85878 2002-04-12  Jim Meyering  <meyering@lucent.com>
85879
85880         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85881
85882 2002-04-09  Jim Meyering  <meyering@lucent.com>
85883
85884         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85885         to be more precise.  Rather than saying we're checking whether the
85886         function `works', say what we're testing.
85887         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85888         Reported by Bruno Haible.
85889
85890 2002-03-10  Jim Meyering  <meyering@lucent.com>
85891
85892         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85893         Suggestion from Santiago Vila.
85894
85895 2002-03-08  Jim Meyering  <meyering@lucent.com>
85896
85897         * lib/rename.c: Mention that this wrapper is needed also on
85898         mips-dec-ultrix4.4 systems.
85899
85900 2002-03-02  Jim Meyering  <meyering@lucent.com>
85901
85902         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85903         not HAVE_CLOCK_SETTIME.
85904
85905 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85906
85907         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85908         Check for clock_settime.
85909
85910 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85911
85912         * lib/nanosleep.h: Rename to....
85913         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85914
85915         * lib/gettime.c: New file.
85916         * lib/settime.c: New file.
85917         * lib/stime.c: Remove.
85918
85919         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85920         timespec.h.  Remove nanosleep.h.
85921
85922 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85923
85924         * m4/acl.m4: New file.
85925         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85926         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85927
85928 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85929
85930         * lib/acl.c, lib/acl.h: New files.
85931         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85932
85933 2002-02-24  Jim Meyering  <meyering@lucent.com>
85934
85935         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85936         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85937         cause trouble.  Reported by Nelson Beebe.
85938
85939 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85940
85941         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85942         compilers that don't know that xalloc_die never returns.
85943
85944 2002-02-20  Jim Meyering  <meyering@lucent.com>
85945
85946         * lib/getdate.c: Regenerate using bison-1.33.
85947
85948 2002-02-17  Jim Meyering  <meyering@lucent.com>
85949
85950         * config/config.guess (main): Don't use `head -1'; it's no longer
85951         portable. Use `sed 1q' instead.
85952
85953 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85954
85955         * m4/codeset.m4: Upgrade to gettext-0.11.
85956         * m4/gettext.m4: Upgrade to gettext-0.11.
85957         * m4/glibc21.m4: Upgrade to gettext-0.11.
85958         * m4/iconv.m4: Upgrade to gettext-0.11.
85959         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85960         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85961         * m4/lib-ld.m4: New file, from gettext-0.11.
85962         * m4/lib-link.m4: New file, from gettext-0.11.
85963         * m4/lib-prefix.m4: New file, from gettext-0.11.
85964         * m4/progtest.m4: Upgrade to gettext-0.11.
85965
85966 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85967
85968         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85969         (jm_PREREQ): Use it.
85970
85971 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85972
85973         * lib/posixver.c, lib/posixver.h: New files.
85974         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85975
85976 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85977             Bruno Haible  <bruno@clisp.org>
85978
85979         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85980         (fwrite_success_callback): New declaration.
85981         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85982         print_unicode_char. Call failure callback instead of error.
85983         (fwrite_success_callback): New function.
85984         (exit_failure_callback): New function.
85985         (fallback_failure_callback): New function.
85986         (print_unicode_char): Call unicode_to_mb.
85987
85988 2002-01-26  Jim Meyering  <meyering@lucent.com>
85989
85990         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85991         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85992
85993 2002-01-26  Jim Meyering  <meyering@lucent.com>
85994
85995         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85996
85997 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85998
85999         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86000
86001 2002-01-22  Jim Meyering  <meyering@lucent.com>
86002
86003         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86004         Otherwise, some versions of automake would omit the rule that makes
86005         Makefile from Makefile.in.
86006
86007 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86008
86009         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86010         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86011         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86012         (memcoll): Set errno to zero if there is no error.
86013
86014         * lib/quotearg.c (quotearg_buffer_restyled):
86015         Fix bug with quoting buffers containing NUL when backslashing escapes.
86016         This bug was exposed by the other changes in this patch.
86017         (quotearg_n_options): New arg ARGSIZE.
86018         All callers changed.
86019         (quoting_options_from_style): New function.
86020         (quotearg_n_style): Use it.
86021         (quotearg_n_style_mem): New function.
86022
86023         * lib/quotearg.h (quotearg_n_style_mem): New function.
86024
86025 2002-01-19  Jim Meyering  <meyering@lucent.com>
86026
86027         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86028         Remove useless quotes: DF_PROG="df".
86029         * m4/strnlen.m4: New file.
86030
86031 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86032
86033         * lib/backupfile.c (ISDIGIT): Comment fix.
86034         * lib/getdate.y (ISDIGIT): Likewise.
86035         * lib/posixtm.c (ISDIGIT, year): Likewise.
86036         * lib/strverscmp.c (ISDIGIT): Likewise.
86037         * lib/userspec.c (ISDIGIT): Likewise.
86038
86039 2002-01-16  Jim Meyering  <meyering@lucent.com>
86040
86041         * lib/getdate.y: Add three semicolons, each just before a closing
86042         brace. Bison (as of version 1.31) no longer papers over that mistake.
86043
86044 2002-01-05  Jim Meyering  <meyering@lucent.com>
86045
86046         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86047
86048 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86049
86050         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86051         not silently exit merely because the output buffer happens to
86052         have nothing pending.
86053
86054 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86055
86056         See the big note in ../ChangeLog.
86057         * lib/human.c (suffixes): Prefer K to k for 1024.
86058         (generate_suffix_backwards): New function.
86059         (human_readable_inexact): Use it.
86060         * lib/xstrtol.c (__xstrtol): If there is no number but there
86061         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86062         Accept 'K' as well as 'k'.
86063
86064 2001-12-15  Jim Meyering  <meyering@lucent.com>
86065
86066         * lib/regex.h (__restrict_arr): Update from libc.
86067
86068         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86069         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86070         (STREQ): Define.
86071
86072 2001-12-14  Jim Meyering  <meyering@lucent.com>
86073
86074         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86075         Suggestion from Bruno Haible.
86076
86077 2001-12-10  Jim Meyering  <meyering@lucent.com>
86078
86079         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86080         xrealloc, Instead, include "xalloc.h".
86081         (initbuffer): Don't cast xmalloc return value to char*.
86082         (readline): Reword comment.
86083         Don't cast xrealloc return value to char*
86084         Return NULL, not 0.
86085
86086 2001-12-09  Jim Meyering  <meyering@lucent.com>
86087
86088         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86089         about `signed and unsigned type in conditional expression'.
86090         * lib/posixtm.c (posix_time_parse): Likewise.
86091
86092         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86093
86094         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86095         to avoid a pedantic warning.
86096
86097         * lib/getstr.c: Don't include assert.h.
86098         (getstr): Remove warning-evoking assertions.
86099         Return -1 if offset parameter is out of bounds.
86100         Change the type of a local from int to size_t.
86101
86102         * lib/strftime.c (my_strftime_localtime_r): Include this function
86103         definition in the `#if ! HAVE_TM_GMTOFF' block.
86104
86105         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86106         Include xalloc.h instead.
86107
86108 2001-12-02  Jim Meyering  <meyering@lucent.com>
86109
86110         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86111         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86112         included.
86113
86114         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86115         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86116
86117 2001-11-30  Akim Demaille  <akim@epita.fr>
86118
86119         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86120         before being defined.
86121
86122 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86123
86124         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86125         First arg is int, not unsigned.
86126         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86127         (SIZE_MAX, UINT_MAX): New macros.
86128         (quotearg_n_options): Abort if N is negative.
86129         Avoid overflow check on hosts where size_t is 64 bits and int
86130         is 32 bits, as overflow is impossible there.
86131         Fix off-by-one typo that caused unnecessary reallocation.
86132
86133 2001-11-27  Jim Meyering  <meyering@lucent.com>
86134
86135         * lib/tempname.c: Merge with version from libc.
86136         * lib/regex.c: Likewise.
86137
86138         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86139         systems for which STDC_HEADERS is 0, it was not included, resulting in
86140         a warning about an integer-to-pointer conversion problem with getenv.
86141         Reported by Volker Borchert.
86142
86143 2001-11-26  Jim Meyering  <meyering@lucent.com>
86144
86145         * lib/gtod.h: Remove file.
86146         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86147         * lib/gettimeofday.c: Don't include gtod.h.
86148         (GTOD_init): Remove function.
86149         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86150         Suggestion from Volker Borchert.
86151
86152 2001-11-23  Jim Meyering  <meyering@lucent.com>
86153
86154         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86155         it.
86156         * lib/hash.c (struct hash_table): Define it here instead.
86157
86158 2001-11-22  Jim Meyering  <meyering@lucent.com>
86159
86160         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86161
86162 2001-11-20  Jim Meyering  <meyering@lucent.com>
86163
86164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86165         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86166
86167 2001-11-19  Jim Meyering  <meyering@lucent.com>
86168
86169         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86170         directory.  Use "conftestXXXXXX" as the template.
86171         Suggestion from Paul Eggert.
86172
86173         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86174         immediately, so the test doesn't mistakenly hit the max-open-files
86175         limit.
86176
86177 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86178
86179         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86180         (TEMPORARIES): New macro.
86181         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86182         removes an artificial limitation (e.g. HP-UX 10.20, where
86183         TMP_MAX is 17576).
86184
86185 2001-11-18  Jim Meyering  <meyering@lucent.com>
86186
86187         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86188
86189 2001-11-18  Jim Meyering  <meyering@lucent.com>
86190
86191         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86192         on SunOS 4.
86193
86194         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86195         files will be created before anything else.
86196
86197 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86198
86199         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86200         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86201
86202 2001-11-17  Jim Meyering  <meyering@lucent.com>
86203
86204         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86205         Prompted by a report from Bob Proulx.
86206
86207         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86208         Instead, require UTILS_FUNC_MKSTEMP.
86209
86210 2001-11-17  Jim Meyering  <meyering@lucent.com>
86211
86212         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86213         Now, that's done as part of AC_FUNC_STRTOD.
86214
86215 2001-11-17  Jim Meyering  <meyering@lucent.com>
86216
86217         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86218         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86219         rather than group writable.  Patch by Juan F. Codagnone.
86220
86221         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86222         xrealloc, Instead, include "xalloc.h".
86223
86224         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86225         Remove explicit declarations of xmalloc, xrealloc,
86226         and xstrdup.  Instead, include "xalloc.h".
86227
86228         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86229         unlocked-io.h.
86230         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86231         Likewise.
86232         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86233
86234         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86235         Reported by Padraig Brady.
86236
86237         * lib/mkstemp.c: #undef mkstemp.
86238         Include config.h.
86239         (rpl_mkstemp): Rename from mkstemp.
86240         Protoize.
86241
86242 2001-11-16  Jim Meyering  <meyering@lucent.com>
86243
86244         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86245         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86246         determine the amount of total physical memory, use pstat_getstatic.
86247         HPUX-11 doesn't define _SC_PHYS_PAGES.
86248         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86249         If sysconf couldn't be used to determine the amount of available
86250         physical memory, use both pstat_getstatic and pstat_getdynamic.
86251         Based on a patch from Bob Proulx.
86252
86253 2001-11-10  Jim Meyering  <meyering@lucent.com>
86254
86255         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86256         (jm_PREREQ): Use it.
86257
86258 2001-11-09  Jim Meyering  <meyering@lucent.com>
86259
86260         * m4/jm-macros.m4: Require autoconf-2.52f.
86261         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86262         Use these AC_-prefixed names, not the AM_-prefixed ones.
86263
86264         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86265
86266 2001-11-05  Jim Meyering  <meyering@lucent.com>
86267
86268         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86269
86270 2001-11-04  Jim Meyering  <meyering@lucent.com>
86271
86272         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86273         $DEFS.
86274
86275 2001-11-03  Jim Meyering  <meyering@lucent.com>
86276
86277         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86278         of AC_DEFUN.
86279
86280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86281         know the name of the variable in the macro definition.
86282
86283 2001-11-03  Jim Meyering  <meyering@lucent.com>
86284
86285         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86286         in argmatch_to_argument call.
86287
86288         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86289         argument.
86290
86291         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86292         e.g., a fault due to an attempt to free a NULL pointer.
86293
86294 2001-11-01  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86297         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86298
86299 2001-11-01  Jim Meyering  <meyering@lucent.com>
86300
86301         * lib/dirfd.c, lib/dirfd.h: New files.
86302         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86303
86304         * lib/hash.c (hash_print) [TESTING]: Clean up.
86305
86306 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86307
86308         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86309         to avoid a warning if -Wall.
86310
86311 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86312
86313         * README: New file
86314         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86315         (per RMS's instructions, this is now the canonical source)
86316         * lgpl/, gpl/: New directories.
86317
86318 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86319
86320         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86321
86322 2001-10-21  Jim Meyering  <meyering@lucent.com>
86323
86324         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86325         this code would end up calling gettext even in packages built
86326         with --disable-nls.
86327         * lib/getopt.c (_): Likewise.
86328         * lib/regex.c (_): Likewise.
86329
86330 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86331
86332         * m4/error.m4 (jm_PREREQ_ERROR):
86333         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86334         AC_FUNC_STRERROR_R does that.
86335         Check for strerror declaration.
86336
86337         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86338         are supposed to have them these days.
86339         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86340         Merge changes from latest Autoconf CVS.
86341         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86342         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86343         POSIX decided to standardize on the int flavor of strerror_r.
86344
86345 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86346
86347         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86348         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86349         Use strerror_r that is only a macro, even if it is not a function.
86350         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86351         (private_strerror): Use prototypes, not old-style function definition.
86352         (print_errno_message): New function.
86353         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86354         char*-flavored one.
86355         (error_tail, error, error_at_line): Use it.
86356
86357 2001-10-11  Jim Meyering  <meyering@lucent.com>
86358
86359         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86360         and quote_n (1, ... to avoid clobbering a buffer.
86361
86362 2001-10-05  Jim Meyering  <meyering@lucent.com>
86363
86364         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86365         hash-pjw.h.
86366         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86367         * lib/hash-pjw.h: New file.
86368
86369 2001-09-30  Jim Meyering  <meyering@lucent.com>
86370
86371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86372         `struct fsstat' has the `f_fstypename' member.
86373         Use that to define FS_TYPE, which is now used to make
86374         the getfsstat link test tighter.
86375
86376 2001-09-30  Jim Meyering  <meyering@lucent.com>
86377
86378         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86379         Include <sys/ucred.h>, for Apple Darwin.
86380         Include sys/mount.h and sys/fs_types.h only if available.
86381         (FS_TYPE): Define.
86382         (read_filesystem_list): Use FS_TYPE.
86383
86384 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86385
86386         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86387         a boolean context.
86388
86389 2001-09-29  Jim Meyering  <meyering@lucent.com>
86390
86391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86392         [one-argument getmntent function]): Include stdio.h before mntent.h.
86393         SunOS 4.1.x needs it for the declaration of `FILE'.
86394         Patch by Volker Borchert.
86395
86396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86397         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86398         sys/fs_types.h, and make the link-test for getfsstat guard #include
86399         directives with appropriate #if HAVE_*_H tests so that we can
86400         detect getfsstat on Apple Darwin1.3.7 systems.
86401         Reported by Nelson Beebe.
86402         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86403
86404 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86405
86406         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86407         #defines strtoimax.  Also treat the other strto* functions
86408         like strtoimax.
86409
86410         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86411         Check for strtoul and strtoumax,
86412         as those declarations are made even in the signed case.
86413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86414         Likewise, for strtol and strtoimax.
86415
86416 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86417
86418         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86419         #defines strtoimax.  Also treat the other strto* functions
86420         like strtoimax.
86421
86422         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86423         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86424         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86425
86426 2001-09-26  Jim Meyering  <meyering@lucent.com>
86427
86428         Most macros in unlocked-io.h had the wrong number of arguments.
86429         * lib/gen-uio: New script.
86430         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86431         * lib/unlocked-io.hin: Remove file.
86432         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86433         rather than trying to embed it here.
86434         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86435         Reported by Padraig Brady.
86436
86437 2001-09-25  Volker Borchert  <bt@teknon.de>
86438
86439         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86440         `result'.
86441
86442 2001-09-24  Jim Meyering  <meyering@lucent.com>
86443
86444         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86445
86446 2001-09-23  Jim Meyering  <meyering@lucent.com>
86447
86448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86449         instead of the mere test for existence of mntent.h.  The latter
86450         would get a false-positive on AIX 3.4 systems.
86451         In the outer getmntent if-block, don't die if neither of the getmntent
86452         tests succeeds.  Instead, just fall through and continue with the
86453         remaining tests.
86454
86455 2001-09-23  Jim Meyering  <meyering@lucent.com>
86456
86457         * lib/mountlist.c: Remove useless parentheses in #if directives.
86458         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86459         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86460
86461 2001-09-22  Jim Meyering  <meyering@lucent.com>
86462
86463         * m4/gettext.m4: New file.  From gettext.
86464         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86465         * m4/progtest.m4: Likewise
86466         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86467         * m4/glibc21.m4: Likewise.
86468
86469         * m4/libintl.m4: Remove.  No longer used.
86470
86471 2001-09-22  Jim Meyering  <meyering@lucent.com>
86472
86473         * lib/localcharset.c: Update from latest gettext.
86474         * lib/config.charset: Likewise.
86475
86476 2001-09-20  Jim Meyering  <meyering@lucent.com>
86477
86478         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86479         strtoimax.
86480         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86481         strtoumax.
86482
86483 2001-09-20  Jim Meyering  <meyering@lucent.com>
86484
86485         * lib/xstrtol.c (strtoimax): Guard declaration with
86486         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86487         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86488         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86489         (strtoumax): Likewise, for completeness (it wasn't necessary).
86490
86491 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86492
86493         * lib/strtoimax.c (HAVE_LONG_LONG):
86494         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86495         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86496         to work around bug in IBM C compiler.
86497
86498 2001-09-17  Jim Meyering  <meyering@lucent.com>
86499
86500         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86501         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86502         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86503         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86504         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86505         whenever the right hand side need not be expanded by the shell.
86506
86507 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86508
86509         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86510         library.  It's not correct, as some older glibcs are buggy.
86511         fnmatch wasn't fixed until glibc 2.2.
86512
86513         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86514         special shell magic here.
86515
86516 2001-09-16  Jim Meyering  <meyering@lucent.com>
86517
86518         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86519         * m4/jm-macros.m4: Require it.
86520
86521 2001-09-16  Jim Meyering  <meyering@lucent.com>
86522
86523         * lib/mkdir.c: New file.
86524
86525 2001-09-15  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/jm-macros.m4: Check for help2man.
86528
86529 2001-09-11  Jim Meyering  <meyering@lucent.com>
86530
86531         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86532         The body, by Paul Eggert, was moved here from configure.in.
86533         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86534
86535 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86536
86537         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86538         (jm_PREREQ): Use it.
86539
86540 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86541
86542         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86543         Use ssize_t, not int, to store result of readlink.
86544         Check for ssize_t overflow as well as size_t overflow,
86545         as POSIX says the result of readlink is implementation-defined
86546         when ssize_t overflows.
86547         Remove unnecessary cast to char*.
86548         Use free+malloc instead of realloc, as the storage doesn't need
86549         to be preserved and it's clearer and can be more efficient that way.
86550         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86551         * lib/xreadlink.h (xreadlink): Update prototype.
86552
86553 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86554
86555         * lib/xgetcwd.c: Revert some of the previous change; intead,
86556         fix the HAVE_GETCWD_NULL code to behave more like the
86557         !HAVE_GETCWD_NULL code used to.
86558
86559         Include "xalloc.h".
86560         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86561         invoke xalloc_die.
86562
86563 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86564
86565         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86566         sys/param.h, as pathmax.h includes them.
86567
86568 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86569
86570         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86571         (jm_PREREQ_XGETCWD): New macro.
86572
86573         * m4/getcwd.m4: New file.
86574
86575 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86576
86577         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86578         like the HAVE_GETCWD_NULL code.
86579         Include pathmax.h if not HAVE_GETCWD.
86580         Do not include xalloc.h.
86581         (INITIAL_BUFFER_SIZE): New symbol.
86582         Do not use xmalloc / xrealloc, since the caller is responsible for
86583         handling errors.  Preserve errno around `free' during failure.
86584         Do not overrun buffer when using getwd.
86585
86586 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86587
86588         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86589         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86590         getcwd (NULL, 0).
86591
86592 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86593
86594         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86595         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86596         spotted by Jim Meyering.
86597
86598 2001-09-03  Jim Meyering  <meyering@lucent.com>
86599
86600         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86601         failure.
86602
86603 2001-09-02  Jim Meyering  <meyering@lucent.com>
86604
86605         * lib/error.c: Update from GNU libc.
86606
86607 2001-09-01  Jim Meyering  <meyering@lucent.com>
86608
86609         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86610         Used by df.
86611
86612 2001-09-01  Jim Meyering  <meyering@lucent.com>
86613
86614         * lib/xreadlink.c: New file.
86615         * lib/xreadlink.h: New file.
86616         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86617         xreadlink.h.
86618
86619         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86620         doesn't conflict with sparc Solaris 7's definition in
86621         /usr/include/sys/int_types.h.
86622
86623         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86624         files.
86625         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86626         and strncasecmp as r-values.  Unixware didn't have declarations.
86627
86628 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86629
86630         * lib/xstrtol.h: Add copyright notice.
86631         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86632         LONGINT_INVALID_SUFFIX_CHAR.
86633
86634 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86635
86636         * lib/xstrtol.c (strtoimax): New decl.
86637
86638 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86639
86640         * lib/xgetcwd.c: Don't include pathmax.h.
86641         Include stdlib.h and unistd.h if available.
86642         Include xalloc.h.
86643         (xmalloc, xstrdup, free): Remove decls.
86644         (xgetcwd): Don't assume sizes fit in unsigned.
86645         Check for overflow when computing sizes.
86646         Simplify reallocation code.
86647
86648 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86649
86650         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86651         a directory's st_size can have an arbitrary value, so the old
86652         usage could waste an arbitrary amount of memory.  All uses
86653         changed.
86654         * lib/savedir.h: Update prototype.
86655
86656 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86657
86658         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86659
86660         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86661         old strtoimax.c.
86662
86663         Also, make the following further changes to make this file's
86664         configuration more similar to that of strtol.c:
86665         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86666         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86667         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86668         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86669         changed to signed values.
86670
86671         And make the following changes as well:
86672         Fix copyright notice, as 1999 was missing.
86673         (verify): New macro.
86674         (strtoimax): Check sizes at compile-time, not run-time.
86675         Prefer strtol to strtoll if both work.
86676         (main): Remove; it was not that useful and was a pain to maintain.
86677
86678         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86679
86680 2001-08-31  Jim Meyering  <meyering@lucent.com>
86681
86682         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86683         Use an initial, malloc'd, buffer of length 128 rather than
86684         a statically allocated one of length 1024.
86685
86686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86687
86688         Simplify code, partly by assuming autoconf 2.52 semantics.
86689
86690         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86691
86692         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86693         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86694         All uses removed.
86695         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86696         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86697         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86698         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86699         jm_AC_HEADER_INTTYPES_H.
86700         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86701
86702         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86703
86704         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86705         Quote first arg of AC_DEFUN.
86706         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86707         since they are needed to parse the include file even if we need
86708         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86709         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86710         but with opposite signedness.
86711
86712 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86713
86714         Merge 'exclude' changes from tar 1.13.22.
86715         This fixes one or two unlikely storage allocation overflow bugs,
86716         but doesn't change user-visible behavior otherwise.
86717
86718 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86719
86720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86721         (jm_PREREQ_EXCLUDE): New macro.
86722
86723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86724
86725         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86726         tm to be declared.
86727
86728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86729
86730         * lib/hash.c: Remove '2001' from copyright notice.
86731
86732 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86733
86734         * lib/full-write.h: New file.
86735         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86736         * lib/full-write.c: Correct credits, as cccp.c no longer
86737         exists and anyway it was so heavily changed from the old cccp
86738         code as to be unrecognizable.  Include full-write.h.
86739         (full_write): Return size_t, with short writes meaning failure.
86740         All callers changed.  This fixes a bug with large buffers
86741         on 64-bit hosts.
86742         * lib/utime.c: Include full-write.h.
86743
86744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86745
86746         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86747         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86748         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86749         Include if available.
86750         (<xalloc.h>): Include
86751         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86752         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86753         collide with FNM macros.
86754         (struct patopts): New struct.
86755         (struct exclude): Use it, as exclude patterns now come with options.
86756         (new_exclude): Support above changes.
86757         (new_exclude, add_exclude_file):
86758         Initial size must now be a power of two to simplify overflow checking.
86759         (free_exclude, fnmatch_no_wildcards): New function.
86760         (excluded_filename): No longer requires options arg, as the options
86761         are determined by add_exclude.  Now returns bool, not int.
86762         (excluded_filename, add_exclude):
86763         Add support for the fancy new exclusion options.
86764         (add_exclude, add_exclude_file): Now takes int options arg.
86765         Check for arithmetic overflow when computing sizes.
86766         (add_exclude_file): xrealloc might modify errno, so don't
86767         realloc until after errno might be used.
86768
86769         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86770         New macros.
86771         (free_exclude): New decl.
86772         (add_exclude, add_exclude_file): Now takes int options arg.
86773         (excluded_filename): No longer requires options arg, as the options
86774         are determined by add_exclude.  Now returns bool, not int.
86775
86776 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86777
86778         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86779
86780 2001-08-27  Jim Meyering  <meyering@lucent.com>
86781
86782         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86783
86784         * lib/version-etc.c (N_): Remove definition.
86785         Revert most of last change.
86786         Instead, simply don't mark the `Copyright...' string for translation.
86787         Based on advice from Paul Eggert.
86788
86789         * lib/strtoxmax.c: Tweak comment.
86790
86791 2001-08-26  Jim Meyering  <meyering@lucent.com>
86792
86793         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86794
86795         * m4/xstrtoimax.m4: New file.
86796         * m4/xstrtoumax.m4: Add comments explaining why we
86797         AC_REPLACE_FUNCS(strtol).
86798
86799 2001-08-26  Jim Meyering  <meyering@lucent.com>
86800
86801         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86802         of copyright with `%s' so translators don't get an untranslated
86803         message in 2002.
86804         (COPYRIGHT_YEAR): Define.
86805         (version_etc): Use fprintf rather than fputs.
86806         Suggestion from Ulrich Drepper.
86807
86808         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86809
86810         * lib/strtoll.c: New file, from GNU libc.
86811         * lib/xstrtoimax.c: New file.
86812
86813         * lib/xstrtol.h: Add xstrtoimax.
86814         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86815         * lib/strtoimax.c: New file.  Likewise, but first define
86816         STRTOUXMAX_SIGNED.
86817
86818         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86819         ...
86820         * lib/strtoxmax.c: ... then renamed to this.
86821
86822 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86823
86824         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86825         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86826         (jm_AC_TYPE_INTMAX_T): New macro.
86827         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86828
86829         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86830
86831         * m4/longlong.m4: Renamed from ulonglong.m4.
86832         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86833         * m4/uintmax_t.m4: Removed.
86834
86835 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86836
86837         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86838         Port to Solaris 8, where 'sed' requires a space after the 'r'
86839         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86840         Redirect output to $tmp just once.
86841
86842 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86843
86844         * lib/addext.c (<errno.h>): Include.
86845         (errno): Declare if not defined.
86846         (addext): Work correctly when pathconf returns -1 and leaves
86847         errno alone because there is no limit.  Also, work even if
86848         pathconf returns a value greater than SIZE_MAX.
86849
86850 2001-08-12  Jim Meyering  <meyering@lucent.com>
86851
86852         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86853         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86854         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86855         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86856         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86857         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86858         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86859         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86860         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86861         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86862         utime.m4, utimes.m4, xstrtoumax.m4:
86863         Quote the first argument in each use of AC_DEFUN.
86864
86865 2001-08-12  Jim Meyering  <meyering@lucent.com>
86866
86867         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86868         Simply `return getcwd (NULL, 0);'.
86869         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86870         Use 1300 as initial value for length, not PATH_MAX.
86871
86872         * lib/pathmax.h: Clean up cpp syntax.
86873
86874 2001-08-12  Jim Meyering  <meyering@lucent.com>
86875
86876         * lib/gettimeofday.c: New file.
86877         * lib/gtod.h: New file.
86878         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86879
86880 2001-08-05  Jim Meyering  <meyering@lucent.com>
86881
86882         * m4/jm-macros.m4: Require autoconf-2.52.
86883
86884 2001-08-04  Jim Meyering  <meyering@lucent.com>
86885
86886         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86887         stmt, to get in sync with glibc.
86888
86889 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86890
86891         The following changes are from gettext 0.10.39 as maintained by
86892         Bruno Haible.
86893
86894         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86895         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86896         with inverted sense.  All uses changed.
86897
86898         * lib/mbswidth.c: Don't include <limits.h>.
86899         Include <stdlib.h> and <string.h> unconditionally.
86900         (iswcntrl, mbsinit, ISCNTRL): New macros.
86901         (mbsnwidth): Use K&R style function declarations.
86902         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86903         can optimize it when MB_CUR_MAX == 1.
86904         The width of control characters is zero, not 1.
86905
86906 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86907
86908         The following changes are from gettext 0.10.39 as maintained by
86909         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86910
86911         * m4/codeset.m4: Upgrade to serial AM1.
86912         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86913         all uses changed.  Quote first arg of AC_DEFUN.
86914         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86915
86916         * m4/iconv.m4: Upgrade to serial AM2.
86917         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86918         Add --with-libconv-prefix.
86919         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86920         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86921         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86922         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86923         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86924
86925         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86926         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86927         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86928         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86929         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86930         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86931         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86932         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86933         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86934
86935         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86936         string.h any more.
86937
86938         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86939         not the default value.
86940
86941         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86942         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86943         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86944         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86945         Also check for iswcntrl, used for wcwidth fallback.
86946         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86947         to Autoconf 2.13.
86948
86949 2001-08-03  Jim Meyering  <meyering@lucent.com>
86950
86951         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86952         as it was in the original.  Reported by Paul Eggert.
86953
86954 2001-07-16  Jim Meyering  <meyering@lucent.com>
86955
86956         * m4/gettimeofday.m4: New file.
86957         Prompted by a report from Bernhard Baehr.
86958
86959 2001-07-15  Jim Meyering  <meyering@lucent.com>
86960
86961         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86962         stuff. Now it's in ../Makefile.cfg.
86963
86964 2001-07-15  Jim Meyering  <meyering@lucent.com>
86965
86966         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86967         (BUILT_SOURCES): Add unlocked-io.h.
86968         (io_functions): Define.
86969         (unlocked-io.h): New rule.
86970         (DISTCLEANFILES): Add unlocked-io.h.
86971         (all-local): Depend on unlocked-io.h, to ensure it is created.
86972
86973         * lib/unlocked-io.hin: New file
86974
86975         * lib/regex.c: Update from glibc.
86976
86977 2001-07-05  Jim Meyering  <meyering@lucent.com>
86978
86979         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86980         recommendation.
86981         (libfetish_a_SOURCES): Put all .h files here instead.
86982         Remove a thus-exposed (better checks in automake) duplicate and
86983         two unnecessary .h files.
86984
86985 2001-07-04  Jim Meyering  <meyering@lucent.com>
86986
86987         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86988         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86989         distcheck failure.
86990
86991 2001-07-02  Jim Meyering  <meyering@lucent.com>
86992
86993         The following changes were prompted by suggestions from Bruno Haible.
86994
86995         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86996         is now generated.
86997         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86998         definition of EXTRA_DIST.
86999         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87000         ensure that the generated file is created/updated whenever the list
87001         of $(unlocked_functions) is changed.
87002         (jm-glibc-io.m4): New rule.
87003         (unlocked-io.h): New rule -- currently unused.
87004
87005 2001-06-24  Jim Meyering  <meyering@lucent.com>
87006
87007         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87008         unmatched right bracket, rather than kludging it with an extra,
87009         falsely-matching quote in a comment.  Patch by Akim Demaille.
87010
87011 2001-06-11  Jim Meyering  <meyering@lucent.com>
87012
87013         * lib/regex.c: Update from GNU libc.
87014
87015 2001-05-27  Jim Meyering  <meyering@lucent.com>
87016
87017         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87018         Check for ut_type in struct utmp.
87019
87020 2001-05-27  Jim Meyering  <meyering@lucent.com>
87021
87022         * lib/readutmp.h (UT_TYPE): Define.
87023
87024 2001-05-24  Jim Meyering  <meyering@lucent.com>
87025
87026         * lib/argmatch.c: Include "quote.h".
87027         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87028         quote function.  Reported by Göran Uddeborg.
87029
87030 2001-05-22  Jim Meyering  <meyering@lucent.com>
87031
87032         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87033         now that we use the package-supplied version unconditionally.
87034         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87035
87036 2001-05-21  Jim Meyering  <meyering@lucent.com>
87037
87038         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87039         shell syntax errors.
87040
87041 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87042
87043         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87044
87045 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87046
87047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87048         Don't bother to check library strftime, since
87049         we'll be using our own my_strftime function anyway.
87050         Define my_strftime instead of strftime.
87051
87052 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87053
87054         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87055         which is not yet declared.
87056
87057 2001-05-15  Jim Meyering  <meyering@lucent.com>
87058
87059         * m4/regex.m4: Use proper quoting so brackets appear in the test
87060         program.
87061         Reported by, and with help from, Bruno Haible.
87062
87063 2001-05-13  Jim Meyering  <meyering@lucent.com>
87064
87065         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87066         undefined.
87067
87068 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87069
87070         dirname code cleanup.  base_name now behaves more compatibly
87071         with POSIX basename when given file names that have trailing
87072         slashes, and similarly for dir_name.  Add new primitives
87073         base_len and dir_len.  Put the directory-name-related decls
87074         into dirname.h.
87075
87076         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87077         * lib/backupfile.c (base_name): Likewise.
87078         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87079         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87080         * lib/makepath.c (strip_trailing_slashes): Likewise.
87081         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87082         ISSLASH): Likewise.
87083         * lib/rename.c (strip_trailing_slashes): Likewise.
87084         * lib/same.c (base_name): Likewise.
87085         * lib/stripslash.c (ISSLASH): Likewise.
87086
87087         * lib/addext.c: Include <dirname.h> after size_t is defined.
87088         * lib/backupfile.c: Likewise.
87089
87090         * lib/addext.c (addext): Use base_len to trim redundant
87091         trailing slashes instead of doing it ourselves.
87092         But do not trim the last slash if it is not redundant.
87093
87094         * lib/backupfile.c (find_backup_file_name,
87095         max_backup_version): Use base_len instead of rolling it ourselves.
87096         Handle the case of "" and (on DOS) "C:" correctly.
87097
87098         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87099         needed. Include <string.h>, <dirname.h>.
87100         (base_name): Allow file names ending in slashes, other than names
87101         that are all slashes.  In this case, return the basename followed
87102         by the slashes.  This is more general, and can be used in places
87103         where the original base_name purposely had an assertion failure.
87104         (base_len): New function.
87105
87106         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87107         Do not include <assert.h>; no longer needed.
87108         Include xalloc.h.
87109         (memrchr): Remove decl.
87110         (dir_name_r): Remove.
87111         (dir_len): Renamed from dirlen.  All callers changed.
87112         Rewrite in terms of base_name, for simplicity and consistency.
87113         (dir_name): Never return NULL.  All callers changed.
87114         Do not include <stdlib.h> in test program; no longer needed.
87115         return 0; is fine for test program.
87116
87117         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87118         New macros.
87119         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87120
87121         * lib/path-concat.c (path_concat): Use base_len to compute
87122         base length, not strlen; this means we cannot rely on memcpy
87123         to null-terminate.
87124
87125         * lib/same.c (STREQ): Remove.
87126         (same_name): Handle the case where the basename ends in trailing '/'.
87127
87128         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87129         a slash was stripped.  Do not strip the last slash after a
87130         file system prefix.
87131
87132 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87133
87134         * lib/Makefile.am (libfetish_a_SOURCES):
87135         Add strftime.c, since we now compile it on all hosts.
87136
87137         * lib/strftime.c (my_strftime):
87138         Define to nstrftime if emacs, but only if my_strftime is not defined.
87139         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87140         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87141         Add one more extra argument: a nanoseconds value.
87142         All uses changed.
87143         (ns): New macro.
87144         (my_strftime function): Add %N format.
87145         (emacs_strftimeu): Renamed from emacs_strftime,
87146         with extra ut argument.
87147
87148 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87149
87150         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87151
87152 2001-04-21  Jim Meyering  <meyering@lucent.com>
87153
87154         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87155         doesn't interfere.
87156
87157 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87158
87159         * m4/ftruncate.m4: Check for chsize.
87160         Link with ftruncate.o unconditionally if ftruncate is missing.
87161         This was required when cross-compiling to i586-mingw32msvc.
87162
87163 2001-04-08  Jim Meyering  <meyering@lucent.com>
87164
87165         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87166         recomputed; that's necessary when the offset spans a DST transition.
87167         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87168
87169 2001-04-02  Jim Meyering  <meyering@lucent.com>
87170
87171         * lib/regex.h, regex.c: Update from GNU libc.
87172
87173 2001-03-24  Jim Meyering  <meyering@lucent.com>
87174
87175         * m4/jm-macros.m4: Require autoconf-2.49d.
87176
87177 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87178
87179         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87180
87181 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87182
87183         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87184
87185 2001-03-17  Jim Meyering  <meyering@lucent.com>
87186
87187         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87188         now that the version in autoconf is equivalent.
87189         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87190
87191         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87192         Suggestion from Akim Demaille.
87193
87194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87195         (jm_PREREQ_TEMPNAME): New function.
87196
87197 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87198
87199         * lib/tempname.c (uint64_t): Define to uintmax_t if
87200         not defined, and if UINT64_MAX is not defined.
87201         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87202         Reported by John David Anglin.
87203
87204 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87205
87206         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87207         resolve alias if codeset is empty.
87208         * lib/config.charset (BeOS): Use wildcard syntax.
87209
87210 2001-03-13  Jim Meyering  <meyering@lucent.com>
87211
87212         * lib/path-concat.c (path_concat)
87213         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87214         concatenating e.g., `C:' and `foo'.
87215         From Bruno Haible.
87216
87217 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87218
87219         * lib/localcharset.c (locale_charset): Don't use
87220         setlocale(LC_CTYPE,NULL). Don't return NULL.
87221         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87222
87223 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87224
87225         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87226         support for DOS/DJGPP.
87227
87228 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87229
87230         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87231         lacks mkstemp.  Compile our own tempname.c if we compile our own
87232         mkstemp.c, as mkstemp relies on tempname.
87233
87234 2001-03-01  Jim Meyering  <meyering@lucent.com>
87235
87236         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87237         AH_VERBATIM really does output its argument verbatim.
87238
87239 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87240
87241         * lib/Makefile.am (libfetish_a_SOURCES):
87242         Add dup-safer.c, fopen-safer.c.
87243         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87244
87245         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87246         * lib/unistd-safer.h: New files.
87247
87248 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87249
87250         The mkstemp replacement is taken from glibc 2.2.2, with some
87251         portability fixes for use outside glibc, as follows:
87252
87253         * lib/tempname.c (struct_stat64): New macro.
87254         (direxists, __gen_tempname): Use it.
87255         This avoids a portability problem with Solaris 8.
87256
87257         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87258         (<stddef.h>, <stdint.h>, <string.h>):
87259         Include only if STDC_HEADERS || _LIBC.
87260         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87261         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87262         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87263         (__set_errno): Define this macro if <errno.h> doesn't.
87264         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87265         Define these macros if <stdio.h> doesn't.
87266         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87267         Define these macros if <sys/stat.h>
87268         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87269         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87270         __xstat64): Define if not _LIBC.
87271         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87272         (__gen_tempname): Invoke gettimeofday only if
87273         HAVE_GETTIMEOFDAY || _LIBC;
87274         otherwise, fall back on plain "time".
87275         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87276
87277         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87278
87279         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87280
87281 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87282
87283         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87284
87285 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87286
87287         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87288         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87289         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87291
87292 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87293
87294         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87295         Remove workaround macros for hosts that have mbrtowc but not
87296         mbstate_t, as we now insist on proper declarations for both
87297         before using mbrtowc.
87298
87299 2001-02-17  Jim Meyering  <meyering@lucent.com>
87300
87301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87302         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87303         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87304         UnixWare 7.1.1.
87305
87306         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87307         rather than AC_CACHE_VAL.
87308
87309 2001-02-17  Jim Meyering  <meyering@lucent.com>
87310
87311         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87312         around included file name.
87313
87314         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87315
87316         * lib/strftime.c: Update from GNU libc (the only changes were to
87317         comments).
87318
87319 2001-02-17  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/regex.c: Update from libc.
87322
87323 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87324
87325         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87326         clash.
87327
87328 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87329
87330         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87331         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87332         Reported by Mark Hounschell via Paul Eggert.
87333
87334 2001-02-07  Jim Meyering  <meyering@lucent.com>
87335
87336         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87337
87338 2001-02-05  Jim Meyering  <meyering@lucent.com>
87339
87340         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87341         it includes the patch required for `large file' support with at least
87342         HP-UX's 10.20 /bin/cc.
87343
87344 2001-02-03  Jim Meyering  <meyering@lucent.com>
87345
87346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87347         AS_IF, now that it works once again (mysteriously).
87348         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87349
87350 2001-01-30  Jim Meyering  <meyering@lucent.com>
87351
87352         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87353         * m4/chown.m4: Rename conftestchown to conftest.chown.
87354         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87355         s/conftestdir2/conftest.d2/.
87356         * m4/utimes.m4: s/conftestdata/conftest.data/
87357         Inspired by Pavel Roskin's change in autoconf.
87358
87359 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87360
87361         * lib/config.charset: Update for FreeBSD 4.2.
87362
87363 2001-01-27  Jim Meyering  <meyering@lucent.com>
87364
87365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87366         a use of AS_IF.
87367         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87368
87369 2001-01-26  Jim Meyering  <meyering@lucent.com>
87370
87371         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87372         quotearg.c includes it.
87373
87374 2001-01-26  Jim Meyering  <meyering@lucent.com>
87375
87376         * lib/quotearg.c: Include stddef.h.
87377         * lib/quote.c: Include stddef.h.
87378         Reported by Axel Kittenberger.
87379
87380         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87381         line in double quotes so that it evokes a better diagnostic.
87382         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87383         Reported by Axel Kittenberger.
87384
87385 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87386
87387         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87388         as if it was a `charset'.
87389
87390 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87391
87392         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87393         has const.
87394
87395 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87396
87397         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87398         to avoid a warning.  Add back 'const' to inptr.
87399
87400 2001-01-20  Jim Meyering  <meyering@lucent.com>
87401
87402         Be sure that headers are checked before used in code compiled
87403         for the type checks.
87404         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87405         In place of that, invoke jm_CHECK_ALL_TYPES.
87406         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87407         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87408         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87409         The check for ssize_t was mistakenly run before the test for unistd.h.
87410
87411         The configure-time check for stdbool.h was missing.
87412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87413         (jm_PREREQ_HASH): New function.
87414
87415 2001-01-17  Jim Meyering  <meyering@lucent.com>
87416
87417         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87418         for autoconf-2.49c.
87419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87420
87421 2001-01-16  Jim Meyering  <meyering@lucent.com>
87422
87423         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87424         From Bruno Haible.
87425
87426 2001-01-14  Jim Meyering  <meyering@lucent.com>
87427
87428         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87429         foo and bar.  Create conftestdir/ in the script, not in the C code.
87430         Remove directories in the script, not in the C code.
87431         Remove conftestdir{,2} before trying to create the directory.
87432         Make the entire configure script fail if the mkdir fails.
87433
87434 2001-01-14  Jim Meyering  <meyering@lucent.com>
87435
87436         * lib/rename.c: New file.  From Volker Borchert.
87437         Include stdlib.h, string.h or strings.h, and xalloc.h.
87438         Use strip_trailing_slashes rather than open-coding it.
87439
87440 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87441
87442         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87443
87444 2001-01-03  Jim Meyering  <meyering@lucent.com>
87445
87446         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87447         of local `inptr' to avoid warning with some system declarations of
87448         iconv.
87449
87450 2001-01-02  Volker Borchert  <bt@teknon.de>
87451
87452         * m4/rename.m4: New file.
87453         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87454
87455 2001-01-01  Jim Meyering  <meyering@lucent.com>
87456
87457         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87458         even on systems with utmpx.h.  It's necessary for the declaration of
87459         utmp's ut_user member.  Reported by Andreas Jaeger.
87460
87461         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87462         available. They are required for the declarations of getgrgid and
87463         getpwuid resp.
87464         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87465         Reported by Andreas Jaeger.
87466
87467 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87468
87469         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87470         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87471         so `make install' also works in VPATH builds.
87472
87473 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87474
87475         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87476         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87477         can be used in subdirectories.
87478
87479 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87480
87481         * lib/modechange.c: Do not assume that mode_t uses the
87482         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87483         the other-execute bit of FOO even if S_IXOTH != 1.
87484
87485         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87486         WOTH, XOTH, ALLM): New macros.
87487         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87488          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87489         Use them.
87490         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87491         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87492         (mode_compile):
87493         No need to use uintmax_t; unsigned long is long enough.
87494         Don't bother to get suffix since we don't use it.
87495
87496 2000-12-26  Jim Meyering  <meyering@lucent.com>
87497
87498         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87499         better with autoheader.
87500
87501 2000-12-24  Jim Meyering  <meyering@lucent.com>
87502
87503         * lib/hash.c (is_prime): Return explicit boolean values.
87504         (hash_get_first): Return NULL to appease Irix5.6's 89.
87505         Reported by Nelson Beebe.
87506
87507 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87508
87509         * lib/localcharset.c (locale_charset): Add support for Win32.
87510
87511 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87512
87513         * lib/physmem.h, lib/physmem.c: New files.
87514
87515         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87516         (noinst_HEADERS): Add physmem.h.
87517
87518         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87519         't' for compatibility with Solaris 8 sort.
87520
87521 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87522
87523         * lib/config.charset: Add support for BeOS.
87524
87525 2000-12-17  Jim Meyering  <meyering@lucent.com>
87526
87527         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87528         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87529
87530 2000-12-16  Jim Meyering  <meyering@lucent.com>
87531
87532         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87533         N and M) would have treated it like `chown N:N FILE'.
87534
87535         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87536
87537 2000-12-16  Jim Meyering  <meyering@lucent.com>
87538
87539         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87540         SHELLS_FILE to a file name that's useful on djgpp systems.
87541         Include stdlib.h.
87542         (ADDITIONAL_DEFAULT_SHELLS): Define.
87543         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87544         Based mostly on a patch from Prashant TR.
87545
87546 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87547
87548         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87549         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87550         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87551
87552 2000-12-08  Andreas Schwab  <schwab@suse.de>
87553
87554         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87555         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87556
87557 2000-12-07  Jim Meyering  <meyering@lucent.com>
87558
87559         * lib/stripslash.c (ISSLASH): Define.
87560         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87561         `/'.
87562         From Prashant TR.
87563
87564         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87565         (dir_name_r): Declare this function as static.
87566         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87567         manifest itself on a name containing a mix of slashes and
87568         backslashes.
87569         Make this function work with names starting with a DOS-style
87570         drive letter and colon prefix.
87571         (dir_name): Append `.' if necessary.
87572         Based mostly on patches from Prashant TR and Eli Zaretskii.
87573
87574         * lib/dirname.h (dir_name_r): Remove prototype.
87575
87576 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87577
87578         * m4/off_t-format.m4: Remove this file.
87579         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87580
87581 2000-12-06  Jim Meyering  <meyering@lucent.com>
87582
87583         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87584         replacement strtoull, we may well need the replacement strtoul, too.
87585         Check for declarations of strtoul and strtoull.
87586         Check for strtol.  Mainly as a cue to cause automake to include
87587         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87588         Check for limits.h -- strtol.c needs it.
87589
87590 2000-12-05  Jim Meyering  <meyering@lucent.com>
87591
87592         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87593
87594 2000-12-04  Jim Meyering  <meyering@lucent.com>
87595
87596         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87597         Also include memory.h, stdlib.h, unistd.h if appropriate.
87598         Reported by Andreas Jaeger (conflicting declaration of malloc).
87599
87600 2000-12-02  Jim Meyering  <meyering@lucent.com>
87601
87602         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87603         * m4/jm-macros.m4 (jm_MACROS): require it.
87604
87605 2000-12-02  Jim Meyering  <meyering@lucent.com>
87606
87607         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87608
87609 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87610
87611         * lib/memrchr.c: Include <config.h> before any system include file.
87612
87613 2000-11-30  Jim Meyering  <meyering@lucent.com>
87614
87615         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87616
87617 2000-11-30  Jim Meyering  <meyering@lucent.com>
87618
87619         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87620
87621 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87622
87623         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87624
87625 2000-11-26  Jim Meyering  <meyering@lucent.com>
87626
87627         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87628
87629 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87630
87631         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87632         size of (size_t) -1; it's not portable.
87633
87634 2000-11-17  Jim Meyering  <meyering@lucent.com>
87635
87636         * lib/strstr.c: Update from GNU libc.
87637
87638 2000-11-17  Akim Demaille  <akim@epita.fr>
87639
87640         * lib/obstack.h: Formatting changes.
87641         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87642         prevent type checking.
87643         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87644         cast the value to (void *): assigning a `foo *' to a `void *'
87645         variable is valid.
87646         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87647
87648 2000-11-16  Jim Meyering  <meyering@lucent.com>
87649
87650         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87651
87652 2000-11-11  Jim Meyering  <meyering@lucent.com>
87653
87654         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87655
87656 2000-11-10  Jim Meyering  <meyering@lucent.com>
87657
87658         * lib/obstack.h: Update from GNU libc.
87659         * lib/obstack.c: Likewise.
87660
87661 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87662
87663         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87664
87665 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87666
87667         * lib/getusershell.c (setusershell): Use rewind rather than
87668         fseek/fseeko, to avoid configuration hassles with fseeko.
87669         Don't bother opening SHELLS_FILE if shellstream is NULL;
87670         it's not necessary.
87671
87672 2000-11-05  Jim Meyering  <meyering@lucent.com>
87673
87674         * lib/makepath.h (make_dir): Declare.
87675         * lib/makepath.c (make_dir): Remove `static' attribute.
87676         Tweak a comment.
87677
87678 2000-11-04  Jim Meyering  <meyering@lucent.com>
87679
87680         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87681
87682 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87683
87684         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87685         last one in a bucket, advance to the next bucket.
87686
87687 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87688
87689         * lib/fnmatch.c: Do not comment out all the code if we are using
87690         the GNU C library, because in some cases we are replacing buggy
87691         code in the GNU C library itself.
87692
87693 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87694
87695         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87696         (regex_compile): Catch bogus \(\1\).
87697
87698 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87699
87700         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87701         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87702         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87703
87704 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87705
87706         * lib/error.h, getline.h, modechange.h:
87707         Remove "2000" from Copyright line, as the file hasn't been
87708         changed this year other than in the copyright notice.
87709
87710         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87711         was changed this year.
87712
87713 2000-10-29  Jim Meyering  <meyering@lucent.com>
87714
87715         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87716         renaming.
87717         * m4/ls-mntd-fs.m4: Likewise
87718
87719 2000-10-29  Jim Meyering  <meyering@lucent.com>
87720
87721         * lib/xstat.in: Fix grammar in comment.
87722
87723 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87724
87725         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87726         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87727         doesn't define __restrict_arr.
87728
87729 2000-10-28  Jim Meyering  <meyering@lucent.com>
87730
87731         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87732         (jm_PREREQ_MEMCHR): New function.
87733
87734 2000-10-28  Jim Meyering  <meyering@lucent.com>
87735
87736         * lib/memchr.c: Update from libc.
87737         Adjust for portability:
87738         [HAVE_STDLIB_H]: Include stdlib.h.
87739         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87740         Undef __memchr, too.
87741         [!weak_alias]: Define __memchr to memchr.
87742
87743         * lib/regex.c: Update from libc.
87744         * lib/regex.h: Likewise.
87745         * lib/getopt1.c: Likewise.
87746         * lib/memcmp.c: Likewise.
87747
87748         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87749         Avoid using fseek, when possible -- it's broken by design.
87750         Patch by Ulrich Drepper.
87751
87752 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87753
87754         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87755         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87756         Giving in to popular pressure to shut up the compiler with casts.
87757
87758 2000-10-26  Jim Meyering  <meyering@lucent.com>
87759
87760         * lib/strftime.c: Update from libc.
87761
87762 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87763
87764         * regex.c: More `unsigned char' -> `re_char' changes.
87765         Also change several `int' into `re_wchar_t'.
87766         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87767         (PUSH_FAILURE_POINTER): Don't cast any more.
87768         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87769         We want GCC to complain, since this piece of code makes
87770         re_match non-reentrant, which *should* be fixed.
87771         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87772         (EXTEND_BUFFER): Use RETALLOC.
87773         (SET_LIST_BIT): Don't cast.
87774         (re_wchar_t): New type.
87775         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87776         that those two functions will always properly return.
87777         (IMMEDIATE_QUIT_CHECK): Cast to void.
87778         (analyse_first): Use recursion rather than an explicit stack.
87779         (re_compile_fastmap): Can't fail anymore.
87780         (re_search_2): Don't check re_compile_fastmap for failure.
87781         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87782         Now also sets the new value (passed in a new argument).
87783         (re_match_2_internal): Use it.
87784         Also, use a new var `reg' of type size_t when looping through regs
87785         rather than reuse the inappropriate `mcnt'.
87786
87787 2000-10-25  Jim Meyering  <meyering@lucent.com>
87788
87789         * lib/obstack.c: Update from libc.
87790
87791 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87792
87793         * regex.c (regex_compile): Change the way of handling a range from
87794         a char less than 256 to a char not less than 256.
87795
87796 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87797
87798         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87799         NT-Emacs only.
87800         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87801         so that re_search functions only quit when callers expect them to.
87802
87803 2000-10-23  Jim Meyering  <meyering@lucent.com>
87804
87805         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87806         wrong.  That set_locale call must not have any side effects.
87807         From Paul Eggert.
87808
87809 2000-10-22  Jim Meyering  <meyering@lucent.com>
87810
87811         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87812         [CYCLIC]: Remove now-unused definition.
87813
87814         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87815         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87816         Suggestion from Ulrich Drepper.
87817
87818 2000-10-21  Jim Meyering  <meyering@lucent.com>
87819
87820         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87821         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87823
87824 2000-10-21  Jim Meyering  <meyering@lucent.com>
87825
87826         * lib/dirname.c (memrchr): Declare if necessary.
87827         (dir_name): Remove the restriction that there be no
87828         trailing slashes.  Now, this code skips past them, effectively
87829         ignoring them.
87830         [TEST_DIRNAME] (main): New unit tests.
87831
87832         * lib/memrchr.c: New file from GNU libc.
87833         Undef __memrchr, too.
87834         [!weak_alias]: Define __memrchr to memrchr.
87835         Guard weak_alias use with `#ifdef weak_alias'.
87836
87837 2000-10-21  Jim Meyering  <meyering@lucent.com>
87838
87839         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87840         (dir_name): Use dir_name_r.
87841         * lib/dirname.h (dir_name_r): Declare it.
87842
87843 2000-10-17  Jim Meyering  <meyering@lucent.com>
87844
87845         * lib/quote.h (PARAMS): Define and use.
87846         Reported by Akim Demaille.
87847
87848         * lib/getopt.c: Update from libc.
87849
87850 2000-10-16  Jim Meyering  <meyering@lucent.com>
87851
87852         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87853         setlocale.
87854         From Jan Fedak.
87855
87856 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87857
87858         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87859
87860 2000-09-25  Jim Meyering  <meyering@lucent.com>
87861
87862         * lib/md5.h (rol): Define (from GnuPG).
87863
87864         * lib/sha.c: Give credit (GnuPG) where due.
87865         (M): Use rol rather than open-coding it.
87866         Add a FIXME comment.
87867
87868 2000-09-21  Jim Meyering  <meyering@lucent.com>
87869
87870         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87871         Reported by Michael Stone.
87872
87873 2000-09-20  Jim Meyering  <meyering@lucent.com>
87874
87875         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87876         (noinst_HEADERS): Add sha.h.
87877         Based on code from Scott G. Miller and from GnuPG.
87878
87879 2000-09-18  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87882         LIBS. Otherwise, everyone ends up linking with -lelf for some
87883         configurations.
87884         Reported by Mike Stone.
87885
87886 2000-09-15  Jim Meyering  <meyering@lucent.com>
87887
87888         * lib/regex.c: Update from libc.
87889
87890 2000-09-10  Jim Meyering  <meyering@lucent.com>
87891
87892         * lib/getopt.c (_getopt_internal): Update from glibc.
87893
87894 2000-09-09  Jim Meyering  <meyering@lucent.com>
87895
87896         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87897         think it should be used as a general replacement for isascii.
87898         * lib/fnmatch.c: Likewise.
87899         * lib/mbswidth.c: Likewise
87900         * lib/regex.c: Likewise.
87901
87902         Don't use atoi.
87903         * lib/userspec.c: Include sys/param.h and limits.h.
87904         Include xstrtol.h.
87905         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87906         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87907         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87908         UID, GID.  Check range.
87909
87910 2000-09-06  Jim Meyering  <meyering@lucent.com>
87911
87912         * lib/getopt.c (_getopt_internal): Update from glibc.
87913
87914 2000-08-30  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/strftime.c: Merge in changes from GNU libc.
87917
87918 2000-08-26  Jim Meyering  <meyering@lucent.com>
87919
87920         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87921         * m4/fpending.m4: New file.
87922
87923 2000-08-26  Jim Meyering  <meyering@lucent.com>
87924
87925         * lib/closeout.c: Include "__fpending.h".
87926         (close_stdout_status): Return right away if there's nothing to flush.
87927
87928         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87929         * lib/__fpending.c: New file.
87930         * lib/__fpending.h: New file.
87931
87932 2000-08-20  Jim Meyering  <meyering@lucent.com>
87933
87934         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87935         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87936         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87937
87938 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87939
87940         Improve fileutils installation on systems where running
87941         programs (like install) can't be unlinked.
87942         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87943         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87944
87945 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87946
87947         Standardize on "memory exhausted" instead of "Memory exhausted"
87948         or "virtual memory exhausted".
87949         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87950         "virtual memory exhausted".
87951         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87952         our own message.
87953         * lib/userspec.c (parse_user_spec): Likewise.
87954         * lib/bumpalloc.h: comment fix
87955         * lib/same.c, userspec.c: Include xalloc.h.
87956
87957         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87958         not char *const and pointing to a constant array.
87959         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87960         (xrealloc): Comment fix.
87961
87962         * lib/userspec.c (parse_user_spec):
87963         Don't translate a message until just before returning,
87964         to avoid unnecessary translation.
87965
87966 2000-08-07  Jim Meyering  <meyering@lucent.com>
87967
87968         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87969         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87970         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87971         getgroups.c, gethostname.c, getopt.h, group-member.c,
87972         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87973         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87974         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87975         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87976         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87977         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87978         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87979         yesno.c: Back out Copyright date changes for each file with no change
87980         this year.  This eases coordination with other programs using the same
87981         source code modules.  From Paul Eggert.
87982
87983 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87984
87985         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87986         not char, for compatibility with glibc 2.1.3 strftime.c.
87987
87988 2000-08-03  Greg McGary  <greg@mcgary.org>
87989
87990         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87991         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87992         (EXTEND_BUFFER): Use them.
87993
87994 2000-08-01  Jim Meyering  <meyering@lucent.com>
87995
87996         * lib/dirname.c (ISSLASH): Define.
87997         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87998         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87999         both `\' and `/' may be use as path separators.
88000         Based on a patch from Prashant TR.
88001
88002 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88003
88004         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88005         slot vector a constant, since it might get modified.
88006
88007 2000-07-31  Jim Meyering  <meyering@lucent.com>
88008
88009         * lib/xmalloc.c: Use `virtual memory exhausted', not
88010         `Memory exhausted'.
88011         * lib/obstack.c (print_and_abort): Likewise.
88012
88013 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88014
88015         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88016         buffer, so that the caller can always quote one small
88017         component of a "memory exhausted" message in slot 0.
88018         From a suggestion by Jim Meyering.
88019
88020 2000-07-30  Jim Meyering  <meyering@lucent.com>
88021
88022         * lib/makepath.c (make_path): Quote the other instance, too.
88023
88024         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88025         (STATIC_BUF_SIZE): Define.
88026         (quotearg_n_options): Use only statically allocated storage when
88027         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88028         than STATIC_BUF_SIZE.
88029
88030 2000-07-29  Jim Meyering  <meyering@lucent.com>
88031
88032         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88033         * lib/dirname.c (dir_name): Likewise.
88034
88035         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88036         `/'.
88037
88038         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88039         (dir_name): Assert that there are no trailing slashes.
88040
88041 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88042
88043         * lib/mbswidth.h (mbswidth): Add a flags argument.
88044         (mbswidth): New declaration.
88045         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88046         * lib/mbswidth.c (mbswidth): Add a flags argument.
88047         (mbsnwidth): New function.
88048
88049 2000-07-24  Jim Meyering  <meyering@lucent.com>
88050
88051         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88052
88053 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88054
88055         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88056
88057 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88058
88059         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88060         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88061         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88062         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88063         invoke multibyte primitives.
88064
88065 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88066
88067         * lib/quotearg.c:
88068         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88069         so that mbstate_t is always defined.
88070
88071         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88072         be 1 in at least one GCC installation, and this configuration
88073         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88074         performance on hosts that have mbrtowc but have only unibyte
88075         locales, but I assume these hosts are rare.
88076
88077 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88078
88079         * lib/mbswidth.c (_XOPEN_SOURCE):
88080         Don't define; this causes problems on Solaris 7.
88081         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88082
88083 2000-07-23  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88086         too: getgrgid, getpwuid, getuid.
88087
88088 2000-07-23  Jim Meyering  <meyering@lucent.com>
88089
88090         * lib/basename.c (base_name): Add an assertion.
88091
88092 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88093
88094         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88095         shadow its mbsinit function.
88096
88097 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88098
88099         * lib/mbswidth.h: New file.
88100         * lib/mbswidth.c: New file.
88101         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88102         (noinst_HEADERS): Add mbswidth.h.
88103
88104 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88105
88106         * lib/config.charset: Add support for FreeBSD. Improve support for
88107         HP-UX and IRIX 6.
88108
88109 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88110
88111         * m4/mbswidth.m4: New file.
88112         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88113
88114 2000-07-15  Jim Meyering  <meyering@lucent.com>
88115
88116         * lib/makepath.c: Include quote.h.
88117         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88118         corresponding argument in a `quote (...)' call.
88119         Give better diagnostics.
88120
88121         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88122         (noinst_HEADERS): Add quote.h.
88123
88124         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88125         from tar's src/misc.c.
88126         * lib/quote.h: New file.  Prototypes for same.
88127
88128 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88129
88130         From a suggestion by Bruno Haible.
88131         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88132         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88133         to decide whether to define the BeOS workaround macro;
88134         this adjusts to the change to AC_MBSTATE_T.
88135
88136 2000-07-14  Jim Meyering  <meyering@lucent.com>
88137
88138         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88139         jm_AC_TYPE_UINTMAX_T.
88140
88141 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88142
88143         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88144
88145         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88146         quotearg_buffer_restyled): Add support for
88147         clocale_quoting_style.  Undo previous change to
88148         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88149         and "{RIGHT QUOTATION MARK}" msgids.
88150
88151 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88152
88153         From a suggestion by Bruno Haible.
88154         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88155         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88156         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88157         and mbstate_t, to a single-part test that simply defines mbstate_t.
88158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88159         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88160
88161 2000-07-10  Jim Meyering  <meyering@lucent.com>
88162
88163         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88164
88165         * m4/gnu-source.m4: Output to confdefs.h directly.
88166         Suggestion from Akim Demaille.
88167
88168 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88169
88170         The old behavior of quoting `like this' doesn't look good with
88171         newer, ISO-style fonts.  See:
88172         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88173
88174         Instead, quote "like this" by default.  Let the translator
88175         tailor the locale-specific quoting behavior by providing
88176         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88177
88178         * lib/quotearg.c (N_): New macro.
88179         (gettext_default): New function.
88180         (quotearg_buffer_restyled): Use
88181         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88182         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88183
88184 2000-07-09  Jim Meyering  <meyering@lucent.com>
88185
88186         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88187         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88188
88189         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88190         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88191
88192 2000-07-09  Jim Meyering  <meyering@lucent.com>
88193
88194         * lib/Most files: Update copyright dates to include 2000.
88195
88196 2000-07-08  Jim Meyering  <meyering@lucent.com>
88197
88198         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88199         if not defined.
88200         (xgethostname): Remove now-unnecessary #ifdef.
88201         Move declaration of `err' into loop where it's used.
88202
88203 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88204         and Bruno Haible  <haible@clisp.cons.org>
88205
88206         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88207         only if the test for an object-type mbstate_t fails.  This
88208         prevents us from mistakenly reporting that mbstate_t is a
88209         system object type after we "#define mbstate_t int" to work
88210         around its lack.
88211
88212 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88213         and Bruno Haible  <haible@clisp.cons.org>
88214
88215         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88216
88217 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88218
88219         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88220         to strerror_r.
88221         Include <ctype.h> for use of isalpha.
88222
88223 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88224
88225         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88226         by allocating a larger buffer. Test the gethostname return value for
88227         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88228         returns an error and ENAMETOOLONG isn't defined.
88229
88230 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88231
88232         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88233         dimension.
88234
88235 2000-07-04  Jim Meyering  <meyering@lucent.com>
88236
88237         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88238         of the deprecated AC_CHECKING.
88239
88240 2000-07-04  Jim Meyering  <meyering@lucent.com>
88241
88242         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88243         Reported by Bruno Haible.
88244
88245 2000-07-04  Jim Meyering  <meyering@lucent.com>
88246
88247         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88248         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88249         lacks mbrtowc.
88250
88251 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88252
88253         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88254         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88255
88256 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88257         and Bruno Haible  <haible@clisp.cons.org>
88258
88259         * lib/quotearg.c (mbrtowc):
88260         Assign to *pwc, and return 1 only if result is nonzero.
88261         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88262
88263 2000-07-03  Jim Meyering  <meyering@lucent.com>
88264
88265         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88266
88267 2000-07-03  Jim Meyering  <meyering@lucent.com>
88268
88269         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88270         This is necessary to get a definition of e.g., UTMP_FILE on
88271         HP-UX 10.20.
88272         From Bob Proulx.
88273
88274 2000-07-02  Jim Meyering  <meyering@lucent.com>
88275
88276         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88277
88278         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88279         AC_LIBOBJ(function_name).
88280         * m4/chown.m4: Likewise.
88281         * m4/fnmatch.m4: Likewise.
88282         * m4/ftruncate.m4: Likewise.
88283         * m4/getgroups.m4: Likewise.
88284         * m4/getline.m4: Likewise.
88285         * m4/group-member.m4: Likewise.
88286         * m4/jm-macros.m4: Likewise.
88287         * m4/lstat.m4: Likewise.
88288         * m4/malloc.m4: Likewise.
88289         * m4/memcmp.m4: Likewise.
88290         * m4/nanosleep.m4: Likewise.
88291         * m4/putenv.m4: Likewise.
88292         * m4/realloc.m4: Likewise.
88293         * m4/regex.m4: Likewise.
88294         * m4/stat.m4: Likewise.
88295         * m4/strftime.m4: Likewise.
88296
88297 2000-07-02  Jim Meyering  <meyering@lucent.com>
88298
88299         * lib/quotearg.c (mbstate_t): Don't define here.
88300
88301 2000-07-02  Jim Meyering  <meyering@lucent.com>
88302
88303         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88304
88305 2000-07-01  Jim Meyering  <meyering@lucent.com>
88306
88307         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88308
88309 2000-07-01  Jim Meyering  <meyering@lucent.com>
88310
88311         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88312         problem.
88313
88314 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88315
88316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88317         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88318
88319 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88320
88321         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88322         per change in ../m4/ls-mntd-fs.m4.
88323         (read_filesystem_list): Ignore symbolic links.
88324
88325 2000-06-29  Jim Meyering  <meyering@lucent.com>
88326
88327         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88328         for declaration of strcmp.
88329
88330         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88331
88332         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88333         Avoid warning by casting result to `char *' to remove `const'.
88334
88335 2000-06-28  Jim Meyering  <meyering@lucent.com>
88336
88337         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88338         included by quotearg.c, for which we perform this test.  From
88339         Bruno Haible.
88340
88341 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88342
88343         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88345         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88346
88347 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88348
88349         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88350
88351 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88352
88353         savedir now sets errno on failure and invokes xmalloc to get memory.
88354         Fix a couple of other minor bugs while we're at it.
88355
88356         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88357         (NAMLEN): Remove macro.
88358         (malloc, realloc): Remove decls.
88359         (stpcpy): Likewise.
88360         ("xalloc.h"): Include.
88361         (NAME_SIZE_DEFAULT): New macro.
88362         (savedir): Use xmalloc / xrealloc to allocate memory.
88363         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88364         Skip "" directory entries.
88365         Use strlen to calculate directory entry length, since the old method
88366         is rarely used these days and isn't worth supporting.
88367         Don't use a pointer after freeing it.
88368         Check for integer overflow when calculating allocation size.
88369         Use memcpy to copy entries, instead of stpcpy.
88370         Set errno properly when returning NULL.
88371         Check for readdir error.
88372
88373 2000-06-26  Jim Meyering  <meyering@lucent.com>
88374
88375         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88376
88377 2000-06-25  Jim Meyering  <meyering@lucent.com>
88378
88379         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88380         Linux header bug when _XOPEN_SOURCE is defined to 500.
88381
88382 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88383
88384         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88385         deficiency.
88386
88387 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88388
88389         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88390         Include xalloc.h.
88391         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88392
88393 2000-06-24  Jim Meyering  <meyering@lucent.com>
88394
88395         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88396         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88397         for which strerror does return char*, but which lacks a conveniently
88398         accessible declaration of the function.  If the compile-test says
88399         strerror_r doesn't work, then resort to a `run'-test that works on
88400         BeOS and segfaults on DEC Unix.
88401
88402 2000-06-24  Jim Meyering  <meyering@lucent.com>
88403
88404         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88405
88406 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88407
88408         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88409         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88410
88411 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88412
88413         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88414         (mbrtowc, mbstate_t): Define substitutes if
88415         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88416         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88417         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88418
88419 2000-06-23  Jim Meyering  <meyering@lucent.com>
88420
88421         * m4/afs.m4: Add missing AC_MSG_RESULT.
88422         Reported by Bruno Haible.
88423
88424         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88425         Suggestion from Bruno Haible.
88426
88427 2000-06-23  Jim Meyering  <meyering@lucent.com>
88428
88429         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88430
88431 2000-06-21  Jim Meyering  <meyering@lucent.com>
88432
88433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88434
88435 2000-06-21  Jim Meyering  <meyering@lucent.com>
88436
88437         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88438         (noinst_HEADERS): Add getstr.h.
88439
88440         * lib/getline.c (getstr): Move into a separate file.
88441         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88442         the following changes: new parameter, delim2; both delim[12]
88443         parameters have type `int', not `char'.  The latter would lose
88444         with 8-bit delimiters.
88445         * lib/getstr.h: New file.
88446
88447 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88448
88449         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88450         than 1024, return a memory chunk of least possible size, instead
88451         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88452         Use free/xmalloc instead of xrealloc to avoid copying for very long
88453         paths.
88454
88455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88456
88457         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88458         the empty string.
88459
88460 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88461
88462         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88463         address, not strdup.  Include <stdlib.h> and don't declare free().
88464
88465 2000-06-19  Jim Meyering  <meyering@lucent.com>
88466
88467         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88468
88469 2000-06-18  Jim Meyering  <meyering@lucent.com>
88470
88471         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88472
88473         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88474         `checking whether...' message to be consistent with that of the
88475         lstat test.
88476
88477 2000-06-18  Jim Meyering  <meyering@lucent.com>
88478
88479         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88480         Besides, these days every porting target provides a mkdir function.
88481
88482         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88483         needed. (this snippet comes from src/system.h).
88484
88485 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88486
88487         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88488
88489 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88490
88491         * lib/human.c (adjust_value): New function.
88492         (human_readable_inexact): Apply rounding style even when
88493         printing approximate values.
88494
88495 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88496
88497         * lib/human.c (human_readable_inexact): Allow an input block
88498         size that is not a multiple of the output block size, and vice versa.
88499         Reported by Piergiorgio Sartor.
88500
88501 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88502
88503         * lib/getdate.y (get_date): Apply relative times after time
88504         zone indicator, not before.  Reported by Todd A. Jacobs.
88505
88506 2000-06-13  Jim Meyering  <meyering@lucent.com>
88507
88508         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88509
88510         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88511
88512 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88513
88514         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88515
88516 2000-06-12  Jim Meyering  <meyering@lucent.com>
88517
88518         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88519         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88520         optional argument.
88521         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88522         the optional argument, `lib'.
88523
88524 2000-06-08  Jim Meyering  <meyering@lucent.com>
88525
88526         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88527
88528 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88529
88530         Rewrite largefile configuration so that we don't need to run
88531         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88532         AC_CANONICAL_HOST in configure.in -- jmm]
88533
88534         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88535         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88536         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88537         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88538         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88539         All uses changed.
88540         Instead of inspecting the output of getconf, try to compile the
88541         test program without and with the macro definition.
88542         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88543         for getconf.  Instead, check for the needed flags by compiling
88544         test programs.
88545
88546 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88547
88548         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88549
88550 2000-06-04  Jim Meyering  <meyering@lucent.com>
88551
88552         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88553         SunOS 4.1.4 for which gid_t is an unsigned type.
88554
88555 2000-06-03  Jim Meyering  <meyering@lucent.com>
88556
88557         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88558         now that autoconf requires that.
88559
88560         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88561         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88562         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88563
88564 2000-06-03  Jim Meyering  <meyering@lucent.com>
88565
88566         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88567
88568 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88569
88570         * m4/glibc21.m4: New file.
88571         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88572
88573 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88574
88575         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88576         newer, don't install charset.alias.
88577         * lib/config.charset: Change the Linux/glibc rules so they become empty
88578         on glibc-2.1 or newer.
88579
88580 2000-06-02  Jim Meyering  <meyering@lucent.com>
88581
88582         * lib/mountlist.c: Back out last change.  Instead, do this...
88583         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88584         me_dummy member using the same `ignore'-testing code.
88585         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88586         fs_type strings.
88587         From Mark D. Roth.
88588
88589 2000-05-29  Jim Meyering  <meyering@lucent.com>
88590
88591         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88592         mounts with the `ignore' attribute.  Based on a patch from
88593         Mark D. Roth.
88594
88595 2000-05-28  Jim Meyering  <meyering@lucent.com>
88596
88597         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88598         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88599         * m4/stat.m4: Likewise.
88600         * m4/lstat.m4: Likewise.
88601         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88602
88603         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88604         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88605
88606 2000-05-26  Jim Meyering  <meyering@lucent.com>
88607
88608         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88609
88610 2000-05-24  Jim Meyering  <meyering@lucent.com>
88611
88612         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88613         autoconf requires that.
88614         * m4/lib-check.m4: Likewise.
88615         * m4/jm-macros.m4: Likewise.
88616         * m4/strftime.m4: Likewise.
88617
88618         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88619         AC_CHECK_DECLS, now that autoconf requires that.
88620
88621 2000-05-22  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88624         * m4/lstat.m4: Likewise.
88625
88626 2000-05-22  Jim Meyering  <meyering@lucent.com>
88627
88628         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88629
88630 2000-05-20  Jim Meyering  <meyering@lucent.com>
88631
88632         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88633         (jm_PREREQ): Use it.
88634
88635 2000-05-18  Jim Meyering  <meyering@lucent.com>
88636
88637         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88638         back, too, since it may have been modified by allocate_entry.
88639         (hash_delete): Rewrite to use neither the assignment operator
88640         nor the comma operator in an if-expression.
88641
88642 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88643
88644         * lib/closeout.c:
88645         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88646         Remove; no longer needed.
88647         "quotearg.h": Add include.
88648         (file_name): Do not bother to explicitly initialize to NULL; it's less
88649         efficient on some hosts.
88650         (close_stdout_status): Remove test as to whether stdout was already
88651         closed; it breaks for the case "echo x | sort >&-".
88652         Quote file name colons.
88653         Do not assume that _("write error") lacks format strings.
88654
88655 2000-05-15  Jim Meyering  <meyering@lucent.com>
88656
88657         * lib/version-etc.c (version_etc_copyright): Update the copyright
88658         string used in all --version output.
88659
88660 2000-05-14  Jim Meyering  <meyering@lucent.com>
88661
88662         * lib/closeout.c (close_stdout_set_file_name): New function.
88663         (close_stdout_status): Use new file-scoped global.
88664         Return right away if fstat says the stdout file descriptor is invalid.
88665         * lib/closeout.h (close_stdout_set_file_name): Declare.
88666
88667 2000-05-10  Jim Meyering  <meyering@lucent.com>
88668
88669         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88670         (close_stdout_set_status): New function.
88671         * lib/closeout.h (close_stdout_set_status): Declare.
88672
88673 2000-05-09  Jim Meyering  <meyering@lucent.com>
88674
88675         * m4/gettext.m4: Rename this...
88676         * m4/libintl.m4: ...to this.
88677
88678 2000-05-08  Jim Meyering  <meyering@lucent.com>
88679
88680         * lib/long-options.c: Don't include closeout.h.
88681         (parse_long_options): Don't call close_stdout for --version.
88682
88683 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88684
88685         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88686         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88687         2.1.3 bug.  This avoids a clash when files like regex.c define
88688         _GNU_SOURCE.
88689
88690 2000-05-06  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88693         (AC_REPLACE_FUNCS): Add strnlen.
88694
88695         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88696         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88697
88698         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88699         AC_SEARCH_LIBS call for nanosleep.
88700         (LIB_NANOSLEEP): Set and AC_SUBST.
88701
88702 2000-05-06  Jim Meyering  <meyering@lucent.com>
88703
88704         * lib/strnlen.c: Undefine __strnlen and strnlen.
88705         [!weak_alias]: Define __strnlen to strnlen.
88706
88707         * lib/atexit.c: New file, from libiberty.
88708
88709 2000-05-06  Jim Meyering  <meyering@lucent.com>
88710
88711         * lib/closeout.c (close_stdout_status): Also check for errors on the
88712         stderr stream.
88713
88714 2000-05-05  Jim Meyering  <meyering@lucent.com>
88715
88716         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88717         AC_SEARCH_LIBS call for clock_gettime.
88718         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88719
88720         * m4/search-libs.m4: Update from autoconf.
88721
88722         su doesn't work on Solaris 2.6.
88723         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88724         <shadow.h>.  Reported by Dragos Harabor.
88725
88726 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88727
88728         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88729         memcpy instead of xmalloc, xrealloc, path_concat.
88730         (locale_charset): Treat empty environment variables as absent.
88731         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88732
88733 2000-05-04  Jim Meyering  <meyering@lucent.com>
88734
88735         * lib/getopt.c: Update from glibc.
88736         * lib/obstack.c: Likewise.
88737         * lib/obstack.h: Likewise.
88738         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88739         file
88740
88741         * lib/regex.h: Likewise.
88742         * lib/strndup.c: Likewise.
88743         * lib/strnlen.c: New file, from glibc.
88744
88745 2000-05-03  Jim Meyering  <meyering@lucent.com>
88746
88747         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88748
88749 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88750
88751         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88752         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88753         compile-time test, rather than inspecting host and OS, to
88754         decide whether to define _LARGEFILE_SOURCE.
88755
88756 2000-05-01  Jim Meyering  <meyering@lucent.com>
88757
88758         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88759
88760         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88761         Based on a patch from Bruno Haible.
88762
88763 2000-05-01  Jim Meyering  <meyering@lucent.com>
88764
88765         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88766
88767 2000-04-29  Jim Meyering  <meyering@lucent.com>
88768
88769         * lib/path-concat.c: Declare strdup only if it's not defined.
88770         * lib/canon-host.c: Likewise.
88771
88772 2000-04-28  Jim Meyering  <meyering@lucent.com>
88773
88774         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88775         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88776         is included first, then limits.h is included by locale.h by libintl.h.
88777         From John David Anglin.
88778
88779 2000-04-25  Jim Meyering  <meyering@lucent.com>
88780
88781         * lib/makepath.c (S_IRWXUGO): Define.
88782         (make_path): Always perform explicit chmod if MODE specifies any
88783         of the `special' permission bits.  Prompted by a bug report against
88784         install from Mate Wierdl and Joost van Baal.
88785
88786 2000-04-18  Jim Meyering  <meyering@lucent.com>
88787
88788         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88789         (jm_PREREQ): Use it.
88790
88791 2000-04-18  Jim Meyering  <meyering@lucent.com>
88792
88793         * lib/README: New file.
88794
88795         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88796         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88797
88798 2000-04-17  Jim Meyering  <meyering@lucent.com>
88799
88800         Get it right :-)
88801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88802         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88803         Suggestion from Akim Demaille.
88804
88805 2000-04-17  Jim Meyering  <meyering@lucent.com>
88806
88807         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88808         the definition of it to rpl_strftime also defined-away the system's
88809         declaration.
88810
88811 2000-04-15  Jim Meyering  <meyering@lucent.com>
88812
88813         Use `C' to denote so-called `contiguous' files, the same way
88814         that tar does.
88815         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88816         (ftypelet): Use S_ISCTG.
88817         From Michael Deutschmann.
88818
88819 2000-04-14  Jim Meyering  <meyering@lucent.com>
88820
88821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88822         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88823         clobbered.
88824
88825 2000-04-14  Jim Meyering  <meyering@lucent.com>
88826
88827         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88828
88829 2000-04-13  Jim Meyering  <meyering@lucent.com>
88830
88831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88832         AH_VERBATIM to insert required #ifndef into config.h.in.
88833         Suggestion from Akim Demaille.
88834
88835 2000-04-12  Jim Meyering  <meyering@lucent.com>
88836
88837         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88838         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88839         Christian Krackowizer.
88840
88841         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88842         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88843         (AC_SYS_LARGEFILE): Require.
88844         (AM_C_PROTOTYPES): Require.
88845
88846 2000-04-08  Jim Meyering  <meyering@lucent.com>
88847
88848         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88849         names don't conflict.  Reported by Eli Zaretskii.
88850
88851 2000-04-07  Jim Meyering  <meyering@lucent.com>
88852
88853         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88854         sys/types.h, to work around system header problems on AIX 3.2.5.
88855         From Bruno Haible.
88856
88857 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88858
88859         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88860         bug.  Deal with the different error behavior of Irix iconv.
88861
88862 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88863
88864         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88865         IRIX if the installer said otherwise.
88866
88867 2000-04-05  Jim Meyering  <meyering@lucent.com>
88868
88869         Portability tweaks required for ultrix4.3.
88870         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88871         (jm_CHECK_DECLS): Add getutent to the list of functions.
88872         (_jm_DECL_HEADERS): Add utmpx.h.
88873         From John David Anglin.
88874
88875         * m4/strftime.m4: Back out the 2000-04-02 change.
88876         Instead of that change, simply undefine putenv in the test program.
88877
88878 2000-04-05  Jim Meyering  <meyering@lucent.com>
88879
88880         Portability tweaks required for ultrix4.3.
88881         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88882         getutent.
88883         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88884         * lib/canon-host.c: Declare strdup.
88885         * lib/path-concat.c: Likewise.
88886         From John David Anglin.
88887
88888 2000-04-04  Jim Meyering  <meyering@lucent.com>
88889
88890         Be more DOS 8.3-friendly.
88891         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88892         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88893         * lib/Makefile.am: Reflect renaming.
88894         Reported by Eli Zaretskii.
88895
88896         Use a temporary file name that won't clash with `charset.alias'
88897         in the DOS 8.3 name space.
88898         * lib/Makefile.am (charset_tmp): Define.
88899         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88900         (uninstall-local): Likewise.
88901         Reported by Eli Zaretskii.
88902
88903 2000-04-03  Jim Meyering  <meyering@lucent.com>
88904
88905         * m4/gettext.m4: Fix typo in comment.
88906
88907         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88908         textutils/configure.in).  Suggestion from Paul Eggert.
88909         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88910
88911 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88912
88913         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88914         variable in the shell rather than using putenv, which isn't
88915         portable.  This avoids the configure-time inter-test dependency
88916         on the potentially-renamed putenv function.
88917
88918 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88919
88920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88921         before checking struct stat.st_blksize, so that
88922         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88923
88924 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88925
88926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88927         since strftime.c uses HAVE_STRFTIME to decide whether to use
88928         the underlying strftime.
88929
88930 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88931
88932         * lib/time/strftime.c (my_strftime): Make sure we call the system
88933         strftime, not ourselves, when invoking the underlying strftime.
88934
88935 2000-03-24  Jim Meyering  <meyering@lucent.com>
88936
88937         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88938         (charset_alias): Define.
88939         (install-exec-local): Factor out common code.
88940         (uninstall-local): Split lines longer than 80.
88941         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88942         (SUFFIXES): Define.
88943         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88944         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88945
88946 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88947
88948         * lib/config.charset: Output a line containing "Packages using this
88949         file".
88950         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88951         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88952         ref-del.sed): New rules.
88953
88954 2000-03-17  Jim Meyering  <meyering@lucent.com>
88955
88956         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88957         Otherwise, include <strings.h>
88958
88959 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88960
88961         * lib/unicodeio.c (utf8_wctomb): New function.
88962         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88963         format instead of in UCS-4 with platform dependent endianness.
88964
88965 2000-03-10  Jim Meyering  <meyering@lucent.com>
88966
88967         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88968         From Marco Franzen.
88969
88970 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88971
88972         * lib/savedir.c (savedir): Work even if directory size is
88973         negative; this can happen with some screwy NFS configurations.
88974
88975 2000-03-06  Jim Meyering  <meyering@lucent.com>
88976
88977         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88978         if it's NULL (because we ran out of memory).  From Bruno Haible.
88979
88980 2000-03-05  Jim Meyering  <meyering@lucent.com>
88981
88982         * lib/localcharset.c ("path-concat.h"): Include.
88983         (get_charset_aliases): Use path_concat instead of ANSI string
88984         concatenation.
88985
88986         * lib/unicodeio.h (PARAMS): Define.
88987         Use it to guard prototype.
88988
88989 2000-03-04  Jim Meyering  <meyering@lucent.com>
88990
88991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88992         for lib/localcharset.c.
88993
88994 2000-03-04  Jim Meyering  <meyering@lucent.com>
88995
88996         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88997         installing into it.
88998         (uninstall-local): Uncomment this rule so `make distcheck' works
88999         once again.
89000
89001         * lib/unicodeio.c (<errno.h>): Include it.
89002         (errno): Declare if not defined.
89003
89004         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89005
89006         * lib/config.charset: New version, incorporating remarks from a linux
89007         i18n mailing list.  From Bruno Haible.
89008
89009 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89010
89011         * m4/codeset.m4: New file.
89012         * m4/iconv.m4: New file.
89013         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89014
89015 2000-03-03  Jim Meyering  <meyering@lucent.com>
89016
89017         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89018
89019 2000-03-02  Jim Meyering  <meyering@lucent.com>
89020
89021         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89022         the messages come out on separate lines.
89023
89024         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89025         rather than jm_CHECK_DECLARATIONS.
89026         * m4/decl.m4: Remove now-unused file.
89027
89028         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89029         geteuid.
89030
89031 2000-03-02  Jim Meyering  <meyering@lucent.com>
89032
89033         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89034
89035 2000-03-01  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89038         * lib/unicodeio.c: Likewise.
89039
89040 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89041
89042         * lib/config.charset: New file.
89043         * lib/localcharset.c: New file.
89044         * lib/unicodeio.h, lib/unicodeio.c: New files.
89045         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89046         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89047         (noinst_HEADERS): Add unicodeio.h.
89048         (all-local, install-exec-local, charset.alias): New targets.
89049
89050 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89051
89052         * lib/quotearg.c (ALERT_CHAR): New macro.
89053         (quotearg_buffer_restyled): Use it.
89054
89055 2000-02-27  Jim Meyering  <meyering@lucent.com>
89056
89057         * m4/check-decl.m4: Add getenv to the list.
89058
89059 2000-02-27  Jim Meyering  <meyering@lucent.com>
89060
89061         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89062         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89063
89064         * lib/backupfile.c: Guard inclusion of stdlib.h with
89065         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89066         Declare malloc if needed.
89067
89068         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89069         `#ifndef HAVE_DECL..'
89070         now that autoconf always defines the HAVE_DECL_ symbols.
89071         * lib/human.c: Likewise.
89072         * lib/same.c: Likewise.
89073         * lib/strtoumax.c: Likewise.
89074
89075         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89076         declaration check was not run.
89077         * lib/hash.c: Likewise.
89078         * lib/human.c: Likewise.
89079         * lib/same.c: Likewise.
89080         * lib/strtoumax.c: Likewise.
89081
89082         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89083         `.', then first look up the entire `.'-containing string as a login
89084         name.
89085
89086 2000-02-23  Jim Meyering  <meyering@lucent.com>
89087
89088         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89089         in place of my hack.
89090
89091 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89092
89093         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89094         (textint): New typedef.
89095         (parser_control): Member year changed from int to textint.
89096         All uses changed.
89097         (YYSTYPE): Removed; replaced by %union with int and textint members.
89098         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89099         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89100         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89101         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89102         (date, number, to_year): Use width of number in digits, not its value,
89103         to determine whether it's a 2-digit year, or a 2-digit time.
89104         (yylex): Store number of digits of numeric tokens.
89105         Reported by John Kendall.
89106
89107         (parser_control): Changed from struct parser_control to typedef (for
89108         consistency).  All uses changed.
89109
89110         (tID): Removed; not used.
89111         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89112
89113 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89114
89115         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89116         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89117
89118 2000-02-12  Jim Meyering  <meyering@lucent.com>
89119
89120         * lib/userspec.c (ISDIGIT): Define it.
89121         (isdigit): Remove definition.
89122         (is_number): Use ISDIGIT, not isdigit.
89123         <libintl.h>: Include.
89124         (_ and N_): Define.
89125         (parse_user_spec): Mark translatable strings.
89126
89127 2000-02-10  Jim Meyering  <meyering@lucent.com>
89128
89129         With these changes, nanosleep.[ch] are finally enough like the other
89130         lib/* replacement files to compile on a few more losing systems.
89131
89132         * lib/nanosleep.h: Don't include config.h.
89133         Remove prototype from declaration of nanosleep.
89134         (PARAMS): Remove now-unneeded definition.
89135         * lib/nanosleep.c: #undef nanosleep.
89136         (rpl_nanosleep): Rename from nanosleep.
89137
89138 2000-02-10  Jim Meyering  <meyering@lucent.com>
89139
89140         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89141         gnu_nanosleep to rpl_nanosleep.
89142
89143 2000-02-09  Jim Meyering  <meyering@lucent.com>
89144
89145         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89146         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89147
89148 2000-02-08  Akim Demaille  <akim@epita.fr>
89149
89150         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89151         `[' and `]' and remove uses of `changequote'.
89152         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89153         (AC_SYS_LARGEFILE): Likewise.
89154         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89155         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89156         of changequote.
89157         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89158         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89159         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89160         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89161
89162 2000-02-05  Jim Meyering  <meyering@lucent.com>
89163
89164         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89165         Remove explicit use of AC_HEADER_TIME.  It is required by
89166         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89167         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89168         in autoconf whereby the expansion of the latter ended up preceding
89169         the expansion of its prerequisite, AC_HEADER_TIME.
89170         Reported by Volker Borchert.
89171
89172 2000-02-03  Jim Meyering  <meyering@lucent.com>
89173
89174         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89175
89176 2000-02-03  Jim Meyering  <meyering@lucent.com>
89177
89178         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89179         rather than with `#if HAVE_UTMPNAME'.
89180
89181 2000-02-02  Jim Meyering  <meyering@lucent.com>
89182
89183         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89184         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89185         Reported by Eli Zaretskii.
89186
89187 2000-02-01  Jim Meyering  <meyering@lucent.com>
89188
89189         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89190
89191 2000-01-31  Jim Meyering  <meyering@lucent.com>
89192
89193         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89194         functions.  Add the time.h and sys/time.h headers along with the
89195         AC_REQUIRE'ment of AC_HEADER_TIME.
89196
89197 2000-01-31  Jim Meyering  <meyering@lucent.com>
89198
89199         * lib/nanosleep.h (nanosleep): Guard declaration with
89200         `#if ! HAVE_DECL_NANOSLEEP'.
89201         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89202         the declaration in that vendor's sys/timers.h.
89203         Reported by Christian Krackowizer.
89204
89205         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89206         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89207         (ISPRINT): Likewise.
89208         Reported by Tom Tromey.
89209
89210 2000-01-30  Jim Meyering  <meyering@lucent.com>
89211
89212         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89213
89214         * m4/prereq.m4 (utmp_includes): Define.
89215         Check for ut_user and ut_name members in both struct utmpx
89216         and struct utmp.
89217
89218 2000-01-30  Jim Meyering  <meyering@lucent.com>
89219
89220         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89221         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89222         header files where only utmpx.ut_user is declared.
89223
89224         * lib/readutmp.h (UT_USER): Define.
89225
89226 2000-01-29  Jim Meyering  <meyering@lucent.com>
89227
89228         * m4/lib-check.m4: New file containing library-related checks from
89229         fileutils and sh-utils (textutils had none).
89230
89231 2000-01-28  Jim Meyering  <meyering@lucent.com>
89232
89233         * m4/perl.m4: Change format of warning message to look more like that
89234         from the missing script.  Suggestion from François Pinard.
89235
89236 2000-01-25  Jim Meyering  <meyering@lucent.com>
89237
89238         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89239         well as time.h in the compile check.
89240         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89241         Fix typo in cross-compiling case: s/yes/no/.
89242
89243 2000-01-23  Jim Meyering  <meyering@lucent.com>
89244
89245         * m4/jm-macros.m4: Move df-related tests here from
89246         fileutils/configure.in
89247
89248         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89249         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89250
89251         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89252         s/space/ac_fsusage_space/.
89253         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89254
89255         * m4/ftruncate.m4: New file (derived from part of
89256         fileutils/configure.in).
89257         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89258         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89259
89260         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89261         AC_SUBST these here, rather than just in sh-util/configure.in, so
89262         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89263         all the same.
89264         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89265         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89266         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89267         (AC_SUBST(POW_LIBM)): Likewise.
89268         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89269
89270 2000-01-23  Jim Meyering  <meyering@lucent.com>
89271
89272         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89273         obstack.c.
89274
89275 2000-01-22  Jim Meyering  <meyering@lucent.com>
89276
89277         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89278
89279         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89280
89281         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89282         configure.in
89283         (AC_CHECK_HEADERS): Likewise for sh-utils.
89284         (AC_CHECK_HEADERS): Likewise for textutils.
89285         Merge the three lists of headers.
89286
89287         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89288         from fileutils' configure.in.
89289
89290         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89291         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89292         check-decl.m4.
89293
89294         * m4/check-decl.m4: Use #if rather than #ifdef.
89295         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89296         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89297         (_jm_DECL_HEADERS): Define new function.
89298         (jm_CHECK_DECLARATIONS): Require it.
89299
89300 2000-01-22  Jim Meyering  <meyering@lucent.com>
89301
89302         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89303         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89304         Required for some AIX systems.  Reported by Christian Krackowizer.
89305         [TESTING] (main): New function.
89306
89307         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89308         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89309         letters.
89310
89311         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89312         iswprint.
89313
89314         * lib/strverscmp.c (ISDIGIT): Define.
89315         (strverscmp): Use ISDIGIT, not isdigit.
89316
89317 2000-01-19  Jim Meyering  <meyering@lucent.com>
89318
89319         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89320         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89321         defines `struct timespec' in <sys/time.h>
89322
89323         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89324         Thanks to Akim for explaining.
89325
89326 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89327
89328         * lib/nanosleep.c (nanosleep):
89329         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89330         POSIX.1 doesn't require SA_INTERRUPT and some systems
89331         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89332         it's been part of POSIX.1 since day 1 (in 1988).
89333
89334 2000-01-17  Jim Meyering  <meyering@lucent.com>
89335
89336         * lib/interlock: Remove unused file.  Reported by François Pinard.
89337
89338 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89339
89340         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89341         alert, backslash, formfeed, and vertical tab unnecessarily in
89342         shell quoting style.
89343
89344 2000-01-16  Jim Meyering  <meyering@lucent.com>
89345
89346         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89347         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89348         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89349         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89350
89351 2000-01-16  Jim Meyering  <meyering@lucent.com>
89352
89353         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89354         because the latter didn't work.
89355
89356 2000-01-15  Jim Meyering  <meyering@lucent.com>
89357
89358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89359         (AC_REPLACE_FUNCS): Add memcpy and memset.
89360         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89361         Add strpbrk.
89362         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89363
89364 2000-01-12  Jim Meyering  <meyering@lucent.com>
89365
89366         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89367         (jm_PREREQ): Use it.
89368         (jm_PREREQ_READUTMP): New macro.
89369         (jm_PREREQ): Use it.
89370
89371 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89372
89373         Quote multibyte characters correctly.
89374         * m4/c-bs-a.m4: New file.
89375         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89376         (jm_PREREQ): Use it.
89377
89378 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89379
89380         * m4/uintmax_t.m4: Port to autoconf 2.13.
89381
89382 2000-01-08  Jim Meyering  <meyering@ascend.com>
89383
89384         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89385         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89386
89387 2000-01-04  Jim Meyering  <meyering@ascend.com>
89388
89389         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89390         jm_STRUCT_DIRENT_D_TYPE.
89391         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89392         jm_STRUCT_DIRENT_D_INO.
89393         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89394         jm_STRUCT_UTIMBUF.
89395         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89396         renamings.
89397         * m4/utime.m4: Likewise.
89398
89399         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89400         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89401
89402 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89403
89404         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89405         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89406
89407 2000-01-02  Jim Meyering  <meyering@ascend.com>
89408
89409         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89410         remember if this is necessary.
89411
89412 1999-12-26  Jim Meyering  <meyering@ascend.com>
89413
89414         * m4/jm-macros.m4: Use it here.
89415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89416
89417 1999-12-23  Jim Meyering  <meyering@ascend.com>
89418
89419         * m4/jm-macros.m4: Check for clock_gettime (moved from
89420         fileutils/configure.in)
89421         Check for gettimeofday.
89422
89423 1999-12-20  Jim Meyering  <meyering@ascend.com>
89424
89425         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89426         autoconf-2.14a-1999-12-20.
89427
89428 1999-12-19  Jim Meyering  <meyering@ascend.com>
89429
89430         * m4/lstat-slash.m4: New file.
89431         * m4/jm-macros.m4: Use the new macro:
89432         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89433
89434 1999-12-07  Jim Meyering  <meyering@ascend.com>
89435
89436         * m4/perl.m4: Require that File::Compare be available, too.
89437         Too many systems seem to lack it.
89438
89439         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89440         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89441
89442 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89443
89444         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89445         problem with the QNX 4.25 shell, which doesn't propagate exit
89446         status of failed commands inside shell assignments.
89447
89448 1999-11-17  Jim Meyering  <meyering@ascend.com>
89449
89450         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89451
89452 1999-11-07  Jim Meyering  <meyering@ascend.com>
89453
89454         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89455
89456 1999-11-06  Jim Meyering  <meyering@ascend.com>
89457
89458         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89459         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89460
89461 1999-11-05  Jim Meyering  <meyering@ascend.com>
89462
89463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89464         configure.in of textutils, fileutils, and sh-utils into this one
89465         (shared between those packages) file.
89466         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89467         AC_STRUCT_ST_BLKSIZE.
89468
89469 1999-11-03  Jim Meyering  <meyering@ascend.com>
89470
89471         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89472         of AC_CHECK_TYPE checks includes unistd.h.
89473         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89474         Suggestion from Akim Demaille.
89475
89476 1999-10-30  Jim Meyering  <meyering@ascend.com>
89477
89478         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89479         m4-quoted string.
89480         * m4/ls-mntd-fs.m4: Likewise.
89481         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89482         * m4/jm-winsz1.m4: Likewise.
89483
89484         * m4/const.m4: Remove file, since the fix made it into the experimental
89485         version of autoconf.
89486         * m4/mktime.m4: Likewise.
89487
89488         * m4/check-type.m4: Remove file, now that the latest version of
89489         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89490
89491         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89492         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89493         AC_CHECK_TYPE.
89494
89495 1999-10-04  Jim Meyering  <meyering@ascend.com>
89496
89497         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89498
89499 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89500
89501         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89502         2.95.1 bug with HP-UX 10.20.
89503
89504 1999-09-17  Jim Meyering  <meyering@ascend.com>
89505
89506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89507         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89508         due to missing strdup (against sh-utils-2.0).
89509
89510 1999-08-29  Jim Meyering  <meyering@ascend.com>
89511
89512         * m4/jm-macros.m4: Require jm_BISON.
89513         * m4/bison.m4: New file.
89514
89515 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89516
89517         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89518         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89519
89520 1999-08-05  Jim Meyering  <meyering@ascend.com>
89521
89522         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89523         to avoid conflicts with `conftest' on 8+3 filesystems.
89524         Suggestion from Eli Zaretskii.
89525
89526 1999-08-04  Jim Meyering  <meyering@ascend.com>
89527
89528         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89529         fileutils and sh-utils (textutils's getline test was inadequate).
89530         (AM_FUNC_GETLINE): Run this test.
89531         (AC_CHECK_FUNCS): Check for getdelim.
89532         Reported by Bob Proulx.
89533
89534 1999-08-02  Jim Meyering  <meyering@ascend.com>
89535
89536         * m4/jm-macros.m4: Add a comment.
89537
89538 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89539
89540         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89541         <inttypes.h> defines strtoumax as a macro (and not as a
89542         function).
89543
89544 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89545
89546         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89547         that we can shift, multiply and divide unsigned long long
89548         values; Ultrix cc can't do it.
89549
89550 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89551
89552         * m4/mktime.m4: New file, which is a preview of what should appear
89553         in the next public autoconf release.
89554
89555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89556
89557         * m4/lfs.m4: Remove this file.
89558         * m4/largefile.m4: New file.  It contains the old contents of
89559         lfs.m4, except that all names with prefix AC_LFS have been
89560         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89561         compatible with future autoconf versions.  Also, some minor m4
89562         quoting problems have been fixed.
89563
89564 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89565
89566         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89567         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89568         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89569         and simplify the shell code.
89570
89571 1999-08-01  Jim Meyering  <meyering@ascend.com>
89572
89573         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89574         m4.
89575
89576 1999-07-20  Jim Meyering  <meyering@ascend.com>
89577
89578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89579
89580 1999-07-15  Jim Meyering  <meyering@ascend.com>
89581
89582         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89583
89584 1999-05-22  Jim Meyering  <meyering@ascend.com>
89585
89586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89587
89588 1999-05-20  Jim Meyering  <meyering@ascend.com>
89589
89590         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89591         Add a colon after each `then' in case $4 is empty.
89592
89593 1999-05-16  Jim Meyering  <meyering@ascend.com>
89594
89595         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89596
89597 1999-05-10  Jim Meyering  <meyering@ascend.com>
89598
89599         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89600
89601         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89602         AC_FUNC_MKTIME.
89603
89604 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89605
89606         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89607
89608 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89609
89610         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89611         not CPPFLAGS, so that linking works correctly in IRIX.
89612
89613 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89614
89615         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89616
89617 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89618
89619         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89620         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89622         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89623         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89624
89625         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89626
89627 1999-04-20  Jim Meyering  <meyering@ascend.com>
89628
89629         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89630         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89631         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89632
89633 1999-04-18  Jim Meyering  <meyering@ascend.com>
89634
89635         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89636         * m4/jm-macros.m4: Use it.
89637
89638 1999-04-06  Jim Meyering  <meyering@ascend.com>
89639
89640         * m4/strftime.m4: Remove test for %f.
89641
89642 1999-03-29  Jim Meyering  <meyering@ascend.com>
89643
89644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89645         superset of the AC_TYPE_* checks in the textutils, fileutils,
89646         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89647         AC_TYPE_PID_T.
89648
89649 1999-03-28  Jim Meyering  <meyering@ascend.com>
89650
89651         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89652         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89653         replaced e.g., in the *.sh files of the sh-utils.
89654
89655 1999-03-20  Jim Meyering  <meyering@ascend.com>
89656
89657         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89658         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89659         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89660
89661 1999-03-19  Jim Meyering  <meyering@ascend.com>
89662
89663         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89664
89665 1999-03-12  Jim Meyering  <meyering@ascend.com>
89666
89667         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89668
89669 1999-03-07  Jim Meyering  <meyering@ascend.com>
89670
89671         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89672         declared.
89673
89674 1999-02-17  Jim Meyering  <meyering@ascend.com>
89675
89676         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89677         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89678
89679 1999-02-07  Jim Meyering  <meyering@ascend.com>
89680
89681         * m4/group-member.m4: New file -- extracted from sh-utils'
89682         configure.in.
89683
89684         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89685         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89686
89687 1999-02-06  Jim Meyering  <meyering@ascend.com>
89688
89689         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89690         * m4/fnmatch.m4: Likewise.
89691         * m4/getgroups.m4: Likewise.
89692         * m4/lstat.m4: Likewise.
89693         * m4/malloc.m4: Likewise.
89694         * m4/putenv.m4: Likewise.
89695         * m4/realloc.m4: Likewise.
89696         * m4/regex.m4: Likewise.
89697         * m4/stat.m4: Likewise.
89698         * m4/strftime.m4: Likewise.
89699         Suggestion from Alain Magloire.
89700
89701         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89702         * m4/fnmatch.m4: Likewise.
89703         * m4/getgroups.m4: Likewise.
89704         * m4/getline.m4: Likewise.
89705         * m4/lstat.m4: Likewise.
89706         * m4/malloc.m4: Likewise.
89707         * m4/memcmp.m4: Likewise.
89708         * m4/putenv.m4: Likewise.
89709         * m4/realloc.m4: Likewise.
89710         * m4/regex.m4: Likewise.
89711         * m4/stat.m4: Likewise.
89712         * m4/strftime.m4: Likewise.
89713         Suggestion from Alain Magloire.
89714
89715         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89716         an argument.
89717
89718         * m4/regex.m4: Add a run-time Test for proper operation of
89719         re_compile_pattern.
89720
89721 1999-01-31  Jim Meyering  <meyering@ascend.com>
89722
89723         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89724
89725 1999-01-30  Jim Meyering  <meyering@ascend.com>
89726
89727         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89728
89729         * m4/jm-mktime.m4: Make this a wrapper around the official
89730         AM_FUNC_MKTIME rather than my private copy, now that the official one
89731         is up to date.
89732         * m4/mktime.m4: Remove file.
89733
89734         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89735         * m4/uptime.m4: Likewise.
89736         * m4/uintmax_t.m4: Likewise.
89737
89738 1999-01-28  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/jm-macros.m4: Use jm_AFS.
89741         * m4/afs.m4: New file (from fileutils' configure.in).
89742
89743         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89744         * m4/chown.m4: Likewise.
89745         * m4/d-ino.m4: Likewise.
89746         * m4/d-type.m4: Likewise.
89747         * m4/fnmatch.m4: Likewise.
89748         * m4/getgroups.m4: Likewise.
89749         * m4/gettext.m4: Likewise.
89750         * m4/jm-mktime.m4: Likewise.
89751         * m4/jm-winsz2.m4: Likewise.
89752         * m4/lcmessage.m4: Likewise.
89753         * m4/ls-mntd-fs.m4: Likewise.
89754         * m4/malloc.m4: Likewise.
89755         * m4/memcmp.m4: Likewise.
89756         * m4/putenv.m4: Likewise.
89757         * m4/realloc.m4: Likewise.
89758         * m4/st_mtim.m4: Likewise.
89759         * m4/strftime.m4: Likewise.
89760
89761 1999-01-16  Jim Meyering  <meyering@ascend.com>
89762
89763         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89764         (ARGMATCH_DIE_DECL): Define.
89765
89766 1999-01-12  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89769         Reported by Lars Hecking.
89770
89771 1999-01-10  Jim Meyering  <meyering@ascend.com>
89772
89773         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89774         gross kludge.
89775         * m4/inttypes_h.m4: Likewise.
89776         * m4/lstat.m4: Likewise.
89777         * m4/malloc.m4: Likewise.
89778         * m4/readdir.m4: Likewise.
89779         * m4/realloc.m4: Likewise.
89780         * m4/st_dm_mode.m4: Likewise.
89781         * m4/stat.m4: Likewise.
89782         * m4/utimbuf.m4: Likewise.
89783         * m4/utimes.m4: Likewise.
89784
89785         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89786         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89787         comments in config.h.in are meaningful.
89788
89789         * m4/jm-macros.m4: Require autoconf-2.13 here.
89790
89791         * m4/regex.m4: By default, don't use the included regex.c on systems
89792         with glibc 2.  Suggestion from Uli Drepper.
89793
89794 1999-01-02  Jim Meyering  <meyering@ascend.com>
89795
89796         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89797
89798 1998-12-18  Jim Meyering  <meyering@ascend.com>
89799
89800         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89801         Based on a suggestion from Lars Hecking.
89802
89803 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89804
89805         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89806
89807 1998-11-16  Jim Meyering  <meyering@ascend.com>
89808
89809         * m4/lfs.m4: Double-quote the `uname...` expression.
89810
89811 1998-11-14  Jim Meyering  <meyering@ascend.com>
89812
89813         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89814         * m4/stat.m4: Likewise.
89815
89816 1998-11-03  Jim Meyering  <meyering@ascend.com>
89817
89818         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89819         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89820
89821 1998-10-18  Jim Meyering  <meyering@ascend.com>
89822
89823         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89824
89825 1998-10-17  Jim Meyering  <meyering@ascend.com>
89826
89827         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89828         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89829         calls for those previously hard-coded headers.  Instead, take a new
89830         parameter.
89831         (jm_CHECK_DECLARATIONS): Reflect interface change.
89832         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89833         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89834
89835         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89836
89837 1998-10-14  Jim Meyering  <meyering@ascend.com>
89838
89839         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89840         instead of "TZ=America/Vancouver".  From Paul Eggert.
89841
89842 1998-10-11  Jim Meyering  <meyering@ascend.com>
89843
89844         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89845         This adds a test for a recently added compatibility fix for mktime.c.
89846         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89847
89848 1998-09-27  Jim Meyering  <meyering@ascend.com>
89849
89850         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89851
89852         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89853         ../configure.in, including a change from Gordon Matzigkeit to allow
89854         cross-compiling for the Hurd.
89855
89856         * m4/glibc.m4: New file/macro to test for the GNU C Library
89857         versions 1 and 2.  From Gordon Matzigkeit.
89858         Indent.
89859
89860 1998-09-21  Jim Meyering  <meyering@ascend.com>
89861
89862         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89863
89864 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89865
89866         Port nanosecond-resolution times to UnixWare 2.1.2 and
89867         pedantic Solaris 2.6.
89868
89869         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89870         AC_STRUCT_ST_MTIM.
89871         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89872         Generate name of ns member, instead of just 1 or undef.
89873         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89874
89875 1998-08-15  Jim Meyering  <meyering@ascend.com>
89876
89877         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89878         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89879         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89880         instead of jm_TYPE_SSIZE_T.
89881
89882 1998-08-12  Jim Meyering  <meyering@ascend.com>
89883
89884         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89885
89886 1998-08-02  Jim Meyering  <meyering@ascend.com>
89887
89888         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89889         in acconfig.h manually.
89890
89891 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89892
89893         * m4/st_mtim.m4: New file.
89894
89895 1998-07-28  Jim Meyering  <meyering@ascend.com>
89896
89897         * m4/utimes.m4: Undef stat.
89898
89899 1998-07-25  Jim Meyering  <meyering@ascend.com>
89900
89901         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89902         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89903
89904 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89905
89906         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89907         uid and gid actually remain unchanged.
89908
89909 1998-07-07  Jim Meyering  <meyering@ascend.com>
89910
89911         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89912
89913 1998-07-04  Jim Meyering  <meyering@ascend.com>
89914
89915         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89916         to prove that this macro can be used in packages without regex.c.
89917
89918 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89919
89920         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89921         is to be used.
89922
89923 1998-07-03  Jim Meyering  <meyering@ascend.com>
89924
89925         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89926
89927         * m4/gettext.m4: New file -- from gettext-0.10.35.
89928         * m4/lcmessage.m4: Likewise.
89929         * m4/progtest.m4: Likewise.
89930
89931         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89932         * m4/jm-macros.m4: Require the new macro.
89933
89934 1998-06-29  Jim Meyering  <meyering@ascend.com>
89935
89936         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89937         for the definition of NGROUPS (used in a system header included
89938         by sys/mount.h).
89939
89940 1998-06-28  Jim Meyering  <meyering@ascend.com>
89941
89942         * m4/ls-mntd-fs.m4: New file.
89943         * m4/fstypename.m4: New file.
89944
89945         * m4/jm-macros.m4: Require the new macro.
89946         * m4/jm-glibc-io.m4: New file.
89947
89948 1998-05-19  Jim Meyering  <meyering@ascend.com>
89949
89950         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89951         * m4/lchown.m4: New file.
89952
89953         * m4/Makefile.am.in: New file.
89954         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89955
89956 1998-05-14  Jim Meyering  <meyering@ascend.com>
89957
89958         * m4/Makefile.am (EXTRA_DIST): Add them.
89959         * m4/jm-macros.m4: New file.
89960         * m4/utimbuf.m4: New file.
89961
89962 1998-05-12  Jim Meyering  <meyering@ascend.com>
89963
89964         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89965
89966 1998-05-11  Jim Meyering  <meyering@ascend.com>
89967
89968         * m4/isc-posix.m4: New file.
89969
89970 1998-05-10  Jim Meyering  <meyering@ascend.com>
89971
89972         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89973
89974 1998-05-09  Jim Meyering  <meyering@ascend.com>
89975
89976         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89977         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89978         with automake.
89979
89980         * m4/ssize_t.m4: New file.
89981         * m4/mktime.m4: Remove file -- the new automake has this now.
89982
89983 1998-04-26  Jim Meyering  <meyering@ascend.com>
89984
89985         * m4/assert.m4: New file.
89986         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89987
89988 1998-04-05  Jim Meyering  <meyering@ascend.com>
89989
89990         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89991         (jm_PREREQ): Use it here.
89992
89993 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89994
89995         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89996         in acconfig.h.
89997
89998 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89999
90000         * m4/prereq.m4: New file.
90001         * m4/error.m4: New file.
90002         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90003
90004 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90005
90006         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90007         cache-check for the same variable -- that defeated the purpose of
90008         the test; the test program was never run.  This was a problem only
90009         on systems with losing getline functions -- HP-UX 10.20 is one.
90010         Reported by Bjorn Helgaas.
90011
90012 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90013
90014         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90015
90016 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90017
90018         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90019
90020         * m4/const.m4: New file.  Use an initializer in this declaration
90021         typedef int charset[2]; const charset x;
90022         Reported by Bob Glickstein.
90023
90024 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90025
90026         * m4/chown.m4: Fix reversed types on -1 args to chown.
90027         From Kaveh Ghazi.
90028
90029 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90030
90031         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90032         Add lseek and memchr.
90033
90034         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90035         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90036         have a 20-character limit on names.
90037
90038 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90039
90040         * m4/inttypes_h.m4: New file.
90041         * m4/uintmax_t.m4: New file.
90042         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90043
90044
90045         -----
90046
90047         Local Variables:
90048         coding: utf-8
90049         End:
90050
90051         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90052
90053         Copying and distribution of this file, with or without
90054         modification, are permitted provided the copyright notice
90055         and this notice are preserved.